/* =========================================================
   Dr. Hazel Lamsal — portfolio
   Palette: operating-room ink, bone paper, monitor lime, award gold
   ========================================================= */

:root {
  --ink: #0a110f;
  --ink-2: #0f1816;
  --ink-3: #16211e;
  --bone: #ece7dc;
  --paper: #e9e4d8;
  --bone-dim: rgba(236, 231, 220, 0.56);
  --bone-faint: rgba(236, 231, 220, 0.14);
  --ink-dim: rgba(10, 17, 15, 0.56);
  --ink-faint: rgba(10, 17, 15, 0.14);
  --lime: #c8f25c;
  --lime-deep: #8fbf1e;
  --gold: #c9a35b;
  --champagne: #e6c896;
  --espresso: #1e140f;
  --rose: #c2362c;
  --pulse: #ff4b36;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(1.15rem, 3.2vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* hide the browser's scrollbar — it showed as a light strip down the right edge
   of the dark sections. Scroll position is shown by the bar at the top of the nav. */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--lime); color: var(--ink); }

@media (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}

.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}
.label--dim { opacity: 0.55; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid currentColor;
  border-color: var(--bone-faint);
  margin-bottom: clamp(2.5rem, 7vw, 6rem);
}

/* split helpers */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.w, .c { display: inline-block; will-change: transform; }
.w-wrap { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

/* ============ GRAIN ============ */
.grain {
  position: fixed;
  inset: -220px;
  will-change: transform;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-120px, 80px, 0); }
  40% { transform: translate3d(90px, -160px, 0); }
  60% { transform: translate3d(-180px, -40px, 0); }
  80% { transform: translate3d(140px, 120px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ============ CURSOR ============ */
.cursor { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-100px, -100px);
}
.cursor__dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  background: var(--lime);
  mix-blend-mode: difference;
}
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(200, 242, 92, 0.6);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .35s, border-color .35s;
}
.cursor__label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .45s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--lime); background: rgba(200,242,92,.08); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--lime); border-color: var(--lime); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* ============ SPLASH CURSOR (fluid ink) ============ */
.splash-cursor { position: fixed; inset: 0; pointer-events: none; }
body.is-loading .splash-cursor { visibility: hidden; } /* booted early, shown once the loader opens */
.splash-cursor[data-contained] { position: absolute; }
.splash-cursor__canvas { display: block; width: 100%; height: 100%; }

/* ============ SNOWFLAKE TRAIL ============ */
.snow-trail {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 199; pointer-events: none;
}

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 150;
  color: var(--bone);
  pointer-events: all;
}
html:not(.js) .loader { display: none; }
.loader__panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--ink);
}
.loader__panel--top { top: 0; }
.loader__panel--bottom { bottom: 0; }
.loader__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  gap: 2rem;
}
.loader__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bone-dim);
}
.loader__row em { font-family: var(--serif); text-transform: none; font-size: 1.1rem; letter-spacing: 0; color: var(--bone); }
.loader__ecg { width: 100%; height: clamp(120px, 24vh, 220px); overflow: visible; }
.loader__ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.loader__ecg-ghost { stroke: var(--bone-faint); stroke-width: 1; }
.loader__ecg-line { stroke: var(--lime); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(200, 242, 92, .7)); }
.loader__name { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.6rem); text-transform: none; letter-spacing: 0; color: var(--bone); }
.loader__count { font-family: var(--serif); font-size: clamp(4rem, 12vw, 10rem); line-height: .8; color: var(--bone); letter-spacing: -0.02em; }
.loader__num { display: inline-block; width: 1.62em; text-align: right; font-variant-numeric: tabular-nums; }
.loader__unit { font-size: .35em; color: var(--lime); margin-left: .1em; vertical-align: top; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem var(--pad);
  color: var(--bone);
  mix-blend-mode: difference;
}
.nav__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.nav__progress span { display: block; height: 100%; width: 100%; background: var(--bone); transform-origin: left; transform: scaleX(0); }
.nav__logo { display: flex; align-items: center; gap: .75rem; }
.nav__logo-mark {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid currentColor;
  font-family: var(--serif); font-size: 1.05rem; font-style: italic;
}
.nav__logo-text { font-family: var(--serif); font-size: 1.2rem; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a, .nav__cta { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.nav__meta { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.nav__cta { padding: .6rem 1.1rem; border: 1px solid currentColor; border-radius: 99px; }
.nav__burger { display: none; width: 2.6rem; height: 2.6rem; position: relative; margin-left: auto; }
.nav__burger span { position: absolute; left: 20%; right: 20%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 42%; }
.nav__burger span:last-child { top: 58%; }
.menu-open .nav__burger span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

[data-hover-roll] { display: inline-block; overflow: hidden; vertical-align: top; }
[data-hover-roll] > span { display: inline-block; position: relative; transition: transform .55s var(--ease); }
[data-hover-roll] > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; font-style: italic; }
[data-hover-roll]:hover > span { transform: translateY(-100%); }

.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bone); position: relative; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--ink-2);
  padding: 6rem var(--pad) var(--pad);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4.5rem); line-height: 1.05;
  border-bottom: 1px solid var(--bone-faint); padding: .3rem 0;
  display: flex; align-items: baseline; gap: 1rem;
}
.menu__links small { font-family: var(--mono); font-size: .7rem; color: var(--lime); }
.menu__mail { font-family: var(--mono); font-size: .85rem; color: var(--lime); }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding: 5.5rem var(--pad) 0;
}

