/* ==========================================================================
   MIHIR RUWALA — portfolio
   Type: Instrument Serif (display) · Inter (body) · IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --ink: #101311;
  --ink-2: #171b18;
  --ink-3: #1e231f;
  --ivory: #f0efe7;
  --mute: #92958d;
  --lime: #c9f36a;
  --line: rgba(240, 239, 231, 0.13);
  --line-strong: rgba(240, 239, 231, 0.28);

  --paper: #f0eee5;
  --paper-2: #e7e4d8;
  --char: #181b18;
  --char-mute: #5d6159;
  --olive: #6f8a1f;
  --paper-line: rgba(24, 27, 24, 0.14);

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 2px; }
.paper :focus-visible { outline-color: var(--olive); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--lime); color: var(--ink); padding: 10px 16px;
  font: 500 13px var(--mono); transition: top .2s;
}
.skip:focus { top: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; }
em, .it { font-family: var(--serif); font-style: italic; font-weight: 400; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- grain + grid backdrop ---------- */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(240,239,231,0.035) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--gutter)) / 12) 100%;
  background-position: var(--gutter) 0;
}
.paper .grid-bg {
  background-image: linear-gradient(to right, rgba(24,27,24,0.05) 1px, transparent 1px);
}

/* ---------- intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 300; background: var(--ink);
  display: grid; place-items: center; pointer-events: none;
  transition: clip-path 1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.intro.done { clip-path: inset(0 0 100% 0); }
.intro__inner { width: min(560px, 80vw); }
.intro__row { display: flex; justify-content: space-between; color: var(--mute); }
.intro__bar { height: 1px; background: var(--line); margin: 14px 0; position: relative; overflow: hidden; }
.intro__bar span { position: absolute; inset: 0; background: var(--lime); transform-origin: left; transform: scaleX(0); }
.intro__name { font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.intro__name em { color: var(--lime); }
.no-js .intro, .reduced .intro { display: none; }

/* ---------- progress + cursor ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--lime); transform-origin: left; transform: scaleX(0);
}
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor, .has-cursor .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
    border-radius: 50%; mix-blend-mode: difference;
  }
  .has-cursor .cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ivory); }
  .has-cursor .cursor-ring {
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--ivory);
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s;
    display: grid; place-items: center;
  }
  .has-cursor .cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .has-cursor .cursor-ring.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ivory); }
  .cursor-ring span { font: 500 10px var(--mono); letter-spacing: .1em; color: #000; opacity: 0; transition: opacity .2s; }
  .cursor-ring.is-view span { opacity: 1; }
  .cursor-ring.is-hidden, .cursor.is-hidden { opacity: 0; }
}

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid { background: rgba(16,19,17,0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.on-paper { color: var(--char); }
.nav.on-paper.is-solid { background: rgba(240,238,229,0.86); }
.nav.on-lime { color: var(--ink); }
.nav.on-lime.is-solid { background: rgba(201,243,106,0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav__logo { font-family: var(--serif); font-size: 26px; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.nav__logo em { color: var(--lime); }
.nav.on-paper .nav__logo em { color: var(--olive); }
.nav.on-lime .nav__logo em { color: var(--ink); }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; padding: 6px 0; opacity: .62; transition: opacity .25s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links sup { font-size: 9px; margin-right: 4px; opacity: .6; }
.nav__status { display: flex; align-items: center; gap: 10px; color: inherit; opacity: .8; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); position: relative; flex: none; }
.dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--lime);
  animation: ping 2.4s var(--ease) infinite;
}
.nav.on-paper .dot, .nav.on-paper .dot::after { background: var(--olive); border-color: var(--olive); }
.nav.on-lime .dot { background: var(--ink); } .nav.on-lime .dot::after { border-color: var(--ink); }
.nav.on-paper .dot::after, .nav.on-lime .dot::after { background: none; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.nav__toggle span:nth-child(1) { top: 18px; } .nav__toggle span:nth-child(2) { top: 25px; }
.menu-open .nav__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 105; background: var(--ink); color: var(--ivory);
  padding: 100px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .nav { color: var(--ivory); background: transparent; backdrop-filter: none; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-top: 1px solid var(--line); }
.mobile-menu li a { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); line-height: 1.05; }
.mobile-menu li a span { font: 12px var(--mono); color: var(--mute); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--mute); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
.sec-label { display: flex; gap: 14px; align-items: center; color: var(--mute); margin-bottom: 28px; }
.sec-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.paper .sec-label { color: var(--char-mute); }
.h-display {
  font-family: var(--serif); font-weight: 400; line-height: .92; letter-spacing: -0.02em;
  font-size: clamp(38px, 5.2vw, 86px); margin: 0;
}
.h-display em { color: var(--lime); }
.paper .h-display em { color: var(--olive); }
.lede { font-size: clamp(16px, 1.15vw, 18px); color: var(--mute); max-width: 44ch; margin: 0; }
.paper .lede { color: var(--char-mute); }

.paper { background: var(--paper); color: var(--char); }
.paper ::selection { background: var(--char); color: var(--paper); }

/* reveal system */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 40ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }
.no-js .split .w > span { transform: none; }

/* ==========================================================================
   01 HERO
   ========================================================================== */
.hero { min-height: 100svh; padding: 110px 0 36px; display: flex; flex-direction: column; overflow: hidden; }
.hero__canvas { position: absolute; top: 0; right: 0; width: 62%; height: 100%; }
.hero__canvas canvas { width: 100%; height: 100%; }
.hero__canvas::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, var(--ink) 0%, rgba(16,19,17,0) 35%), linear-gradient(to top, var(--ink) 0%, rgba(16,19,17,0) 25%);
}
.hero .wrap { position: relative; flex: 1; display: flex; flex-direction: column; }
.hero__top { display: flex; justify-content: space-between; color: var(--mute); gap: 16px; }
.hero__top span:nth-child(2) { text-align: right; }
.hero__name {
  font-family: var(--serif); font-weight: 400; margin: auto 0 0; padding-top: 3vh;
  font-size: clamp(64px, 9.6vw, 164px); line-height: .82; letter-spacing: -0.035em; position: relative;
}
.hero__name .l1 { display: inline-block; position: relative; }
.hero__name .l2 { display: block; padding-left: 9vw; font-style: italic; color: var(--ivory); }
.hero__name .l2 .stop { color: var(--lime); font-style: normal; }
.hero__name .tag {
  position: absolute; font: 11px var(--mono); letter-spacing: .08em; color: var(--mute); text-transform: uppercase;
  white-space: nowrap;
}
.hero__name .tag--a { top: 22px; left: 100%; margin-left: 28px; }
.hero__name .tag--a::before { content: "↙ "; color: var(--lime); }
.hero__bottom { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; margin-top: 40px; align-items: end; }
.hero__intro { grid-column: 1 / span 5; }
.hero__intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 32px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero__intro h1 em { color: var(--lime); }
.hero__intro p { color: var(--mute); margin: 0; max-width: 46ch; }
.hero__meta { grid-column: 7 / span 3; list-style: none; margin: 0; padding: 0; }
.hero__meta li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.hero__meta li span:first-child { color: var(--mute); }
.hero__cta { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 18px; border: 1px solid var(--line-strong); font: 500 12px var(--mono); letter-spacing: .08em;
  text-transform: uppercase; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--lime); z-index: -1;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--lime); }
