/* Dott.ssa Laura De Clara — "ogni sintomo ha le sue radici"
   The page background is a light sky that warms from morning to dawn while you scroll (--sky, set by neuro.js).
   Every page section is light (data-tone="light"); only the footer stays dark. */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Onest"; src: url("../fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0B1024;
  --night-2: #151B3D;
  --indigo: #2A2F66;
  --plum: #4E3A6E;
  --cream: #FBF4EC;
  --peach: #F5DCCB;
  --ink: #1B2140;
  --ink-2: #4A4F6E;
  --star: #EEF0FA;
  --star-2: #B4BADB;
  --orchid: #C2579A;
  --orchid-deep: #9E3F7B;
  --orchid-soft: #F0BCDD;
  --dawn: #F2A65A;
  --aurora: #5FC9C0;
  --sage: #8DBF8B;
  --coral: #EE7A63;
  --iris: #8C98F2;
  --amber: #F2A65A;
  --line-dark: rgba(180, 186, 219, .2);
  --line-light: rgba(27, 33, 64, .14);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --sky: 0;
  --top-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: #F8F5F7; overflow-x: clip; }
main > section { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 350; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); font-weight: 450; line-height: 1.2; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.no-scroll { overflow: hidden; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.wrap.narrow, .narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.small { font-size: .9rem; }
.muted { opacity: .72; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Sky & network ---------- */
/* Three skies stacked: night (always), dusk (peaks half-way), dawn (rises in the second half). */
/* Three light layers: morning (always), lilac (peaks half-way), warm dawn (rises in the second half). */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60% 45% at 85% 5%, rgba(214, 196, 236, .55), transparent 70%), radial-gradient(50% 40% at 0% 60%, rgba(141, 191, 139, .14), transparent 70%), linear-gradient(180deg, #F7F4FA 0%, #FBF7F2 100%); }
.sky::before, .sky::after { content: ""; position: absolute; inset: 0; }
.sky::before { background: radial-gradient(70% 50% at 20% 20%, rgba(240, 188, 221, .32), transparent 70%), linear-gradient(180deg, #F6F0F8 0%, #FAF1EF 100%);
  opacity: min(calc(var(--sky) * 2.2), calc((1 - var(--sky)) * 2.4)); }
.sky::after { background: radial-gradient(90% 55% at 50% 112%, rgba(246, 190, 140, .55), transparent 70%), linear-gradient(180deg, #FBF4EC 0%, #F9EADF 60%, #F6DFCD 100%);
  opacity: clamp(0, calc((var(--sky) - .5) * 2.2), 1); }
.neuro { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
main { position: relative; }
[data-tone="light"] { color: var(--ink); }
[data-tone="dark"] { color: var(--star); }
/* Without JavaScript the sky stays at its morning colour, which is already light. */

/* ---------- Buttons, labels ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.5em; border-radius: 999px; border: 1.5px solid transparent; background: var(--orchid); color: #fff; font: 600 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), background .3s, box-shadow .35s; box-shadow: 0 10px 30px -12px rgba(194, 87, 154, .7); }
.btn:hover { background: var(--orchid-deep); transform: translateY(-2px); text-decoration: none; }
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: currentColor; box-shadow: none; }
.btn.ghost:hover { background: rgba(27, 33, 64, .06); }
.btn.ghost-light { background: rgba(255, 255, 255, .06); color: var(--star); border-color: rgba(238, 240, 250, .45); box-shadow: none; backdrop-filter: blur(6px); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: .65em 1.15em; font-size: .9rem; }
.btn-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; color: inherit; background: transparent; opacity: .85; }
.btn-icon:hover { opacity: 1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.eyebrow { font: 600 .78rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--dawn); margin-bottom: 1.1em; }
[data-tone="light"] .eyebrow { color: var(--orchid-deep); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 44em; opacity: .9; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.tag { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .5em .8em; border-radius: 999px; background: rgba(194, 87, 154, .12); color: var(--orchid-deep); }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.top { position: fixed; z-index: 50; inset: 0 0 auto; color: var(--star); transition: background .4s, box-shadow .4s, color .4s; }
.top-inner { display: flex; align-items: center; gap: 24px; height: var(--top-h); }
.top.scrolled { background: color-mix(in srgb, var(--night) 78%, transparent); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line-dark); }
html[data-tone="light"] .top.scrolled { background: color-mix(in srgb, var(--cream) 82%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line-light); }
html[data-tone="light"] .top.scrolled .brand-mark { color: var(--ink); }
html[data-tone="light"] .top.scrolled .nav-list a:hover, html[data-tone="light"] .top.scrolled .nav-list a[aria-current="page"], html[data-tone="light"] .top.scrolled .nav-list a.is-active { background: rgba(27, 33, 64, .07); }
html[data-tone="light"] .top.scrolled .menu-btn { border-color: rgba(27, 33, 64, .3); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; color: var(--star); }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font: 450 1.32rem/1 var(--serif); letter-spacing: -.01em; }
.brand-role { font: 500 .66rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .55em .95em; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .98rem; transition: background .25s; }
.nav-list a:hover { background: rgba(255, 255, 255, .08); }
.nav-list a[aria-current="page"], .nav-list a.is-active { background: rgba(255, 255, 255, .12); }
.nav-mobile-only { display: none; }
.menu-btn { display: none; width: 46px; height: 46px; border: 1px solid rgba(238, 240, 250, .35); border-radius: 50%; background: transparent; color: inherit; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: block; order: 3; }
  .top-cta { display: none; }
  .nav { position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; background: color-mix(in srgb, var(--night) 96%, transparent); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
  .nav[data-open] { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; text-align: center; gap: 4px; }
  .nav-list a { font: 350 2rem/1.2 var(--serif); padding: .3em .8em; }
  .nav-mobile-only { display: block; }
}
.demo-note { position: relative; z-index: 2; margin: var(--top-h) 0 0; padding: 8px 16px; text-align: center; font-size: .88rem; background: var(--dawn); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; align-content: center; position: relative; padding: calc(var(--top-h) + 40px) 0 120px; }
.hero-inner { max-width: 1240px; }
.hero-title { margin-bottom: .35em; }
.hero-title .line { display: block; }
.hero-title .line-em { font-size: .62em; margin-top: .12em; }
.hero-title em { font-style: italic; font-weight: 300; background: linear-gradient(90deg, var(--orchid-soft), var(--dawn) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.hero .lead { max-width: 34em; }
@media (min-width: 900px) { .hero .lead, .hero-title { max-width: 56%; } }
.hero-quote { position: absolute; left: 0; right: 0; bottom: 34px; margin: 0 auto; width: min(1240px, 100% - 32px); display: flex; gap: .8em; align-items: baseline; flex-wrap: wrap; font-size: .95rem; opacity: .75; }
.hero-quote blockquote { margin: 0; font: italic 400 1.08rem/1.4 var(--serif); }
.hero-quote figcaption::before { content: "— "; }
.scroll-cue { position: absolute; left: 50%; margin-left: -13px; bottom: 30px; width: 26px; height: 42px; border: 1.5px solid rgba(238, 240, 250, .5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--star); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 899px) { .hero { align-content: end; padding-top: 42vh; } .hero-quote { position: static; margin-top: 40px; } .scroll-cue { display: none; } }

/* ---------- Statement (words light up) ---------- */
.manifesto { padding: clamp(100px, 18vh, 200px) 0; }
.statement { font: 300 clamp(1.8rem, 4.1vw, 3.5rem)/1.22 var(--serif); letter-spacing: -.015em; margin: 0; max-width: 22em; }
.statement .lw { opacity: .16; transition: opacity .5s, color .5s; }
.statement .lw.on { opacity: 1; }
.statement.static .lw, .statement.static { opacity: 1; }
.statement-light .lw { opacity: .14; }

/* ---------- Intro ---------- */
.intro { padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 14vh, 160px); }
.intro-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 5fr 6fr; } }
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 480px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 48% 48% var(--radius) var(--radius); position: relative; z-index: 1; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.portrait-orbit { position: absolute; inset: -9%; z-index: 0; }
.portrait-orbit span { position: absolute; inset: 0; border: 1px solid rgba(180, 186, 219, .22); border-radius: 50%; animation: spin 40s linear infinite; }
.portrait-orbit span:nth-child(2) { inset: 7%; animation-duration: 28s; animation-direction: reverse; border-style: dashed; }
.portrait-orbit span:nth-child(3) { inset: -6%; animation-duration: 60s; }
.portrait-orbit span::after { content: ""; position: absolute; top: 50%; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 16px var(--orchid); }
.portrait-orbit span:nth-child(2)::after { background: var(--dawn); box-shadow: 0 0 16px var(--dawn); left: auto; right: -5px; }
.portrait-orbit span:nth-child(3)::after { background: var(--aurora); box-shadow: 0 0 16px var(--aurora); top: 0; left: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin: 2em 0; }
.fact { border-top: 1px solid var(--line-dark); padding-top: 14px; display: flex; flex-direction: column-reverse; }
.fact dd { margin: 0; font: 350 clamp(1.6rem, 2.5vw, 2.1rem)/1.1 var(--serif); }
.fact dt { font-size: .9rem; opacity: .75; margin-top: 6px; }

/* ---------- Constellation of projects ---------- */
.cosmos { position: relative; padding: 80px 0; }
.cosmos-head { text-align: center; margin-bottom: 30px; }
.cosmos-head .lead { margin-inline: auto; }
.cosmos-stage { position: relative; width: min(560px, 92vw); aspect-ratio: 1; margin: 0 auto; }
.cosmos-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cosmos-lines path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 1)); transition: stroke .5s, stroke-width .5s, opacity .5s; }
.l-core { stroke: rgba(180, 186, 219, .35); stroke-width: 1.2; }
.l-link { stroke: rgba(194, 87, 154, .35); stroke-width: 1; stroke-dasharray: 1; }
.cosmos-lines .hot { stroke: var(--dawn); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(242, 166, 90, .8)); }
.cosmos-lines .l-link.hot { stroke: var(--orchid-soft); }
.cosmos-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; text-align: center; font: italic 400 clamp(.95rem, 1.5vw, 1.15rem)/1.2 var(--serif); background: radial-gradient(circle at 40% 35%, rgba(240, 188, 221, .35), rgba(42, 47, 102, .55) 60%, rgba(11, 16, 36, .3)); box-shadow: 0 0 60px rgba(194, 87, 154, .35), inset 0 0 30px rgba(255, 255, 255, .08); }
.cosmos-core span { padding: 10px; }
.cosmos-core::before, .cosmos-core::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 1px solid rgba(240, 188, 221, .25); animation: halo 4s var(--ease) infinite; }
.cosmos-core::after { animation-delay: 2s; }
@keyframes halo { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.star { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; text-decoration: none; z-index: 2; --c: var(--aurora); }
.star-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 0 24px var(--c); transition: transform .5s var(--ease), box-shadow .5s; }
.star-name { font: 500 .95rem/1.1 var(--sans); white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: rgba(11, 16, 36, .55); backdrop-filter: blur(6px); transition: background .4s, color .4s; }
.star:hover .star-dot, .star.on .star-dot { transform: scale(1.5); box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 22%, transparent), 0 0 40px var(--c); }
.star.on .star-name { background: var(--c); color: var(--night); }
[data-color="aurora"] { --c: var(--aurora); }
[data-color="orchid"] { --c: var(--orchid-soft); }
[data-color="amber"] { --c: var(--amber); }
[data-color="sage"] { --c: var(--sage); }
[data-color="coral"] { --c: var(--coral); }
[data-color="iris"] { --c: var(--iris); }
.cosmos-panels { display: grid; gap: 18px; margin-top: 40px; }
.panel { background: rgba(21, 27, 61, .62); border: 1px solid var(--line-dark); border-left: 3px solid var(--c, var(--aurora)); border-radius: var(--radius); padding: 26px 28px; backdrop-filter: blur(10px); }
.panel h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: .1em; }
.panel h3 a { text-decoration: none; }
.panel-role { font: 600 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--c, var(--dawn)); margin-bottom: .8em; }
.panel-tag { font: italic 400 1.15rem/1.4 var(--serif); opacity: .85; }
.cosmos-progress { display: none; }
@media (min-width: 900px) {
  .cosmos.is-pinned { height: calc((var(--n) + 1.4) * 80vh); padding: 0; }
  .cosmos.is-pinned .cosmos-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: center; width: min(1240px, 100% - 32px); margin: 0 auto; padding-top: var(--top-h); column-gap: 40px; }
  .cosmos.is-pinned .cosmos-head { grid-column: 1 / -1; text-align: left; margin: 2vh 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: end; }
  .cosmos.is-pinned .cosmos-head .eyebrow { grid-column: 1 / -1; margin-bottom: .6em; }
  .cosmos.is-pinned .cosmos-head h2 { margin: 0; }
  .cosmos.is-pinned .cosmos-head .lead { margin: 0; font-size: 1.05rem; }
  .cosmos.is-pinned .cosmos-stage { width: min(100%, 64vh); }
  .cosmos.is-pinned .cosmos-panels { position: relative; margin: 0; min-height: 340px; }
  .cosmos.is-pinned .panel { position: absolute; inset: 50% 0 auto; transform: translateY(-40%); opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
  .cosmos.is-pinned .panel.on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
  .cosmos.is-pinned .cosmos-progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; position: absolute; right: 0; bottom: 36px; }
  .cosmos-progress li { width: 26px; height: 3px; border-radius: 2px; background: rgba(180, 186, 219, .25); transition: background .4s; }
  .cosmos-progress li.on { background: var(--dawn); }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sub-head { font: 600 .8rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 56px 0 22px; opacity: .7; }

