/* p2.akhilpaul.in. Akhil Paul, second cut
   Type: General Sans (Fontshare) for display, Geist for UI and body. */

@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-500i.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #12100e;
  --bg-2: #191612;
  --surface: #1e1a16;
  --ink: #f6f1e7;
  --muted: #cbbfae;
  --soft: #a89884;
  --line: rgba(246, 241, 231, 0.14);
  --signal: #ff4d2a;
  --paper: #f3ecdf;
  --paper-ink: #1a1612;
  --display: "General Sans", sans-serif;
  --sans: "Geist", sans-serif;
  --nav-h: 76px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--signal); color: #fff8f4; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 2000;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

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

/* motion defaults: content is visible unless JS opts in */
html.js:not(.reduced):not(.booted) [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
html.js:not(.reduced) .line > span {
  animation: lineIn 1.05s cubic-bezier(.16, 1, .3, 1) both;
}
.line:nth-child(2) > span { animation-delay: .08s; }
.line:nth-child(3) > span { animation-delay: .16s; }
html.enter-wipe .line > span { animation-delay: .32s; }
html.enter-wipe .line:nth-child(2) > span { animation-delay: .4s; }
html.enter-wipe .line:nth-child(3) > span { animation-delay: .48s; }
@keyframes lineIn {
  from { transform: translateY(110%); }
  to { transform: none; }
}

.line { display: block; overflow: hidden; }
.line > span { display: block; padding-bottom: 0.08em; }

/* ── cursor ── */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor .cursor { display: block; }
}
html.kbd, html.kbd * { cursor: auto !important; }
html.kbd .cursor { display: none !important; }

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 400;
  border-radius: 50%;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--signal);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(246, 241, 231, 0.7);
  display: grid;
  place-items: center;
  transition: width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1), margin .35s cubic-bezier(.22,1,.36,1), background .35s, border-color .35s;
}
.cursor.is-hot .cursor-ring {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--signal);
  border-color: transparent;
}
.cursor-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a120f;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .25s, transform .25s;
}
.cursor.is-hot .cursor-label { opacity: 1; transform: none; }

/* ── page wipe ── */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}
html.enter-wipe .wipe { animation: wipeAway .7s cubic-bezier(.77,0,.18,1) forwards; }
body.is-leaving .wipe { animation: wipeIn .46s cubic-bezier(.77,0,.18,1) forwards; }
@keyframes wipeIn {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes wipeAway {
  from { transform: scaleY(1); transform-origin: top; }
  to { transform: scaleY(0); transform-origin: top; }
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 140;
  pointer-events: none;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ── nav ── */
.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(1120px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 12px;
  background: rgba(18, 16, 14, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--ink); background: rgba(246, 241, 231, 0.08); }
.nav-cta {
  text-decoration: none;
  background: var(--ink);
  color: #16130f;
  font-weight: 500;
  font-size: 14.5px;
  padding: 10px 16px;
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: #fff; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  place-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform .3s, opacity .3s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(14, 12, 10, 0.96);
  padding: 110px 28px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-family: var(--display);
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.mobile-nav a em { font-style: italic; color: var(--signal); }

/* ── layout ── */
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: clamp(76px, 10vw, 128px) 0; scroll-margin-top: 84px; }
.block { scroll-margin-top: 84px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 77, 42, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 42, 0); }
}
.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.45rem, 6.5vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.048em;
  margin: 0;
}
.display em, h2 em, .lede em { font-style: italic; font-weight: 500; }
.display em { color: var(--signal); }
h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.15rem, 4.2vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  margin: 0;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 46ch;
  margin: 18px 0 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head p { margin: 0; color: var(--muted); max-width: 42ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #16130f; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(246,241,231,.4); background: rgba(246,241,231,.04); }
.btn-dark { background: var(--paper-ink); color: var(--paper); }
.hero-actions, .link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ── hero ── */
.hero {
  position: relative;
  padding: 132px 0 36px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(0);
}
.orb-a {
  background: radial-gradient(circle, rgba(255, 77, 42, 0.28), transparent 68%);
  top: -12vw;
  right: -8vw;
  animation: drift 16s ease-in-out infinite;
}
.orb-b {
  background: radial-gradient(circle, rgba(232, 196, 150, 0.14), transparent 70%);
  bottom: -10vw;
  left: -10vw;
  animation: drift 20s ease-in-out infinite reverse;
}
@keyframes drift {
  50% { transform: translate3d(3%, -2%, 0) scale(1.06); }
}
.hero-grid {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px;
  align-items: center;
}
.portrait-wrap {
  position: relative;
  width: min(400px, 100%);
  margin-left: auto;
  aspect-ratio: 1;
}
.portrait-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 77, 42, 0.75);
  animation: spin 36s linear infinite;
}
.portrait-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(246, 241, 231, 0.16);
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.float-card {
  position: absolute;
  z-index: 2;
  min-width: 148px;
  padding: 12px 14px 13px;
  border-radius: 16px;
  background: rgba(18, 16, 14, 0.78);
  border: 1px solid rgba(246, 241, 231, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.float-card strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--signal);
}
.float-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.fc-1 { left: -54px; bottom: 18px; }
.fc-2 { right: -28px; top: -6px; }
.award {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(231, 194, 122, 0.45);
  background: rgba(231, 194, 122, 0.12);
  color: #f4e6c4;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.award-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  color: #e7c27a;
}
.award-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex: 0 0 3px;
}