/* --- name block --- */
.hero__name { align-self: center; padding-bottom: 4.5rem; position: relative; z-index: 2; }
.hero__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.5rem, min(17vw, 29svh), 19rem);
  line-height: .84;
  letter-spacing: -0.04em;
}
.hero__dr {
  display: block; overflow: hidden;
  font-size: .21em; font-style: italic; line-height: 1;
  letter-spacing: 0;
  color: var(--lime-deep);
  margin: 0 0 .35em .08em;
  padding-bottom: .08em;
}
.hero__line { display: block; overflow: hidden; padding: 0 .05em .07em; margin: 0 -.05em -.07em; }

.hero__rule {
  height: 1px; max-width: 44rem;
  background: rgba(10, 17, 15, .28);
  margin: clamp(1.4rem, 3.6svh, 2.6rem) 0 1.2rem;
  transform-origin: left;
}
.hero__meta {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
}
.hero__meta li { display: flex; flex-direction: column; gap: .45rem; }
.hero__meta .label { color: var(--ink-dim); font-size: .64rem; }
.hero__meta b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.55vw, 1.6rem); line-height: 1; letter-spacing: -0.01em; }

/* --- figure: "The Incision" ---------------------------------------------
   .hero__figure is the slot in the grid. Without JS the photo panel sits
   inside it. With JS, .hero gets .is-stage and the media layer is lifted to
   cover the whole hero; a clip-path cuts it back to the slot (vars --px/--py/
   --pw/--ph are measured in JS), so it can open like an incision and later
   grow to full screen on scroll. */