/* ---------- Areas (home) ---------- */
.care { padding: clamp(100px, 16vh, 180px) 0; }
.synapses { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.synapse a { position: relative; display: grid; gap: 6px; height: 100%; padding: 24px 24px 26px; border-radius: var(--radius); text-decoration: none; background: rgba(255, 255, 255, .58); border: 1px solid var(--line-light); backdrop-filter: blur(8px); transition: transform .5s var(--ease), background .4s, box-shadow .5s; overflow: hidden; }
.synapse a::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(194, 87, 154, .35), transparent 70%); opacity: 0; transition: opacity .5s, transform .6s var(--ease); transform: scale(.6); }
.synapse a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .85); box-shadow: 0 24px 50px -30px rgba(42, 47, 102, .5); }
.synapse a:hover::after { opacity: 1; transform: scale(1); }
.syn-n { font: italic 400 1rem/1 var(--serif); color: var(--orchid-deep); }
.syn-title { font: 450 1.4rem/1.15 var(--serif); }
.syn-text { font-size: .95rem; color: var(--ink-2); }

/* ---------- Blog cards ---------- */
.journal { padding: clamp(80px, 12vh, 140px) 0; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.post { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .72); border: 1px solid var(--line-light); color: var(--ink); backdrop-filter: blur(8px); transition: transform .5s var(--ease), box-shadow .5s; }
.post:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -36px rgba(42, 47, 102, .55); }
.post-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--peach); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post-img img { transform: scale(1.05); }
.post-body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; flex: 1; }
.post .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-2); margin: 0; }
.post h3 { margin: 0; font-size: 1.32rem; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post-excerpt { font-size: .95rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-src { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--orchid-deep); margin: 0; }
.post.no-img .post-body { padding-top: 28px; }
.post.no-img::before { content: ""; height: 4px; background: linear-gradient(90deg, var(--orchid), var(--dawn)); }
.post[data-color] .tag-proj { background: color-mix(in srgb, var(--c) 30%, white); color: var(--ink); }

/* ---------- Interlude & dawn ---------- */
.interlude { padding: clamp(90px, 14vh, 160px) 0; text-align: center; }
.interlude blockquote { margin: 0 0 .6em; font: italic 300 clamp(1.8rem, 3.6vw, 3rem)/1.25 var(--serif); }
.interlude blockquote .lw { opacity: .15; transition: opacity .5s; }
.interlude blockquote .lw.on { opacity: 1; }
.interlude figcaption { font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.dawn { position: relative; overflow: hidden; padding: clamp(110px, 18vh, 200px) 0 clamp(140px, 22vh, 240px); text-align: center; }
.dawn-inner { position: relative; z-index: 1; }
.dawn h2 { max-width: 16em; margin-inline: auto; }
.dawn p { max-width: 36em; margin-inline: auto; font-size: 1.15rem; color: var(--ink-2); }
.dawn .actions { justify-content: center; }
.sun { position: absolute; left: 50%; bottom: -78vmin; width: 120vmin; height: 120vmin; transform: translateX(-50%); border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(255, 214, 160, .95), rgba(242, 166, 90, .5) 38%, rgba(194, 87, 154, .18) 60%, transparent 70%); animation: sunrise 9s ease-in-out infinite alternate; }
@keyframes sunrise { from { transform: translateX(-50%) translateY(4%); } to { transform: translateX(-50%) translateY(-2%); } }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--night); color: var(--star); padding: 80px 0 30px; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-name { font: 400 1.6rem/1.1 var(--serif); margin-bottom: .3em; }
.foot-brand p:not(.foot-name) { opacity: .75; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-h { font: 600 .74rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--dawn); margin: 0 0 16px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .95rem; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .85rem; opacity: .8; }
.foot-reg { flex-basis: 100%; margin: 0 0 6px; }
.foot-credit { margin-left: auto; }
.wa-float { position: fixed; z-index: 40; right: 18px; bottom: 18px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #1FA855; color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Inner pages ---------- */
.page-hero { padding: calc(var(--top-h) + clamp(70px, 14vh, 150px)) 0 clamp(60px, 9vh, 100px); }
.page-hero-full { min-height: 100svh; display: grid; align-content: center; }
.page-hero h1 { max-width: 15em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .88rem; opacity: .75; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--orchid); font: italic 400 1.3rem/1.45 var(--serif); }
.prose-dark { color: var(--star); }
.prose-dark a { color: var(--orchid-soft); }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.bio { padding: 20px 0 clamp(80px, 12vh, 140px); }
.bio-grid { display: grid; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (min-width: 900px) { .bio-grid { grid-template-columns: 5fr 6fr; } .bio-photos { position: sticky; top: calc(var(--top-h) + 30px); } }
.bio-photos { display: grid; grid-template-columns: 5fr 4fr; gap: 16px; align-items: end; }
.photo-tall { aspect-ratio: 4 / 5; border-radius: 48% 48% var(--radius) var(--radius); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.photo-tall img { object-position: 50% 18%; }
.photo-wide { aspect-ratio: 3 / 4; }
.photo-wide img { object-position: 45% 30%; }

.timeline-band { padding: clamp(80px, 12vh, 140px) 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; --tl: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 96px; top: 6px; bottom: 6px; width: 2px; background: var(--line-dark); }
.timeline::after { background: linear-gradient(var(--orchid), var(--dawn)); transform-origin: top; transform: scaleY(var(--tl)); }
.tl-item { display: grid; grid-template-columns: 80px 34px 1fr; align-items: start; padding: 14px 0; }
.tl-year { font: italic 400 1.35rem/1.2 var(--serif); text-align: right; padding-right: 4px; opacity: .55; transition: opacity .5s, color .5s; }
.tl-node { width: 14px; height: 14px; margin: 7px 0 0 9px; border-radius: 50%; background: var(--night); border: 2px solid var(--star-2); position: relative; z-index: 1; transition: background .5s, border-color .5s, box-shadow .5s; }
.tl-item.reached .tl-node { background: var(--dawn); border-color: var(--dawn); box-shadow: 0 0 18px var(--dawn); }
.tl-item.reached .tl-year { opacity: 1; color: var(--dawn); }
.tl-body h3 { font-size: 1.3rem; margin: 0 0 .2em; }
.tl-body p { margin: 0; opacity: .75; font-size: .95rem; }
.approach { padding: clamp(100px, 16vh, 180px) 0; }

.areas-band { padding: 10px 0 clamp(80px, 12vh, 140px); }
.areas-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .areas-layout { grid-template-columns: 260px 1fr; gap: 80px; } .areas-index { position: sticky; top: calc(var(--top-h) + 30px); align-self: start; } }
.areas-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: a; }
.areas-index a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; opacity: .7; transition: opacity .3s, background .3s; }
.areas-index a:hover, .areas-index a[aria-current] { opacity: 1; background: rgba(255, 255, 255, .1); }
.areas-index a[aria-current]::before { content: "● "; color: var(--dawn); }
@media (max-width: 999px) { .areas-index ol { display: flex; flex-wrap: wrap; gap: 8px; } .areas-index a { border: 1px solid var(--line-dark); } }
.area { padding: 40px 0; border-top: 1px solid var(--line-dark); }
.area-n { font: italic 400 1.1rem/1 var(--serif); color: var(--dawn); margin-bottom: 12px; }
.area h2 { margin-bottom: .3em; }
.area-short { font: italic 400 1.3rem/1.4 var(--serif); opacity: .85; }
.area .prose h3 { font-size: 1.3rem; }

