/* The Kartoonista — site styles
   Light paper base, earthy tones, pastel fields, vivid accents and tiny neon details. */

@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* base */
  --paper: #FAF7F2;
  --paper-2: #F2EDE4;
  --ink: #1E1B16;
  --ink-soft: #5B544A;
  --line: rgba(30, 27, 22, .14);
  /* earth */
  --terracotta: #C2643A;
  --olive: #6E7445;
  --ochre: #D9A441;
  --clay: #8C4A2F;
  /* pastels */
  --peach: #F2C6B4;
  --sage: #C9D8C5;
  --sky: #CFD6EA;
  --lilac: #E4D4EC;
  --butter: #F3E3A8;
  /* neon details */
  --neon: #D4FF3A;
  --neon-pink: #FF4FA0;

  --tint: var(--paper-2);           /* changes with the hero slide */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --pad: clamp(18px, 3.2vw, 48px);
  --rail: clamp(0px, 4vw, 56px);
  --header: 72px;
  --font: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--neon); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--neon-pink); outline-offset: 3px; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.display {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .88;
}
.neon-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(212, 255, 58, .7), 0 0 10px rgba(212, 255, 58, .9);
  animation: pulse 2.4s var(--ease-soft) infinite;
  vertical-align: middle;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 255, 58, .6), 0 0 10px rgba(212, 255, 58, .9); }
  70% { box-shadow: 0 0 0 10px rgba(212, 255, 58, 0), 0 0 10px rgba(212, 255, 58, .9); }
  100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0), 0 0 10px rgba(212, 255, 58, .9); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad) 0 calc(var(--pad) + var(--rail));
  transition: background .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
}
.site-header.scrolled { background: rgba(250, 247, 242, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.hide { transform: translateY(-100%); }
.logo {
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: conic-gradient(var(--terracotta) 0 25%, var(--ochre) 0 50%, var(--olive) 0 75%, var(--peach) 0);
  position: relative;
  transition: transform 1.2s var(--ease);
}
.logo-mark::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--neon); }
.logo:hover .logo-mark { transform: rotate(180deg); }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; }
.nav a {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::before {
  content: ''; position: absolute; right: -10px; top: 4px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 6px var(--neon);
}
.menu-btn { display: none; }

/* ---------- side rails (vertical type) ---------- */
.rail {
  position: fixed;
  top: 0; bottom: 0;
  width: var(--rail);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.rail-left { left: 0; border-right: 1px solid var(--line); }
.rail-left span { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.rail-progress {
  position: fixed; right: 14px; top: 50%;
  width: 2px; height: 120px; margin-top: -60px;
  background: var(--line); z-index: 40; border-radius: 2px; overflow: hidden;
}
.rail-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.rail-progress i::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: 0; height: 6px; background: var(--neon); border-radius: 3px; }

main { padding-left: var(--rail); }

/* ---------- hero carousel ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr;
  background: var(--tint);
  transition: background 1.4s var(--ease-soft);
  overflow: hidden;
}
.hero-word {
  font-size: clamp(64px, 13.5vh, 170px);
  padding: calc(var(--header) + 12px) clamp(6px, 1.5vw, 24px) 28px clamp(10px, 2vw, 32px);
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.hero-word .vertical { line-height: .82; }
.hero-word .outline { color: var(--terracotta); }
.hero-stage {
  position: relative;
  margin: calc(var(--header) + 4px) var(--pad) 96px 0;
  min-height: 60vh;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease-soft), visibility 0s 1.2s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease-soft), visibility 0s; }
.slide a { display: block; height: 100%; }
.slide-media { position: absolute; inset: 0; overflow: hidden; border-radius: 4px; }
.slide-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.08);
  transition: transform 7s linear;
}
.slide.is-active .slide-media img { transform: scale(1); }
.slide-caption {
  position: absolute; left: 0; bottom: -78px;
  display: flex; gap: 22px; align-items: baseline;
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s;
}
.slide.is-active .slide-caption { opacity: 1; transform: none; }
.slide-caption h2 { margin: 0; font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.slide-caption p { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.hero-controls {
  position: absolute; right: var(--pad); bottom: 30px;
  display: flex; align-items: center; gap: 18px; z-index: 3;
}
.counter { white-space: nowrap; font-size: 13px; letter-spacing: .18em; font-weight: 500; font-variant-numeric: tabular-nums; }
.counter b { font-weight: 700; }
.bar { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.bar i.run { animation: fill var(--dur, 6s) linear forwards; }
.bar i::after { content: ''; position: absolute; right: 0; top: -1px; width: 6px; height: 4px; background: var(--neon); }
@keyframes fill { to { transform: scaleX(1); } }
.arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.arrow:hover { background: var(--ink); color: var(--paper); }
.arrow:active { transform: scale(.94); }
.arrow svg { width: 18px; height: 18px; }
.hero-badge {
  position: absolute; top: calc(var(--header) + 22px); right: calc(var(--pad) + 18px); z-index: 3;
  background: var(--paper); border-radius: 999px; padding: 8px 14px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 6px 30px rgba(30, 27, 22, .08);
}

/* ---------- intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 6vw, 120px);
  padding: clamp(80px, 14vh, 160px) var(--pad) clamp(60px, 10vh, 120px);
  align-items: end;
}
.intro h1 {
  margin: 0;
  font-size: clamp(44px, 7.6vw, 128px);
  white-space: pre-line;
}
.intro h1 em { font-style: normal; color: var(--terracotta); }
.intro p { margin: 0 0 12px; font-size: clamp(17px, 1.4vw, 21px); max-width: 34ch; color: var(--ink-soft); }
.squiggle { display: inline-block; width: 64px; height: 14px; margin-top: 18px; }

/* ---------- horizontal carousel ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  padding: 0 var(--pad); margin-bottom: 28px;
}
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 60px); }
.section-head .controls { display: flex; gap: 10px; }
.reel {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 28px;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.reel::-webkit-scrollbar { display: none; }
.reel.dragging { cursor: grabbing; scroll-snap-type: none; }
.reel.dragging a { pointer-events: none; }
.reel-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(240px, 30vw, 440px);
  user-select: none;
}
.reel-card:nth-child(3n+2) { margin-top: 48px; }
.reel-card:nth-child(3n) { margin-top: 18px; }
.reel-card .frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.reel-card:nth-child(3n+2) .frame { aspect-ratio: 1 / 1; }
.reel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); -webkit-user-drag: none; }
.reel-card:hover img { transform: scale(1.04); }
.card-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; align-items: baseline; }
.card-meta h3 { margin: 0; font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card-meta span { font-size: 12px; letter-spacing: .14em; color: var(--ink-soft); text-transform: uppercase; white-space: nowrap; }

/* ---------- marquee ---------- */
.marquee {
  margin: clamp(60px, 10vh, 120px) 0;
  background: var(--sage);
  border-block: 1px solid var(--ink);
  overflow: hidden;
  transform: rotate(-1.2deg);
  width: calc(100% + 40px);
  margin-left: -20px;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  padding: 14px 0;
  display: flex; align-items: center; gap: .55em; padding-right: .55em;
  white-space: nowrap;
}
.marquee span::after { content: '✺'; color: var(--terracotta); font-size: .7em; }
.marquee span:nth-child(4n+2)::after { color: var(--neon-pink); }
.marquee span:nth-child(4n+3) { color: var(--clay); font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- gallery ---------- */
.gallery-wrap { padding: 0 var(--pad) clamp(60px, 10vh, 120px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chip {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.chip:hover { background: var(--peach); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"]::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--neon); margin-right: 8px; vertical-align: 2px; }
.gallery { columns: 3 300px; column-gap: clamp(14px, 2vw, 28px); }
.tile {
  break-inside: avoid;
  display: block;
  margin-bottom: clamp(22px, 3vw, 44px);
  position: relative;
}
.tile .frame { overflow: hidden; border-radius: 4px; background: var(--paper-2); position: relative; }
.tile img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .8s; }
.tile:hover img { transform: scale(1.035); }
.tile .frame::after {
  content: 'View'; position: absolute; right: 14px; bottom: 14px;
  background: var(--neon); color: var(--ink);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tile:hover .frame::after { opacity: 1; transform: none; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft);
}
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.status[data-s="sold"]::before { background: var(--terracotta); }
.status[data-s="available"]::before { background: var(--neon); box-shadow: 0 0 6px var(--neon); }
.tile.out { display: none; }

/* ---------- footer ---------- */
.site-footer {
  margin-left: var(--rail);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 12vh, 140px) var(--pad) 28px;
  position: relative;
  overflow: hidden;
}
.site-footer .eyebrow { color: rgba(244, 239, 230, .6); }
.footer-cta {
  display: inline-block;
  font-size: clamp(48px, 10vw, 170px);
  margin: 18px 0 40px;
  transition: color .5s var(--ease);
}
.footer-cta:hover { color: var(--peach); }
.footer-cta .arrow-up { display: inline-block; transition: transform .6s var(--ease); color: var(--neon); }
.footer-cta:hover .arrow-up { transform: translate(10px, -10px) rotate(0deg); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(244, 239, 230, .2); padding-top: 22px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.footer-row nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-row a:hover { color: var(--neon); }
.footer-blob {
  position: absolute; right: -8vw; top: -10vw; width: 34vw; height: 34vw; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--terracotta), var(--clay) 60%, transparent 61%);
  opacity: .9; pointer-events: none;
}
.footer-blob::after { content: ''; position: absolute; left: 22%; top: 60%; width: 14px; height: 14px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 18px var(--neon); }

/* ---------- project page ---------- */
.project-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 3vw, 48px);
  padding: calc(var(--header) + 24px) var(--pad) 0 clamp(10px, 2vw, 32px);
  min-height: 100svh;
}
.project-title {
  font-size: clamp(54px, 11vh, 140px);
  max-height: calc(100svh - var(--header) - 48px);
  display: flex; gap: 6px; align-items: flex-end;
  position: sticky; top: calc(var(--header) + 24px); align-self: start;
}
.project-title .vertical { line-height: .85; white-space: normal; max-height: inherit; }
.project-title small { font-size: 12px; letter-spacing: .3em; font-weight: 500; color: var(--terracotta); }
.viewer { position: relative; }
.viewer-stage {
  position: relative;
  height: calc(100svh - var(--header) - 150px);
  min-height: 380px;
  background: var(--tint);
  border-radius: 4px;
  overflow: hidden;
  transition: background 1.2s var(--ease-soft);
}
.viewer-stage figure { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: clamp(14px, 3vw, 44px); opacity: 0; transition: opacity .9s var(--ease-soft); }
.viewer-stage figure.is-active { opacity: 1; }
.viewer-stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; min-height: 0; object-fit: contain; box-shadow: 0 30px 60px -30px rgba(30, 27, 22, .45); cursor: zoom-in; transform: translateY(10px); transition: transform 1s var(--ease); }
.viewer-stage figure.is-active img { transform: none; }
.viewer-stage figcaption { position: absolute; left: 18px; bottom: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { width: 62px; height: 62px; border-radius: 3px; overflow: hidden; opacity: .5; transition: opacity .4s, transform .4s var(--ease); flex: 0 0 auto; position: relative; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { opacity: 1; }
.thumbs button[aria-current="true"]::after { content: ''; position: absolute; left: 6px; bottom: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 6px var(--neon); }
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.project-info {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 6vw, 110px);
  padding: clamp(60px, 10vh, 120px) var(--pad);
}
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 1px solid var(--ink); align-self: start; }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); padding-right: 30px; }
.facts dd { font-weight: 500; }
.project-desc p { font-size: clamp(19px, 1.7vw, 26px); line-height: 1.45; margin: 0 0 1em; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  padding: 16px 24px; border-radius: 999px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: var(--terracotta); }
.btn .neon-dot { animation: none; }
.next-project {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  margin: 0 var(--pad) clamp(60px, 10vh, 120px);
  padding-top: 24px; border-top: 1px solid var(--ink);
}
.next-project h2 { margin: 6px 0 0; font-size: clamp(40px, 7vw, 110px); transition: color .5s var(--ease), transform .7s var(--ease); }
.next-project:hover h2 { color: var(--terracotta); transform: translateX(12px); }
.next-project img { width: clamp(120px, 18vw, 260px); aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(30, 27, 22, .94);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-soft), visibility 0s .5s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-soft); }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }
.lightbox button { position: absolute; top: 18px; right: 22px; color: var(--paper); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- about ---------- */
.page-head {
  padding: calc(var(--header) + clamp(40px, 10vh, 110px)) var(--pad) clamp(40px, 6vh, 70px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px;
}
.page-head h1 { margin: 0; font-size: clamp(60px, 13vw, 220px); }
.page-head .vertical { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.about-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 110px);
  padding: 0 var(--pad) clamp(60px, 10vh, 120px);
}
.portrait { position: relative; align-self: start; }
.portrait::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px;
  background: var(--lilac); border-radius: 4px; z-index: -1;
  transition: transform 1.2s var(--ease);
}
.portrait:hover::before { transform: translate(-8px, -8px); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.portrait span { position: absolute; left: -30px; bottom: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.about-text .statement { color: var(--ink); max-width: none; margin: 0 0 40px; font-size: clamp(32px, 4vw, 62px); font-weight: 600; line-height: 1.02; text-transform: uppercase; }
.statement mark { background: linear-gradient(transparent 62%, var(--neon) 62% 88%, transparent 88%); color: inherit; }
.about-text p { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-soft); max-width: 60ch; }
.timeline { padding: 0 var(--pad) clamp(60px, 10vh, 120px); }
.timeline h2 { font-size: clamp(30px, 4vw, 60px); margin: 0 0 24px; }
.timeline ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline li {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background .5s var(--ease), padding .5s var(--ease);
}
.timeline li:hover { background: var(--butter); padding-left: 14px; padding-right: 14px; }
.timeline .y { font-weight: 700; letter-spacing: .08em; }
.timeline .t { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; }
.timeline .p { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.swatches { display: flex; gap: 8px; margin: 30px 0 0; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; display: block; transition: transform .6s var(--ease); }
.swatches i:hover { transform: translateY(-6px); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 110px);
  padding: 0 var(--pad) clamp(60px, 10vh, 120px);
}
.big-mail {
  display: inline-block;
  font-size: clamp(28px, 3.9vw, 64px);
  font-weight: 600;
  line-height: 1;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--neon), var(--neon)) left 92% / 0 .18em no-repeat;
  transition: background-size .7s var(--ease);
}
.big-mail:hover { background-size: 100% .18em; }
.contact-lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-soft); max-width: 40ch; margin: 0 0 30px; }
.socials { list-style: none; padding: 0; margin: 50px 0 0; border-top: 1px solid var(--ink); }
.socials a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; transition: padding .5s var(--ease), color .4s; }
.socials a:hover { padding-left: 12px; color: var(--terracotta); }
.form { background: var(--peach); border-radius: 4px; padding: clamp(22px, 3vw, 44px); align-self: start; position: relative; }
.form::after { content: ''; position: absolute; top: -10px; right: 28px; width: 20px; height: 20px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 14px var(--neon); }
.form label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; margin-bottom: 20px; }
.form input, .form textarea, .form select {
  display: block; width: 100%; margin-top: 8px;
  font: inherit; font-size: 17px; letter-spacing: normal; text-transform: none;
  background: transparent; border: 0; border-bottom: 1.5px solid var(--ink);
  padding: 10px 0; color: var(--ink); border-radius: 0;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-bottom-color: var(--terracotta); }