.metric-bar {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 54px auto 0;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  border-top: 1px solid var(--line);
}
.metric-bar strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-bar span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* ── logos ── */
.logo-band {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 26px 0 30px;
  overflow: hidden;
}
.logo-band .kicker { color: #6d6256; justify-content: center; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 36s linear infinite;
  padding-top: 4px;
}
.marquee-group { display: flex; gap: 12px; padding-right: 12px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.logo-chip {
  height: 68px;
  padding: 10px 18px;
  background: #fffaf3;
  border: 1px solid rgba(26, 22, 18, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-chip img { height: 34px; width: auto; }

/* ── impact ── */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.impact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 24px 22px;
  min-height: 100%;
}
.impact-card .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--signal);
  font-size: 1.4rem;
}
.impact-card h3 { margin: 10px 0 8px; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.impact-card p { margin: 0; color: var(--muted); }

/* ── work cards ── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  perspective: 1200px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
}
.card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 0.9fr; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #0d0b09; }
.card.featured .card-media { aspect-ratio: auto; min-height: 320px; height: 100%; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.card:hover { border-color: rgba(255, 77, 42, 0.65); }
.card:hover .card-media img { transform: scale(1.08); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 77, 42, 0.34), transparent 46%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
  z-index: 2;
}
.card:hover::after { opacity: 1; }
.pill {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 16, 14, 0.8);
  border: 1px solid rgba(246, 241, 231, 0.18);
  font-size: 12px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.pill.gold { background: #e7c27a; color: #1a1612; border-color: transparent; font-weight: 500; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { margin: 0; color: var(--soft); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 8px 0 10px;
}
.card p { margin: 0; color: var(--muted); }
.more {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14.5px;
}
.more svg { width: 16px; height: 16px; transition: transform .3s; }
.card:hover .more svg { transform: translateX(5px); }

/* ── now ── */
.edit-note {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 77, 42, 0.7);
  background: rgba(255, 77, 42, 0.08);
  color: var(--ink);
  font-size: 0.98rem;
}
.edit-note strong { color: var(--signal); font-weight: 500; }
.now-list { display: grid; gap: 0; }
.now-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.now-item:last-child { border-bottom: 1px solid var(--line); }
.now-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--soft); font-size: 14px; }
.edit-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a120f;
  background: var(--signal);
  font-weight: 600;
}
.now-label {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.now-item h3 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.now-item p { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.5; max-width: 54ch; }

/* ── voices ── */
.band-paper {
  background: var(--paper);
  color: var(--paper-ink);
}
.band-paper .kicker { color: #6e6256; }
.band-paper .section-head p,
.band-paper .quote p { color: #4e463d; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote {
  margin: 0;
  background: #fffaf3;
  border-radius: 22px;
  padding: 24px 24px 20px;
  border: 1px solid rgba(26, 22, 18, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 10px 30px rgba(60, 40, 20, 0.04);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.quote:hover { transform: translateY(-4px); }
.quote p {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: #2a241e;
}
.who { display: flex; align-items: center; gap: 12px; font-style: normal; }
.who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.who strong { display: block; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 0.98rem; }
.who span { display: block; font-family: var(--sans); font-style: normal; color: #6d6256; font-size: 13px; }

/* ── resume ── */
.resume-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.resume-sticky { position: sticky; top: 100px; }
.resume-sticky p { color: var(--muted); }
.tl { display: grid; grid-template-columns: 168px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.tl time { color: var(--soft); font-size: 14px; }
.tl h3 { margin: 0; font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; }
.tl .co { margin: 2px 0 8px; color: var(--signal); font-size: 0.95rem; }
.tl p, .tl li { color: var(--muted); }
.tl p { margin: 0 0 8px; }
.tl ul { margin: 0; padding-left: 18px; }
.tl li { margin: 6px 0; }
.edu { margin-top: 8px; }

/* ── contact ── */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: end; }
.giant {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .4s cubic-bezier(.22,1,.36,1);
}
.giant:hover { background-size: 100% 1px; }
.contact-links { display: grid; gap: 10px; }
.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.contact-links a:hover { border-color: rgba(246,241,231,.35); }
.contact-links small { color: var(--soft); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.contact-links strong { font-weight: 500; }

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--soft); font-size: 14px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer nav { display: flex; gap: 16px; }

/* ── case studies ── */
.case-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 48px;
  overflow: hidden;
}
.case-hero-media, .case-hero-shade { position: absolute; inset: 0; }
.case-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: ken 2.4s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes ken { to { transform: scale(1); } }
.case-hero-shade {
  background:
    linear-gradient(180deg, rgba(18,16,14,0.2) 0%, rgba(18,16,14,0.15) 32%, rgba(18,16,14,0.78) 70%, #12100e 100%);
}
.case-hero-copy { position: relative; z-index: 2; width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.case-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.3rem, 5.6vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.046em;
  margin: 0;
  max-width: 14ch;
}
.case-hero h1 em { font-style: italic; color: var(--signal); }
.hero-metric { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero-metric b {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--signal);
}
.hero-metric span { color: var(--muted); max-width: 28ch; }

.case-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto 40px; }
.case-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 860px);
  gap: 42px;
  justify-content: center;
}
.case-toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 9px; }
.case-toc a { color: var(--soft); text-decoration: none; font-size: 13.5px; }
.case-toc a:hover, .case-toc a[aria-current="true"] { color: var(--ink); }
.block { padding: 56px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 14px; }
.prose p { margin: 0 0 14px; color: var(--muted); font-size: 1.05rem; }
.prose p.callout { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); }
.prose ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); }
.prose li { margin: 7px 0; }