.therapies, .techniques { padding: clamp(80px, 12vh, 140px) 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: rgba(255, 255, 255, .66); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(8px); }
.card p:last-child { margin-bottom: 0; }
.accordion { display: grid; gap: 10px; max-width: 900px; }
.acc { background: rgba(255, 255, 255, .62); border: 1px solid var(--line-light); border-radius: var(--radius-sm); backdrop-filter: blur(8px); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font: 450 1.35rem/1.2 var(--serif); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform .4s var(--ease); }
.acc[open] summary .ico { transform: rotate(180deg); }
.acc .prose { padding: 0 24px 10px; font-size: 1rem; }

.proj-band { padding: 10px 0 clamp(80px, 12vh, 140px); }
.proj-list { list-style: none; margin: 40px 0 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 34px; }
.proj-list::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--iris), var(--aurora), var(--sage), var(--coral), var(--orchid)); opacity: .55; }
.proj { position: relative; display: grid; gap: 26px; background: rgba(21, 27, 61, .55); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(10px); }
@media (min-width: 900px) { .proj { grid-template-columns: 2fr 3fr; align-items: center; padding: 26px; } }
.proj-node { position: absolute; left: -34px; top: 40px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 20%, transparent), 0 0 20px var(--c); }
.proj-img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.proj h2 { margin: 0 0 .1em; }
.proj h2 a { text-decoration: none; }
.proj-conn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; opacity: .85; }
.proj-conn a { color: var(--orchid-soft); }
.proj-detail { padding: 10px 0 clamp(80px, 12vh, 140px); }
.proj-detail-grid { display: grid; gap: 50px; }
@media (min-width: 900px) { .proj-detail-grid { grid-template-columns: 3fr 2fr; } }
.proj-side { display: grid; gap: 22px; align-content: start; }
.side-box { background: rgba(21, 27, 61, .55); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; }
.conn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.conn-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; transition: background .3s; }
.conn-list a:hover { background: rgba(255, 255, 255, .06); }
.conn-list small { grid-column: 2; opacity: .7; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--dawn)); box-shadow: 0 0 10px var(--c, var(--dawn)); display: inline-block; }