.hero__figure {
  position: relative; z-index: 1;
  align-self: end; justify-self: center;
  height: 100%; max-width: 100%;
  aspect-ratio: 576 / 1098;
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  isolation: isolate;
}
.hero.is-stage .hero__media {
  inset: 0; z-index: 1;
  border-radius: 0;
  will-change: clip-path, transform;
}
/* studio backdrop — warm espresso with a soft champagne light behind her head */
.hero__backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 52% at var(--bx, 50%) var(--by, 30%), #c9a77c 0%, #94704f 22%, #57392a 48%, #2a1a12 76%, #170e0a 100%);
}
.hero__person { position: absolute; inset: 0; transform-origin: 50% 40%; will-change: transform; }
.hero.is-stage .hero__person { inset: auto; left: var(--px); top: var(--py); width: var(--pw); height: var(--ph); }
.hero__photo {
  position: absolute;
  width: 114%; max-width: none;
  left: -6%; top: -3%;
  filter: drop-shadow(0 30px 40px rgba(20, 10, 5, .5));
  /* soften the photo's cut edges (arms, hair crop, bottom) into the backdrop */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 7%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 7%, #000 82%, transparent 100%);
  mask-composite: intersect;
  transform-origin: 50% 30%;
  animation: breathe 14s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes breathe {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.045) translate3d(-0.6%, -1%, 0); }
}
/* glass glint that follows the mouse */
.hero__glint {
  position: absolute; left: var(--px, 0); top: var(--py, 0); width: var(--pw, 100%); height: var(--ph, 100%);
  pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .2) 48%, rgba(255, 255, 255, .06) 55%, transparent 66%);
  background-size: 260% 100%;
  background-position: var(--gx, 120%) 0;
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .5s;
}
.hero__media.is-hover .hero__glint { opacity: 1; }
/* full-screen story moment */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(20, 12, 8, .84) 0%, rgba(20, 12, 8, .45) 42%, rgba(20, 12, 8, 0) 70%);
}
.hero__quote {
  /* vertically centred in the left half, nudged in from the edge */
  position: absolute; top: 0; bottom: 0;
  left: clamp(1.5rem, 6.5vw, 7.5rem);
  display: flex; flex-direction: column; justify-content: center;
  max-width: min(40rem, 42vw); color: var(--bone);
  opacity: 0; visibility: hidden;
}
.hero__quote .label { color: var(--champagne); }
.hero__quote p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 5.2rem); line-height: .95; letter-spacing: -0.025em;
  margin: .9rem 0 0;
}
.hero__quote em { color: var(--champagne); }

/* the scalpel line */
.hero__incision { display: none; }
.hero.is-stage .hero__incision {
  display: block; position: absolute; z-index: 2; pointer-events: none;
  left: calc(var(--px) + var(--pw) / 2 - 1px); top: var(--py);
  width: 2px; height: var(--ph);
  border-radius: 2px;
  background: linear-gradient(#f4ffd6, var(--lime) 30%, var(--lime));
  box-shadow: 0 0 10px 2px rgba(200, 242, 92, .85), 0 0 38px 8px rgba(200, 242, 92, .35);
  transform-origin: top; transform: scaleY(0);
}

/* small tag that follows the cursor over her photo */
.hero__tag {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .85rem .55rem .6rem;
  border-radius: 999px;
  background: rgba(10, 17, 15, .62);
  border: 1px solid rgba(236, 231, 220, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--bone);
  font-family: var(--serif); font-size: 1rem; line-height: 1; white-space: nowrap;
  opacity: 0; transition: opacity .35s;
}
.hero__tag.is-on { opacity: 1; }
.hero__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hero__tag span { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); margin-left: .2rem; }
.hero__caption {
  position: absolute; left: -1.5rem; bottom: 5.6rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .6rem; color: var(--ink-dim); white-space: nowrap;
}

/* --- ECG strip on ECG paper --- */
.monitor {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 4.2rem;
  display: flex; align-items: center;
  --trace: #0a110f;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(214, 59, 37, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 59, 37, .14) 1px, transparent 1px),
    linear-gradient(rgba(214, 59, 37, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 59, 37, .06) 1px, transparent 1px);
  background-size: 25px 25px, 25px 25px, 5px 5px, 5px 5px;
  border-top: 1px solid rgba(214, 59, 37, .35);
}
.monitor__canvas { flex: 1; height: 100%; display: block; }
.monitor__readout {
  flex: none; display: flex; align-items: center; gap: .45rem;
  height: 100%; padding: 0 var(--pad) 0 1.4rem;
  background: var(--paper);
  border-left: 1px solid rgba(214, 59, 37, .35);
  font-family: var(--mono);
}
.monitor__heart { color: var(--pulse); font-size: .95rem; display: inline-block; }
.monitor__bpm { font-family: var(--serif); font-size: 2.1rem; line-height: 1; min-width: 2.2ch; }
.monitor__unit { font-size: .66rem; letter-spacing: .1em; color: var(--ink-dim); }