.btn:hover::before { transform: none; }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--fill { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.hero__scroll { position: absolute; right: calc(var(--gutter) - 6px); top: 34%; writing-mode: vertical-rl; flex-direction: row; display: flex; align-items: center; gap: 12px; color: var(--mute); }
.hero__scroll i { width: 1px; height: 64px; background: var(--line); position: relative; overflow: hidden; display: block; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lime); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* marquee */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.band__track { display: flex; width: max-content; animation: slide 48s linear infinite; }
.band__track span { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 36px); line-height: 1; padding-right: 36px; white-space: nowrap; display: flex; align-items: center; gap: 36px; }
.band__track span::after { content: ""; width: 10px; height: 10px; border: 1px solid var(--lime); transform: rotate(45deg); }
.band__track em { color: var(--mute); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   02 WORK
   ========================================================================== */
.work { padding: clamp(88px, 10vw, 150px) 0 clamp(72px, 8vw, 120px); }
.work .sec-head h2 { grid-column: 1 / span 9; }
.work .sec-head .lede { grid-column: 10 / span 3; }
.work .h-display .ln2 { display: block; padding-left: 1.4em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(48px, 6vw, 88px) 0 40px; align-items: center; }
.filters__label { color: var(--mute); margin-right: 12px; }
.filter {
  font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 100px; color: var(--mute); transition: all .3s var(--ease);
  display: inline-flex; gap: 8px; align-items: baseline;
}
.filter sup { font-size: 9px; }
.filter:hover { color: var(--ivory); border-color: var(--line-strong); }
.filter[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.filters__count { margin-left: auto; color: var(--mute); }

.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 5vw, 80px) 24px; grid-auto-flow: dense; }
.proj { position: relative; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.proj.is-out { display: none; }
.proj--xl { grid-column: 1 / -1; }
.proj--xl > .proj__link { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.proj--xl .proj__media { grid-column: 1 / span 8; aspect-ratio: 16 / 9; }
.proj--xl .proj__body { grid-column: 9 / span 4; }
.proj--xl.flip .proj__media { grid-column: 5 / span 8; order: 2; }
.proj--xl.flip .proj__body { grid-column: 1 / span 4; order: 1; }
.proj--md { grid-column: span 7; }
.proj--sm { grid-column: span 5; }
.proj--sm.drop { margin-top: clamp(0px, 12vw, 200px); }
.proj--md .proj__media, .proj--sm .proj__media { aspect-ratio: 4 / 3; }

.proj__link { display: block; width: 100%; text-align: left; }
.proj__media {
  position: relative; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden;
  color: var(--ivory);
}
.proj__media svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.proj__link:hover .proj__media svg, .proj__link:focus-visible .proj__media svg { transform: scale(1.035); }
.proj__media::before { /* corner ticks */
  content: ""; position: absolute; inset: 10px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left top / 10px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left top / 1px 10px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 10px 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 1px 10px no-repeat;
}
.proj__tag { position: absolute; top: 18px; left: 22px; z-index: 2; color: var(--mute); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.proj__peek {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 22px;
  background: var(--lime); color: var(--ink); display: flex; justify-content: space-between; gap: 16px;
  font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.proj__link:hover .proj__peek, .proj__link:focus-visible .proj__peek { transform: none; }
.proj__body { padding-top: 22px; }
.proj__num {
  font-family: var(--serif); font-size: clamp(44px, 4.4vw, 72px); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px var(--line-strong); display: block; margin-bottom: 14px; overflow: hidden;
}
.proj__num span { display: inline-block; transition: transform .7s var(--ease), color .5s; }
.proj__link:hover .proj__num span { color: var(--lime); -webkit-text-stroke-color: var(--lime); transform: translateY(-4px); }
.proj__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: .95; margin: 0 0 6px; letter-spacing: -0.01em; }
.proj__title em { color: var(--mute); }
.proj__desc { color: var(--mute); margin: 10px 0 18px; max-width: 46ch; }
.proj__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mute); border-top: 1px solid var(--line); padding-top: 12px; }
.proj__meta b { color: var(--ivory); font-weight: 500; }
.proj__case { display: none; }

/* svg motif colors */
.sv-line { stroke: currentColor; stroke-opacity: .32; fill: none; stroke-width: 1; }
.sv-faint { stroke: currentColor; stroke-opacity: .12; fill: none; stroke-width: 1; }
.sv-lime { stroke: var(--lime); fill: none; stroke-width: 1.4; }
.sv-limef { fill: var(--lime); }
.sv-dot { fill: currentColor; fill-opacity: .55; }
.sv-txt { fill: currentColor; fill-opacity: .5; font: 9px var(--mono); letter-spacing: .08em; }
.sv-big { fill: currentColor; font-family: var(--serif); }
.sv-dash { stroke-dasharray: 3 4; }
.sv-flow { stroke-dasharray: 4 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.sv-pulse { animation: pulse 2.6s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- case study dialog ---------- */
.case {
  position: fixed; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; background: transparent; color: var(--ivory); overflow: hidden;
}
.case::backdrop { background: rgba(8, 10, 9, 0.6); }
.case__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(980px, 100%); background: var(--ink-2);
  border-left: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .7s var(--ease);
}
.case.is-open .case__panel { transform: none; }
.case__bar {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 4vw, 48px); background: rgba(23,27,24,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  color: var(--mute);
}
.case__close { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); padding: 8px 0; }
.case__close i { width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-style: normal; transition: transform .4s var(--ease); }
.case__close:hover i { transform: rotate(90deg); border-color: var(--lime); color: var(--lime); }
.case__body { padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px) 80px; }
.case__num { color: var(--lime); }
.case__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: .88; margin: 14px 0 18px; letter-spacing: -0.02em; }
.case__title em { color: var(--mute); }
.case__lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; max-width: 30ch; margin: 0 0 36px; }
.case__media { border: 1px solid var(--line); background: var(--ink); aspect-ratio: 16/9; margin-bottom: 40px; color: var(--ivory); }
.case__media svg { width: 100%; height: 100%; }
.case__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px 48px; }
.case__specs dl { margin: 0; }
.case__specs div { border-top: 1px solid var(--line); padding: 12px 0; }
.case__specs dt { color: var(--mute); margin-bottom: 4px; }
.case__specs dd { margin: 0; }
.case__notes h3 { font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; font-weight: 400; }
.case__notes ol { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: c; }
.case__notes li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.case__notes li::before { content: counter(c, decimal-leading-zero); font: 12px var(--mono); color: var(--lime); padding-top: 4px; }
.case__notes p { color: var(--mute); max-width: 60ch; }
.case__cta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.case__note { color: var(--mute); border: 1px dashed var(--line-strong); padding: 14px 16px; }
.case__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.case__nav button { text-align: left; max-width: 48%; }
.case__nav button:last-child { text-align: right; margin-left: auto; }
.case__nav span { display: block; color: var(--mute); }
.case__nav strong { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.05; transition: color .3s; }
.case__nav button:hover strong { color: var(--lime); }
body.locked { overflow: hidden; }

/* ==========================================================================
   03 RESEARCH (paper)
   ========================================================================== */
.research { padding: clamp(88px, 9vw, 140px) 0; overflow: hidden; }
.masthead { display: flex; justify-content: space-between; gap: 16px; border-top: 2px solid var(--char); border-bottom: 1px solid var(--char); padding: 10px 0; margin-bottom: clamp(48px, 7vw, 100px); color: var(--char-mute); flex-wrap: wrap; }
.masthead strong { color: var(--char); font-weight: 500; }
.research .sec-head h2 { grid-column: 1 / span 9; }
.research .sec-head .lede { grid-column: 10 / span 3; }
.research .h-display .ln2 { display: block; padding-left: 2.2em; }
.toc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--paper-line); }
.toc a { padding: 18px 0; display: grid; grid-template-columns: 36px 1fr; gap: 8px; border-bottom: 1px solid var(--paper-line); transition: color .3s; }
.toc a:hover { color: var(--olive); }
.toc span { color: var(--char-mute); }
.toc b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }

.paper-entry { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; padding: clamp(64px, 8vw, 120px) 0; border-bottom: 1px solid var(--paper-line); }
.paper-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.pe__side { grid-column: 1 / span 3; }
.pe__main { grid-column: 4 / span 9; }
.pe__no { font-family: var(--serif); font-size: clamp(64px, 6.4vw, 104px); line-height: .8; color: var(--char); }
.pe__no em { color: var(--olive); }
.pe__meta { margin: 28px 0 0; }
.pe__meta div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--paper-line); font-size: 14px; line-height: 1.45; }
.pe__meta dt { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--char-mute); padding-top: 2px; }
.pe__meta dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--char); }
.status--done::before { background: var(--char); }
.pe__kicker { color: var(--olive); }
.pe__title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.2vw, 68px); line-height: .92; margin: 14px 0 26px; letter-spacing: -0.02em; }
.pe__title em { color: var(--olive); }
.pe__abstract { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.3; max-width: 36ch; margin: 0 0 36px; }
.pe__abstract::first-letter { float: left; font-size: 3.4em; line-height: .78; padding: 6px 10px 0 0; color: var(--olive); }
.pe__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.pe__cols p { margin: 0 0 16px; color: #393d37; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2vw, 32px); line-height: 1.12; margin: 40px 0; padding: 26px 0; border-top: 1px solid var(--char); border-bottom: 1px solid var(--paper-line); max-width: 26ch; }
.pull cite { display: block; margin-top: 14px; font: 11px var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--char-mute); }

.expand { border-top: 1px solid var(--char); margin-top: 32px; }
.expand summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.expand summary::-webkit-details-marker { display: none; }
.expand summary i { width: 26px; height: 26px; border: 1px solid var(--char); border-radius: 50%; position: relative; font-style: normal; transition: transform .4s var(--ease), background .3s; }
.expand summary i::before, .expand summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; background: var(--char); transform: translate(-50%, -50%); }
.expand summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.expand[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.expand summary:hover i { background: var(--char); }
.expand summary:hover i::before, .expand summary:hover i::after { background: var(--paper); }
.expand__body { padding: 8px 0 24px; }

/* models comparison */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--paper-line); margin: 8px 0; }
.model { padding: 22px 20px 24px; border-right: 1px solid var(--paper-line); }
.model:last-child { border-right: 0; }
.model .mono { color: var(--char-mute); }
.model h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; margin: 10px 0 12px; }
.model p { font-size: 15px; color: #393d37; margin: 0 0 12px; }
.model .gap { font-size: 14px; border-top: 1px dashed var(--paper-line); padding-top: 10px; color: var(--char); }
.model .gap b { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); display: block; margin-bottom: 2px; }

/* sentinel diagram */
.sentinel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin: 8px 0 0; }
.layers { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; }
.layer-btn {
  width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 16px 18px; border: 1px solid var(--paper-line); background: var(--paper); transition: background .35s var(--ease), color .35s, transform .4s var(--ease), border-color .3s;
}
.layer-btn:nth-child(1) { margin-left: 0; }
.layers li:nth-child(2) .layer-btn { width: calc(100% - 12px); margin-left: 6px; }
.layers li:nth-child(3) .layer-btn { width: calc(100% - 24px); margin-left: 12px; }
.layers li:nth-child(4) .layer-btn { width: calc(100% - 36px); margin-left: 18px; }
.layers li:nth-child(5) .layer-btn { width: calc(100% - 48px); margin-left: 24px; }
.layer-btn .mono { color: var(--char-mute); }
.layer-btn b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.1; }
.layer-btn small { font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--char-mute); }
.layer-btn:hover { border-color: var(--char); }
.layer-btn[aria-selected="true"] { background: var(--char); color: var(--paper); border-color: var(--char); }
.layer-btn[aria-selected="true"] .mono, .layer-btn[aria-selected="true"] small { color: #c9cbbf; }
.layer-btn.is-llm small { color: var(--olive); }
.layer-detail { border: 1px solid var(--char); padding: 24px; position: relative; min-height: 100%; display: flex; flex-direction: column; }
.layer-detail .mono { color: var(--olive); }
.layer-detail h4 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; margin: 12px 0 14px; }
.layer-detail p { margin: 0 0 14px; color: #393d37; font-size: 16px; }
.layer-detail ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--paper-line); display: flex; flex-wrap: wrap; gap: 6px; }
.layer-detail li { font: 11px var(--mono); letter-spacing: .04em; border: 1px solid var(--paper-line); padding: 4px 8px; }
.boundary { margin-top: 16px; display: flex; gap: 10px; align-items: center; color: var(--char-mute); }
.boundary::before { content: ""; flex: 0 0 26px; height: 0; border-top: 1px dashed var(--olive); }

/* water-energy */
.nexus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nexus svg { width: 100%; height: auto; color: var(--char); }
.recs { list-style: none; margin: 0; padding: 0; }
.recs li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 11px 0; border-top: 1px solid var(--paper-line); font-size: 15px; line-height: 1.35; align-items: baseline; }
.recs li .mono { color: var(--olive); }
.recs li small { font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--char-mute); white-space: nowrap; }
.recs li.hl { background: linear-gradient(90deg, rgba(111,138,31,.12), transparent); }
.paper .sv-line { stroke-opacity: .5; }
.paper .sv-txt { fill-opacity: .7; }
.paper .sv-lime { stroke: var(--olive); }
.paper .sv-limef { fill: var(--olive); }

/* ==========================================================================
   04 ABOUT
   ========================================================================== */