.blog-band { padding: 20px 0 clamp(80px, 12vh, 140px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters a { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line-light); text-decoration: none; font-size: .92rem; background: rgba(255, 255, 255, .5); }
.filters a:hover { background: rgba(255, 255, 255, .85); }
.filters a[aria-current="page"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.filters-proj { margin-bottom: 36px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 48px 0 24px; }
.pager a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line-light); border-radius: var(--radius); }

.read-progress { position: fixed; z-index: 51; left: 0; right: 0; top: 0; height: 3px; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--orchid), var(--dawn)); transform-origin: left; transform: scaleX(0); }
.article { padding: 10px 0 60px; }
.article > .wrap { background: rgba(251, 244, 236, .88); border-radius: var(--radius); padding: clamp(24px, 5vw, 60px); box-shadow: 0 40px 90px -60px rgba(27, 33, 64, .6); backdrop-filter: blur(10px); }
.byline { font-size: .92rem; color: var(--ink-2); }
.article-img { margin: 10px 0 34px; aspect-ratio: 16 / 9; }
.prose-article { font-size: 1.13rem; line-height: 1.75; }
.prose-article > p:first-child::first-letter { float: left; font: 400 4.1em/.8 var(--serif); padding: .06em .12em 0 0; color: var(--orchid-deep); }
.prose-article a { color: var(--orchid-deep); }
.note { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line-light); color: var(--ink-2); }
.back-link { margin-top: 24px; }
.section-title { margin-bottom: 30px; }
.is-article .page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); }

