/* Pale sky above the surface, azure water that deepens to navy.
   blues — the background, light to deep
   rose  — the one accent, fading to pink: energy, and whatever is alive
   white — hairlines, type and instruments under water */
:root {
  --sky: #EEF6FF;
  --azure: #1277F0;
  --blue-2: #0A4FC4;
  --blue-3: #062F86;
  --navy: #041B55;
  --abyss: #020A24;
  --ink: #041B55;
  --white: #F4FAFF;
  --rose: #FF2468; /* at the surface; script fades both toward pink with depth */
  --pink: #FF96BE;
  --serif: "Fraunces", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "DM Sans", "PingFang SC", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 80px);
  --sx: 50%;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--sky); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--sky);
  font-size: clamp(16px, 1.1vw, 18px); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.page { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose); color: #fff; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; border-radius: 4px; }

/* ── fixed furniture ── */
#ambient { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
#fin { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }
html.fin, html.fin * { cursor: none !important; }
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad); color: var(--ink); transition: color .5s;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.top.deep { color: var(--white); }
.top nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.top a { position: relative; padding: 4px 0; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--rose); transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.mark { font-family: var(--serif); font-style: italic; font-size: 28px; letter-spacing: -.04em; text-transform: none; font-variation-settings: "SOFT" 100; }