.form .btn { margin-top: 10px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; min-height: 1.4em; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img .frame, .reveal-img.frame { clip-path: inset(12% 0 0 0); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.reveal-img.in .frame, .reveal-img.in.frame { clip-path: inset(0 0 0 0); }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.split.in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
  .reveal-img .frame, .reveal-img.frame { clip-path: none; }
  .marquee-track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --rail: 0px; --header: 62px; }
  .rail-left, .rail-progress { display: none; }
  .menu-btn { display: inline-flex; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; gap: 8px; align-items: center; }
  .nav {
    position: fixed; inset: 0; background: var(--peach);
    flex-direction: column; justify-content: center; gap: 22px;
    transform: translateY(-100%); transition: transform .7s var(--ease);
    z-index: -1;
  }
  .nav a { font-size: 34px; letter-spacing: .06em; font-weight: 700; }
  body.menu-open .nav { transform: none; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero-word { padding: calc(var(--header) + 6px) var(--pad) 0; font-size: clamp(36px, 11.5vw, 90px) !important; }
  .hero-word .vertical { writing-mode: horizontal-tb; transform: none; }
  .hero-word { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-stage { margin: 18px var(--pad) 170px; min-height: 56vh; }
  .hero-badge { display: none; }
  .hero-controls { bottom: 24px; }
  .slide-caption { flex-direction: column; gap: 2px; bottom: -84px; }
  .hero-controls { left: var(--pad); justify-content: flex-end; }
  .intro, .project-info, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 12px; }
  .tile .card-meta { flex-direction: column; gap: 0; }
  .tile .card-meta h3 { font-size: 13px; }
  .project-hero { grid-template-columns: 1fr; padding-left: var(--pad); }
  .project-title { position: static; max-height: none; font-size: clamp(42px, 12vw, 80px); }
  .project-title .vertical { writing-mode: horizontal-tb; transform: none; }
  .project-title { flex-direction: column; align-items: flex-start; }
  .viewer-stage { height: 64vh; }
  .timeline li { grid-template-columns: 70px 1fr; }
  .timeline .p { grid-column: 2; }
  .page-head .vertical { display: none; }
  .portrait span { display: none; }
  .next-project img { display: none; }
}