/* ============ MARQUEE ============ */
.marquee {
  /* warm espresso, matching the hero's studio backdrop */
  background:
    radial-gradient(70% 140% at 50% 0%, rgba(201, 167, 124, .10), transparent 60%),
    var(--espresso);
  padding: clamp(2rem, 5vw, 4rem) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--bone-faint);
}
.marquee__row { white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-right: clamp(1.5rem, 3vw, 3rem); will-change: transform; }
.marquee__row:first-child .marquee__track { font-family: var(--serif); font-size: clamp(3.6rem, 10vw, 9rem); line-height: 1; }
.marquee__track .o { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--bone); }
.marquee__track i { font-style: normal; color: var(--champagne); font-size: .45em; }
.marquee__row--rev { margin-top: 1.2rem; }
.marquee__row--rev .marquee__track { font-family: var(--mono); font-size: clamp(.8rem, 1.2vw, 1rem); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.marquee__row--rev i { font-size: 1em; }

/* ============ STORY ============ */
.story {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
  position: relative;
}
.story .section-head { border-color: var(--ink-faint); }
.story__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 11.5rem);
  line-height: .88; letter-spacing: -0.03em;
  margin: 0 0 clamp(3rem, 8vw, 7rem);
}
.story__title .line:nth-child(2) { padding-left: 12vw; }
.story__title em { color: var(--lime-deep); }
.story__grid { display: grid; grid-template-columns: 1fr 2.6fr; gap: clamp(2rem, 5vw, 5rem); }
.story__aside { display: flex; flex-direction: column; gap: 2rem; }
.story__aside .label { color: var(--ink-dim); }
.story__stamp { width: clamp(110px, 11vw, 150px); color: var(--ink); }
.story__stamp svg { width: 100%; height: auto; animation: spin 18s linear infinite; overflow: visible; }
.story__stamp text { font-family: var(--mono); font-size: 9.5px; letter-spacing: 2.2px; fill: currentColor; }
.story__stamp svg > path { animation: spin 18s linear infinite reverse; transform-origin: 60px 60px; }
@keyframes spin { to { transform: rotate(360deg); } }

.story__body {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.15vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-indent: 3em;
}
.story__body em { color: var(--lime-deep); }

/* ============ JOURNEY ============ */
.journey { background: var(--ink); position: relative; }
.journey__pin {
  height: 100vh; height: 100svh;
  min-height: 600px;
  display: flex; flex-direction: column;
  padding: 6rem 0 2rem;
  overflow: hidden;
}
.journey__head { display: flex; justify-content: space-between; padding: 0 var(--pad) 1rem; border-bottom: 1px solid var(--bone-faint); }
.journey__track { flex: 1; display: flex; align-items: stretch; will-change: transform; }
.chapter {
  flex: none;
  width: clamp(340px, 42vw, 640px);
  padding: clamp(2rem, 4vw, 3.5rem) var(--pad);
  border-right: 1px solid var(--bone-faint);
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}
.chapter--intro { width: clamp(360px, 62vw, 1000px); justify-content: center; }
.chapter__intro-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 6.8vw, 7.4rem); line-height: .92; letter-spacing: -0.03em; margin: 0;
}
.chapter__intro-title em { color: var(--lime); }
.chapter__intro-sub { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); margin-top: 2rem; }
.chapter__num {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(7rem, 16vw, 15rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(236,231,220,.35);
  display: block;
}
.chapter__body { max-width: 30rem; }
.chapter__body .label { color: var(--lime); }
.chapter__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: .98; margin: .7rem 0 1rem; letter-spacing: -0.02em; }
.chapter__title em { color: var(--lime); }
.chapter__body p { color: var(--bone-dim); margin: 0 0 1.6rem; max-width: 26rem; }
.chapter__status { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .45rem .8rem; border: 1px solid var(--bone-faint); border-radius: 99px; }
.chapter__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--bone-dim); }
.chapter__status--done i { background: var(--lime); }
.chapter__status--live { border-color: var(--lime); color: var(--lime); }
.chapter__status--live i { background: var(--pulse); box-shadow: 0 0 0 0 rgba(255,75,54,.7); animation: live 1.4s infinite; }
.chapter__status--next { border-style: dashed; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,75,54,.6); } 100% { box-shadow: 0 0 0 10px rgba(255,75,54,0); } }

