/* Sagar Gaur · portfolio
   Type and motion: large uppercase grotesque headlines, pill controls, quiet rows.
   Identity: Neo Sagarism grids inside covers, gold + soot palette, gradient grain. */

:root {
  --ink: #121211;
  --paper: #F3F1EA;
  --gold: #F2BE22;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: color-mix(in srgb, var(--fg) 52%, var(--bg));
  --soft: color-mix(in srgb, var(--fg) 40%, var(--bg));
  --rule: color-mix(in srgb, var(--fg) 14%, var(--bg));
  --chip: color-mix(in srgb, var(--fg) 6%, var(--bg));
  --wash: color-mix(in oklch, var(--bg) 90%, var(--gold));
  --grain-op: .2;

  --f-display: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --gutter: clamp(16px, 3vw, 32px);
  --max: 1440px;

  /* Dense micro grain: dark and light specks (from Neo Sagarism) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='d' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3.3 0 0 0 -1.72'/%3E%3C/filter%3E%3Cfilter id='l' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  3.3 0 0 0 -1.72'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --bg: var(--ink); --fg: var(--paper);
    --wash: color-mix(in oklch, var(--bg) 88%, var(--gold));
    --grain-op: .32; color-scheme: dark;
  }
}
:root[data-theme="night"] {
  --bg: var(--ink); --fg: var(--paper);
  --wash: color-mix(in oklch, var(--bg) 88%, var(--gold));
  --grain-op: .32; color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
/* Gradient grain on the page: a fixed wash under fixed grain */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before { z-index: -1; background: linear-gradient(165deg, var(--bg) 22%, var(--wash) 100%); }
body::after { z-index: 100; background-image: var(--noise); opacity: var(--grain-op); }

a { color: inherit; }
img { display: block; max-width: 100%; }
svg * { vector-effect: non-scaling-stroke; }
b { font-weight: 500; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; }
.skip:focus { left: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.caps { font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; line-height: 1.45; }
.muted { color: var(--muted); }
.quiet-link { color: var(--muted); text-decoration: none; transition: color .2s; }
.quiet-link:hover { color: var(--fg); }

/* ---------- pills and nav ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .4em; height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--chip); color: var(--fg);
  font: 500 15px/1 var(--f-display); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.pill:hover { background: color-mix(in srgb, var(--fg) 12%, var(--bg)); }
.pill:active { transform: scale(.97); }
.pill.solid { background: var(--fg); color: var(--bg); }
.pill.solid:hover { background: color-mix(in srgb, var(--fg) 84%, var(--bg)); }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 90; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 16px var(--gutter); pointer-events: none;
}
.nav > * { pointer-events: auto; display: flex; gap: 6px; align-items: center; }
.nav .pill { background: color-mix(in srgb, var(--chip) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* Magnetic lift: the pill rises, casts a soft shadow and leans toward the cursor (main.js sets --mx/--my) */
.nav .pill, .theme {
  --shadow: 0 0 0 0 transparent;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .2s, color .2s;
}
.nav .pill.lift { background: var(--bg); }
.nav .lift { --shadow: 0 14px 28px -12px rgb(0 0 0 / .38), 0 3px 8px -3px rgb(0 0 0 / .2); transition-duration: .18s, .3s, .2s, .2s; }
:root[data-theme="night"] .nav .lift { --shadow: 0 14px 28px -10px rgb(0 0 0 / .75), 0 3px 8px -3px rgb(0 0 0 / .5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .nav .lift { --shadow: 0 14px 28px -10px rgb(0 0 0 / .75), 0 3px 8px -3px rgb(0 0 0 / .5); } }
.nav .pill:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(.97); }
.theme { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--chip) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.theme button { height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 13px/1 var(--f-display); cursor: pointer; transition: background-color .2s, color .2s; }
.theme button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(112px, 16vh, 180px); }
.mega {
  margin: 0; font-family: var(--f-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.35rem, 7.4vw, 7.6rem); line-height: .9; letter-spacing: -.045em;
}
.mega .line { display: block; overflow: hidden; padding-bottom: .04em; }
.mega .line > span { display: block; }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: clamp(20px, 2.4vw, 32px); }
.tags { margin: 0; text-align: right; }
/* hero note hangs under the email, arrow pointing up at it */
/* the arrow's tip lands right at the last letter of the email */
.hero-meta .note-below { position: absolute; top: 100%; left: calc(100% - 13px); width: max-content; white-space: nowrap; margin-top: 3px; justify-content: flex-start; }
.hero-meta .note-below .hand { font-size: 23px; }

