:root {
  --paper: #f2eee6;
  --paper-2: #e8e1d4;
  --card: #f7f2e9;
  --ink: #151312;
  --ink-2: #4b4640;
  --mute: #8d867c;
  --line: rgba(21, 19, 18, .14);
  --wine: #5c1c1a;
  --wine-d: #3e1211;
  --cream: #f3eadc;
  --cream-2: rgba(243, 234, 220, .6);
  --cream-3: rgba(243, 234, 220, .18);
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --serif: "Faculty Glyphic", ui-serif, Georgia, serif;
  --wrap: min(1120px, calc(100% - 2 * clamp(16px, 6vw, 80px)));
  --ease: cubic-bezier(.7, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--wine); color: var(--cream); }

/* paper grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lab { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.wrap { width: var(--wrap); margin: 0 auto; }

/* faint column guides */
.guides { position: fixed; inset: 0 auto 0 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 32px)); pointer-events: none; z-index: 0; }
.guides i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(21, 19, 18, .055); }
.guides i:nth-child(1) { left: 25%; } .guides i:nth-child(2) { left: 50%; } .guides i:nth-child(3) { left: 75%; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px; background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 16px 18px; transition: background .3s, transform .3s;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn .ar { width: 20px; height: 20px; border: 1px solid var(--cream-2); display: grid; place-items: center; font-size: 11px; letter-spacing: 0; transition: transform .3s; }
.btn:hover .ar { transform: translateX(3px); }
.btn-s { padding: 10px 12px; font-size: 11px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: grid; place-items: center; overflow: hidden; transition: transform 1s var(--ease); }
.loader.done { transform: translateY(-100%); }
.loader.gone { display: none; }
.loader > .lab { position: absolute; color: var(--ink-2); font-size: 11px; }
.ld-tl { top: 28px; left: 32px; } .ld-tr { top: 28px; right: 32px; }
.ld-bl { bottom: 28px; left: 32px; } .ld-br { bottom: 28px; right: 32px; }
.spec { position: relative; font-size: clamp(96px, 18vw, 250px); line-height: 1; }
.spec-word { position: relative; display: block; font-weight: 300; letter-spacing: -.035em; opacity: 0; transform: translateY(.08em); animation: rise .9s .35s var(--ease) forwards; }
.sl { position: absolute; top: var(--y); left: 50%; width: 100vw; height: 1px; margin-left: -50vw; background: rgba(21, 19, 18, .22); transform: scaleX(0); transform-origin: left; animation: draw 1s var(--ease) forwards; }
.sl:nth-child(2) { animation-delay: .08s; } .sl:nth-child(3) { animation-delay: .16s; } .sl:nth-child(4) { animation-delay: .24s; }
.sl.base { background: var(--ink); height: 1.5px; }
.sl b { position: absolute; left: 32px; bottom: 6px; font: 400 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 90;
  width: min(500px, calc(100% - 32px)); height: 58px; padding: 0 18px;
  display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: var(--cream);
}
.nav-ic { width: 32px; height: 32px; display: grid; place-items: center; }
.nav-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.mark { font-family: var(--serif); font-size: 30px; line-height: 1; text-decoration: none; transform: translateY(-2px); }
.burger { position: relative; }
.burger i { position: absolute; left: 6px; right: 6px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger i:first-child { top: 12px; } .burger i:last-child { top: 18px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 89; background: var(--wine); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu.open { clip-path: inset(0); visibility: visible; }
.menu ol { text-align: center; }
.menu li a { display: inline-flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-size: clamp(36px, 6vw, 64px); line-height: 1.2; text-decoration: none; transition: opacity .3s; }
.menu li a .lab { color: var(--cream-2); font-size: 11px; }
.menu ol:hover a { opacity: .45; } .menu ol a:hover { opacity: 1; }
.menu-cv { color: var(--cream-2); text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; height: 100svh; min-height: 600px; background: var(--wine); color: var(--cream); overflow: hidden; }
#fabric { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-in { position: relative; z-index: 2; height: 100%; width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero .lab-c { color: var(--cream-2); font-size: 11px; }
.hero h1 { font-weight: 300; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin: 20px 0 22px; }
.hero .sub { font-weight: 300; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.38; max-width: 25ch; margin-bottom: 44px; }
.hero-foot { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); width: var(--wrap); display: flex; justify-content: space-between; align-items: center; }
.hero-idx { display: flex; gap: 28px; font-size: 11px; }
.hero-idx a { color: var(--cream-2); text-decoration: none; transition: color .3s; }
.hero-idx a:hover { color: var(--cream); }

/* ---------- sections ---------- */
.sec { position: relative; z-index: 1; padding: clamp(96px, 13vw, 170px) 0 0; }
.sec-t { padding-top: 40px; }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; }
.g2 + .g2 { margin-top: clamp(64px, 8vw, 110px); }
.g2 > .lab { padding-top: .7em; }
.big { font-weight: 300; font-size: clamp(23px, 2.75vw, 37px); line-height: 1.42; letter-spacing: -.012em; max-width: 30ch; }
.lead { font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.01em; max-width: 26ch; margin-bottom: 56px; }
.hint { margin-top: 32px; font-size: 11px; }

.u { position: relative; white-space: nowrap; cursor: default; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.u:hover, .u.on { background-size: 100% 1px, 100% 1px; }
.chip { display: inline-block; width: 1.7em; height: 1.05em; margin-left: .22em; vertical-align: -.14em; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.chip svg { display: block; width: 100%; height: 100%; }

.peek { position: fixed; left: 0; top: 0; z-index: 70; width: 190px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .25s, transform .35s var(--ease); }
.peek.on { opacity: 1; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- polaroids ---------- */
.works { position: relative; z-index: 1; height: 360vh; margin-top: clamp(60px, 8vw, 120px); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.cards { position: absolute; inset: 0; }
.pol {
  --pw: clamp(104px, 13vw, 158px);
  position: absolute; left: 50%; top: 50%; width: var(--pw); padding: 8px 8px 30px; background: var(--card);
  border: 1px solid rgba(60, 40, 20, .09);
  box-shadow: 0 1px 1px rgba(40, 25, 10, .06), 0 20px 34px -16px rgba(40, 25, 10, .45), 0 4px 10px -4px rgba(40, 25, 10, .18);
  will-change: transform; cursor: pointer; transition: box-shadow .3s;
}
.pol:hover, .pol.on { box-shadow: 0 1px 1px rgba(40, 25, 10, .06), 0 34px 50px -18px rgba(40, 25, 10, .55), 0 6px 14px -4px rgba(40, 25, 10, .2); }
.pol svg { display: block; width: 100%; aspect-ratio: 1 / .94; }
.pol .no { position: absolute; left: 10px; bottom: 9px; font: 400 9.5px/1 var(--mono); letter-spacing: .16em; color: var(--ink-2); }
.peek .pol { position: static; --pw: 190px; transform: rotate(-4deg); }

.stage-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, 76%); text-align: center; opacity: 0; pointer-events: none; z-index: 2; }
.stage-mid.on { pointer-events: auto; }
.stage-mid h2 { font-weight: 300; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.32; letter-spacing: -.01em; margin: 18px 0 30px; }
.cap { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: min(620px, calc(100% - 32px)); text-align: center; color: var(--ink-2); line-height: 1.7; font-size: 11px; z-index: 3; transition: opacity .3s; }
.cap b { font-family: var(--serif); font-weight: 400; font-size: 20px; letter-spacing: 0; text-transform: none; color: var(--ink); display: block; margin-bottom: 2px; }

/* ---------- rows ---------- */
.rows { border-top: 1px solid var(--line); }
.r { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; padding: 34px 0 36px; border-bottom: 1px solid var(--line); transition: opacity .2s linear; }
.r .n { padding-top: .45em; font-size: 11px; line-height: 1.6; }
.r h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -.01em; }
.r .meta { margin-top: 12px; font-size: 11px; line-height: 1.7; }
.r > p, .r > ul { color: var(--ink-2); font-size: 16px; line-height: 1.6; padding-top: .35em; }
.r ul li { position: relative; padding-left: 18px; }
.r ul li + li { margin-top: 8px; }
.r ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--mute); }
.r-thumb { display: none; }