.about { padding: clamp(88px, 9vw, 140px) 0; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.about__head { grid-column: 1 / span 6; }
.about__orbit { grid-column: 7 / span 6; grid-row: span 2; position: relative; align-self: start; }
.about__orbit svg { width: 100%; height: auto; color: var(--ivory); overflow: visible; }
.about__copy { grid-column: 1 / span 6; }
.about__copy p { font-size: clamp(16px, 1.15vw, 18px); color: var(--mute); margin: 0 0 22px; max-width: 48ch; }
.about__copy p:first-child { font-family: var(--serif); font-size: clamp(26px, 2.1vw, 34px); line-height: 1.12; color: var(--ivory); max-width: 22ch; }
.about__copy p:first-child em { color: var(--lime); }
.about__copy strong { color: var(--ivory); font-weight: 400; }
.orbit-ring { animation: spin 120s linear infinite; transform-origin: 300px 300px; }
.orbit-ring.r2 { animation-duration: 180s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-node text { font: 10.5px var(--mono); letter-spacing: .08em; fill: var(--ivory); text-transform: uppercase; }
.orbit-node .bg { fill: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; margin-top: clamp(72px, 9vw, 130px); border-top: 1px solid var(--line); }
.fact { padding: 26px 0 30px; border-bottom: 1px solid var(--line); }
.fact h3 { font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; font-weight: 400; display: flex; gap: 10px; }
.fact h3 span { color: var(--lime); }
.fact--edu { grid-column: 1 / span 5; }
.fact--prev { grid-column: 7 / span 6; }
.fact--ach { grid-column: 1 / span 5; }
.fact--skills { grid-column: 7 / span 6; }
.fact--int { grid-column: 1 / span 5; }
.fact--lang { grid-column: 7 / span 6; }
.fact .big { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 36px); line-height: 1; margin: 0 0 10px; }
.fact .big em { color: var(--mute); }
.fact p { margin: 0; color: var(--mute); }
.fact .cg { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.fact .cg b { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; color: var(--lime); }
.ach { list-style: none; margin: 0; padding: 0; }
.ach li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px dashed var(--line); }
.ach li:first-child { border-top: 0; }
.ach b { font-family: var(--serif); font-weight: 400; font-size: 22px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { font: 12px var(--mono); letter-spacing: .04em; padding: 7px 11px; border: 1px solid var(--line); transition: border-color .3s, color .3s; }
.chips li:hover { border-color: var(--lime); color: var(--lime); }
.inline-list { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 25px); line-height: 1.25; margin: 0; }
.inline-list span { color: var(--mute); font-style: italic; }

/* ==========================================================================
   05 EXPERIENCE
   ========================================================================== */
.exp { background: var(--ink-2); padding: clamp(88px, 9vw, 140px) 0; overflow: hidden; }
.exp .sec-head h2 { grid-column: 1 / span 8; }
.exp .sec-head .lede { grid-column: 9 / span 4; }
.timeline { list-style: none; margin: clamp(56px, 7vw, 100px) 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: calc((100% - 24px * 11) / 12 * 3 + 24px * 3 - 12px); top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline .rail { position: absolute; left: calc((100% - 24px * 11) / 12 * 3 + 24px * 3 - 12px); top: 0; width: 1px; background: var(--lime); height: 0; }
.tl { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 24px; padding: 34px 0; border-top: 1px solid var(--line); position: relative; }
.tl::before { content: ""; position: absolute; left: calc((100% - 24px * 11) / 12 * 3 + 24px * 3 - 16px); top: 42px; width: 9px; height: 9px; border: 1px solid var(--lime); background: var(--ink-2); transform: rotate(45deg); }
.tl__when { grid-column: 1 / span 3; color: var(--mute); padding-top: 6px; }
.tl__when b { display: block; color: var(--ivory); font-weight: 400; }
.tl__main { grid-column: 4 / span 6; padding-left: 12px; }
.tl__main h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 36px); line-height: 1; margin: 0 0 6px; transition: color .3s; }
.tl:hover h3 { color: var(--lime); }
.tl__role { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--mute); margin: 0 0 12px; }
.tl__main p { margin: 0; color: var(--mute); max-width: 54ch; }
.tl__where { grid-column: 10 / span 3; text-align: right; color: var(--mute); padding-top: 6px; }
.tl--now .tl__when b::after { content: " ●"; color: var(--lime); font-size: 10px; vertical-align: middle; }

.honours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(72px, 9vw, 120px); }
.honours__head { grid-column: 1 / span 3; }
.honours__head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 36px); line-height: 1; margin: 0 0 12px; }
.honours__head p { color: var(--mute); margin: 0; font-size: 15px; }
.honours__list { grid-column: 4 / span 9; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.honours__list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.honours__list li span { color: var(--mute); font-size: 15px; }
.honours__list li b { font-family: var(--serif); font-weight: 400; font-size: 21px; text-align: right; }

/* ==========================================================================
   06 WRITING (paper)
   ========================================================================== */
.writing { padding: clamp(88px, 9vw, 140px) 0; }
.writing .sec-head h2 { grid-column: 1 / span 8; }
.writing .sec-head .lede { grid-column: 9 / span 4; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; color: var(--char); }
.articles { margin-top: clamp(56px, 7vw, 100px); border-top: 2px solid var(--char); }
.article { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--paper-line); position: relative; }
.article__date { grid-column: 1 / span 2; color: var(--char-mute); padding-top: 12px; }
.article__title { grid-column: 3 / span 6; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 54px); line-height: .95; margin: 0; letter-spacing: -0.015em; transition: color .35s; }
.article__title a::after { content: ""; position: absolute; inset: 0; }
.article__ex { grid-column: 9 / span 4; margin: 0; color: #393d37; padding-top: 10px; font-size: 16px; }
.article__ex .mono { display: inline-flex; gap: 8px; margin-top: 14px; color: var(--char); }
.article:hover .article__title { color: var(--olive); }
.article:hover .article__ex .mono .arr { transform: translate(3px, -3px); }
.article .arr { display: inline-block; transition: transform .4s var(--ease); }
.article:first-child .article__title { font-size: clamp(40px, 4.6vw, 76px); grid-column: 3 / span 7; }
.article:first-child .article__ex { grid-column: 10 / span 3; }
.elsewhere { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(56px, 6vw, 88px); align-items: end; }
.elsewhere p { grid-column: 1 / span 4; margin: 0; color: var(--char-mute); }
.elsewhere ul { grid-column: 5 / span 8; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--char); }
.elsewhere li a { display: flex; justify-content: space-between; padding: 16px 0; margin-right: 16px; border-bottom: 1px solid var(--paper-line); font-family: var(--serif); font-size: 24px; transition: color .3s; }
.elsewhere li a:hover { color: var(--olive); }
.elsewhere .arr { font: 13px var(--mono); padding-top: 6px; transition: transform .4s var(--ease); }
.elsewhere li a:hover .arr { transform: translate(3px, -3px); }

/* ==========================================================================
   07 CONTACT (lime)
   ========================================================================== */