/* Click-to-copy email */
.copy-wrap { position: relative; display: inline-block; }
.copy-email {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: copy;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: var(--rule); transition: text-decoration-color .2s, color .2s;
}
.copy-email:hover { text-decoration-color: currentColor; }
.hero-email { color: var(--muted); font-size: 16px; }
.hero-email:hover { color: var(--fg); }

/* Handwritten notes with a drawn arrow pointing at the email */
.hand { font-family: "Shadows Into Light Two", "Comic Sans MS", cursive; font-weight: 400; letter-spacing: .02em; }
.hand-note {
  position: absolute; left: calc(100% + 4px); bottom: 45%;
  display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 0;
  width: max-content; pointer-events: none; color: var(--fg);
}
.hand-note .hand { font-size: 25px; line-height: 1; text-transform: uppercase; rotate: -4deg; margin-left: 36px; }
.hand-arrow { width: 66px; height: 46px; overflow: visible; }
/* About: the note sits under the end of the email, arrow pointing up at it */
.note-below { position: static; flex-direction: row; align-items: flex-start; justify-content: flex-end; width: auto; margin-top: 4px; }
.note-below .hand-arrow { scale: 1 -1; margin-top: 2px; }
.note-below .hand { margin: 30px 0 0 4px; rotate: -3deg; }
.js .hand-arrow path, .js .squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .in .hand-arrow path, .js .in .squiggle path { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) .45s; }
.js .in .hand-arrow path + path { transition-delay: 1.05s; transition-duration: .3s; }
.hero-body {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px);
  align-items: start; margin-top: clamp(72px, 12vw, 160px);
}
.lede {
  margin: 0; font-family: var(--f-display); font-weight: 400; color: var(--soft);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem); line-height: 1.22; letter-spacing: -.02em; text-wrap: pretty;
}
.lede b { color: var(--fg); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }

.proof { margin: 0; }
.proof .label { display: block; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.proof div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.proof dt { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.02em; }
.proof dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding-top: clamp(120px, 16vw, 220px); }
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 24px; flex-wrap: wrap;
  margin: 0 0 clamp(40px, 6vw, 80px); padding-bottom: 14px; border-bottom: 1px solid var(--rule);
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase; letter-spacing: -.035em;
}
.sec-head > span:first-child { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: .95; }
.sec-head .muted { font-size: 13px; letter-spacing: .02em; }

/* ---------- case studies ---------- */
.case {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter);
  align-items: start; margin-bottom: clamp(96px, 12vw, 176px); scroll-margin-top: 80px;
}
.case:last-child { margin-bottom: 0; }
.case-visual { grid-column: 1 / span 7; }
.case-text { grid-column: 9 / span 4; margin: 0; padding-top: clamp(0px, 7vw, 120px); }
.case.flip .case-visual { grid-column: 6 / span 7; grid-row: 1; }
.case.flip .case-text { grid-column: 1 / span 4; grid-row: 1; }
/* when the visuals run longer than the text, the text stays in view (main.js sets --stick) */
@media (min-width: 961px) {
  .case-text { position: sticky; top: var(--stick, 96px); align-self: start; }
}