.role-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.role-strip div { padding: 16px 16px 16px 0; }
.role-strip div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.role-strip small {
  display: block;
  color: var(--soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 6px;
}
.role-strip p { margin: 0; }

.callout {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
}

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 18px 0; }
.stat {
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--signal);
}
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

.steps { display: grid; gap: 10px; margin-top: 8px; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.step em { font-family: var(--display); font-style: italic; font-size: 1.45rem; color: var(--signal); line-height: 1; }
.step h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 500; }
.step p { margin: 0; color: var(--muted); }

.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; align-items: center; }
.flow span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
}
.flow i { color: var(--soft); font-style: normal; }

.gallery { display: grid; gap: 14px; margin-top: 18px; }
.gallery.two { grid-template-columns: 1fr 1fr; }
.shot {
  margin: 0;
  background: #0e0c0a;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.shot img { width: 100%; height: auto; background: #fff; }
.shot.tall { background: #efe8dc; }
.shot.tall img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
  margin: 18px auto;
  background: transparent;
}
.shot figcaption { padding: 12px 14px 14px; color: var(--muted); font-size: 0.9rem; background: var(--surface); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mini h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mini p { margin: 0; color: var(--muted); }

.next-case {
  margin: 28px 0 10px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.next-case img { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }
.next-case small { color: var(--soft); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.next-case h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 6px; }
.next-case:hover img { transform: scale(1.03); }
.next-case .media { overflow: hidden; border-radius: 14px; }
.next-case .media img { transition: transform .6s cubic-bezier(.22,1,.36,1); }

/* marketing mocks, clearly not product screenshots */
.mock {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0e0c0a;
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3a342c; }
.dot.r { background: #ff4d2a; }
.mock-grid { display: grid; grid-template-columns: 180px 1fr; min-height: 220px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px; color: var(--soft); font-size: 13px; display: grid; align-content: start; gap: 8px; }
.mock-side b { color: var(--ink); font-weight: 500; }
.mock-main { padding: 14px; display: grid; gap: 8px; align-content: start; }
.mock-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #1a1714;
  font-size: 14px;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 77, 42, 0.15);
  color: #ffb5a4;
}
.tag.ok { background: rgba(231, 194, 122, 0.18); color: #e7c27a; }
.nodes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; }
.node {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1a1714;
  font-size: 13px;
}
.node strong { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
.mock-note { margin: 0; padding: 10px 14px 12px; color: var(--soft); font-size: 12.5px; }

.miss {
  min-height: 70svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 140px 20px 80px;
}
.miss h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 8vw, 5.4rem); letter-spacing: -0.046em; margin: 0; }
.miss p { color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid, .section-head, .resume-grid, .contact-grid, .case-layout, .card.featured, .next-case, .mock-grid {
    grid-template-columns: 1fr;
  }
  .resume-sticky { position: static; }
  .case-toc { position: static; flex-direction: row; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
  .case-toc a { white-space: nowrap; }
  .mock-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .portrait-wrap { margin: 8px auto 0; width: min(340px, 86%); }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
}
@media (max-width: 800px) {
  .line { overflow: visible; }
  html.js:not(.reduced) .line > span,
  html.enter-wipe .line > span {
    animation: none;
    transform: none;
  }
  .nav-links, .site-nav .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .work-grid, .impact-grid, .voice-grid, .gallery.two, .pair, .role-strip, .now-item, .tl {
    grid-template-columns: 1fr;
  }
  .role-strip div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; margin-top: 0; }
  .metric-bar { grid-template-columns: 1fr 1fr; }
  .metric-bar div:last-child { grid-column: 1 / -1; }
  .wrap, .hero-grid, .metric-bar, .case-hero-copy { width: min(1120px, calc(100% - 32px)); }
  .float-card { position: static; margin-top: 10px; }
  .portrait-wrap { display: grid; }
  .fc-1, .fc-2 { position: absolute; }
  .card.featured .card-media { min-height: 200px; aspect-ratio: 16/10; height: auto; }
  .hero { min-height: auto; padding-top: 112px; }
  .award { margin-top: 18px; }
}
@media (max-width: 560px) {
  .portrait-wrap {
    width: min(268px, 74vw);
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }
  .float-card {
    min-width: 0;
    max-width: 108px;
    padding: 7px 9px 8px;
  }
  .float-card strong { font-size: 1.15rem; }
  .float-card span { font-size: 10.5px; line-height: 1.25; }
  .fc-1, .fc-2 {
    display: block;
    top: auto;
    bottom: 0;
  }
  .fc-1 { left: 0; right: auto; }
  .fc-2 { right: 0; left: auto; }
  .hero-actions .btn { width: 100%; }
  .mock-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .marquee { overflow: visible; mask-image: none; }
  .marquee-track { transform: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-clone { display: none !important; }
  .case-hero-media img { transform: none; }
  html.js [data-reveal], html.js .line > span { opacity: 1; transform: none; }
}

@media (scripting: none) {
  [data-reveal], .line > span { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 380px) {
  .award { font-size: 12px; gap: 6px; padding: 6px 10px 6px 7px; }
}