.contact { background: var(--lime); color: var(--ink); padding: clamp(96px, 9vw, 150px) 0 28px; overflow: hidden; }
.contact .sec-label { color: rgba(16,19,17,.6); }
.contact__head { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 136px); line-height: .86; letter-spacing: -0.035em; margin: 0; }
.contact__head em { display: block; padding-left: 8vw; }
.contact__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; margin-top: clamp(48px, 6vw, 90px); align-items: end; }
.contact__copy { grid-column: 1 / span 4; font-size: clamp(16px, 1.15vw, 18px); margin: 0; max-width: 34ch; }
.hello {
  grid-column: 6 / span 7; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--ink); color: var(--ivory); padding: clamp(22px, 2.6vw, 36px) clamp(22px, 3vw, 44px);
  position: relative; overflow: hidden; isolation: isolate;
}
.hello::before { content: ""; position: absolute; inset: 0; background: var(--ivory); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.hello:hover::before { transform: scaleY(1); }
.hello:hover { color: var(--ink); }
.hello__label { font: 500 12px var(--mono); letter-spacing: .1em; }
.hello__mail { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 36px); line-height: 1; word-break: break-all; }
.hello__arr { width: clamp(44px, 4vw, 64px); height: clamp(44px, 4vw, 64px); border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; flex: none; transition: transform .6s var(--ease); }
.hello:hover .hello__arr { transform: rotate(45deg); }
.contact__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; margin-top: clamp(56px, 7vw, 110px); border-top: 1px solid rgba(16,19,17,.25); }
.contact__links a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(16,19,17,.25); }
.contact__links a span:first-child { font-family: var(--serif); font-size: clamp(24px, 2vw, 32px); line-height: 1.1; }
.contact__links a span:last-child { font: 12px var(--mono); padding-top: 8px; transition: transform .4s var(--ease); }
.contact__links a:hover span:last-child { transform: translate(3px, -3px); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(80px, 10vw, 150px); flex-wrap: wrap; }
.foot__mark { font-family: var(--serif); font-size: clamp(56px, 13vw, 200px); line-height: .72; letter-spacing: -0.04em; margin: 0 0 18px; white-space: nowrap; width: 100%; }
.foot__mark em { padding-left: .05em; }
.totop { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.totop i { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-style: normal; transition: transform .5s var(--ease), background .3s, color .3s; }
.totop:hover i { transform: translateY(-4px); background: var(--ink); color: var(--lime); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__status { display: none; }
  .hero__canvas { width: 100%; opacity: .55; }
  .hero__intro { grid-column: 1 / span 7; }
  .hero__meta { grid-column: 8 / span 5; }
  .hero__cta { grid-column: 1 / -1; flex-direction: row; }
  .hero__cta .btn { flex: 1; }
  .work .sec-head h2, .research .sec-head h2, .exp .sec-head h2, .writing .sec-head h2 { grid-column: 1 / -1; }
  .work .sec-head .lede, .research .sec-head .lede, .exp .sec-head .lede, .writing .sec-head .lede { grid-column: 1 / span 8; margin-top: 28px; }
  .proj--xl .proj__media, .proj--xl.flip .proj__media { grid-column: 1 / -1; order: 0; }
  .proj--xl .proj__body, .proj--xl.flip .proj__body { grid-column: 1 / span 9; order: 1; }
  .proj--md, .proj--sm { grid-column: span 6; }
  .proj--sm.drop { margin-top: 0; }
  .pe__side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: end; }
  .pe__meta { margin: 0; }
  .pe__main { grid-column: 1 / -1; }
  .sentinel, .nexus { grid-template-columns: 1fr; }
  .about__head, .about__copy { grid-column: 1 / span 8; }
  .about__orbit { grid-column: 1 / -1; grid-row: auto; max-width: 620px; margin: 0 auto; width: 100%; }
  .article__title, .article:first-child .article__title { grid-column: 3 / span 10; }
  .article__ex, .article:first-child .article__ex { grid-column: 3 / span 8; }
  .honours__head { grid-column: 1 / -1; }
  .honours__list { grid-column: 1 / -1; }
  .elsewhere p { grid-column: 1 / -1; }
  .elsewhere ul { grid-column: 1 / -1; }
  .hello { grid-column: 1 / -1; }
  .contact__copy { grid-column: 1 / span 8; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-right: -10px; }
  .nav__inner { height: 60px; }
  .hero { padding-top: 84px; min-height: 100svh; }
  .hero__canvas { height: 62%; opacity: .7; }
  .hero__canvas::after { background: linear-gradient(to top, var(--ink) 0%, rgba(16,19,17,0) 60%); }
  .hero__top span:nth-child(2) { display: none; }
  .hero__name { font-size: clamp(64px, 23vw, 130px); padding-top: 22vh; }
  .hero__name .l2 { padding-left: 0; }
  .hero__name .tag--a { display: none; }
  .hero__bottom { grid-template-columns: 1fr; margin-top: 32px; gap: 28px; }
  .hero__intro, .hero__meta, .hero__cta { grid-column: 1; }
  .hero__cta { flex-direction: column; }
  .hero__scroll { display: none; }
  .work .h-display .ln2, .research .h-display .ln2 { padding-left: 0; }
  .work .sec-head .lede, .research .sec-head .lede, .exp .sec-head .lede, .writing .sec-head .lede { grid-column: 1 / -1; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; flex: none; }
  .filters__label, .filters__count { display: none; }
  .projects { grid-template-columns: 1fr; gap: 64px; }
  .proj--xl, .proj--md, .proj--sm { grid-column: 1; }
  .proj--xl > .proj__link { display: block; }
  .proj--xl .proj__media, .proj--md .proj__media, .proj--sm .proj__media { aspect-ratio: 4 / 3; }
  .proj__peek { transform: none; position: static; }
  .proj__num { font-size: 56px; }
  .case__grid { grid-template-columns: 1fr; }
  .case__media { aspect-ratio: 4/3; }
  .masthead span:nth-child(2) { display: none; }
  .toc { grid-template-columns: 1fr; gap: 0; }
  .pe__side { grid-template-columns: 1fr; }
  .pe__cols { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .model { border-right: 0; border-bottom: 1px solid var(--paper-line); }
  .model:last-child { border-bottom: 0; }
  .layers li .layer-btn { width: 100% !important; margin-left: 0 !important; }
  .layer-btn { grid-template-columns: 34px 1fr; }
  .layer-btn small { grid-column: 2; }
  .recs li { grid-template-columns: 34px 1fr; }
  .recs li small { grid-column: 2; }
  .about__head, .about__copy { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .fact { grid-column: 1 !important; }
  .timeline::before, .timeline .rail { left: 4px; }
  .tl { grid-template-columns: 1fr; padding: 28px 0 28px 28px; }
  .tl::before { left: 0; top: 34px; }
  .tl__when, .tl__main, .tl__where { grid-column: 1; text-align: left; padding: 0; }
  .tl__where { order: 3; margin-top: 10px; }
  .honours__list { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article__date, .article__title, .article__ex, .article:first-child .article__title, .article:first-child .article__ex { grid-column: 1; padding-top: 0; }
  .elsewhere ul { grid-template-columns: 1fr 1fr; }
  .contact__head em { padding-left: 0; }
  .contact__copy { grid-column: 1 / -1; }
  .hello { flex-wrap: wrap; }
  .hello__label { width: 100%; }
  .hello__mail { font-size: clamp(22px, 7vw, 34px); }
  .contact__links { grid-template-columns: 1fr; }
  .foot__mark { font-size: 20.5vw; }
}


/* ==========================================================================
   v2 — screenshots, craft lab, photos
   ========================================================================== */

/* screenshot frames in project cards */
.proj__art { width: 100%; height: 100%; }
.shot { display: flex; flex-direction: column; padding: 46px 22px 0; }
.shot__bar {
  display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; flex: none;
  background: var(--ink-3); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0;
}
.shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.shot__bar span { margin-left: 10px; font: 10px var(--mono); letter-spacing: .06em; color: var(--mute); }
.shot img {
  width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top center; border: 1px solid var(--line);
  filter: saturate(.75) brightness(.92); transition: filter .8s var(--ease), transform 1.2s var(--ease); transform-origin: top center;
}
.proj__link:hover .shot img, .proj__link:focus-visible .shot img { filter: none; transform: scale(1.02); }
.case__media .shot { padding: 18px 18px 0; height: 100%; }
.case__media .shot img { filter: none; }

/* photo reveal */
.reveal-img { margin: 0; position: relative; overflow: hidden; }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease), filter .8s var(--ease); }
.js .reveal-img img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease-in-out), transform 1.6s var(--ease), filter .8s var(--ease); }
.js .reveal-img.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .reveal-img figcaption { opacity: 0; transition: opacity .6s var(--ease) .9s; }
.js .reveal-img.in figcaption { opacity: 1; }
.reveal-img figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 10.5px; color: var(--ivory); background: linear-gradient(to top, rgba(16,19,17,.75), transparent); }

/* ---------- craft ---------- */
.craft { background: var(--ink-2); padding: clamp(88px, 9vw, 140px) 0; overflow: hidden; }
.craft .sec-head h2 { grid-column: 1 / span 8; }
.craft .sec-head .lede { grid-column: 9 / span 4; }
.craft .h-display .ln2 { display: block; padding-left: 1.6em; }
.disciplines { list-style: none; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.disc { padding: 26px 24px 30px 0; border-right: 1px solid var(--line); position: relative; }
.disc:last-child { border-right: 0; }
.disc + .disc { padding-left: 0; }
.disc__no { color: var(--lime); }
.disc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.5vw, 40px); line-height: .95; margin: 14px 0 16px; }
.disc h3 em { color: var(--mute); }
.disc p { color: var(--mute); margin: 0 0 18px; max-width: 38ch; }
.disc__tools { color: var(--ivory) !important; border-top: 1px dashed var(--line); padding-top: 14px; }
.disc__seen a { color: var(--ivory); border-bottom: 1px solid var(--line-strong); transition: color .3s, border-color .3s; }
.disc__seen a:hover { color: var(--lime); border-color: var(--lime); }

.lab { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 24px; margin-top: clamp(64px, 8vw, 120px); }
.lab > * { border: 1px solid var(--line); background: var(--ink); padding: 22px; position: relative; }
.lab .mono { color: var(--mute); }
.lab__phone { grid-column: 1 / span 5; grid-row: span 2; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 40px 22px 22px;
  background: radial-gradient(circle at 50% 40%, rgba(201,243,106,.07), transparent 60%), var(--ink); }
.lab__phone figcaption { align-self: stretch; line-height: 1.6; }
.lab__phone .hint { color: var(--lime); display: block; }
.lab__stats { grid-column: 1 / -1; display: flex; flex-direction: column; }
.lab__type { grid-column: 1 / span 7; }
.lab__motion { grid-column: 8 / span 5; display: flex; flex-direction: column; }
.lab__head { display: flex; justify-content: space-between; }
.live { display: inline-flex; align-items: center; gap: 10px; color: var(--lime) !important; }