.case-title { margin-bottom: 16px; }
.case-title h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.case-title p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.case-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.case-meta, .case-meta a { font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.case-meta a { transition: opacity .2s; }
.case-meta a:hover { opacity: .6; }

.case-text dt { font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.case-text dd { margin: 10px 0 26px; font-size: 15.5px; line-height: 1.6; }
.case-text dd + dd { margin-top: -14px; }
.case-text dd:last-child { margin-bottom: 0; }
.case-text .result { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.35; letter-spacing: -.015em; font-weight: 500; }
.case-text a { text-underline-offset: 3px; text-decoration-color: var(--rule); transition: text-decoration-color .2s; }
.case-text a:hover { text-decoration-color: currentColor; }
.launches { list-style: none; margin: 0; padding: 0; }
.launches li { padding: 0 0 12px; }
.launches li + li { padding-top: 12px; border-top: 1px solid var(--rule); }
.launches a { white-space: nowrap; margin-right: 8px; font-size: 14px; }

/* ---------- covers: gradient grain, a Neo Sagarism grid, one subject ---------- */
.cover {
  --g1: var(--gold); --g2: #B8731C; --g3: var(--ink); --line: var(--ink); --text: var(--ink); --grid-op: .34;
  position: relative; isolation: isolate; overflow: hidden; border-radius: 10px;
  aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--text); margin: 0;
}
/* drifting gradient field */
.cover::before {
  content: ""; position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(38% 46% at 22% 24%, var(--g1), transparent 72%),
    radial-gradient(44% 50% at 62% 58%, var(--g2), transparent 72%),
    radial-gradient(52% 58% at 96% 100%, var(--g3), transparent 74%),
    radial-gradient(40% 46% at 86% 10%, color-mix(in oklch, var(--g1) 55%, var(--g3)), transparent 72%),
    linear-gradient(150deg in oklch, var(--g1), var(--g2) 50%, var(--g3));
  filter: blur(24px) saturate(1.12);
  animation: drift 26s var(--ease) infinite alternate;
}
/* grain over the gradient */
.cover::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: var(--noise); opacity: .5; mix-blend-mode: normal; }
.cover .grid { position: absolute; inset: 0; z-index: -1; color: var(--line); opacity: var(--grid-op); }
.cover .grid svg { width: 100%; height: 100%; display: block; }
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.g-gold   { --g1: #F7D25A; --g2: var(--gold); --g3: #8A4E12; }
.g-night  { --g1: #3A2C12; --g2: #0B0B0A; --g3: #6B4A10; --line: var(--gold); --text: var(--paper); --grid-op: .3; }
.g-paper  { --g1: #FBF7EA; --g2: #F2D77A; --g3: #D9A21E; --grid-op: .26; }
.g-dusk   { --g1: var(--gold); --g2: #5E3B0E; --g3: #0F0E0C; --line: var(--paper); --text: var(--paper); --grid-op: .28; }
.g-ember  { --g1: #F4C24A; --g2: #C2601A; --g3: #2A1608; --line: var(--ink); --grid-op: .3; }
.g-portrait { --g1: var(--gold); --g2: #F5C93E; --g3: #C98E16; --grid-op: .3; }

.cover-stat { text-align: center; display: grid; gap: 6px; padding: 24px; transition: transform .6s var(--ease); }
.cover-stat b { font-family: var(--f-display); font-weight: 500; font-size: clamp(3.2rem, 8.5vw, 8.5rem); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.cover-stat span { font-family: var(--f-display); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.case-visual:hover .cover-stat { transform: scale(1.025); }

/* video inside a hairline frame with corner marks */
.video { position: relative; z-index: 4; width: 74%; aspect-ratio: 16 / 9; border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); background: #000; transition: transform .6s var(--ease); }
.case-visual:hover .video { transform: translateY(-4px); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video .play {
  position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%;
  width: 64px; height: 64px; border: 0; border-radius: 50%; padding-left: 4px;
  background: var(--gold); color: var(--ink); font-size: 18px; cursor: pointer; transition: transform .25s var(--ease);
}
.video .play:hover { transform: scale(1.08); }
.frame-corners {
  position: absolute; inset: -8px; pointer-events: none; z-index: 2; --l: 14px; color: var(--gold);
  background:
    linear-gradient(currentColor, currentColor) 0 0 / var(--l) 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 0 / 1px var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / var(--l) 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 1px var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / var(--l) 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 1px var(--l) no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / var(--l) 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 1px var(--l) no-repeat;
}

/* more video boxes under a case's main cover */
.vid-more { margin-top: clamp(40px, 5vw, 64px); }
.vid-more-label { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.vid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.vid-card { margin: 0; }
.cover.small { aspect-ratio: 5 / 4; border-radius: 8px; --grid-op: .22; }
.cover.small .video { width: 84%; }
.cover.small .play { width: 46px; height: 46px; font-size: 14px; }
.cover.small .frame-corners { inset: -6px; --l: 10px; }
.vid-card:hover .video, .vid-card:hover .asset { transform: translateY(-3px); }

/* portrait assets (4:5): a looping video and an auto-turning carousel */
.cover.tall { aspect-ratio: 4 / 5; }
.asset {
  position: relative; z-index: 4; width: 70%; aspect-ratio: 4 / 5; padding: 0; border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent);
  background: #1b1640; transition: transform .6s var(--ease);
}
.asset video, .asset img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel { cursor: pointer; overflow: hidden; }
.carousel img { opacity: 0; transform: translateX(6%); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.carousel img.on { opacity: 1; transform: none; }
.carousel img.out { opacity: 0; transform: translateX(-6%); }
.g-paper .asset { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.g-paper .frame-corners { color: var(--ink); }
.count {
  position: absolute; right: 12px; bottom: 10px; z-index: 4;
  font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.vid-card figcaption { display: grid; gap: 2px; margin-top: 10px; }
.vid-card .vt { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.25; letter-spacing: -.02em; }
.vid-card figcaption .caps { color: var(--muted); font-size: 12px; }

/* ---------- also ---------- */
.also { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.also li { border-top: 1px solid var(--fg); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.also b { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.045em; }
.also span { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- writing rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows a {
  display: grid; grid-template-columns: 3rem minmax(0, 1.1fr) minmax(0, 1fr) 4.5rem; gap: 8px 24px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.rows li:first-child a { padding-top: 0; }
.rows .n { color: var(--muted); font-family: var(--f-display); font-size: 14px; padding-top: 4px; }
.rows .t { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -.025em; transition: transform .35s var(--ease); }
.rows .d { color: var(--muted); font-size: 15px; line-height: 1.5; display: grid; gap: 4px; }
.rows .d .caps { font-size: 12px; color: var(--fg); }
.rows .go { text-align: right; font-family: var(--f-display); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; padding-top: 4px; transition: transform .35s var(--ease); }
.rows a:hover .t { transform: translateX(6px); }
.rows a:hover .go { transform: translate(2px, -2px); }

/* ---------- about ---------- */
/* portrait frame and text share the same top and bottom edge */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: stretch; }
.portrait-cover { aspect-ratio: auto; height: 100%; min-height: 420px; place-items: end center; }
.about-text .lede { margin-top: -.18em; } /* trims the line-height gap above the first line */
.portrait { position: relative; width: 88%; aspect-ratio: 1400 / 1575; }
.portrait > div { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.portrait-body { background: #F4C534; -webkit-mask-image: url("art/portrait-body.png"); mask-image: url("art/portrait-body.png"); }
.portrait-ink { background: var(--ink); -webkit-mask-image: url("art/portrait-ink.png"); mask-image: url("art/portrait-ink.png"); }
.about-text .lede { font-size: clamp(1.35rem, 2.2vw, 2.05rem); }
.contact { margin-top: clamp(48px, 6vw, 80px); padding-top: 16px; border-top: 1px solid var(--rule); }
.contact .caps { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.mail { margin: clamp(28px, 3.4vw, 44px) 0 0; }
.about-email {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 2.9vw, 2.6rem);
  line-height: 1.05; letter-spacing: -.035em; text-underline-offset: .16em;
}
.contact .ctas { margin-top: clamp(28px, 3vw, 40px); }

/* ---------- footer ---------- */
.foot { padding-top: clamp(120px, 16vw, 220px); overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--rule); }
.foot-links { display: flex; gap: 20px; margin: 0; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--fg); }
.foot-note {
  max-width: 50ch; margin: clamp(40px, 5vw, 64px) 0 0; padding-bottom: clamp(48px, 6vw, 80px);
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--muted); rotate: -1deg;
}
.foot-note a { position: relative; display: inline-block; color: var(--fg); text-decoration: none; white-space: nowrap; }
.foot-note .squiggle { position: absolute; left: -2px; right: -4px; bottom: -6px; width: calc(100% + 6px); height: 8px; overflow: visible; }
.foot-note a:hover { color: #E8742A; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .mega .line > span { animation: rise-line .9s var(--ease) both; }
  .js .mega .line:nth-child(2) > span { animation-delay: .07s; }
  .js .mega .line:nth-child(3) > span { animation-delay: .14s; }
  .js .hero-meta, .js .hero-body { animation: fade-up .9s var(--ease) .25s both; }
  .js [data-r] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-r].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover::before { animation: none; }
}
@keyframes rise-line { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-body, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .case, .case.flip { grid-template-columns: minmax(0, 1fr); }
  .case .case-visual, .case.flip .case-visual, .case .case-text, .case.flip .case-text { grid-column: 1; grid-row: auto; }
  .case-text { padding-top: 36px; max-width: 640px; }
  .also { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .rows a { grid-template-columns: 2.5rem minmax(0, 1fr) 3.5rem; }
  .rows .d { grid-column: 2 / 3; }
  .about-grid .portrait-cover { max-width: 460px; aspect-ratio: 4 / 5; height: auto; min-height: 0; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .hero-meta { gap: 64px; }
  .tags { text-align: left; }
  /* on phones the note hangs to the left, so the arrow still ends at the last letter */
  .hero-meta .note-below { left: auto; right: 2px; flex-direction: row-reverse; }
  .hero-meta .note-below .hand-arrow { scale: -1 -1; width: 46px; height: 36px; }
  .hero-meta .note-below .hand { font-size: 19px; margin: 24px 2px 0 0; }
  /* let the headline wrap naturally on phones */
  .mega .line, .mega .line > span { display: inline; }
  .js .mega .line > span { animation: none; }
  .mega .line + .line::before { content: " "; }
  .hero-meta { flex-direction: column; }
  .hero-meta .right { text-align: left; }
  .proof div { grid-template-columns: 1fr; gap: 2px; }
  .also { grid-template-columns: minmax(0, 1fr); }
  .rows a { grid-template-columns: minmax(0, 1fr) auto; }
  .rows .n { display: none; }
  .rows .d { grid-column: 1 / -1; }
  .rows .go { grid-column: 2; grid-row: 1; }
  .video { width: 84%; }
  .video .play { width: 52px; height: 52px; }
}