.journey__foot { padding: 0 var(--pad); }
.journey__ecg { width: 100%; height: 56px; display: block; overflow: visible; }
.journey__ecg path { fill: none; stroke-linejoin: round; }
.journey__ecg-ghost { stroke: var(--bone-faint); stroke-width: 1; }
.journey__ecg-line { stroke: var(--lime); stroke-width: 1.6; filter: drop-shadow(0 0 5px rgba(200,242,92,.6)); }
.journey__progress { height: 1px; background: var(--bone-faint); margin-top: .6rem; }
.journey__progress span { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* ============ FOCUS ============ */
.focus {
  background: var(--paper); color: var(--ink);
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
}
.focus .section-head { border-color: var(--ink-faint); }
.focus__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 6vw, 7rem); }
.focus__sticky { position: sticky; top: 7rem; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.spine { width: min(100%, 196px); height: auto; overflow: visible; }
.spine__brain ellipse, .spine__brain path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.spine__brain ellipse { fill: rgba(143, 191, 30, .12); }
.spine__cord { fill: none; stroke: var(--lime-deep); stroke-width: 3; stroke-linecap: round; }
.spine__vertebrae rect { fill: var(--ink); }
.spine__vertebrae .proc { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.spine__labels text { font-family: var(--mono); font-size: 10px; fill: var(--ink-dim); letter-spacing: 1px; }
.spine__labels line { stroke: var(--ink-faint); }
.focus__readout { text-align: center; font-family: var(--mono); font-size: .8rem; display: flex; flex-direction: column; gap: .2rem; }
.focus__readout .label { color: var(--ink-dim); }
.focus__count b { font-weight: 500; color: var(--lime-deep); font-size: 1.1rem; }

.focus__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 7rem); line-height: .9; letter-spacing: -0.03em; margin: 0 0 3rem; }
.focus__title em { color: var(--lime-deep); }
.focus__item {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--ink-faint);
  transition: opacity .5s;
}
.focus__item:last-child { border-bottom: 1px solid var(--ink-faint); }
.focus__idx { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .4s, color .4s; }
.focus__item:hover .focus__idx { background: var(--ink); color: var(--lime); }
.focus__item .label { color: var(--ink-dim); }
.focus__item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1; margin: .5rem 0 .9rem; letter-spacing: -0.02em; }
.focus__item p { margin: 0; color: var(--ink-dim); max-width: 34rem; font-size: 1.02rem; }

/* ============ PROFILE ============ */
.profile { background: var(--ink-2); padding: clamp(5rem, 12vw, 10rem) var(--pad); position: relative; overflow: hidden; }
.profile__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }

