/* Preston Odep portfolio
   Design tokens follow the reference site's system: Geist type, a periwinkle sky,
   one ink-blue accent, glass sheets, and an 8px-based spacing scale. */

:root {
  --f: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --ink: #141413;
  --ink-2: #57564F;
  --ink-3: #6B6A64;
  --g-ink-2: #3D3E46;
  --g-ink-3: #62646F;
  --paper: #FFFFFF;
  --surface: #F1F1F3;
  --soft: #F0F2F5;
  --rule: rgba(20, 20, 19, .10);
  --accent: #2E54D1;
  --night: #0B0D14;
  --night-ink: #F2F1EC;
  --night-ink-2: #A9ADBE;
  --stat: #2A2B2F;
  --stat-hi: #B6DE74;

  --sky-top: #E3E8F5;
  --sky-bottom: #EEF1F8;
  --g-bg: rgba(250, 251, 255, .3);
  --g-surface: rgba(255, 255, 255, .34);
  --g-blur: blur(34px) saturate(1.9) brightness(1.04);

  --t-display-xl: clamp(2.6rem, 5.6vw, 5.25rem);
  --t-display-l: clamp(2.1rem, 4.2vw, 3.75rem);
  --t-display-m: clamp(1.6rem, 2.6vw, 2.25rem);
  --t-numeral: clamp(2rem, 3.4vw, 3rem);
  --t-title: 1.125rem;
  --t-body-l: 1.1875rem;
  --t-body: 1rem;
  --t-body-s: .875rem;
  --t-caption: .8125rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --r-pill: 999px;

  --maxw: 1240px;
  --col: 960px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 30px 60px -40px rgba(30, 45, 100, .35);

  --enter: cubic-bezier(.16, 1, .3, 1);
  --move: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong, b { font-weight: 500; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(46, 84, 209, .18); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  transform: translateY(-160%); transition: transform .2s var(--enter);
}
.skip:focus { transform: none; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.col { width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.display-xl { font-size: var(--t-display-xl); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; color: var(--ink); }
.display-l  { font-size: var(--t-display-l);  font-weight: 400; line-height: 1.05; letter-spacing: -.04em;  color: var(--ink); }
.display-m  { font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 400; line-height: 1.25; letter-spacing: -.03em; color: var(--ink); }
.display-xl em, .display-l em, .display-m em { font-style: normal; color: var(--ink-2); }
.body-l { font-size: var(--t-body-l); line-height: 1.55; letter-spacing: -.01em; }
.ink { color: var(--ink); }
.caption { font-size: var(--t-caption); line-height: 1.45; color: var(--g-ink-3); }
.eyebrow { font-size: 1rem; font-weight: 500; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mono { font-family: var(--f-mono); }

/* ---------- sky (home) ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 18% 22%, rgba(255, 255, 255, .75), transparent 70%),
    radial-gradient(ellipse 50% 35% at 82% 58%, rgba(255, 255, 255, .6), transparent 70%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(var(--sky-top), var(--sky-bottom));
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(46, 84, 209, .13) .9px, transparent 1.3px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, #000 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, #000 100%);
}

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(155deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 42%), var(--g-bg);
  -webkit-backdrop-filter: var(--g-blur);
          backdrop-filter: var(--g-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.sheet { border-radius: var(--r-l); padding: 44px; }

/* ---------- dock (primary nav) ---------- */
.dock {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
  padding: 6px; border-radius: var(--r-pill);
  background: linear-gradient(170deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, .32)), rgba(246, 248, 255, .2);
  -webkit-backdrop-filter: blur(14px) saturate(1.8) brightness(1.08);
          backdrop-filter: blur(14px) saturate(1.8) brightness(1.08);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .45),
    inset 1px 0 0 rgba(255, 255, 255, .4), inset -1px 0 0 rgba(255, 255, 255, .4),
    inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 1px rgba(20, 20, 19, .07),
    0 12px 32px -16px rgba(30, 45, 100, .35);
}
.dock a {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 12px; border-radius: var(--r-pill);
  font-size: var(--t-body-s); font-weight: 500; line-height: 20px; color: var(--ink);
  transition: background-color .25s var(--enter);
}
.dock a:hover { background: rgba(255, 255, 255, .55); }
.dock a[aria-current="page"], .dock a.is-on { background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .06); }
.dock .mono-badge {
  display: grid; place-items: center; width: 32px; height: 24px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .02em;
}
.dock .dock__home { padding: 10px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 43px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: var(--t-body-s); font-weight: 500; white-space: nowrap;
  transition: transform .3s var(--enter), background-color .25s;
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2A2B2F; }
.btn:active { transform: scale(.97); }
.text-link { font-weight: 500; color: var(--ink); padding: 3px 7px; margin: -3px -7px; border-radius: 6px; transition: background-color .2s; }
.text-link:hover { background: rgba(20, 20, 19, .06); }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero__inner { padding: 18vh 0 300px; text-align: center; }
.hero__title { max-width: 13.2em; margin-inline: auto; }
.hero__fan {
  position: absolute; left: 50%; bottom: -30px; width: min(1180px, 120vw);
  transform: translateX(-50%); height: 330px; pointer-events: none;
}
.hero__fan figure {
  position: absolute; bottom: 0; width: 25%; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden; padding: 6px;
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 30px 60px -30px rgba(30, 45, 100, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform-origin: 50% 120%;
  transition: transform .9s var(--enter);
}
.hero__fan img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.hero__fan figure:nth-child(1) { left: 0%;   transform: rotate(-9deg) translateY(36px); }
.hero__fan figure:nth-child(2) { left: 18%;  transform: rotate(-4deg) translateY(8px); z-index: 2; }
.hero__fan figure:nth-child(3) { left: 37.5%; transform: translateY(-6px); z-index: 3; width: 25%; }
.hero__fan figure:nth-child(4) { left: 57%;  transform: rotate(4deg) translateY(8px); z-index: 2; }
.hero__fan figure:nth-child(5) { left: 75%;  transform: rotate(9deg) translateY(36px); }

/* ---------- home: bands ---------- */
.band { padding-top: var(--s-10); }
.band:first-of-type { padding-top: var(--s-6); }
.band__title { max-width: 840px; margin-bottom: var(--s-7); }

/* work grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 24px; }
.card { min-width: 0; }
.card--wide { grid-column: 1 / -1; }
.card__link { display: block; }
.card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--r-s); background: var(--g-surface);
}
.card--wide .card__media { aspect-ratio: 21 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--enter); }
.card__over {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 64px 24px 22px; font-size: var(--t-body-s); line-height: 1.5; color: var(--night-ink);
  background: linear-gradient(to top, rgba(11, 13, 20, .8), rgba(11, 13, 20, .4) 60%, rgba(11, 13, 20, 0));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
          mask-image: linear-gradient(to top, #000 55%, transparent);
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s var(--enter), transform .6s var(--enter);
}
.card__text { padding-top: var(--s-4); }
.card__title { font-size: var(--t-title); font-weight: 500; line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.card__desc { display: none; font-size: var(--t-body-s); line-height: 1.5; color: var(--g-ink-2); margin-top: var(--s-2); }
.card__soon {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; color: var(--ink);
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (hover: hover) and (pointer: fine) {
  .card__link:hover .card__media img { transform: scale(1.035); }
  .card__link:hover .card__over { opacity: 1; transform: none; }
}
@media (hover: none) {
  .card__desc { display: block; }
}

/* about */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; color: var(--g-ink-2); }
.about__photo { position: sticky; top: 32px; align-self: start; }
.about__photo .card__media { aspect-ratio: 4 / 5; }
.about__body { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.block .caption { margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--g-surface); font-size: var(--t-body-s); line-height: 1.65; color: var(--g-ink-2); }
.rows li {
  display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 16px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--rule);
}
.rows li:last-child { border-bottom: 1px solid var(--rule); }
.rows__role { color: var(--ink); }
.rows__org, .rows__when { font-size: var(--t-body-s); color: var(--g-ink-3); }
.rows__when { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tools li { display: flex; flex-direction: column; gap: 2px; font-size: var(--t-body-s); color: var(--ink); }
.tools li span { font-size: 12px; color: var(--g-ink-3); }

/* contact */
.contact {
  position: relative; margin-top: var(--s-10); padding: var(--s-9) 0 144px;
  background: linear-gradient(180deg,
    rgba(227, 232, 245, 0) 0%, #C9D1EC 10%, #8C98CC 20%, #46508A 31%, #1B2140 42%, var(--night) 54%);
  color: var(--night-ink-2);
}
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(169, 173, 190, .16) .9px, transparent 1.3px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 60%);
          mask-image: linear-gradient(180deg, transparent 20%, #000 60%);
}
.contact__inner { position: relative; padding-top: 200px; }
.contact__title { color: var(--night-ink); }
.contact__title em { color: var(--night-ink-2); }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: var(--s-6); }
.contact__links a { font-size: var(--t-body-l); line-height: 1.65; color: var(--night-ink); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--enter); }
.contact__links a:hover { background-size: 100% 1px; }
.contact__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: var(--s-8); }
.terminal {
  padding: 28px; border-radius: var(--r-l);
  background: rgba(20, 26, 44, .72); box-shadow: inset 0 0 0 1px rgba(242, 241, 236, .12);
}
.terminal__title { font-size: var(--t-title); font-weight: 500; color: var(--night-ink); }
.terminal .caption { color: var(--night-ink-2); }
.terminal__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--s-5); }
.terminal__row code { font-family: var(--f-mono); font-size: var(--t-body-s); color: var(--night-ink); overflow-wrap: anywhere; }
.btn--night { background: rgba(242, 241, 236, .1); color: var(--night-ink); box-shadow: inset 0 0 0 1px rgba(242, 241, 236, .14); }
.btn--night:hover { background: rgba(242, 241, 236, .18); }
.contact__base { margin-top: var(--s-8); color: var(--night-ink-2); }

