:root {
  --deep: #061a2e;
  --deep-2: #0a243d;
  --ink: #eef1f2;
  --soft: #9fb3c2;
  --faint: rgba(238,241,242,.12);
  --glow: #f0c9a0;
  --sea: #7fc4c9;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--deep); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(6,26,46,.72); backdrop-filter: blur(14px); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.nav .name { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: .01em; }
.nav .links { display: flex; gap: 30px; }
.nav .links a { text-decoration: none; font-size: 14px; color: var(--soft); letter-spacing: .04em; transition: color .2s; }
.nav .links a:hover, .nav .links a.on { color: var(--ink); }
@media (max-width: 640px) { .nav .links { gap: 14px; } .nav .links a { font-size: 13px; } .nav .name { font-size: 19px; white-space: nowrap; } }

/* hero */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden;
  background: linear-gradient(180deg, #0b2238 0%, #1a3a55 34%, #6d6f7d 52%, #c99a7c 60%, #0d2a44 61%, var(--deep) 100%); }
.hero.short { height: 62vh; min-height: 420px; }
canvas.ocean { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
canvas.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; }
.hero .copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 24px 24vh; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.5vw, 88px); line-height: .95; margin: 0; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(6,26,46,.55); }
.hero h1 em { color: var(--glow); }
.hero .tag { text-shadow: 0 1px 12px rgba(6,26,46,.7); margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px); color: rgba(238,241,242,.82); letter-spacing: .14em; text-transform: uppercase; }
.cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* intro */
.intro { padding: 120px 0 80px; }
.intro p { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; margin: 0; max-width: 24ch; }
.intro p span { color: var(--soft); }

/* doors */
.doors { padding: 20px 0 120px; }
.door { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 34px 0; border-top: 1px solid var(--faint); text-decoration: none; position: relative; }
.door:last-child { border-bottom: 1px solid var(--faint); }
.door h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.5vw, 68px); line-height: 1; margin: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1), color .3s; }
.door p { margin: 8px 0 0; color: var(--soft); max-width: 46ch; }
.door .arrow { font-size: 28px; color: var(--soft); transition: transform .45s cubic-bezier(.2,.7,.2,1), color .3s; }
.door:hover h2 { color: var(--glow); }
.door:hover .arrow { transform: translateX(4px); color: var(--glow); }

footer { padding: 48px 0 64px; color: var(--soft); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* fade-in */
.reveal { opacity: 0; transition: opacity 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .cue { animation: none; } }

/* music page */
.works { padding: 60px 0 100px; }
.work { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 64px 0; border-top: 1px solid var(--faint); }
.work:first-child { border-top: 0; }
.work .cat { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sea); }
.work h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; margin: 10px 0 14px; }
.work p { color: var(--soft); margin: 0 0 22px; }
.docs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.doc { width: 120px; text-decoration: none; font-size: 13px; color: var(--soft); }
.doc img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 10px; display: block; background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.doc:hover img { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.doc span { display: block; margin-top: 8px; }
.doc:hover span { color: var(--glow); }
.player { margin-bottom: 14px; }
.player .lbl { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.player .lbl i { color: var(--soft); font-style: normal; }
.player iframe { width: 100%; height: 116px; border: 0; border-radius: 12px; display: block; background: rgba(255,255,255,.04); }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; gap: 24px; } }
p.more { text-align: center; padding-bottom: 40px; color: var(--soft); }
p.more a { color: var(--glow); }
canvas.stars { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 50%; opacity: .7; }

/* simple page header (no ocean) */
.page-head { padding: 150px 0 40px; }
.page-head .kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--sea); }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 88px); line-height: 1; margin: 12px 0 14px; }
.page-head p { color: var(--soft); max-width: 60ch; margin: 0; }

/* list rows (talks, apps) */
.rows { padding: 20px 0 100px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--faint); text-decoration: none; }
.item:last-child { border-bottom: 1px solid var(--faint); }
.item h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 0 0 6px; transition: color .3s; }
.item p { margin: 0; color: var(--soft); max-width: 62ch; }
.item .meta { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sea); white-space: nowrap; }
a.item:hover h3 { color: var(--glow); }
.rows h2.group { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); font-weight: 500; margin: 56px 0 8px; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--faint); border-radius: 999px; color: var(--soft); }