.badge-stage { position: relative; height: 640px; perspective: 1200px; display: flex; justify-content: center; }
.badge-swing { position: relative; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; will-change: transform; margin-top: -10rem; }
.badge__lanyard { width: 34px; height: 230px; background: repeating-linear-gradient(90deg, #1d2b27 0 2px, #22322d 2px 4px); position: relative; }
.badge__lanyard::before { content: "DR. HAZEL LAMSAL · DR. HAZEL LAMSAL · DR. HAZEL LAMSAL"; position: absolute; left: 50%; top: 0; writing-mode: vertical-rl; transform: translateX(-50%); font-family: var(--mono); font-size: 9px; letter-spacing: 3px; color: var(--lime); white-space: nowrap; overflow: hidden; height: 100%; }
.badge__clip { width: 46px; height: 26px; border-radius: 6px; background: linear-gradient(#b5b9b7, #6d7371); margin-top: -2px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); position: relative; z-index: 2; }
.badge__clip::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 12px; height: 16px; border: 3px solid #8c9290; border-top: 0; border-radius: 0 0 8px 8px; transform: translateX(-50%); }
.badge {
  position: relative;
  width: 300px; margin-top: 4px;
  padding: 1.1rem 1.1rem 1.2rem;
  background: linear-gradient(160deg, #f3efe6 0%, #e4dfd3 100%);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 50px 90px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.4) inset;
  transform-style: preserve-3d;
  overflow: hidden;
}
.badge::before { content: ""; position: absolute; top: 14px; left: 50%; width: 46px; height: 8px; border-radius: 6px; background: var(--ink-2); transform: translateX(-50%); }
.badge__shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255,255,255,.65), transparent 45%); mix-blend-mode: soft-light; opacity: .9; }
.badge__top { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; }
.badge__logo { font-family: var(--serif); font-style: italic; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.badge__photo { margin: 1rem 0; aspect-ratio: 4/4.4; border-radius: 10px; overflow: hidden; background: #a9cf8b; }
.badge__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.badge__name { font-family: var(--serif); font-size: 2.1rem; line-height: .95; letter-spacing: -0.02em; }
.badge__role { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .6rem; color: var(--ink-dim); }
.badge__bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--ink-faint); }
.badge__barcode { display: flex; gap: 2px; height: 30px; align-items: stretch; }
.badge__barcode i { display: block; background: var(--ink); }
.badge__id { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; padding: .25rem .5rem; background: var(--lime); border-radius: 4px; }

.chart__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 7rem); line-height: .9; margin: 0 0 2.5rem; letter-spacing: -0.03em; }
.chart__title em { color: var(--lime); }
.chart__rows { margin: 0; border-top: 1px solid var(--bone-faint); }
.chart__row { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--bone-faint); align-items: baseline; position: relative; }
.chart__row::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.chart__row:hover::before { transform: scaleX(1); }
.chart__row dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); }
.chart__row dd { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.chart__row dd a { color: var(--lime); }
.chart__vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.chart__vitals > div { border: 1px solid var(--bone-faint); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.chart__vitals .label { color: var(--bone-dim); }
.chart__vitals b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1; color: var(--lime); }

/* ============ DREAM → REALITY ============ */
.dream {
  /* the site's main green-black theme */
  background:
    radial-gradient(55% 70% at 72% 50%, rgba(200, 242, 92, .06), transparent 70%),
    var(--ink);
  color: var(--bone);
}
.dream__pin {
  min-height: 100vh; min-height: 100svh;
  padding: 6rem var(--pad) 3rem;
  display: flex; flex-direction: column;
}
.dream .section-head { margin-bottom: clamp(1.5rem, 4vh, 3rem); }
.dream__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 7rem); align-items: center; }

.dream__age { display: flex; flex-direction: column; gap: .5rem; margin-bottom: clamp(1.5rem, 4vh, 2.6rem); }
.dream__age .label { color: var(--lime); }
.dream__age b {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(6rem, 15vw, 14rem); line-height: .8; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.dream__age small { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); margin-left: .6rem; }

.dream__states { position: relative; min-height: 16rem; }
.dream__state { position: absolute; left: 0; top: 0; max-width: 34rem; }
.dream__state h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5.5vw, 5.6rem); line-height: .95; letter-spacing: -0.03em; margin: 0 0 1.2rem; }
.dream__state em { color: var(--lime); }
.dream__state p { margin: 0; max-width: 30rem; color: var(--bone-dim); font-size: 1.05rem; line-height: 1.55; }
.js .dream__state--now { opacity: 0; visibility: hidden; }