/* ---------- case study ---------- */
.cs { padding-bottom: var(--s-9); }
.cs-back {
  position: fixed; top: 20px; left: 40px; z-index: 40;
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: var(--r-pill); font-weight: 500; color: var(--ink);
  background: rgba(255, 255, 255, .82); box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .2s;
}
.cs-back:hover { background: #fff; }
.cs-hero { padding-top: var(--s-10); }
.cs-hero__title { margin-top: var(--s-3); }
.cs-hero__lead { margin-top: var(--s-5); max-width: 56ch; }
.cs-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: var(--s-7); }
.cs-meta div { padding-top: 12px; border-top: 1px solid var(--rule); }
.cs-meta dd { margin-top: 2px; color: var(--ink); }

.panel {
  position: relative; overflow: hidden; border-radius: var(--r-s);
  background: var(--surface); border: 1px solid #E9EDEF;
}
.panel img { width: 100%; height: 100%; object-fit: cover; }
.panel--cover { aspect-ratio: 16 / 9; margin-top: var(--s-8); }
.panel--contain img { object-fit: contain; background: #fff; }

.cs-rail { position: fixed; left: 32px; top: 50%; transform: translateY(-50%); z-index: 30; width: 176px; opacity: 0; pointer-events: none; transition: opacity .4s var(--enter); }
.cs-rail.is-on { opacity: 1; pointer-events: auto; }
.cs-rail ol { display: grid; gap: 2px; }
.cs-rail a { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 1rem; line-height: 1.35; color: var(--ink-3); transition: color .2s; }
.cs-rail a:hover { color: var(--ink); }
.cs-rail a.is-here { color: var(--ink); }
.cs-rail .n { font-size: 11px; color: var(--accent); font-variant-numeric: tabular-nums; }

.cs-sec { margin-top: var(--s-10); }
.cs-sec__head .display-m { margin-top: var(--s-3); max-width: 30ch; }
.cs-sec__body { margin-top: var(--s-6); }
.cs-sec__body > * + * { margin-top: var(--s-7); }
.prose { max-width: 64ch; }
.prose + .prose { margin-top: var(--s-4); }

.fig figcaption { margin-top: 12px; line-height: 1.5; color: var(--ink-3); }
.fig figcaption strong { color: var(--ink); }
.figs { display: grid; gap: 16px; }
.figs--2 { grid-template-columns: repeat(2, 1fr); }
.figs--3 { grid-template-columns: repeat(3, 1fr); }
.figs--4 { grid-template-columns: repeat(4, 1fr); }
.figs--5 { grid-template-columns: repeat(5, 1fr); }
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-3x2 { aspect-ratio: 3 / 2; }
.ar-4x3 { aspect-ratio: 4 / 3; }
.ar-1 { aspect-ratio: 1; }
.ar-phone { aspect-ratio: 369 / 800; }

/* lists */
.lx--rows { padding: 8px 32px; border-radius: var(--r-m); background: var(--soft); }
.lx--rows li { display: grid; grid-template-columns: 54px 1fr; padding: 16px 0; color: var(--ink); line-height: 1.6; }
.lx--rows li + li { border-top: 1px solid var(--rule); }
.lx--rows li p span { display: block; color: var(--ink-2); }
.lx__n { font-family: var(--f-mono); color: var(--ink-3); padding-top: .1em; }
.lx--ol { counter-reset: lx; display: grid; gap: 12px; }
.lx--ol li { counter-increment: lx; display: grid; grid-template-columns: 30px 1fr; line-height: 1.6; }
.lx--ol li::before { content: counter(lx) "."; font-family: var(--f-mono); color: var(--ink-3); }
.lx--boxes { display: grid; gap: 10px; }
.lx--boxes li { padding: 24px 32px; border-radius: 12px; background: var(--soft); line-height: 1.6; }
.lx--cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lx--cards li { padding: 24px; border-radius: 12px; background: var(--soft); line-height: 1.6; }
.lx__t { font-weight: 500; color: var(--ink); }
.lx__x { margin-top: 6px; }
.lx__k { font-size: var(--t-caption); color: var(--ink-3); }

/* stats */
.stats { display: grid; gap: 12px; }
.stats--2 { grid-template-columns: repeat(2, 1fr); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--5 { grid-template-columns: repeat(5, 1fr); }
.stat { padding: 24px; border-radius: var(--r-m); background: var(--stat); }
.stat__num { font-size: var(--t-numeral); line-height: 1.05; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .45em; letter-spacing: 0; color: rgba(255, 255, 255, .55); }
.stat__k { margin-top: 12px; color: rgba(255, 255, 255, .78); line-height: 1.5; }
.stat .caption { margin-top: 12px; font-size: 1rem; color: var(--stat-hi); }

/* pull quote */
.pull { padding-left: 24px; border-left: 2px solid var(--accent); font-size: var(--t-display-m); line-height: 1.3; letter-spacing: -.03em; color: var(--ink); max-width: 30ch; }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.cmp th { text-align: left; font-size: var(--t-caption); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.cmp td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.55; }
.cmp td:first-child { font-weight: 500; color: var(--ink); width: 18%; }
.cmp td:nth-child(2) { width: 32%; }
.cmp td:last-child { color: var(--ink); }

/* before / after */
.ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba__tag { font-size: var(--t-caption); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ba__tag--after { color: var(--accent); }
.ba p { margin-top: 16px; line-height: 1.55; }

/* next project */
.cs-next { margin-top: var(--s-10); }
.next { display: block; padding-top: 24px; border-top: 1px solid var(--rule); }
.next__title { margin: 12px 0 8px; font-size: var(--t-display-m); line-height: 1.12; letter-spacing: -.03em; color: var(--ink); }
.panel--next { aspect-ratio: 16 / 9; margin-top: 24px; }
.panel--next img { transition: transform 1.2s var(--enter); }
a.next:hover .panel--next img { transform: scale(1.03); }
.cs-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--s-8); padding-top: 24px; border-top: 1px solid var(--rule); color: var(--ink); }

/* phones, flows, swatches, type, mosaic */
.ar-tz { aspect-ratio: 750 / 1624; }
.figs--narrow { max-width: 640px; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.cmp--2 td:first-child { width: 40%; }
.cmp--2 td:last-child { color: var(--ink-2); }
.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: fl; }
.flow li { counter-increment: fl; padding: 16px; border-radius: 12px; background: var(--soft); line-height: 1.45; font-size: var(--t-body-s); }
.flow li::before { content: counter(fl, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.flow li b { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 2px; }
.flow li:last-child { background: var(--stat); color: rgba(255, 255, 255, .78); }
.flow li:last-child b { color: #fff; }
.flow li:last-child::before { color: var(--stat-hi); }
.swatches { display: flex; border-radius: var(--r-m); overflow: hidden; min-height: 140px; }
.swatches div { flex: 2; padding: 18px; font-size: var(--t-body-s); line-height: 1.4; display: flex; flex-direction: column; justify-content: flex-end; }
.swatches div:nth-child(-n+2) { flex: 3; }
.swatches b { color: inherit; display: block; font-size: 1rem; }
.specimen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.specimen li { padding: 28px 32px; border-radius: 12px; background: var(--soft); }
.specimen .big { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; color: var(--ink); margin: 12px 0 10px; }
.mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; aspect-ratio: 16 / 9; }
.mosaic .panel { height: 100%; }
.mosaic .panel:first-child { grid-row: span 2; }

/* evidence and confidence tags (Stadium, Archives) */
.conf, .ev { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.conf--ok, .ev--doc { background: #E3F4EA; color: #17663B; }
.conf--mid, .ev--typ { background: #FFF1D6; color: #8A5A00; }
.conf--no { background: #FDE7E4; color: #B42318; }
.ev--ill { background: var(--surface); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--rule); }
.lx--cards .ev { margin-bottom: 12px; }

/* "view the implementation" call to action */
.cs-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: var(--s-6); }
.cs-cta .btn { height: 48px; padding: 0 24px; font-size: 1rem; }
.cs-cta .btn svg { width: 16px; height: 16px; flex: none; }
.cs-cta__note { font-size: var(--t-body-s); color: var(--ink-3); max-width: 44ch; line-height: 1.5; }
.try { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--r-m); background: var(--stat); color: rgba(255, 255, 255, .78); }
.try__t { font-size: var(--t-title); font-weight: 500; color: #fff; margin-bottom: 4px; }
.try .btn { background: #fff; color: var(--ink); height: 48px; padding: 0 24px; font-size: 1rem; }
.try .btn:hover { background: #E9ECF8; }
@media (max-width: 720px) { .try { grid-template-columns: 1fr; padding: 22px; } .try .btn { justify-self: start; } }
.btn.is-pending { cursor: default; opacity: .62; }
.btn.is-pending:active { transform: none; }
.btn.is-pending svg { display: none; }
.btn__soon { font-size: 12px; font-weight: 500; padding: 2px 8px; margin-left: 2px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.try .btn__soon { background: rgba(20, 20, 19, .08); }

/* film panels, logo tiles, rails, artwork grid (Citizen) */
.panel video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.panel--film { background: #000; border-color: #000; }
.film-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; color: #fff; background: rgba(11, 13, 20, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.logo-tile { display: grid; place-items: center; padding: 10%; background: #FCF7F0; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.logo-tile--dark { background: #14141A; }
.logos-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.logos-6 .logo-tile { aspect-ratio: 1; border-radius: var(--r-s); border-bottom: 4px solid var(--c); padding: 16%; }
.dots6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.dots6 li { padding: 20px 16px; border-radius: 12px; background: var(--soft); line-height: 1.4; }
.dots6 .pair { display: flex; gap: 10px; height: 26px; align-items: center; margin-bottom: 22px; }
.dots6 .pair i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); display: block; }
.dots6 b { display: block; color: var(--ink); font-weight: 500; }
.dots6 span { font-size: var(--t-body-s); color: var(--ink-3); }
.swatches--9 div { flex: 1; min-height: 150px; padding: 14px; }
.swatches--9 div:first-child { flex: 2; }
.type-cit { display: grid; grid-template-columns: 5fr 7fr; gap: 10px; }
.type-cit > div { padding: 28px 32px; border-radius: 12px; background: var(--soft); min-width: 0; }
.type-cit .aa { font-family: "Outfit", var(--f); font-weight: 900; font-size: clamp(5rem, 11vw, 9rem); line-height: .85; letter-spacing: -.05em; color: var(--ink); }
.type-cit .wts span { display: block; font-family: "Outfit", var(--f); color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.voice6 li { padding: 22px 24px; border-radius: 12px; background: var(--c); color: var(--t, #fff); min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.voice6 b { color: inherit; font-weight: 500; font-size: var(--t-title); }
.voice6 span { font-size: var(--t-body-s); opacity: .85; }
.chan { padding-top: var(--s-7); border-top: 1px solid var(--rule); }
.chan + .chan { margin-top: var(--s-8); }
.chan__head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.chan__logo { aspect-ratio: 1; border-radius: var(--r-s); border-bottom: 4px solid var(--c); }
.chan__role { font-size: var(--t-caption); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.chan__line { font-size: var(--t-display-m); line-height: 1.15; letter-spacing: -.03em; color: var(--ink); margin-top: 6px; }
.chan__sw { color: var(--ink-3); font-style: italic; margin: 2px 0 12px; }
.chan__idea { margin-top: 16px; padding: 16px 20px; border-radius: 12px; background: var(--soft); border-left: 3px solid var(--c); }
.chan__idea b { color: var(--ink); font-weight: 500; }
.chan .figs { margin-top: var(--s-5); }
.ui3 { display: grid; grid-template-columns: 1920fr 1440fr 564fr; gap: 10px; align-items: start; }
.rail-wrap + .rail-wrap { margin-top: var(--s-6); }
.rail-wrap .eyebrow { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.rail-wrap .eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; scrollbar-width: thin; }
.rail img { height: clamp(120px, 14vw, 180px); width: auto; aspect-ratio: 16 / 9; border-radius: var(--r-s); flex: none; scroll-snap-align: start; object-fit: cover; background: var(--surface); }
.art-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.art-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--surface); }
.disp { display: grid; grid-template-columns: 9fr 16fr; gap: 16px; align-items: start; }
.figs--4.figs--tight { gap: 8px; }
@media (max-width: 900px) {
  .logos-6, .dots6 { grid-template-columns: repeat(3, 1fr); }
  .voice6, .type-cit, .disp, .ui3 { grid-template-columns: 1fr; }
  .chan__head { grid-template-columns: 1fr; gap: 16px; }
  .chan__logo { width: 140px; }
  .art-grid { grid-template-columns: repeat(3, 1fr); }
  .swatches--9 { flex-wrap: wrap; }
  .swatches--9 div { flex: 1 1 30% !important; min-height: 90px; }
  .type-cit .wts span { white-space: normal; }
}

/* ---------- motion ---------- */
.js [data-rv] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--enter), transform 1s var(--enter); }
.js [data-rv].is-in { opacity: 1; transform: none; }
.js [data-kin] .w { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(.18em); transition: opacity .5s var(--enter), filter .5s var(--enter), transform .7s var(--enter); transition-delay: calc(var(--i) * 20ms); }
.js [data-kin].is-in .w { opacity: 1; filter: none; transform: none; }
.js .hero__fan figure { transform: translateY(120%) rotate(0); }
.js .hero.is-in .hero__fan figure:nth-child(1) { transform: rotate(-9deg) translateY(36px); transition-delay: .25s; }
.js .hero.is-in .hero__fan figure:nth-child(2) { transform: rotate(-4deg) translateY(8px); transition-delay: .32s; }
.js .hero.is-in .hero__fan figure:nth-child(3) { transform: translateY(-6px); transition-delay: .39s; }
.js .hero.is-in .hero__fan figure:nth-child(4) { transform: rotate(4deg) translateY(8px); transition-delay: .46s; }
.js .hero.is-in .hero__fan figure:nth-child(5) { transform: rotate(9deg) translateY(36px); transition-delay: .53s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv], .js [data-kin] .w, .js .hero__fan figure { opacity: 1 !important; filter: none !important; transition: none !important; }
  .js [data-rv], .js [data-kin] .w { transform: none !important; }
  .js .hero__fan figure:nth-child(1) { transform: rotate(-9deg) translateY(36px) !important; }
  .js .hero__fan figure:nth-child(2) { transform: rotate(-4deg) translateY(8px) !important; }
  .js .hero__fan figure:nth-child(3) { transform: translateY(-6px) !important; }
  .js .hero__fan figure:nth-child(4) { transform: rotate(4deg) translateY(8px) !important; }
  .js .hero__fan figure:nth-child(5) { transform: rotate(9deg) translateY(36px) !important; }
  .card__media img, .panel--next img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1279px) { .cs-rail { display: none; } }
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { position: static; max-width: 420px; }
  .stats--5 { grid-template-columns: repeat(3, 1fr); }
  .figs--5 { grid-template-columns: repeat(3, 1fr); }
  .ba { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .card--wide .card__media { aspect-ratio: 4 / 3; }
  .figs--4 { grid-template-columns: repeat(2, 1fr); }
  .figs--3, .lx--cards { grid-template-columns: 1fr; }
  .figs--3.figs--phones { grid-template-columns: repeat(3, 1fr); }
  .stats--4 { grid-template-columns: repeat(2, 1fr); }
  .specimen { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; }
  .mosaic .panel { aspect-ratio: 4 / 3; height: auto; }
  .mosaic .panel:first-child { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .swatches { flex-wrap: wrap; }
  .swatches div { flex: 1 1 45% !important; min-height: 90px; }
  .contact__cards { grid-template-columns: 1fr; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: auto !important; }
  .cmp thead { display: none; }
  .cmp tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .cmp td { padding: 2px 0; border: 0; }
  .cmp td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); }
}
@media (max-width: 720px) {
  .sheet { padding: 20px; border-radius: 18px; }
  .hero__inner { padding: 22vh 0 260px; }
  .hero__fan { height: 220px; bottom: -40px; width: 150vw; }
  .band { padding-top: var(--s-9); }
  .band__title { margin-bottom: var(--s-6); }
  .rows li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .rows__org { grid-column: 1; grid-row: 2; }
  .rows__when { grid-row: 1; grid-column: 2; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .cs-back { position: static; margin: 20px 0 0 var(--gutter); }
  .cs-hero { padding-top: var(--s-7); }
  .cs-meta { grid-template-columns: 1fr; gap: 0; }
  .cs-meta div { padding: 12px 0; }
  .cs-sec { margin-top: var(--s-9); }
  .stats--2, .stats--3 { grid-template-columns: 1fr; }
  .stats--5 { grid-template-columns: repeat(2, 1fr); }
  .stats--5 .stat:last-child { grid-column: 1 / -1; }
  .figs--2 { grid-template-columns: 1fr; }
  .figs--2.figs--phones { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .figs--5 { grid-template-columns: repeat(2, 1fr); }
  .lx--rows { padding: 4px 20px; }
  .lx--rows li { grid-template-columns: 40px 1fr; }
  .lx--boxes li { padding: 20px; }
  .cs-end { flex-direction: column; align-items: flex-start; }
  .dock { bottom: 16px; }
  .dock a { padding: 10px; }
  .contact { padding-bottom: 120px; }
}
@media (min-width: 1280px) { .contact__inner { padding-top: 240px; } }