/* ---------- Contact ---------- */
.contact-band, .legal-band { padding: 10px 0 clamp(80px, 12vh, 140px); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.contact-form, .contact-info, .legal { background: rgba(255, 255, 255, .74); border: 1px solid var(--line-light); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); backdrop-filter: blur(10px); }
.legal { color: var(--ink); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 13px 16px; border-radius: 12px; border: 1.5px solid #C8C3D6; background: #fff; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orchid); box-shadow: 0 0 0 4px rgba(194, 87, 154, .22); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field-check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--orchid); }
.field-check label { font-weight: 400; }
.field-check .field-err { grid-column: 1 / -1; }
.field-hint { font-size: .88rem; color: var(--ink-2); margin: 0; }
.field-err { color: #B3261E; font-weight: 600; font-size: .92rem; margin: 0; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 22px 24px; border-radius: var(--radius-sm); }
.notice-ok { background: #E3F5EE; }
.notice-err { background: #FCE8E6; }
.info-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.info-list .ico { width: 22px; height: 22px; color: var(--orchid-deep); margin-top: 3px; }
.info-list span { display: grid; gap: 2px; }

/* ---------- Consent banner (only when a tracking ID is set) ---------- */
.consent-banner { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 620px; margin-inline: auto; background: var(--cream); color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); padding: 22px 56px 22px 22px; }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 14px; font-size: .95rem; }
.consent-banner-actions, .consent-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-banner-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; }
.consent-dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 520px; width: calc(100% - 32px); background: var(--cream); color: var(--ink); }
.consent-dialog::backdrop { background: rgba(11, 16, 36, .6); }
.consent-dialog-body { padding: 26px; display: grid; gap: 14px; }
.consent-dialog-head { display: flex; justify-content: space-between; align-items: center; }
.consent-dialog-head h2 { font-size: 1.4rem; margin: 0; }
.consent-toggle { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-light); }
.consent-toggle span { display: grid; }
.consent-toggle small { color: var(--ink-2); }
.consent-toggle input { width: 22px; height: 22px; accent-color: var(--orchid); }