.dream__frame {
  position: relative; margin: 0;
  height: min(70svh, 760px); aspect-ratio: 2 / 3;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(236, 231, 220, .12);
}
.dream__layer { position: absolute; inset: 0; overflow: hidden; }
.dream__layer--then { will-change: clip-path; }
.dream__layer--then img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3) contrast(1.05) brightness(.97); }
.dream__now-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 28%, #c9a77c 0%, #94704f 24%, #57392a 52%, #2a1a12 80%, #170e0a 100%);
}
.dream__now-photo {
  position: absolute; width: 122%; max-width: none; left: -15%; top: -3%;
  filter: drop-shadow(0 30px 40px rgba(20, 10, 5, .5));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 7%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 89%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 7%, #000 85%, transparent 100%);
  mask-composite: intersect;
}
.dream__tag {
  position: absolute; left: 1rem; bottom: 1rem;
  padding: .45rem .75rem; border-radius: 99px;
  background: rgba(10, 17, 15, .62); color: var(--bone);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dream__layer--now .dream__tag { left: auto; right: 1rem; }
.dream__seam {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 2px; margin-left: -1px;
  background: linear-gradient(#f4ffd6, var(--lime));
  box-shadow: 0 0 14px 3px rgba(200, 242, 92, .8), 0 0 44px 10px rgba(200, 242, 92, .3);
  opacity: 0; pointer-events: none;
}
/* reduced motion / no animation library: show both lines of copy */
.dream--static .dream__state { position: static; opacity: 1; visibility: visible; margin-bottom: 2rem; }
.dream--static .dream__states { min-height: 0; }

/* ============ FOR HER MOTHER ============ */
.mom {
  background: var(--paper); color: var(--ink);
  padding: clamp(5rem, 12vw, 10rem) var(--pad);
  overflow: hidden;
}
.mom .section-head { border-color: var(--ink-faint); }
.mom__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.mom__photo { margin: 0; }
.mom__frame {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px;
  box-shadow: 0 50px 90px -45px rgba(10, 17, 15, .55);
  will-change: clip-path;
}
.mom__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform-origin: 50% 55%; }
.mom__photo figcaption { margin-top: 1rem; color: var(--ink-dim); }
.mom__quote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.8rem); line-height: 1.15; letter-spacing: -0.012em;
  text-wrap: pretty; /* no single-word last line */
}
.mom__ecg { display: block; width: 100%; height: 70px; margin: 2.2rem 0 1.4rem; overflow: visible; }
.mom__ecg path { fill: none; stroke: var(--rose); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mom__closing {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 6.2vw, 6.4rem); line-height: .92; letter-spacing: -0.03em;
}
.mom__closing em { color: var(--rose); }
.mom__sign { display: block; margin-top: 1.6rem; color: var(--ink-dim); }

/* ============ FINALE ============ */
.finale {
  background: var(--ink);
  padding: clamp(6rem, 16vw, 14rem) var(--pad);
  text-align: center;
  position: relative; overflow: hidden;
}
.finale__kicker { color: var(--lime); }
.finale__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.2rem, 15vw, 16rem);
  line-height: .86; letter-spacing: -0.04em;
  margin: 2rem 0 0;
}
.finale__line { display: block; overflow: hidden; padding-bottom: .08em; }
.finale__line:nth-child(2) { font-style: italic; color: var(--lime); }
.finale__ecg { width: 100%; height: 120px; margin: 2rem 0; overflow: visible; }
.finale__ecg path { fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(200,242,92,.6)); }
.finale__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 2rem); color: var(--bone-dim); margin: 0; }

/* ============ CONTACT ============ */
.contact {
  background: var(--lime); color: var(--ink);
  padding: clamp(5rem, 10vw, 8rem) var(--pad) 0;
  position: relative; overflow: hidden;
}
.contact .section-head { border-color: rgba(10,17,15,.25); margin-bottom: clamp(2rem, 5vw, 4rem); }
.contact__intro { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.2rem); max-width: 34rem; line-height: 1.1; margin: 0 0 2rem; }
.contact__mail {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 10.4vw, 13rem);
  line-height: 1; letter-spacing: -0.035em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .15em;
  word-break: break-all;
}
.contact__mail .c { transition: transform .6s var(--ease), color .3s; }
.contact__mail:hover .c { transform: translateY(-0.12em) rotate(-2deg); }
.contact__mail:hover .contact__arrow { transform: rotate(45deg); }
.contact__arrow { font-family: var(--sans); font-weight: 300; font-size: .6em; transition: transform .7s var(--ease); }
.contact__actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05rem 1.8rem; border-radius: 99px;
  background: var(--ink); color: var(--lime);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn__text { position: relative; z-index: 1; display: inline-block; }