/* phone */
.phone { width: min(300px, 100%); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 11px; background: #0a0c0b; position: relative;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 7px #1a1e1b, 0 40px 80px -20px rgba(0,0,0,.6); }
.phone__island { position: absolute; top: 20px; left: 50%; width: 88px; height: 25px; margin-left: -44px; background: #000; border-radius: 20px; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f4f2ea; color: #161916; padding: 50px 16px 16px; display: flex; flex-direction: column; font-family: var(--sans); }
.ph-status { position: absolute; top: 18px; left: 26px; right: 26px; display: flex; justify-content: space-between; font-size: 11px; color: #161916 !important; letter-spacing: 0; font-weight: 500; }
.ph-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 6px 0 14px; }
.ph-head .mono { font-size: 10px; color: #6b6f66 !important; }
.ph-head h4 { margin: 2px 0 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: -.01em; }
.ph-ring { position: relative; width: 44px; height: 44px; }
.ph-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke: #dcd9cd; stroke-width: 4; }
.ph-ring .ph-ring__val { stroke: #161916; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset .7s var(--ease); }
.ph-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 10px var(--mono); }
.ph-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chore { width: 100%; display: grid; grid-template-columns: 22px 1fr 28px; align-items: center; gap: 10px; text-align: left; padding: 11px 10px; border-radius: 14px; background: #fff; color: #161916;
  box-shadow: 0 1px 0 rgba(0,0,0,.04); transition: transform .35s var(--ease), background .4s, opacity .4s; }
.chore:active { transform: scale(.97); }
.chore b { display: block; font-weight: 500; font-size: 13px; line-height: 1.25; position: relative; width: fit-content; }
.chore b::after { content: ""; position: absolute; left: 0; top: 52%; height: 1.5px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.chore small { font-size: 11px; color: #7a7e74; }
.chk { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #b9b6a9; position: relative; transition: background .35s var(--ease), border-color .35s, transform .45s var(--ease); }
.chk::after { content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px; border: solid #161916; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease) .05s; }
.chore[aria-pressed="true"] { background: #eceadf; }
.chore[aria-pressed="true"] .chk { background: var(--lime); border-color: var(--lime); transform: scale(1.08); }
.chore[aria-pressed="true"] .chk::after { transform: rotate(45deg) scale(1); }
.chore[aria-pressed="true"] b { color: #7a7e74; }
.chore[aria-pressed="true"] b::after { transform: scaleX(1); }
.who { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 11px var(--sans); color: #fff; transition: transform .5s var(--ease), background .4s; }
.who[data-n="0"] { background: #161916; } .who[data-n="1"] { background: #6f8a1f; } .who[data-n="2"] { background: #8a6f4d; } .who[data-n="3"] { background: #4d6a8a; }
.who.spin { transform: rotateY(180deg) scale(.8); }
.ph-rotate { margin-top: auto; height: 46px; border-radius: 23px; background: #161916; color: #f4f2ea; font: 500 13px var(--sans); display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .3s var(--ease); }
.ph-rotate:active { transform: scale(.97); }
.ph-rotate span { display: inline-block; transition: transform .6s var(--ease); }
.ph-rotate.go span { transform: rotate(360deg); }
.ph-toast { position: absolute; left: 50%; bottom: 82px; transform: translate(-50%, 12px); background: #161916; color: #f4f2ea !important; font-size: 10px; padding: 8px 12px; border-radius: 20px; white-space: nowrap; opacity: 0; transition: opacity .3s, transform .45s var(--ease); pointer-events: none; }
.ph-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ph-home { width: 110px; height: 4px; border-radius: 2px; background: #161916; margin: 12px auto 0; flex: none; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: auto 0 0; padding-top: 28px; }
.stats > div { padding: 16px 16px 4px 0; border-top: 1px solid var(--line); }
.stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dd { margin: 10px 0 0; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3vw, 50px); line-height: .9; color: var(--ivory); font-variant-numeric: tabular-nums; }
.stats small { display: block; margin-top: 8px; font-size: 12px; color: var(--mute); }
.lab__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.toggle { display: inline-flex; align-items: center; gap: 12px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.toggle__sw { width: 36px; height: 20px; border-radius: 10px; border: 1px solid var(--line-strong); position: relative; transition: background .3s, border-color .3s; }
.toggle__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); transition: transform .4s var(--ease), background .3s; }
.toggle[aria-pressed="true"] .toggle__sw { background: var(--lime); border-color: var(--lime); }
.toggle[aria-pressed="true"] .toggle__sw::after { transform: translateX(16px); background: var(--ink); }
kbd { font: 11px var(--mono); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; color: var(--mute); }

/* specimen */
.specimen { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 16px; border-top: 1px solid var(--line); }
.spec { padding: 14px 10px 0 0; }
.spec + .spec { padding-left: 12px; border-left: 1px solid var(--line); }
.spec b { display: block; font-size: 52px; line-height: 1; font-weight: 400; margin-bottom: 8px; color: var(--ivory); }
.spec--serif b { font-family: var(--serif); font-style: italic; color: var(--lime); }
.spec--sans b { font-family: var(--sans); font-weight: 500; letter-spacing: -.03em; }
.spec--mono b { font-family: var(--mono); font-size: 44px; }
.spec span { font-size: 10px !important; line-height: 1.5; display: block; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sw { text-align: left; }
.sw i { display: block; height: 46px; background: var(--c); border: 1px solid var(--line-strong); margin-bottom: 8px; transition: transform .4s var(--ease); }
.sw:hover i { transform: translateY(-3px); }
.sw span { font-size: 10px !important; line-height: 1.45; display: block; }
.sw.copied span { color: var(--lime) !important; }
.sw-note { margin: 12px 0 0; font-size: 10.5px !important; }

/* motion */
.curve { width: 100%; height: auto; margin: 14px 0 8px; color: var(--ivory); }
.curve__path { fill: none; stroke: var(--lime); stroke-width: 2; }
.curve__dot { fill: var(--lime); }
.motion-demo__track { display: block; height: 22px; border-bottom: 1px solid var(--line); position: relative; }
.motion-demo__ball { position: absolute; left: 0; bottom: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); }
.lab__motion .lab__actions { margin-top: auto; }
.lab__motion code { font-size: 10.5px; color: var(--ivory) !important; }
.btn--sm { padding: 9px 12px; gap: 10px; font-size: 11px; }

/* layout-grid overlay */
.grid-overlay { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.grid-overlay.on { opacity: 1; }
.grid-overlay .wrap { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.grid-overlay span { background: rgba(201,243,106,.07); border-left: 1px solid rgba(201,243,106,.35); border-right: 1px solid rgba(201,243,106,.35); }
.grid-overlay .grid-label { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--lime); color: var(--ink); font: 500 11px var(--mono); letter-spacing: .06em; padding: 7px 12px; text-transform: uppercase; border: 0; }

/* research field photos */
.field { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; margin: 8px 0 32px; align-items: end; }
.field figure { aspect-ratio: 3 / 4; }
.field .field__b { aspect-ratio: 4 / 3; }
.field__note { grid-column: 1 / -1; margin: 0; color: var(--char-mute); }

/* about portrait */
.about__portrait { grid-column: 8 / span 5; grid-row: span 2; align-self: start; aspect-ratio: 4 / 5; position: relative; }
.about__portrait img { object-position: 50% 30%; }
.about__portrait::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(240,239,231,.25); pointer-events: none; }

/* toolset */
.toolset { margin: 0; }
.toolset > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.toolset > div:first-child { border-top: 0; padding-top: 0; }
.toolset dt { color: var(--mute); }
.toolset dd { margin: 0; }

/* honours photo */
.honours__photo { margin-top: 28px; aspect-ratio: 1; max-width: 320px; }

@media (max-width: 1100px) {
  .craft .sec-head h2 { grid-column: 1 / -1; }
  .craft .sec-head .lede { grid-column: 1 / span 8; margin-top: 28px; }
  .disciplines { grid-template-columns: 1fr; gap: 0; }
  .disc, .disc + .disc { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .lab__type, .lab__motion { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .about__portrait { grid-column: 1 / span 7; grid-row: auto; }
  .honours__photo { max-width: 260px; }
}
@media (max-width: 760px) {
  .craft .h-display .ln2 { padding-left: 0; }
  .craft .sec-head .lede { grid-column: 1 / -1; }
  .lab { grid-template-columns: 1fr; }
  .lab > * { grid-column: 1 !important; grid-row: auto !important; }
  .stats b { font-size: 40px; }
  .field { grid-template-columns: 1fr; }
  .about__portrait { grid-column: 1 / -1; }
  .shot { padding: 40px 12px 0; }
  .specimen .spec b { font-size: 40px; }
}


/* ==========================================================================
   v3 — featured showcases, index, papers, smooth scroll
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.work { padding-bottom: 0; }
.feature { padding: clamp(72px, 9vw, 140px) 0; position: relative; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.feature__no { color: var(--lime); }
.feature__title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 96px); line-height: .9; letter-spacing: -.02em; margin: 14px 0 18px; }
.feature__lede { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.3; color: var(--ivory); max-width: 30ch; margin: 0 0 26px; }
.feature__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 32px; margin: 0 0 28px; }
.feature__meta dt { color: var(--mute); margin-bottom: 4px; }
.feature__meta dd { margin: 0; color: var(--ivory); text-transform: none; letter-spacing: .02em; }
.feature__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* web feature */
.feature--web .feature__intro { grid-column: 1 / span 4; position: sticky; top: 110px; }
.browser { grid-column: 5 / span 8; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--ink-3);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.7); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; transition: transform 1.2s var(--ease); }
.browser:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser__bar span { margin: 0 auto; padding: 4px 40px; border-radius: 6px; background: var(--ink); font: 11px var(--mono); color: var(--mute); transform: translateX(-20px); }
.browser__view { aspect-ratio: 1800 / 1022; overflow: hidden; }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.browser:hover .browser__view img { transform: scale(1.02); }

/* ios feature: sticky device + scrolling steps */
.feature--ios .feature__stage { grid-column: 1 / span 6; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.feature--ios .feature__steps { grid-column: 8 / span 5; }
.feature--flip .feature__stage { grid-column: 7 / span 6; order: 2; }
.feature--flip .feature__steps { grid-column: 1 / span 5; order: 1; }
.feature--ios .feature__intro { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step .mono { color: var(--lime); }
.step h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 44px); line-height: 1; margin: 14px 0 14px; letter-spacing: -.01em; }
.step p { color: var(--mute); max-width: 40ch; margin: 0 0 22px; }
.step .btn { align-self: flex-start; }
.step__fig { max-width: 440px; margin: 4px 0 18px; border-radius: 10px; overflow: hidden; background: #fff; }
.step__fig img { width: 100%; display: block; }
.step__fig figcaption { background: var(--ink-2); color: var(--mute); padding: 10px 12px; font-size: 10.5px; }
.step__note { font-size: 11px !important; color: var(--mute) !important; border-left: 1px solid var(--lime); padding-left: 12px; }

.device { width: auto; height: min(74vh, 640px); aspect-ratio: 318 / 690; position: relative; filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
.device::before { /* glow */ content: ""; position: absolute; inset: 10% -30%; background: radial-gradient(closest-side, rgba(201,243,106,.13), transparent); z-index: -1; }
.device__frame { position: absolute; inset: 0; border-radius: 14% / 6.6%; padding: 3.4%; background: linear-gradient(145deg, #2a2f2b, #0b0d0c 40%, #1c201d); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 0 0 1px #000; }
.device__island { position: absolute; top: 4.6%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 4; }
.device__screen { position: relative; width: 100%; height: 100%; border-radius: 11.5% / 5.4%; overflow: hidden; background: #f6f6f4; isolation: isolate; }
.scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transform: translateX(100%); transition: transform .75s cubic-bezier(.32,.72,0,1), filter .75s cubic-bezier(.32,.72,0,1); z-index: 1; }
.scr.is-active { transform: none; z-index: 2; box-shadow: -12px 0 30px rgba(0,0,0,.12); }
.scr.is-past { transform: translateX(-28%); filter: brightness(.82); z-index: 1; }
.dots { display: flex; gap: 8px; }
.dots__b { width: 7px; height: 7px; border-radius: 4px; background: var(--line-strong); transition: width .5s var(--ease), background .4s; }
.dots__b.is-active { width: 26px; background: var(--lime); }
.strip { display: none; }

/* index */
.index-wrap { padding-top: clamp(72px, 9vw, 140px); padding-bottom: clamp(88px, 10vw, 150px); border-top: 1px solid var(--line); }
.index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.index-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 54px); line-height: 1; margin: 0; }
.index-title em { color: var(--lime); }
.index-head .filters { margin: 0; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.row { border-bottom: 1px solid var(--line); transition: opacity .4s var(--ease); }
.row.is-out { display: none; }
.row a { display: grid; grid-template-columns: 56px minmax(0, 3.2fr) minmax(0, 3fr) minmax(0, 2fr) 60px 24px; align-items: center; gap: 16px; padding: 22px 0; position: relative; }
.row a::before { content: ""; position: absolute; inset: 0 -14px; background: var(--ivory); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; border-radius: 2px; }
.row a { isolation: isolate; transition: color .35s var(--ease), padding .5s var(--ease); }
.row a:hover, .row a:focus-visible { color: var(--ink); padding-left: 10px; }
.row a:hover::before, .row a:focus-visible::before { transform: scaleY(1); }
.row__no { color: var(--mute); }
.row__t { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; }
.row__d { color: var(--mute); font-size: 15px; }
.row__c, .row__y { color: var(--mute); }
.row a:hover .row__no, .row a:hover .row__d, .row a:hover .row__c, .row a:hover .row__y { color: #3c4039; }
.row__a { transition: transform .5s var(--ease); }
.row a:hover .row__a { transform: translateX(4px) rotate(-45deg); }
.filters__count { margin-left: 12px; }

.preview { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; width: 300px; height: 220px; margin: -110px 0 0 30px; opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease), transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease); }
.preview.on { opacity: 1; transform: scale(1); }
.preview__in { width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); color: var(--ivory); }
.preview__in img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.preview__in svg { width: 100%; height: 100%; }
.preview.is-phone { width: 150px; height: 322px; margin-top: -161px; }
.preview.is-phone .preview__in { border-radius: 22px; border: 5px solid #111; }
.preview.is-paper { width: 210px; height: 290px; margin-top: -145px; }
.preview.is-paper .preview__in { border-radius: 2px; background: #fff; }

/* case panel galleries */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 40px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery .g-phone { flex: none; width: 210px; aspect-ratio: 318/690; border-radius: 30px; padding: 7px; background: #0b0d0c; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); scroll-snap-align: start; }
.gallery .g-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; display: block; }
.gallery .g-paper { flex: none; width: 260px; aspect-ratio: 1/1.414; background: #fff; scroll-snap-align: start; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.gallery .g-paper img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.gallery .g-wide { flex: none; width: min(560px, 85%); scroll-snap-align: start; border-radius: 10px; overflow: hidden; background: #fff; }
.gallery .g-wide img { width: 100%; display: block; }

/* research paper stacks */
.papers { position: relative; margin: 26px 0 8px; width: min(100%, 250px); aspect-ratio: 1 / 1.3; cursor: pointer; outline-offset: 8px; }
.pg { position: absolute; width: 78%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 40px -18px rgba(24,27,24,.45); transition: transform .9s var(--ease); }
.pg--b { top: 0; left: 22%; transform: rotate(5deg); }
.pg--f { top: 6%; left: 0; transform: rotate(-3deg); }
.papers:hover .pg--b, .papers:focus-visible .pg--b { transform: rotate(9deg) translate(26px, -6px); }
.papers:hover .pg--f, .papers:focus-visible .pg--f { transform: rotate(-6deg) translate(-14px, 6px); }
.pe__no { font-size: clamp(44px, 4vw, 64px) !important; }

@media (max-width: 1100px) {
  .feature--web .feature__intro { grid-column: 1 / -1; position: static; }
  .browser { grid-column: 1 / -1; transform: none; }
  .feature--ios .feature__stage, .feature--flip .feature__stage { grid-column: 1 / span 6; order: 0; }
  .feature--ios .feature__steps, .feature--flip .feature__steps { grid-column: 7 / span 6; order: 1; }
  .row a { grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) 24px; }
  .row__c, .row__y { display: none; }
}
@media (max-width: 760px) {
  .feature__grid { display: block; }
  .feature--ios .feature__stage { display: none; }
  .feature--ios .feature__intro, .step { min-height: 0; opacity: 1; padding: 0 0 36px; }
  .strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)) 36px; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip__item { flex: none; width: 62%; margin: 0; aspect-ratio: 318 / 690; border-radius: 26px; padding: 6px; background: #0b0d0c; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); scroll-snap-align: center; }
  .strip__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 21px; display: block; }
  .feature--ios .feature__grid { display: flex; flex-direction: column; }
  .feature--ios .strip { order: 2; }
  .feature--ios .feature__steps { order: 1; display: contents; }
  .feature--ios .feature__intro { order: 1; }
  .feature--ios .step { order: 3; }
  .feature__meta { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .row a { grid-template-columns: 34px minmax(0, 1fr) 20px; padding: 18px 0; }
  .row__d { display: none; }
  .preview { display: none; }
  .papers { width: 200px; }
  .index-head .filters { width: 100%; }
}


/* ==========================================================================
   v4 — Evenly live app, paper covers, Barça
   ========================================================================== */
/* Evenly app — authored at 390×844, scaled to the device */
.ev { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--s, .75)); transform-origin: 0 0;
  background: #fbfbfa; color: #2b2d2f; font-family: "Nunito", system-ui, sans-serif; font-size: 15px; line-height: 1.35; overflow: hidden; -webkit-font-smoothing: antialiased; }
.ev h5, .ev h6, .ev b, .ev strong { font-family: "Poppins", system-ui, sans-serif; }
.ev__status { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 40px; z-index: 5; color: #111; }
.ev__status b { font: 600 16px/1 -apple-system, "SF Pro Text", "Inter", sans-serif; letter-spacing: -.01em; }
.ev__icons { display: flex; gap: 6px; align-items: center; } .ev__icons svg { fill: currentColor; }
.ev__views { position: absolute; top: 54px; left: 0; right: 0; bottom: 84px; overflow: hidden; }
.ev__view { padding: 18px 22px 0; background: #fbfbfa; height: 100%; object-fit: initial; }
.ev__view h5 { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.ev__view h6 { font-size: 18px; font-weight: 600; margin: 0; }
.ev__view p { margin: 2px 0 0; color: #6d7378; font-size: 14px; }
.ev__hello { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 20px; }
.ev__av { width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 600 15px "Poppins", sans-serif; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #e7ebe8; flex: none; }
.ev__av--lg { width: 46px; height: 46px; font-size: 18px; }
.ev__turn { display: grid; grid-template-columns: 1fr 104px; gap: 10px; background: #E3F0FB; border-radius: 26px; padding: 22px 0 22px 22px; overflow: hidden; margin-bottom: 24px; }
.ev__turn h6 { font-size: 19px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.ev__turn p { font-size: 13px; line-height: 1.45; }
.ev__pill { margin-top: 16px; background: #fff; color: #7fb08f; font: 700 13px "Nunito", sans-serif; padding: 10px 16px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.06); display: inline-flex; gap: 8px; cursor: pointer; }
.ev__plant { width: 104px; height: 140px; border-radius: 4px 0 0 4px; align-self: center; }
.ev__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.ev__row span { color: #8DBF9E; font-weight: 600; font-size: 13px; }
.ev__balance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 24px; }
.ev__balance > div { background: #fff; border: 1px solid #eef0ee; border-radius: 18px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.ev__balance b { font: 500 11.5px "Nunito", sans-serif; }
.ev__balance i { width: 70%; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--k) var(--p), #eef0ee var(--p)); }
.ev__balance small { font-size: 10.5px; color: #7d8388; }
.ev__h { margin: 4px 0 12px !important; }
.ev__next { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid #eef0ee; border-radius: 20px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.ev__next b, .ev__chore b, .ev__timeline b, .ev__bills b { display: block; font-weight: 600; font-size: 14.5px; }
.ev__next small, .ev__chore small, .ev__timeline small, .ev__bills small { color: #7d8388; font-size: 12px; }
.ev__chev { color: #9aa0a6; font-size: 22px; }
.ev__ico { width: 40px; height: 40px; border-radius: 13px; background: var(--bg, #eef0ee); display: grid; place-items: center; font-size: 17px; color: #4b5257; flex: none; }
.ev__ico--w { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.ev__title { margin: 6px 0 18px; }
.ev__seg { display: grid; grid-template-columns: 1fr 1fr; background: #eff1ef; border-radius: 18px; padding: 4px; margin-bottom: 18px; }
.ev__seg span { text-align: center; padding: 9px 0; border-radius: 14px; font-weight: 600; font-size: 13.5px; color: #6d7378; }
.ev__seg .on { background: #fff; color: #2b2d2f; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ev__chores { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ev__chore { width: 100%; display: grid; grid-template-columns: 40px 1fr 26px; gap: 14px; align-items: center; text-align: left; background: #fff; border: 1px solid #eef0ee; border-radius: 22px; padding: 14px 16px; box-shadow: 0 3px 10px rgba(0,0,0,.04); color: inherit; font: inherit; cursor: pointer; transition: background .35s, transform .3s; }
.ev__chore:active { transform: scale(.98); }
.ev__chore em { font-style: normal; background: #e8f3ec; color: #6aa27d; font-size: 10px; padding: 2px 7px; border-radius: 8px; margin-left: 6px; font-weight: 700; }
.ev__chk { width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid #a9aeb2; position: relative; transition: background .3s, border-color .3s; }
.ev__chk::after { content: ""; position: absolute; left: 7.5px; top: 3.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.ev__chore[aria-pressed="true"] { background: #f6f7f6; }
.ev__chore[aria-pressed="true"] b { text-decoration: line-through; color: #8a9095; }
.ev__chore[aria-pressed="true"] .ev__chk { background: #8DBF9E; border-color: #8DBF9E; }
.ev__chore[aria-pressed="true"] .ev__chk::after { transform: rotate(45deg) scale(1); }
.ev__fab { position: absolute; right: 22px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: #8DBF9E; color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 18px rgba(141,191,158,.5); }
.ev__days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-bottom: 20px; }
.ev__days span { background: #fff; border: 1px solid #eef0ee; border-radius: 14px; text-align: center; padding: 8px 0; font: 600 17px "Poppins", sans-serif; }
.ev__days small { display: block; font: 700 9px "Nunito", sans-serif; color: #8a9095; letter-spacing: .04em; }
.ev__days .on { background: #8DBF9E; color: #fff; border-color: #8DBF9E; box-shadow: 0 6px 14px rgba(141,191,158,.45); } .ev__days .on small { color: #eaf5ee; }
.ev__timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.ev__timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 30px; width: 1.5px; background: #dfe7e1; }
.ev__timeline li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; background: var(--bg); border-radius: 20px; padding: 14px; }
.ev__timeline li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #8DBF9E; transform: translateY(-50%); }
.ev__bills { display: flex; flex-direction: column; gap: 14px; }
.ev__bills > div { background: var(--bg); border-radius: 24px; padding: 16px 18px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.ev__bills strong { font-size: 17px; font-weight: 700; text-align: right; }
.ev__bills strong small { display: block; font: 600 11px "Nunito", sans-serif; color: #7d8388; }
.ev__bills p { grid-column: 1 / -1; font-size: 12px !important; margin: 4px 0 0 !important; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.05); }
.ev__bills p b { display: inline; font-size: 12px; }
.ev__card { background: #fff; border: 1px solid #eef0ee; border-radius: 26px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.ev__card > b { display: block; font-size: 15px; font-weight: 600; }
.ev__card > small { display: block; color: #7d8388; font-size: 12px; margin-top: 2px; }
.ev__donut { display: block; width: 120px; height: 120px; margin: 8px auto 6px; }
.ev__donut text { font: 600 17px "Poppins", sans-serif; fill: #7fb08f; }
.ev__legend { display: flex; justify-content: center; gap: 12px; font-size: 11px; color: #5f666b; }
.ev__legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--k); margin-right: 5px; }
.ev__chart { width: 100%; height: auto; margin-top: 10px; }
.ev__tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px 26px; background: rgba(255,255,255,.94); border-top: 1px solid #edf0ee; z-index: 4; }
.ev__tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 10.5px "Nunito", sans-serif; color: #7d8388; background: none; border: 0; cursor: pointer; }
.ev__tabs button[disabled] { cursor: default; }
.ev__tabs svg { width: 34px; height: 30px; padding: 4px 6px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; border-radius: 12px; transition: background .3s; }
.ev__tabs .on { color: #7fb08f; } .ev__tabs .on svg { background: #e8f3ec; }
.ev__homebar { position: absolute; bottom: 8px; left: 50%; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111; z-index: 6; }
.feature--app .device__screen { background: #fbfbfa; }
.feature--app .device { cursor: default; }

/* designed paper covers */
.cover { container-type: inline-size; display: flex; flex-direction: column; padding: 7% 7% 6%; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 22px 44px -18px rgba(24,27,24,.5); }
.cover__top, .cover__by { display: flex; justify-content: space-between; font: 500 3.6cqw/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.cover__by { margin-top: auto; padding-top: 5cqw; border-top: 1px solid currentColor; }
.cover__art { width: 72%; margin: 9cqw auto 6cqw; overflow: visible; }
.cover__art circle, .cover__art rect { fill: none; stroke: currentColor; stroke-width: 1.2; }
.cover__art text { font: 9px var(--mono); fill: currentColor; letter-spacing: .1em; }
.cover__art .dash { stroke: currentColor; stroke-dasharray: 3 4; fill: none; }
.cover__title { font: 400 15.5cqw/.86 var(--serif); letter-spacing: -.02em; margin: 0 0 4cqw; }
.cover__sub { font: 4.6cqw/1.3 var(--serif); font-style: italic; margin: 0; opacity: .8; max-width: 86%; }
.cover--dwl { background: #171b18; color: #f0efe7; }
.cover--dwl .cover__title em { color: var(--lime); }
.cover--dwl .cover__art .hl { fill: var(--lime); stroke: none; }
.cover--dwl .cover__art circle:not(.hl) { stroke: rgba(240,239,231,.55); }
.cover--sentinel { background: #f7f6f0; color: #181b18; }
.cover--sentinel .cover__title em { color: var(--olive); }
.cover--sentinel .cover__art .hl { fill: var(--olive); stroke: var(--olive); }
.cover--green { background: #6f8a1f; color: #f4f3ea; }
.cover--green .cover__title em { color: #e2f5b5; }
.cover--green .cover__art .hl { stroke: #e2f5b5; stroke-width: 1.6; }
.pg.cover { height: auto; aspect-ratio: 1 / 1.414; }
.preview__in .cover { position: static; width: 100%; height: 100%; transform: none; box-shadow: none; padding: 9% 9% 8%; }
.gallery .g-cover { flex: none; width: 260px; scroll-snap-align: start; }
.gallery .g-cover .cover { position: static; transform: none; width: 100%; padding: 9% 9% 8%; }

/* Barça */
.barca { background: #0e1a3b; color: #f4f1e8; padding: clamp(88px, 9vw, 140px) 0; position: relative; overflow: hidden; }
.barca::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(165,0,68,.0) 0 140px, rgba(165,0,68,.12) 140px 280px); mask-image: linear-gradient(to bottom, #000, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.barca .wrap { position: relative; }
.barca .sec-label { color: #edbb00; }
.barca .h-display em { color: #edbb00; }
.barca .lede { color: #b9bfd3; }
.barca .sec-head h2 { grid-column: 1 / span 8; }
.barca .sec-head .lede { grid-column: 9 / span 4; }
.barca .h-display .ln2 { display: block; padding-left: 1.2em; }
.barca__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; margin-top: clamp(48px, 6vw, 88px); }
.bcard { background: rgba(255,255,255,.04); border: 1px solid rgba(244,241,232,.14); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.bcard__media { display: block; position: relative; background: #0a1230; }
.bcard__media .browser__bar { border-color: rgba(244,241,232,.12); background: #121f45; }
.bcard__media .browser__bar span { background: #0a1230; }
.bcard__media img { width: 100%; display: block; transition: transform 1.2s var(--ease); }
.bcard--lab .bcard__media:hover img { transform: scale(1.02); }
.bcard__media--deck { aspect-ratio: 1 / .95; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1b2c5e, #0a1230 70%); }
.deck { position: absolute; width: 80%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; box-shadow: 0 24px 48px -18px rgba(0,0,0,.7); transition: transform 1s var(--ease); }
.deck--b { right: 4%; top: 8%; transform: rotate(4deg); }
.deck--f { left: 4%; bottom: 8%; transform: rotate(-3deg); }
.bcard__media--deck:hover .deck--b { transform: rotate(7deg) translate(14px, -8px); }
.bcard__media--deck:hover .deck--f { transform: rotate(-5deg) translate(-10px, 6px); }
.bcard__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.bcard__body .mono { color: #edbb00; }
.bcard__body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3vw, 48px); line-height: 1; margin: 12px 0 12px; }
.bcard__body p { color: #b9bfd3; margin: 0 0 20px; max-width: 52ch; }
.bcard__body .feature__cta { margin-top: auto; }
.bcard .btn { border-color: rgba(244,241,232,.3); }
.bcard .btn::before { background: #edbb00; }
.bcard .btn--fill { background: #f4f1e8; color: #0e1a3b; border-color: #f4f1e8; }
.bstat { margin: 0 0 22px; border-top: 1px solid rgba(244,241,232,.14); padding-top: 14px; }
.bstat dt { color: #b9bfd3; }
.bstat dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bstat b { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; color: #f4f1e8; }
.bstat small { color: #b9bfd3; font-size: 13px; }
.tl__link { color: var(--lime); border-bottom: 1px solid currentColor; }

@media (max-width: 1100px) {
  .barca .sec-head h2 { grid-column: 1 / -1; }
  .barca .sec-head .lede { grid-column: 1 / span 8; margin-top: 28px; }
  .barca__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .feature--app .feature__stage { display: flex; position: static; height: auto; order: 2; margin: 0 0 40px; }
  .feature--app .device { height: 600px; max-height: 80vh; }
  .feature--app .step { display: none; }
  .barca .h-display .ln2 { padding-left: 0; }
  .barca .sec-head .lede { grid-column: 1 / -1; }
  .bstat b { font-size: 40px; }
}


/* ==========================================================================
   v5 — calmer, elegant scale (overrides)
   ========================================================================== */
:root { --max: 1200px; }
body { font-size: 15.5px; }
.h-display { font-size: clamp(32px, 3.9vw, 60px); line-height: .98; letter-spacing: -0.015em; }
.lede { font-size: clamp(15px, 1.05vw, 16.5px); }
.sec-label { margin-bottom: 20px; font-size: 11px; }
.mono { font-size: 11px; }

.hero__name { font-size: clamp(56px, 7.6vw, 128px); }
.hero__intro h1 { font-size: clamp(21px, 1.6vw, 26px); }
.hero__intro p { font-size: 15px; }
.band__track span { font-size: clamp(18px, 1.8vw, 26px); }
.band { padding: 14px 0; }

.work, .craft, .research, .about, .exp, .writing, .barca { padding-top: clamp(72px, 7vw, 112px); padding-bottom: clamp(72px, 7vw, 112px); }
.work { padding-bottom: 0; }
.feature { padding: clamp(56px, 6vw, 96px) 0; }
.feature__title { font-size: clamp(38px, 3.6vw, 58px); }
.feature__lede { font-size: clamp(17px, 1.25vw, 19px); }
.step h4 { font-size: clamp(22px, 1.9vw, 30px); }
.step { min-height: 64vh; }
.device { height: min(68vh, 580px); }
.index-title { font-size: clamp(26px, 2.4vw, 38px); }
.row a { padding: 16px 0; }
.row__t { font-size: clamp(19px, 1.5vw, 24px); }
.row__d { font-size: 14px; }

.disc h3 { font-size: clamp(24px, 2vw, 32px); }
.disc p { font-size: 15px; }

.pe__title { font-size: clamp(30px, 3vw, 48px); }
.pe__abstract { font-size: clamp(17px, 1.3vw, 20px); }
.pe__no { font-size: clamp(36px, 3vw, 48px) !important; }
.pull { font-size: clamp(20px, 1.6vw, 26px); }
.toc b { font-size: 18px; }
.model h4 { font-size: 21px; }
.layer-detail h4 { font-size: 26px; }
.layer-btn b { font-size: 17px; }

.about__copy p:first-child { font-size: clamp(22px, 1.7vw, 28px); }
.about__copy p { font-size: 15.5px; }
.fact .big { font-size: clamp(22px, 1.8vw, 28px); }
.inline-list { font-size: clamp(17px, 1.3vw, 20px); }
.ach b { font-size: 18px; }

.tl { padding: 26px 0; }
.tl__main h3 { font-size: clamp(22px, 1.8vw, 28px); }
.tl__role { font-size: 17px; }
.honours__head h3 { font-size: clamp(22px, 1.8vw, 28px); }
.honours__list li b { font-size: 17px; }

.writing .sec-head .lede { font-size: clamp(17px, 1.3vw, 20px); }
.articles { margin-top: clamp(40px, 4vw, 64px); }
.article { padding: clamp(24px, 2.4vw, 36px) 0; }
.article__title, .article:first-child .article__title { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; }
.article:first-child .article__title { grid-column: 3 / span 6; }
.article:first-child .article__ex { grid-column: 9 / span 4; }
.article__ex { font-size: 14.5px; }
.elsewhere li a { font-size: 19px; }

.contact { padding: clamp(80px, 7vw, 120px) 0 24px; }
.contact__head { font-size: clamp(40px, 5vw, 80px); line-height: .92; }
.contact__head em { padding-left: 1.4em; }
.contact__copy { font-size: 15.5px; }
.contact__row { margin-top: clamp(36px, 4vw, 56px); }
.hello { padding: 20px 26px; }
.hello__mail { font-size: clamp(19px, 1.6vw, 26px); }
.hello__arr { width: 44px; height: 44px; }
.contact__links { margin-top: clamp(40px, 4.5vw, 72px); }
.contact__links a { padding: 14px 0; }
.contact__links a span:first-child { font-size: clamp(18px, 1.4vw, 22px); }
.foot { margin-top: clamp(56px, 6vw, 96px); }
.foot__mark { font-size: clamp(44px, 8vw, 128px); }

.bcard__body h3 { font-size: clamp(28px, 2.4vw, 38px); }
.bstat b { font-size: 40px; }
.barca__grid { grid-template-columns: 1fr; }
.bcard--lab { display: grid; grid-template-columns: 7fr 5fr; }
.bcard--lab .bcard__media { align-self: stretch; border-right: 1px solid rgba(244,241,232,.14); }
.bcard--lab .bcard__body { justify-content: center; }
.case__title { font-size: clamp(36px, 4vw, 60px); }
.case__lead { font-size: clamp(18px, 1.6vw, 24px); }

@media (max-width: 1100px) {
  .article:first-child .article__title, .article__title { grid-column: 3 / span 10; }
  .article:first-child .article__ex, .article__ex { grid-column: 3 / span 8; }
  .bcard--lab { grid-template-columns: 1fr; }
  .bcard--lab .bcard__media { border-right: 0; }
}
@media (max-width: 760px) {
  .hero__name { font-size: clamp(56px, 19vw, 96px); }
  .article:first-child .article__title, .article__title, .article__ex, .article:first-child .article__ex { grid-column: 1; }
  .contact__head em { padding-left: 0; }
  .foot__mark { font-size: 15vw; }
}

/* project covers */
.cover--personax { background: #070a16; color: #f0ede4; }
.cover--personax .cover__top { color: #c9a84c; }
.cover--personax .cover__title em { color: #e2c172; }
.cover--personax .cover__art circle { fill: rgba(240,237,228,.35); stroke: none; }
.cover--personax .cover__art .hl { fill: #c9a84c; }
.cover--personax .cover__by { border-color: rgba(201,168,76,.5); }
.cover--deeptrace { background: #0c0d0d; color: #ecebe6; }
.cover--deeptrace .cover__title em { color: #ff5a4e; }
.cover--deeptrace .cover__art rect { stroke: rgba(236,235,230,.5); }
.cover--deeptrace .cover__art path:not(.dash) { fill: none; stroke: rgba(236,235,230,.7); stroke-width: 1.4; }
.cover--deeptrace .cover__art .hl { stroke: #ff5a4e; fill: none; stroke-width: 1.8; }
.cover--deeptrace .cover__art circle.hl { fill: #ff5a4e; }
.cover--cubesat { background: #0d1426; color: #e9edf6; }
.cover--cubesat .cover__title em { color: #9fc3ff; }
.cover--cubesat .cover__art ellipse { fill: none; stroke: rgba(233,237,246,.45); }
.cover--cubesat .cover__art .hl { fill: #9fc3ff; stroke: #9fc3ff; }
.cover-bank { display: none; }

/* v6 polish */
.btn { padding: 13px 16px; font-size: 11px; gap: 14px; }
.feature__cta { gap: 8px; margin-bottom: 18px; }
.textlink { display: inline-flex; gap: 10px; color: var(--ivory); padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); transition: color .3s, border-color .3s; }
.textlink:hover { color: var(--lime); border-color: var(--lime); }
.textlink .arr { transition: transform .4s var(--ease); }
.textlink:hover .arr { transform: translateX(4px); }
.step { min-height: 54vh; }
.feature--ios .feature__intro { min-height: 58vh; }
.magnet { transition: transform .5s var(--ease); will-change: transform; }

.ev__pact small { margin-bottom: 12px; }
.ev__sign { display: flex; align-items: center; gap: 0; }
.ev__sign .ev__av { width: 30px; height: 30px; font-size: 12px; margin-right: -6px; }
.ev__sign em { font-style: normal; margin-left: 16px; font-size: 12px; font-weight: 700; color: #7fb08f; }
.ev__rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ev__rules li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; background: var(--bg); border-radius: 20px; padding: 12px 14px; }
.ev__rules b { display: block; font-weight: 600; font-size: 14.5px; }
.ev__rules small { color: #7d8388; font-size: 12px; }

/* writing: compact three-up */
.writing .sec-head h2 { grid-column: 1 / span 7; }
.writing .sec-head .lede { grid-column: 8 / span 5; align-self: end; }
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--char); margin-top: clamp(32px, 3.5vw, 48px); }
.article { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 26px 0; border-bottom: 0; }
.article + .article { padding-left: 24px; border-left: 1px solid var(--paper-line); }
.article__date { padding: 0; }
.article__title, .article:first-child .article__title { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.08; }
.article__ex { padding: 0; font-size: 14px; color: #4a4e47; }
.article__ex .mono { margin-top: 16px; }
.elsewhere { margin-top: clamp(36px, 4vw, 56px); }
@media (max-width: 900px) {
  .articles { grid-template-columns: 1fr; }
  .article, .article + .article { padding: 22px 0; border-left: 0; border-top: 1px solid var(--paper-line); }
  .article:first-child { border-top: 0; }
  .writing .sec-head h2, .writing .sec-head .lede { grid-column: 1 / -1; }
}

.ev em { font-family: "Nunito", system-ui, sans-serif; }


/* ==========================================================================
   v8 — photo trail hero + Netflix-style poster rows
   ========================================================================== */
.hero__grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(240,239,231,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(240,239,231,.055) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 75% 70% at 60% 45%, #000 30%, transparent 85%); }
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.trail img { position: absolute; left: 0; top: 0; width: var(--w, 210px); height: auto; border-radius: 6px; object-fit: cover;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.75), 0 0 0 1px rgba(240,239,231,.12);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(.55); opacity: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .3s ease; will-change: transform, opacity; }
.trail img.in { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1); opacity: 1; }
.trail img.out { transform: translate(-50%, -38%) rotate(var(--r, 0deg)) scale(.82); opacity: 0; transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .7s ease; }
.hero__name { z-index: 4; mix-blend-mode: difference; }
.hero__bottom, .hero__top { position: relative; z-index: 3; }
.hero__hint, .hero__scroll { z-index: 3; }
.hero__hint { position: absolute; right: var(--gutter); top: 0; margin: 0; display: flex; align-items: center; gap: 10px; color: var(--mute); }
.hint-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201,243,106,.15); animation: ping 2.4s var(--ease) infinite; }
.hero__top span:nth-child(2) { display: none; }

/* poster rows */
.rows-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: clamp(64px, 7vw, 110px); border-top: 1px solid var(--line); margin-bottom: 8px; }
.rows-head .mono { color: var(--mute); }
.rows { padding-bottom: clamp(72px, 7vw, 110px); }
.row-block { margin-top: clamp(28px, 3vw, 44px); position: relative; }
.row-block__head { display: flex; justify-content: space-between; align-items: baseline; max-width: var(--max); margin: 0 auto 14px; padding: 0 var(--gutter); }
.row-block__head h4 { margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -.005em; }
.row-block__nav { display: flex; gap: 6px; }
.row-block__nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ivory); display: grid; place-items: center; transition: background .3s, color .3s, opacity .3s; }
.row-block__nav button:hover { background: var(--ivory); color: var(--ink); }
.row-block__nav button[disabled] { opacity: .3; pointer-events: none; }
.row-track { list-style: none; margin: 0; padding: 18px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 28px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.row-track::-webkit-scrollbar { display: none; }
.poster-item { flex: none; display: flex; align-items: flex-end; scroll-snap-align: start; position: relative; }
.rank { font-family: var(--sans); font-weight: 800; font-size: clamp(150px, 15vw, 230px); line-height: .74; letter-spacing: -.08em; color: var(--ink);
  -webkit-text-stroke: 3px rgba(240,239,231,.55); margin-right: -26px; position: relative; z-index: 0; user-select: none; transition: -webkit-text-stroke-color .4s; }
.poster-item:hover .rank { -webkit-text-stroke-color: var(--lime); }
.poster { position: relative; z-index: 1; display: block; width: clamp(150px, 14.5vw, 210px); aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; padding: 0; text-align: left;
  background: var(--ink-3); box-shadow: 0 0 0 1px rgba(240,239,231,.08); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.poster:hover, .poster:focus-visible { transform: translateY(-8px) scale(1.06); box-shadow: 0 28px 50px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(201,243,106,.6); z-index: 3; }
.poster > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.poster:hover > img { transform: scale(1.05); }
.poster__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,11,.95) 0%, rgba(10,12,11,.35) 42%, transparent 65%); }
.poster__title { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); line-height: .95; color: #f4f1e8; }
.poster__title small { display: block; margin-top: 8px; font: 500 9.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(244,241,232,.7); }
.poster__badge { position: absolute; left: 10px; top: 10px; z-index: 2; font: italic 400 20px/1 var(--serif); color: var(--lime); text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.poster .cover { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; box-shadow: none; padding: 9% 9% 8%; }
.poster .ev-wrap { position: absolute; inset: 0; background: #fbfbfa; }
.poster__more { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 10px 14px; display: flex; justify-content: space-between; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: var(--lime); color: var(--ink); transform: translateY(100%); transition: transform .45s var(--ease); }
.poster:hover .poster__more, .poster:focus-visible .poster__more { transform: none; }
@media (max-width: 760px) {
  .rank { font-size: 130px; margin-right: -18px; -webkit-text-stroke-width: 2px; }
  .poster { width: 138px; }
  .row-block__nav { display: none; }
  .hero__hint { position: static; margin-top: 18px; order: 9; }
  .rows-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .trail { display: none; } }

.poster .cover ~ .poster__badge { display: none; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .band__track { animation: none; }
  .scr { transition: none; }
  .js .reveal-img img { clip-path: none; transform: none; }
  .js .reveal-img figcaption { opacity: 1; }
}

.case__media--shot { aspect-ratio: auto; border-radius: 10px; overflow: hidden; }
.case__media--shot img { width: 100%; display: block; }