/* ---------- research ---------- */
.paper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.fig { background: var(--wine); padding: 18px 18px 14px; color: var(--cream); }
.fig svg { display: block; width: 100%; aspect-ratio: 600 / 420; }
.fig figcaption { color: var(--cream-2); font-size: 10px; margin-top: 12px; }
.paper h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.5vw, 33px); line-height: 1.15; margin: 18px 0 18px; letter-spacing: -.01em; }
.authors { font-size: 16px; color: var(--ink-2); }
.authors b { color: var(--ink); font-weight: 500; }
.paper .body { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 16px 0 26px; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10.5px; }
.tags li { border: 1px solid var(--line); padding: 6px 10px; color: var(--ink-2); }
.eeg-t { fill: none; stroke: rgba(243, 234, 220, .72); stroke-width: 1.1; }
.eeg-hot { fill: none; stroke: #e7b35f; stroke-width: 1.3; }
.eeg-band { fill: rgba(231, 179, 95, .12); }
.eeg-scan { fill: rgba(243, 234, 220, .1); }
.eeg-lab { font: 400 10px var(--mono); letter-spacing: .1em; fill: rgba(243, 234, 220, .5); }

/* ---------- toolkit ---------- */
.sec-tool { padding-top: clamp(96px, 12vw, 150px); }
.marq { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; margin-bottom: clamp(64px, 8vw, 110px); }
.marq-in { display: flex; width: max-content; gap: 0; animation: marq 48s linear infinite; }
.marq-in span { font-family: var(--serif); font-size: clamp(40px, 6vw, 82px); line-height: 1; white-space: nowrap; padding-right: .5em; }
.marq-in span i { font-style: normal; color: var(--wine); padding-left: .5em; font-size: .5em; vertical-align: .35em; }
.marq:hover .marq-in { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tools > div { padding: 26px 26px 34px 0; border-bottom: 1px solid var(--line); }
.tools > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.tools > div:not(:nth-child(3n + 1)) { padding-left: 26px; }
.tools h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 14px 0 12px; }
.tools p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.tools .lab { font-size: 11px; }

/* ---------- off the clock ---------- */
.hobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.hobs h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hobs li { font-size: 15px; color: var(--ink-2); line-height: 1.5; padding: 5px 0; }
.hobs li b { display: block; font-weight: 500; color: var(--ink); }
.trip { margin-top: 64px; border: 1px solid var(--line); background: rgba(255, 255, 255, .25); }
.trip-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 10.5px; }
#trip-city { color: var(--wine); text-align: right; }
#trip-map { display: block; width: 100%; height: auto; }
.t-sea { fill: transparent; }
.t-grid { stroke: rgba(21, 19, 18, .06); stroke-width: 1; }
.t-land { fill: var(--paper-2); stroke: rgba(21, 19, 18, .25); stroke-width: .7; }
.t-border { fill: none; stroke: rgba(21, 19, 18, .14); stroke-width: .5; }
.t-route { fill: none; stroke: rgba(92, 28, 26, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.t-main { fill: none; stroke: var(--wine); stroke-width: 1.6; }
.t-city { fill: var(--paper); stroke: var(--wine); stroke-width: 1.4; cursor: pointer; transition: r .2s; }
.t-city.on { fill: var(--wine); r: 7; }
.t-pin-dot { fill: var(--wine); }
.t-pin-ring { fill: none; stroke: var(--wine); stroke-width: 1; }
.t-tag { fill: var(--ink); }
.t-pin text { font: 500 10px var(--mono); letter-spacing: .1em; fill: var(--cream); text-anchor: middle; }
.t-plane-body { fill: var(--ink); }

/* ---------- curtain call ---------- */
.curtain { position: relative; z-index: 1; margin-top: clamp(110px, 14vw, 190px); background: var(--wine); color: var(--cream); padding-bottom: 30px; }
.valance { position: relative; height: 92px; background: #1c1918; overflow: hidden;
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% 40px no-repeat, radial-gradient(44px 52px at 50% 40px, #000 98%, transparent 100%) 0 0 / 88px 92px repeat-x;
          mask: linear-gradient(#000, #000) 0 0 / 100% 40px no-repeat, radial-gradient(44px 52px at 50% 40px, #000 98%, transparent 100%) 0 0 / 88px 92px repeat-x; }
.valance::after { content: ""; position: absolute; inset: 0; background: radial-gradient(44px 52px at 50% 40px, transparent 55%, rgba(0, 0, 0, .55) 100%) 0 0 / 88px 92px repeat-x, linear-gradient(rgba(0, 0, 0, .35), transparent 40px); }
.weave { position: absolute; inset: -4px; font: 500 8px/8px var(--mono); letter-spacing: .08em; color: rgba(243, 234, 220, .26); word-break: break-all; white-space: normal; }
.cc { padding: clamp(80px, 10vw, 130px) 0 clamp(90px, 11vw, 140px); }
.cc > .lab { color: var(--cream-2); }
.curtain h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 8.2vw, 112px); line-height: .98; letter-spacing: -.025em; max-width: 11ch; }
.cc-sub { margin-top: 26px; font-weight: 300; font-size: 19px; color: var(--cream-2); }
.mail { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.mail a { font-weight: 300; font-size: clamp(25px, 3.4vw, 42px); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; overflow-wrap: anywhere; }
.copy { color: var(--cream-2); font-size: 11px; transition: color .3s; }
.copy:hover { color: var(--cream); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--cream-3); }
.foot-links { display: flex; gap: 32px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-size: 15px; transition: opacity .3s; }
.foot-links a:hover { opacity: .6; }
.foot-row .lab { color: var(--cream-2); text-transform: none; letter-spacing: .06em; font-size: 13px; }
.foot-bot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--cream-2); padding-top: 18px; }
.foot-bot a { text-decoration: none; color: var(--cream); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .g2 { grid-template-columns: 1fr; gap: 18px; }
  .g2 > .lab { padding-top: 0; }
  .paper { grid-template-columns: 1fr; gap: 32px; }
  .tools { grid-template-columns: 1fr 1fr; }
  .tools > div { padding: 22px 18px 26px 0 !important; border-right: 0 !important; }
  .tools > div:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .tools > div:nth-child(even) { padding-left: 18px !important; }
  .hobs { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .hero-in { justify-content: flex-end; padding-bottom: 120px; }
  .hero-idx { display: none; }
  .hero-foot { justify-content: flex-end; }
  .r { grid-template-columns: 44px minmax(0, 1fr); gap: 10px 14px; padding: 26px 0 28px; }
  .r > p, .r > ul { grid-column: 2; font-size: 15px; padding-top: 6px; }
  .tools { grid-template-columns: 1fr; }
  .tools > div { padding: 20px 0 22px !important; border-right: 0 !important; }
  .sl b { left: 16px; }
  .ld-tl, .ld-bl { left: 16px; } .ld-tr, .ld-br { right: 16px; }
  .trip-head { flex-direction: column; gap: 4px; }
  #trip-city { text-align: left; }
  .foot-bot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marq-in { animation: none; }
  html { scroll-behavior: auto; }
}

/* hero entrance after the intro */
.hero-in > *, .hero-foot { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero-foot { transform: translate(-50%, 22px); }
.ready .hero-in > *, .ready .hero-foot { opacity: 1; transform: none; }
.ready .hero-foot { transform: translateX(-50%); }
.ready .hero-in > :nth-child(2) { transition-delay: .08s; }
.ready .hero-in > :nth-child(3) { transition-delay: .16s; }
.ready .hero-in > :nth-child(4) { transition-delay: .24s; }
.ready .hero-foot { transition-delay: .4s; }
@media (max-width: 640px) { .stage-mid { width: 60%; } .stage-mid h2 { font-size: 19px; } }