.contact__about { max-width: 46rem; margin-top: clamp(3rem, 7vw, 5rem); }
.contact__about h2 { margin: 0 0 .8rem; font-weight: 500; }
.contact__about p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: rgba(10, 17, 15, .78); }

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.4rem 0;
  border-top: 1px solid rgba(10,17,15,.25);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  position: relative; z-index: 2;
}
.contact__giant {
  font-family: var(--serif); font-style: italic;
  font-size: 38vw; line-height: .72; letter-spacing: -0.05em;
  text-align: center;
  color: rgba(10,17,15,.09);
  margin: 0 0 -0.08em;
  user-select: none; pointer-events: none;
  white-space: nowrap;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .nav__links, .nav__meta { display: none; }
  .nav__cta { margin-left: auto; }
}

@media (max-width: 899px) {
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__logo-text { display: none; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); row-gap: 1.2rem; padding-top: 5.8rem; }
  .hero__name { align-self: start; padding-bottom: 0; }
  .hero__title { font-size: 23vw; }
  .hero__dr { font-size: .27em; }
  .hero__rule { margin: 1.1rem 0 .8rem; }
  .hero__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
  .hero__meta .label { display: none; }
  .hero__meta b { font-size: 1.05rem; }
  .hero__caption { display: none; }
  .hero__scrim { background: linear-gradient(0deg, rgba(20, 12, 8, .86) 0%, rgba(20, 12, 8, .4) 45%, rgba(20, 12, 8, 0) 70%); }
  .hero__quote { top: auto; bottom: 14%; left: var(--pad); right: var(--pad); display: block; max-width: none; }
  .hero__quote p { font-size: 2.5rem; }
  .monitor { height: 3.6rem; }
  .monitor__bpm { font-size: 1.7rem; }

  .story__grid { grid-template-columns: 1fr; }
  .story__aside { flex-direction: row; justify-content: space-between; align-items: center; }
  .story__body { text-indent: 1.5em; }

  .journey__pin { height: auto; min-height: 0; padding: 5rem 0 3rem; }
  .journey__track { flex-direction: column; }
  .journey__hint, .journey__foot { display: none; }
  .chapter, .chapter--intro { width: 100%; border-right: 0; border-bottom: 1px solid var(--bone-faint); gap: 2rem; }
  .chapter__num { font-size: 6.5rem; }

  .focus__grid { grid-template-columns: 1fr; }
  .focus__figure { display: none; }

  .profile__grid { grid-template-columns: 1fr; }
  .badge-stage { height: 560px; }
  .badge { width: 270px; }

  .mom__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .mom__ecg { height: 56px; margin: 1.6rem 0 1rem; }
  .dream__pin { padding-top: 5.2rem; padding-bottom: 1.5rem; }
  .dream .section-head { margin-bottom: 1rem; }
  .dream__grid { grid-template-columns: 1fr; gap: 1.2rem; align-content: start; }
  .dream__frame { order: -1; height: 44svh; justify-self: center; border-radius: 16px; }
  .dream__age { flex-direction: row; align-items: baseline; justify-content: space-between; margin-bottom: .6rem; }
  .dream__age b { font-size: 4.2rem; }
  .dream__states { min-height: 12.5rem; }
  .dream__state h2 { font-size: 2.6rem; margin-bottom: .7rem; }
  .dream__state p { font-size: .95rem; }

  .chart__row { grid-template-columns: 1fr; gap: .3rem; }
  .chart__vitals { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .loader { display: none; }
}