/* ── 0 m · above the surface ── */
.surface {
  position: relative; min-height: 100svh; overflow: hidden; background: linear-gradient(to bottom, #F9FCFF 0%, var(--sky) 55%, #D3EAFF 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 90px var(--pad) 24vh;
}
.eyebrow { position: relative; z-index: 1; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.sun-wrap { position: absolute; left: 56%; top: 12%; width: clamp(150px, 25vw, 380px); aspect-ratio: 1; }
.sun { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(150deg, var(--rose) 10%, var(--pink) 95%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.04); } }
.name {
  position: relative; z-index: 1; font-family: var(--serif); font-weight: 380; font-variation-settings: "SOFT" 100;
  font-size: clamp(84px, 19vw, 320px); line-height: .86; letter-spacing: -.045em; margin: 2.5vh 0 4vh;
}
.line { display: block; overflow: hidden; padding: .04em .12em .16em; margin: -.04em -.12em -.16em; }
.it { font-style: italic; font-weight: 300; }
.split { display: inline-block; }
.split .ch { display: inline-block; will-change: transform; }
.hint { position: relative; z-index: 1; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hint i { display: inline-block; font-style: normal; margin-left: 6px; color: var(--rose); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
#waterline { position: absolute; left: 0; bottom: -1px; width: 100%; height: 22vh; display: block; }

/* ── the water ── */
.water {
  position: relative; padding-top: 46vh; color: var(--white);
  background: linear-gradient(to bottom, #63C3FF 0%, #38A2F9 2.6%, var(--azure) 6.5%, var(--blue-2) 28%, var(--blue-3) 52%, var(--navy) 76%, var(--abyss) 100%);
}
.funnel { position: absolute; top: 0; left: 0; width: 100%; height: 46vh; overflow: visible; }
.funnel path { fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; opacity: .8; }
.pulse { fill: none; stroke: var(--rose); stroke-width: 2.2; stroke-linecap: round; opacity: 0; }

/* the rope itself is drawn on the canvas; this element only marks where it hangs */
.spine { position: absolute; left: var(--sx); width: 1.5px; margin-left: -.75px; z-index: 1; }
.spine-fill, .bead { display: none; }
.spine-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--white); }
.bead { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity .4s; will-change: transform; }
.bead.on { opacity: 1; }
.bead::before { content: ""; position: absolute; left: -1px; top: -78px; width: 3.5px; height: 78px; border-radius: 3px; background: linear-gradient(to top, var(--rose), var(--pink) 55%, rgba(255,166,203,0)); }
.bead::after { content: ""; position: absolute; left: -5px; top: -6px; width: 11.5px; height: 11.5px; border-radius: 50%; background: var(--rose); }
.depth { position: absolute; right: 16px; top: -9px; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.depth b { font-weight: 500; }

/* ── stops on the line: click to open ── */
.stop { position: relative; z-index: 2; height: max(900px, 125vh); }
#v2g { height: max(1000px, 135vh); }
.stage { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.node { position: absolute; left: var(--sx); top: 11%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border: 0; border-radius: 50%; background: none; cursor: pointer; z-index: 3; }
.node::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: linear-gradient(150deg, var(--rose), var(--pink)); transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.node::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; border: 1.5px solid var(--rose); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.node:hover::before { transform: scale(1.5); }
.stop.open .node::before { transform: scale(.6); }
.stop.open .node::after { animation: none; opacity: 0; }

.label { position: absolute; z-index: 3; left: calc(var(--sx) + 44px); top: 11%; margin-top: -11px; width: min(560px, calc(100% - var(--sx) - 44px - var(--pad))); }
.idx { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--pink); }
.title {
  font-family: var(--serif); font-weight: 380; font-variation-settings: "SOFT" 100; letter-spacing: -.04em; line-height: .92;
  font-size: clamp(44px, 6.2vw, 108px); margin: 10px -.1em 14px; padding: .04em .1em .14em; overflow: hidden; cursor: pointer;
}
.what { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.15; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 0; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--rose);
}
.toggle i { position: relative; width: 11px; height: 11px; transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.toggle i::before, .toggle i::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 1.5px; background: var(--rose); }
.toggle i::after { transform: rotate(90deg); }
.t-close { display: none; }
.stop.open .t-open { display: none; }
.stop.open .t-close { display: inline; }
.stop.open .toggle i { transform: rotate(45deg); }
.more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.stop.open .more { max-height: 260px; opacity: 1; }
.tags { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; opacity: .85; margin-top: 12px; max-width: 34em; }
.link { display: inline-block; margin-top: 16px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(20px, 1.8vw, 26px); color: var(--pink); border-bottom: 1.5px solid var(--rose); padding-bottom: 2px; }
.link sup { font-family: var(--sans); font-size: .55em; display: inline-block; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.link:hover sup { transform: translate(4px, -4px); }
.mag { display: inline-block; will-change: transform; }

/* skills drift up like small bubbles while a stop is closed */
.skills { position: absolute; inset: 34% 0 4% 0; pointer-events: none; transition: opacity .6s; }
.stop.open .skills { opacity: 0; }
.skills span {
  position: absolute; left: var(--x); top: var(--y); white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100;
  font-size: calc(var(--s) * clamp(18px, 2.1vw, 32px)); opacity: .62;
  animation: bobble var(--d, 8s) ease-in-out infinite alternate;
}
.skills span::before { content: ""; display: inline-block; width: .4em; height: .4em; margin-right: .55em; border: 1px solid var(--pink); border-radius: 50%; vertical-align: middle; }
@keyframes bobble { from { translate: 0 10px; } to { translate: 6px -14px; } }

/* the thesis result as three circles drawn to scale */
.result { position: absolute; z-index: 3; left: 0; right: 0; bottom: 5%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.stop.open .result { opacity: 1; transform: none; transition-delay: 1.1s; }
.res-l { justify-self: end; padding-right: clamp(26px, 3vw, 50px); text-align: right; }
.res-l .bub { margin-left: auto; }
.res-r { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); padding-left: clamp(26px, 3vw, 50px); }
.result figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-top: 12px; max-width: 16em; }
.result figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.9em; letter-spacing: 0; text-transform: none; color: var(--pink); }
.bub {
  --d: clamp(110px, 12vw, 170px);
  width: calc(var(--d) * var(--k)); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-variation-settings: "SOFT" 100; white-space: nowrap;
}
.b1 { --k: 1; border: 1.25px solid var(--white); font-size: calc(var(--d) * .2); }
.b2 { --k: .58; background: linear-gradient(150deg, var(--rose), var(--pink)); color: #fff; font-size: calc(var(--d) * .105); }
.b3 { --k: .103; background: var(--pink); }

/* ── 40 m · the seabed ── */
.seabed { position: relative; z-index: 2; min-height: 130vh; text-align: center; padding: 14vh var(--pad) 0; overflow: hidden; }
.seed { position: relative; z-index: 2; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--rose); margin: 0 auto 10vh; animation: seed 2.4s ease-out infinite; }
@keyframes seed { 0% { box-shadow: 0 0 0 0 rgba(255,45,135,.6); } 100% { box-shadow: 0 0 0 34px rgba(255,45,135,0); } }
#kelp { position: absolute; left: 0; bottom: 0; width: 100%; height: 86vh; pointer-events: none; }
.bed { position: relative; z-index: 2; }
.me { position: relative; flex: none; width: clamp(140px, 14vw, 196px); aspect-ratio: 1; margin: 11px; }
.me img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; border-radius: 50%; }
.me::before, .me::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; }
.me::before { border: 1px solid rgba(244,250,255,.45); }
.me::after { border: 2px solid transparent; border-top-color: var(--rose); border-right-color: var(--pink); animation: turn 14s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.off { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 60px); max-width: 640px; margin: 4vh auto 0; }
.off b { display: block; font-family: var(--serif); font-weight: 380; font-style: italic; font-variation-settings: "SOFT" 100; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -.02em; line-height: 1.1; }
.off span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.contact { padding: 16vh 0 30vh; }
.hello {
  display: block; font-family: var(--serif); font-weight: 380; font-variation-settings: "SOFT" 100;
  font-size: clamp(84px, 18vw, 300px); line-height: .9; letter-spacing: -.045em; margin-bottom: 7vh;
}
.hello .it { transition: color .3s; }
.hello:hover .it { color: var(--rose); }
.foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 38px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.foot a:hover { color: var(--pink); }
.ascend { letter-spacing: inherit; text-transform: inherit; color: #fff; background: linear-gradient(150deg, var(--rose), var(--pink)); border: 0; padding: 15px 24px; border-radius: 999px; cursor: pointer; }
.fine { margin-top: 34px; font-size: 12px; opacity: .6; }

/* ── narrow screens: the line moves to the left edge ── */
@media (max-width: 820px) {
  :root { --sx: 28px; }
  .label { left: calc(var(--sx) + 30px); width: calc(100% - var(--sx) - 30px - var(--pad)); }
  .depth { right: auto; left: -21px; top: -150px; writing-mode: vertical-rl; }
  .skills { inset: 40% 0 4% 12%; }
  .result { display: flex; align-items: flex-end; gap: 16px; padding-left: calc(var(--sx) + 30px); }
  .res-l { padding: 0; text-align: left; }
  .res-l .bub { margin-left: 0; }
  .res-r { padding: 0; gap: 16px; align-items: flex-end; }
  .result figure { min-width: 84px; }
  .seed { margin: 0 0 10vh calc(var(--sx) - var(--pad) - 7px); }
  .off { grid-template-columns: minmax(0, 1fr); gap: 5vh; }
  .sun-wrap { left: 52%; top: 15%; }
}
@media (prefers-reduced-motion: reduce) {
  .sun, .hint i, .seed, .node::after, .skills span, .me::after { animation: none; }
}

/* stops unfold by themselves now: nothing to click, no pings, no little bubbles */
.node { cursor: default; pointer-events: none; width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.node::before { inset: 4px; }
.node::after { display: none; }
.title { cursor: default; }
.toggle { display: none; }
.skills span::before { display: none; }
.seed { animation: none; }

/* ── who this is: one statement near the surface ── */
.intro { position: relative; z-index: 2; padding: 4vh 0 12vh; }
.intro-in { width: 50%; padding: 0 clamp(64px, 6vw, 100px) 0 var(--pad); text-align: right; }
.say { font-family: var(--serif); font-weight: 360; font-variation-settings: "SOFT" 100; font-size: clamp(26px, 3.1vw, 50px); line-height: 1.12; letter-spacing: -.02em; margin: 18px 0 26px; color: #fff; }
.say em { font-style: italic; color: var(--pink); }
.facts li { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 5px 0; }

/* ── the résumé itself, at the bottom of the dive ── */
.about { max-width: 1040px; margin: 0 auto 12vh; text-align: left; }
.about-head { display: flex; align-items: center; gap: clamp(22px, 4vw, 60px); margin-bottom: 8vh; }
.about-head h2 { font-family: var(--serif); font-weight: 380; font-variation-settings: "SOFT" 100; font-size: clamp(44px, 5.6vw, 88px); line-height: .95; letter-spacing: -.04em; margin: 10px 0 16px; }
.about-head div p:last-child { max-width: 30em; opacity: .9; }
.cv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7vh clamp(28px, 5vw, 80px); }
.cv h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }
.cv li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid rgba(244,250,255,.16); }
.cv li b { font-family: var(--serif); font-weight: 380; font-variation-settings: "SOFT" 100; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.15; }
.cv li time { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; opacity: .75; white-space: nowrap; }
.cv li span { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; opacity: .8; line-height: 1.5; }
.off-eyebrow { text-align: center; }
@media (max-width: 820px) {
  .intro-in { width: auto; padding: 0 var(--pad) 0 calc(var(--sx) + 30px); text-align: left; }
  .about-head { flex-direction: column; align-items: flex-start; }
  .cv { grid-template-columns: minmax(0, 1fr); }
}

/* keep the portrait a true circle in every layout */
.me { --me: clamp(140px, 14vw, 196px); width: var(--me); height: var(--me); aspect-ratio: auto; }
.me img { position: absolute; inset: 0; }