/* CV */
.cv-layout { display: grid; grid-template-columns: 200px 1fr; gap: 56px; padding: 20px 0 100px; }
.cv-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.cv-toc a { display: block; color: var(--soft); text-decoration: none; padding: 5px 0; }
.cv-toc a:hover { color: var(--glow); }
@media (max-width: 820px) { .cv-layout { grid-template-columns: 1fr; } .cv-toc { display: none; } }
.cv-sec { margin-bottom: 64px; scroll-margin-top: 96px; }
.cv-sec > h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--faint); }
.cv-sec h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sea); font-weight: 500; margin: 30px 0 10px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(238,241,242,.06); }
.row .what b { font-weight: 500; }
.row .what span { display: block; color: var(--soft); font-size: 15px; }
.row .what a { color: var(--glow); }
.row .when { font-size: 13px; color: var(--soft); white-space: nowrap; padding-top: 3px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 2px; } }
ol.pubs { padding-left: 1.5em; margin: 0; }
ol.pubs li { padding: 7px 0; font-size: 15px; color: var(--soft); }
ol.pubs li b { color: var(--ink); font-weight: 500; }
details.more summary { cursor: pointer; color: var(--glow); font-size: 15px; margin: 12px 0; }
.cv-sec p { color: var(--soft); }
.print-btn { font: inherit; font-size: 14px; background: none; border: 1px solid var(--faint); color: var(--ink); padding: 8px 16px; border-radius: 999px; cursor: pointer; margin-top: 22px; }
.print-btn:hover { border-color: var(--glow); color: var(--glow); }
@media print { .nav, .cv-toc, footer, .print-btn { display: none; } body { background: #fff; color: #000; } .row .what span, ol.pubs li, .cv-sec p { color: #333; } .cv-layout { display: block; } }
@media (max-width: 640px) {
  .nav .wrap { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  .nav .links a { white-space: nowrap; }
  .page-head { padding-top: 130px; }
}
.player .video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.player .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.player audio { width: 100%; display: block; border-radius: 999px; }
details.parts { flex-basis: 100%; margin-top: 10px; border-top: 1px solid var(--faint); padding-top: 12px; }
details.parts summary { cursor: pointer; color: var(--glow); font-size: 14px; list-style: none; }
details.parts summary::-webkit-details-marker { display: none; }
details.parts summary::before { content: "+ "; }
details.parts[open] summary::before { content: "\2212  "; }
details.parts ul { list-style: none; padding: 0; margin: 12px 0 0; columns: 2; column-gap: 24px; font-size: 14px; }
details.parts li { padding: 4px 0; break-inside: avoid; }
details.parts li a { color: var(--soft); text-decoration: none; }
details.parts li a:hover { color: var(--glow); }
details.parts .all { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--ink); border: 1px solid var(--faint); border-radius: 999px; padding: 7px 14px; text-decoration: none; }
details.parts .all:hover { border-color: var(--glow); color: var(--glow); }
@media (max-width: 480px) { details.parts ul { columns: 1; } }

/* name sits at the horizon, off to the side */
.hero .copy { inset: auto 0 calc(45% + 34px) 0; display: block; text-align: left; padding: 0 max(28px, calc((100vw - 1100px) / 2 + 28px)); }
.hero .copy h1 { font-size: clamp(36px, 5.2vw, 72px); }
.hero .tag { margin-top: 12px; }

/* a small boat crossing the horizon */
.boat { position: absolute; top: 58.2%; left: 0; width: 26px; height: 23px; z-index: 1; transform: translate(-60px, -88%); animation: sail 300s linear infinite; pointer-events: none; }
.boat svg { width: 100%; height: 100%; display: block; animation: bob 6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes sail { from { transform: translate(-60px, -88%); } to { transform: translate(calc(100vw + 60px), -88%); } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(1px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .boat { animation: none; transform: translate(22vw, -88%); } .boat svg { animation: none; } }

/* contact form */
.form { padding: 10px 0 120px; max-width: 640px; }
.form label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 22px 0 8px; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); background: rgba(255,255,255,.04); border: 1px solid var(--faint); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, background .2s; }
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--glow); background: rgba(255,255,255,.06); }
.form .hp { position: absolute; left: -9999px; }
.form button { margin-top: 28px; font: inherit; font-size: 15px; color: var(--deep); background: var(--glow); border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; transition: transform .2s, filter .2s; }
.form button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.form-status { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 0 0 120px; min-height: 1em; }
.form button:disabled { opacity: .6; cursor: default; }
.pill.live { color: var(--deep); background: var(--glow); border-color: var(--glow); }
.hero .copy .sub { margin: 12px 0 0; max-width: 56ch; color: rgba(238,241,242,.85); font-size: clamp(15px, 1.5vw, 18px); text-shadow: 0 1px 12px rgba(6,26,46,.7); }
.hero .copy .print-btn { margin-top: 16px; background: rgba(6,26,46,.35); backdrop-filter: blur(6px); }
.hero + section .form, .hero + section .rows, .hero + .wrap.cv-layout { padding-top: 48px; }
