/* Layout: one dark cinematic stage. The brand's glowing profile line beside giant serif type, then wide rounded panels, phone-first. */
:root {
  /* "Medianoche": taken from the practice's own logo and end card */
  --stage: #040b1c;      /* brand night navy */
  --raised: #0a1630;
  --raised-2: #10203f;
  --ivory: #eef3f8;      /* cool white text */
  --mist: #93a7c0;       /* steel blue secondary text, 7.6:1 on stage */
  --champagne: #2aa8e0;  /* brand cyan, the one accent (name kept for the cascade) */
  --accent-soft: #7cc8ee;
  --royal: #0366a9;      /* logo mid blue */
  --indigo: #091d76;     /* logo deep blue */
  --on-accent: #04122a;
  --line: rgba(238, 243, 248, .12);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px;
  --r-pill: 999px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--stage); color: var(--ivory);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--stage); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 6px; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1240px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }

/* Nav: floating glass pill */
.nav {
  position: fixed; z-index: 20; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 12px);
  display: flex; justify-content: center; pointer-events: none;
}
.nav-inner {
  pointer-events: auto; width: min(1240px, calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px))));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: var(--r-pill);
  background: rgba(10, 22, 48, .55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { font-family: var(--display); font-size: 22px; text-decoration: none; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; margin-left: -12px; }
.brand img { width: 34px; height: 34px; display: block; }
.links { display: flex; gap: 22px; font-size: 14px; color: var(--mist); white-space: nowrap; }
.links a { text-decoration: none; }
.links a:hover { color: var(--ivory); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; padding: 3px; border-radius: var(--r-pill); background: rgba(238,243,248,.06); }
.lang button {
  all: unset; cursor: pointer; font-size: 12px; font-weight: 500; letter-spacing: .04em; padding: 6px 10px; border-radius: var(--r-pill); color: var(--mist);
}
.lang button[aria-pressed="true"] { background: var(--ivory); color: var(--stage); }
.lang button:focus-visible { outline: 2px solid var(--champagne); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r-pill); font: 500 15px/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .25s ease, background-color .25s ease;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--champagne); color: var(--on-accent); }
.btn-gold:hover { background: var(--accent-soft); }
.btn-ghost { border-color: rgba(238,243,248,.28); color: var(--ivory); background: rgba(238,243,248,.04); }
.btn-ghost:hover { background: rgba(238,243,248,.1); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 1080px) { .links { display: none; } }
@media (max-width: 420px) { .nav .btn-gold span.long { display: none; } }
@media (max-width: 389px) {
  .nav-inner { gap: 8px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .lang button { padding: 6px 8px; }
  .nav .btn { padding: 0 12px; }
}
@media (max-width: 348px) { .brand .name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* Hero */
.hero { position: relative; min-height: min(880px, 100svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 70% 38%, rgba(3,102,169,.38), transparent 70%),
    radial-gradient(55% 45% at 15% 95%, rgba(9,29,118,.45), transparent 70%),
    var(--stage);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--stage)); }