/* ---------- Tree of the home ---------- */
.hero-tree { padding-bottom: 90px; }
.hero-grid { display: grid; gap: 10px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 30px; }
  .hero-tree .hero-title, .hero-tree .lead { max-width: none; }
}
.hero-tree .hero-title { font-size: clamp(2.5rem, 5.2vw, 4.8rem); }
.tree { position: relative; height: min(84svh, 760px); min-height: 420px; }
.tree canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.tree-hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font: italic 400 1rem/1.3 var(--serif); color: var(--ink-2); transition: opacity .8s; pointer-events: none; }
.tree.touched .tree-hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
@media (max-width: 899px) {
  .hero-tree { align-content: start; padding-top: calc(var(--top-h) + 20px); }
  .hero-grid .tree { order: -1; height: 58svh; min-height: 340px; margin: 0 -8px; }
}

/* ---------- Projects (home, compact) ---------- */
.projects-home { padding: clamp(80px, 12vh, 140px) 0; }
.proj-mini { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.proj-mini a { position: relative; display: grid; gap: 6px; height: 100%; padding: 26px 22px 24px 50px; border-radius: var(--radius); text-decoration: none; background: rgba(255, 255, 255, .6); border: 1px solid var(--line-light); transition: transform .5s var(--ease), background .4s, box-shadow .5s; }
.proj-mini a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .9); box-shadow: 0 24px 50px -30px rgba(42, 47, 102, .45); }
.proj-mini .proj-node { left: 20px; top: 31px; width: 13px; height: 13px; }
.pm-role { font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pm-title { font: 450 1.45rem/1.15 var(--serif); }
.pm-tag { font-size: .93rem; color: var(--ink-2); }

/* ---------- Light everywhere: components first drawn for the night ---------- */
.top, .brand-mark { color: var(--ink); }
.nav-list a:hover { background: rgba(27, 33, 64, .06); }
.nav-list a[aria-current="page"], .nav-list a.is-active { background: rgba(27, 33, 64, .08); }
.menu-btn { border-color: rgba(27, 33, 64, .3); }
.top.scrolled { background: color-mix(in srgb, #FBF7F4 84%, transparent); box-shadow: 0 1px 0 var(--line-light); }
@media (max-width: 960px) { .nav { background: color-mix(in srgb, #FBF7F4 97%, transparent); } }
.btn.ghost-light { background: transparent; color: var(--ink); border-color: currentColor; backdrop-filter: none; }
.btn.ghost-light:hover { background: rgba(27, 33, 64, .06); }
.hero-title em { background: linear-gradient(90deg, var(--orchid-deep), #C26A2E 80%); -webkit-background-clip: text; background-clip: text; }
.scroll-cue { border-color: rgba(27, 33, 64, .35); }
.scroll-cue span { background: var(--ink); }
.statement .lw { opacity: .2; }
.portrait img, .photo { box-shadow: 0 40px 80px -40px rgba(42, 47, 102, .45); }
.portrait-orbit span { border-color: rgba(42, 47, 102, .16); }
.fact { border-top-color: var(--line-light); }
.timeline::before { background: var(--line-light); }
.tl-node { background: #FBF7F4; border-color: rgba(42, 47, 102, .35); }
.tl-item.reached .tl-year { color: var(--orchid-deep); }
.areas-index a:hover, .areas-index a[aria-current] { background: rgba(27, 33, 64, .07); }
.areas-index a[aria-current]::before { color: var(--orchid); }
@media (max-width: 999px) { .areas-index a { border-color: var(--line-light); } }
.area { border-top-color: var(--line-light); }
.area-n { color: var(--orchid-deep); }
.proj, .side-box { background: rgba(255, 255, 255, .66); border-color: var(--line-light); }
.proj-conn a { color: var(--orchid-deep); }
.conn-list a:hover { background: rgba(27, 33, 64, .05); }
.panel { background: rgba(255, 255, 255, .7); border-color: var(--line-light); }
.star-name { background: rgba(255, 255, 255, .75); }
.l-core { stroke: rgba(42, 47, 102, .25); }
.foot { background: #2A2F55; }

@media print { .neuro, .sky, .top, .wa-float, .read-progress { display: none !important; } body { background: #fff; color: #000; } [data-tone] { color: #000; } }