.hero-photo { position: absolute; z-index: -1; top: 72px; right: 0; bottom: 0; width: min(64vw, 1040px); pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 2%, #000 46%), linear-gradient(to bottom, transparent 1%, #000 7%, #000 62%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 2%, #000 46%), linear-gradient(to bottom, transparent 1%, #000 7%, #000 62%, transparent); mask-composite: intersect; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
@media (max-width: 900px) {
  .hero-photo { top: 21%; bottom: auto; left: 0; width: auto; height: 42%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 34%, #000 70%, transparent), linear-gradient(to right, #000, #000);
    mask-image: linear-gradient(to bottom, transparent 2%, #000 34%, #000 70%, transparent), linear-gradient(to right, #000, #000); }
  .hero-photo img { object-position: 66% 24%; }
}
.hero-art { position: absolute; z-index: -1; left: 7vw; top: 25%; width: min(29vw, 440px); transform: translateY(-50%) scaleX(-1); pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.hero-art img { display: block; width: 100%; height: auto; mix-blend-mode: screen; }
.hero-art .glow { position: absolute; inset: 0; filter: blur(18px) saturate(1.4); opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .glow { animation: pulse 4.8s ease-in-out infinite; }
  .hero-art .line { animation: drift 9s ease-in-out infinite; }
  .hero-art .glow { animation: pulse 4.8s ease-in-out infinite, drift 9s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .85; } }
  @keyframes drift { 50% { transform: translateY(-8px); } }
}
@media (max-width: 900px) {
  .hero-art { left: auto; right: 50%; top: calc(env(safe-area-inset-top, 0px) + 66px); width: min(66vw, 340px); transform: translateX(50%) scaleX(-1); }
}
.grain { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-copy { width: 100%; padding-block: 120px clamp(24px, 3.4vw, 44px); }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--mist); font-size: 14px; margin-bottom: 16px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--champagne); flex: none; }
.hero h1 { font-size: clamp(50px, 6.6vw, 104px); line-height: .98; letter-spacing: -0.028em; }
.hero h1 span { display: block; max-width: 9.5ch; }
.hero h1 em { font-style: italic; color: var(--accent-soft); display: block; font-size: .46em; letter-spacing: -0.01em; line-height: 1.1; margin-top: .3em; }
.hero-foot { display: grid; justify-items: start; gap: 20px; margin-top: 20px; max-width: 34rem; }
.hero-foot p { color: #c9d5e3; font-size: 17px; font-weight: 300; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .hero { min-height: max(100svh, 700px); }
  .hero-copy { padding-block: 0 20px; }
  .hero h1 { font-size: clamp(46px, 13vw, 76px); }
}
@media (max-width: 520px) {
  .hero-foot p { display: none; }
  .hero-foot, .hero-foot .ctas { width: 100%; }
  .hero-foot .btn { flex: 1 1 100%; }
}
/* Phones: a short image band, so the headline and both buttons sit in the first view on any screen */
@media (max-width: 600px) {
  .hero { --band: clamp(240px, 34svh, 300px); min-height: 0; }
  .hero-photo { top: calc(env(safe-area-inset-top, 0px) + 52px); height: calc(var(--band) + 24px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 22%, #000 66%, transparent), linear-gradient(to right, transparent, #000 34%);
    mask-image: linear-gradient(to bottom, transparent 2%, #000 22%, #000 66%, transparent), linear-gradient(to right, transparent, #000 34%); }
  .hero-photo img { object-position: 42% 22%; }
  .hero-art { right: auto; left: -4vw; top: calc(env(safe-area-inset-top, 0px) + var(--band) / 2 + 30px); width: 52vw; transform: translateY(-50%) scaleX(-1); }
  .hero-copy { padding-block: calc(env(safe-area-inset-top, 0px) + var(--band)) 24px; }
}
.scroll-hint { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; writing-mode: vertical-rl; font-size: 12px; color: var(--mist); letter-spacing: .12em; }
@media (max-width: 700px) { .scroll-hint { display: none; } }

/* Trust line: who, what, where, directly under the hero */
.trust { border-bottom: 1px solid var(--line); }
.trust dl { margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.trust dl > div { padding: 20px 22px; border-left: 1px solid var(--line); }
.trust dl > div:first-child { border-left: 0; padding-left: 0; }
.trust dt { font-size: 13px; color: var(--mist); }
.trust dd { margin: 4px 0 0; font-family: var(--display); font-size: clamp(21px, 2vw, 27px); line-height: 1.12; }
.trust dd.sub { margin-top: 6px; font-family: var(--body); font-size: 13px; line-height: 1.35; color: var(--mist); }
@media (max-width: 760px) {
  .trust dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust dl > div { padding: 16px 14px; border-left: 0; border-top: 1px solid var(--line); }
  .trust dl > div:nth-child(even) { border-left: 1px solid var(--line); }
  .trust dl > div:nth-child(odd) { padding-left: 0; }
  .trust dl > div:nth-child(-n + 2) { border-top: 0; }
}

/* Skip link and anchors clear the floating nav */
.skip { position: fixed; z-index: 60; left: 16px; top: -60px; padding: 12px 18px; border-radius: var(--r-pill); background: var(--ivory); color: var(--stage); text-decoration: none; }
.skip:focus { top: 12px; }
[id] { scroll-margin-top: 92px; }


/* Intro: the brand film plays full screen, then its logo flies into the menu bar */
#intro { position: fixed; inset: 0; z-index: 50; background: #010718; overflow: hidden; transition: background-color .9s ease .1s; }
#intro.reveal { background-color: rgba(1, 7, 24, 0); }
#intro video { position: absolute; display: block; max-width: none; transition: opacity .35s ease; }
#intro.flying video { opacity: 0; }
#intro-logo { position: fixed; left: 0; top: 0; width: 10px; height: 10px; opacity: 0; transform-origin: 0 0; border-radius: 50%; pointer-events: none; will-change: transform; transition: transform 1.05s cubic-bezier(.75, 0, .15, 1); }
#intro-skip { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); all: unset; position: absolute; cursor: pointer; font: 500 13px/1 var(--body); color: var(--mist); padding: 12px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); transition: opacity .3s ease; }
#intro-skip { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
#intro-skip:hover { color: var(--ivory); }
#intro-skip:focus-visible { outline: 2px solid var(--champagne); }
#intro.flying #intro-skip { opacity: 0; pointer-events: none; }
html.intro-pending, html.intro-pending body { overflow: hidden; }
html.intro-still #intro-logo { transition: opacity .4s ease; }
html.logo-pending #nav-logo, html.logo-pending .brand .name { opacity: 0; }
.brand .name { transition: opacity .6s ease .15s; }
#nav-logo.arrived { animation: land 1s ease-out; border-radius: 50%; }
#intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .6s ease .3s; }
#intro-logo .new { opacity: 0; }
#intro.reveal #intro-logo .new { opacity: 1; }
#intro.reveal #intro-logo .old { opacity: 0; }
@keyframes land { 0% { box-shadow: 0 0 0 0 rgba(42, 168, 224, .75); } 100% { box-shadow: 0 0 0 16px rgba(42, 168, 224, 0); } }
html.intro-pending .hero h1, html.intro-pending .hero-foot, html.intro-pending .kicker { animation-play-state: paused; }
.replay { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.replay:focus-visible { outline: 2px solid var(--champagne); }

/* Statement with scroll-lit words */
.statement { padding-block: clamp(40px, 6vw, 72px) clamp(80px, 14vw, 180px); }
.statement p { font-family: var(--display); font-size: clamp(34px, 6.2vw, 78px); line-height: 1.06; letter-spacing: -0.02em; max-width: 18ch; }
.statement .w { opacity: .38; transition: opacity .5s ease; }
.statement .w.lit { opacity: 1; }
.statement .gold { color: var(--accent-soft); font-style: italic; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-bottom: 14px; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.panel { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--line); padding: 28px; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.panel h3 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.panel p { color: var(--mist); max-width: 30ch; }
.panel .tag { font-size: 13px; color: var(--mist); display: flex; justify-content: space-between; }
.viz { position: relative; flex: 1; min-height: 180px; }
.viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow path { fill: none; stroke: var(--champagne); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 6 14; animation: flow 3.2s linear infinite; opacity: .8; }
.flow path:nth-child(2) { animation-duration: 2.6s; opacity: .55; }
.flow path:nth-child(3) { animation-duration: 3.8s; opacity: .35; }
@keyframes flow { to { stroke-dashoffset: -80; } }
.thirds line { stroke: rgba(238,243,248,.22); stroke-width: 1; }
.thirds .face { fill: none; stroke: var(--ivory); stroke-width: 1.4; stroke-linecap: round; }
.thirds text { fill: var(--mist); font: 400 11px var(--body); }

/* Procedures: editorial list beside a sticky heading */
.proc { padding-block: clamp(80px, 12vw, 150px); }
.proc .wrap, .faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.proc-head { position: sticky; top: 104px; display: grid; justify-items: start; gap: 16px; }
.proc-head h2, .faq h2 { font-size: clamp(44px, 6vw, 84px); line-height: .96; max-width: 11ch; }
.proc-head p { color: var(--mist); max-width: 26rem; }
.proc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proc-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px 10px; padding: clamp(18px, 2.2vw, 26px) 0; border-bottom: 1px solid var(--line); }
.proc-list span { grid-row: span 2; padding-top: .55em; font-size: 13px; color: var(--mist); font-variant-numeric: tabular-nums; }
.proc-list h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.04; }
.proc-list p { color: var(--mist); max-width: 34rem; }
.proc-list .main h3 { color: var(--accent-soft); font-style: italic; }
@media (max-width: 860px) {
  .proc .wrap, .faq .wrap { grid-template-columns: 1fr; }
  .proc-head { position: static; }
}

/* What to expect */
.expect { border-top: 1px solid var(--line); padding-block: clamp(80px, 12vw, 150px); }
.expect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .expect-grid { grid-template-columns: 1fr; } }
.expect .panel { min-height: 0; justify-content: flex-start; gap: 20px; }
.expect .panel p { max-width: 36ch; }
.expect ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.expect li { position: relative; padding-left: 24px; }
.expect li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--champagne); }

/* Questions */
.faq { border-top: 1px solid var(--line); padding-block: clamp(80px, 12vw, 150px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: clamp(17px, 1.6vw, 19px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 300; line-height: 1; color: var(--champagne); transition: rotate .25s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 40px 22px 0; color: var(--mist); max-width: 40rem; }

/* Instagram: hand-picked posts, the last reassurance before the final call to action */
.insta { border-top: 1px solid var(--line); padding-block: clamp(80px, 12vw, 150px) 0; }
.insta-rail { list-style: none; margin: 0; padding: 0 0 12px; }
.insta-slot { display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 4 / 5; scroll-snap-align: start; padding: 16px; border-radius: 24px; border: 1px dashed var(--line); background: var(--raised); color: var(--mist); font-size: 13px; text-align: center; }
.insta-slot svg { width: 30px; height: 30px; }
.insta .ctas { margin-top: 22px; }

/* Five photos */
.photos { padding-block: clamp(80px, 12vw, 150px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(44px, 7vw, 96px); line-height: .95; max-width: 11ch; }
.section-head p { color: var(--mist); max-width: 26rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.shot { scroll-snap-align: start; border-radius: 24px; background: var(--raised); border: 1px solid var(--line); padding: 14px; display: grid; gap: 14px; }
.screen { aspect-ratio: 9 / 15; max-width: 100%; border-radius: 16px; background: linear-gradient(180deg, var(--raised-2), var(--raised)); position: relative; display: grid; place-items: center; overflow: hidden; }
.screen svg { width: 62%; height: auto; }
.screen svg .head { fill: none; stroke: var(--ivory); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.screen svg .guide { fill: none; stroke: var(--champagne); stroke-width: 1; stroke-dasharray: 4 5; }
.screen .corner { position: absolute; width: 18px; height: 18px; border-color: rgba(238,243,248,.5); border-style: solid; }
.c1 { top: 14px; left: 14px; border-width: 1px 0 0 1px; } .c2 { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.c3 { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; } .c4 { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.shot-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 4px; }
.shot-meta strong { font-weight: 500; }
.shot-meta span { color: var(--mist); font-size: 13px; font-variant-numeric: tabular-nums; }
.privacy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 13px; color: #c9d5e3; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: rgba(238,243,248,.03); }

/* Journey (a real sequence) */
.journey { border-top: 1px solid var(--line); padding-block: clamp(80px, 12vw, 150px); }
.journey ol { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
@media (max-width: 900px) { .journey ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .journey ol { grid-template-columns: 1fr; } }
.journey li { counter-increment: s; padding: 24px; border-radius: 22px; background: var(--raised); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.journey li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 44px; line-height: 1; color: var(--champagne); }
.journey h3 { font-family: var(--body); font-weight: 500; font-size: 18px; letter-spacing: 0; }
.journey li p { color: var(--mist); font-size: 15px; }
.note { margin-top: 22px; color: var(--mist); font-size: 14px; max-width: 46rem; }

/* Doctor */
.doctor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; padding-bottom: 14px; }
@media (max-width: 860px) { .doctor { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--r-lg); min-height: 460px; position: relative; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 30%, #1b3466, var(--raised) 75%); }
.portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait .cap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 16px; font-size: 13px; color: #c9d5e3; }
.portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.88) saturate(.92); }
.portrait::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to top, rgba(4, 11, 28, .86), transparent); }
.bio { border-radius: var(--r-lg); background: var(--ivory); color: #0b1630; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.bio h2 { font-size: clamp(44px, 6vw, 80px); line-height: .95; }
.bio p { font-size: 18px; max-width: 34rem; color: #24324a; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; }
.creds span { font-size: 13px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px dashed #7e8ea6; color: #3a4a63; }

/* Final CTA */
.final { padding-block: clamp(90px, 14vw, 190px); text-align: left; }
.final h2 { font-size: clamp(56px, 11vw, 168px); line-height: .9; letter-spacing: -0.03em; max-width: 9ch; }
.final h2 em { color: var(--accent-soft); }
.final .ctas { margin-top: 36px; }
.contact { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .contact { grid-template-columns: 1fr; } }
.contact a, .contact div { height: 100%; display: grid; align-content: start; gap: 6px; padding: 20px 22px; border-radius: 22px; background: var(--raised); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s ease; }
.contact a:hover { border-color: var(--champagne); }
.contact small { font-size: 13px; color: var(--mist); }
.contact strong { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.contact .tbc { justify-self: start; margin-top: 6px; font-size: 13px; color: var(--mist); padding: 6px 12px; border-radius: var(--r-pill); border: 1px dashed var(--mist); }
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--mist); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer a { text-underline-offset: .2em; }

/* WhatsApp stays in reach on phones, where the nav has no contact link */
.wa-float { display: none; }
@media (max-width: 900px) {
  .wa-float { position: fixed; z-index: 15; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--champagne); color: var(--on-accent); box-shadow: 0 10px 28px rgba(1, 7, 24, .55); }
  .wa-float svg { width: 26px; height: 26px; }
}
.wa-float { transition: opacity .25s ease, transform .25s ease; }
.wa-float.off { opacity: 0; transform: translateY(8px); pointer-events: none; }
html.intro-pending .wa-float { visibility: hidden; }

/* Entrance: one orchestrated moment on the hero, visible at rest otherwise */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-foot, .kicker { animation: rise 1.1s cubic-bezier(.2,.7,.1,1) both; }
  .kicker { animation-delay: .15s; } .hero h1 { animation-delay: .25s; } .hero-foot { animation-delay: .5s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
}
@media (prefers-reduced-motion: reduce) {
  .flow path { animation: none; } .statement .w { opacity: 1; } html { scroll-behavior: auto; }
}
