/* =========================================================
   Aditya Sakpal — portfolio
   Light editorial system: off-white paper, ink type, hairlines,
   mono labels. The hero (portrait + name) is kept from v1.
   ========================================================= */

:root {
  --bg: #f2f2f0;
  --paper: #e8e9eb;          /* the portrait's own background */
  --surface: #fbfbfa;
  --ink: #0f0f0f;
  --ink-2: #555553;
  --ink-3: #8f8f8b;
  --line: #d9d9d5;
  --hover: #e8e8e4;
  --accent: #ff4f1f;
  --pad: clamp(20px, 3.6vw, 56px);
  --hdr: 64px;
  --font: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, dt, figure { margin: 0; }
sup { font-size: 0.22em; vertical-align: top; position: relative; top: 0.9em; letter-spacing: 0; font-weight: 400; color: var(--ink-3); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--ink-3); }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 400;
}

/* ---------- Text roll on hover ---------- */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; }
.roll__in { display: inline-block; position: relative; transition: transform 0.5s var(--ease); }
.roll__in::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
a:hover > .roll .roll__in, button:hover > .roll .roll__in, .roll:hover .roll__in { transform: translateY(-100%); }

.arr { width: 1em; height: 1em; flex: none; transition: transform 0.45s var(--ease); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link .arr { width: 14px; height: 14px; }
.link:hover .arr { transform: rotate(45deg); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--hdr);
  display: flex; justify-content: space-between; align-items: center;
  padding-inline: clamp(20px, 1.8vw, 26px);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  color: var(--ink);
  background: rgba(242, 242, 240, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
}
.is-scrolled .hdr { border-bottom-color: var(--line); }
.hdr__nav { display: flex; gap: clamp(16px, 2.4vw, 30px); }
.hdr__nav a { position: relative; }
.hdr__nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor;
}
/* On the home hero the header floats over the photo and inverts against it */
.is-home:not(.past-hero) .hdr {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color: #fff; mix-blend-mode: difference;
}

/* =========================================================
   HERO (unchanged design)
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  container-type: size;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture {
  position: absolute; top: 0; left: 50%;
  height: 100%; aspect-ratio: 1445 / 1088;
  transform: translateX(calc(-1 * var(--fx, 50%)));
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 40%;
  transform: scale(var(--s, 1.08));
  filter: blur(var(--b, 14px));
  opacity: 0;
  transition: opacity 1.4s var(--ease), filter 1.6s var(--ease), transform 2.2s var(--ease);
}
.is-loaded .hero__media img { opacity: 1; --b: 0px; --s: 1; }

.hero__copy {
  position: absolute;
  left: calc(50cqw + 2.4cqh); top: 21cqh;
  mix-blend-mode: difference;
  will-change: transform;
}
.hero__name {
  font-weight: 600;
  font-size: 14cqh;
  line-height: 0.88;
  letter-spacing: -0.055em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line__in { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-loaded .line__in { transform: none; transition-delay: 0.35s; }
.is-loaded .line:nth-child(2) .line__in { transition-delay: 0.45s; }

.hero__lede {
  margin-top: 2.6cqh;
  max-width: max(250px, 33cqh);
  font-weight: 600; font-size: 15px; line-height: 1.32; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s var(--ease) 0.8s, transform 1s var(--ease) 0.8s;
}
.is-loaded .hero__lede { opacity: 1; transform: none; }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(20px, 1.8vw, 26px) 24px;
  font-weight: 600; font-size: 14px; text-transform: uppercase;
  mix-blend-mode: difference;
}
.hero__meta li { opacity: 0; transform: translateY(10px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.is-loaded .hero__meta li { opacity: 1; transform: none; }
.hero__meta li:nth-child(1) { transition-delay: 1s; }
.hero__meta li:nth-child(2) { transition-delay: 1.08s; }
.hero__meta li:nth-child(3) { transition-delay: 1.16s; }
.hero__meta li:nth-child(4) { transition-delay: 1.24s; text-align: right; }
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; margin-right: 8px; vertical-align: 2px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

/* =========================================================
   SHARED
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

.display {
  font-weight: 500;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.9; letter-spacing: -0.06em;
  margin-left: -0.04em;
}
.h2 {
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1; letter-spacing: -0.045em;
}
.shead {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 24px;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.shead .eyebrow { grid-column: 1 / -1; }
.shead__aside { font-size: 15px; }

/* Tech chips: small logo + small label */
.techs { display: flex; flex-wrap: wrap; gap: 6px; }
.tech {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px; font-weight: 500; line-height: 1.2; letter-spacing: 0;
  white-space: nowrap;
  transition: border-color 0.25s, background 0.25s;
}
.tech:hover { border-color: var(--ink-3); background: #fff; }
.ico { width: 14px; height: 14px; flex: none; display: block; }
.ico--mono {
  display: inline-grid; place-items: center;
  border-radius: 4px; background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 7.5px; font-weight: 500; letter-spacing: 0;
}

/* =========================================================
   HOME
   ========================================================= */
.intro { padding-top: clamp(96px, 11vw, 168px); }
.intro .eyebrow { margin-bottom: 28px; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: end; }
.intro__text {
  font-weight: 500;
  font-size: clamp(28px, 3.3vw, 50px);
  line-height: 1.12; letter-spacing: -0.035em;
  max-width: 1080px;
  text-wrap: pretty;
}
.inl {
  display: inline-flex; align-items: center; gap: 0.28em;
  padding: 0.08em 0.38em 0.08em 0.26em;
  margin-inline: 0.04em;
  border: 1px solid var(--line); border-radius: 0.32em;
  background: var(--surface);
  font-size: 0.62em; line-height: 1.15; letter-spacing: -0.02em;
  vertical-align: 0.18em;
}
.inl .ico { width: 0.95em; height: 0.95em; }
.intro__side { display: grid; gap: 4px; font-size: 15px; padding-bottom: 8px; }
.intro__side .link { margin-top: 14px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(72px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
.stats > div { padding: 22px 0 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { font-weight: 500; font-size: clamp(40px, 4.2vw, 64px); line-height: 1; letter-spacing: -0.05em; }
.stats dd { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }

.work-sel, .caps, .stack { padding-top: clamp(112px, 12vw, 180px); }

/* Project list rows */
.plist { border-bottom: 1px solid var(--line); }
.prow { border-top: 1px solid var(--line); }
.prow__link {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1.05fr) minmax(0, 1fr) 210px 28px;
  align-items: center; gap: 24px;
  margin-inline: calc(-1 * var(--pad)); padding: 30px var(--pad);
  transition: background 0.35s var(--ease);
}
.prow__link:hover { background: var(--hover); }
.prow__idx { color: var(--ink-3); }
.prow__title {
  font-weight: 500; font-size: clamp(28px, 3vw, 46px); line-height: 1; letter-spacing: -0.045em;
  transition: transform 0.5s var(--ease);
}
.prow__link:hover .prow__title { transform: translateX(10px); }
.prow__sum { color: var(--ink-2); font-size: 15px; line-height: 1.45; max-width: 420px; }
.prow__meta { display: grid; gap: 10px; justify-items: start; color: var(--ink-3); }
.prow__arr { justify-self: end; width: 22px; height: 22px; }
.prow__arr .arr { width: 22px; height: 22px; }
.prow__link:hover .arr { transform: rotate(45deg); }

.minis { display: flex; align-items: center; }
.mini {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  margin-left: -6px;
}
.mini:first-child { margin-left: 0; }
.mini .ico { width: 13px; height: 13px; }
.mini .ico--mono { width: 16px; height: 16px; border-radius: 50%; font-size: 6.5px; }
.mini--more { font-family: var(--mono); font-size: 10px; color: var(--ink-2); }

/* Capabilities */
.caps__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px clamp(32px, 5vw, 96px); }
.cap { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.cap__num { color: var(--ink-3); padding-top: 9px; }
.cap__title { font-weight: 500; font-size: clamp(26px, 2.3vw, 36px); letter-spacing: -0.04em; line-height: 1.05; }
.cap__desc { grid-column: 2; margin-top: 12px; color: var(--ink-2); max-width: 440px; }
.cap__list { grid-column: 2; margin-top: 24px; }
.cap__list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }

/* Toolkit strip */
.stack__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stack__grid li {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px; background: var(--bg);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500;
  transition: background 0.3s;
}
.stack__grid li:hover { background: var(--surface); }
.stack__grid .ico { width: 18px; height: 18px; }
.stack__grid .ico--mono { font-size: 8px; }

/* =========================================================
   WORK INDEX
   ========================================================= */
.phead { padding-top: calc(var(--hdr) + clamp(48px, 7vw, 110px)); padding-bottom: clamp(40px, 5vw, 72px); }
.phead .eyebrow { margin-bottom: 18px; }
.phead__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: clamp(28px, 3vw, 44px); }
.phead__lede { max-width: 440px; color: var(--ink-2); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--surface);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plist--all .prow[hidden] { display: none; }
.plist__empty { padding: 40px 0; }

.minor { padding-top: clamp(100px, 11vw, 160px); }
.mlist { border-bottom: 1px solid var(--line); }
.mrow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr) 72px; gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.mrow__title { font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.mrow__desc { color: var(--ink-2); font-size: 15px; }
.mrow__stack { color: var(--ink-3); text-align: right; }
.mrow__go { justify-self: end; font-size: 14px; }
.cs__cta { margin-top: 28px; padding: 12px 20px; font-size: 14px; }
.cols__l .cs__cta { display: inline-flex; }

/* =========================================================
   3-COLUMN PAGES (project + about)
   ========================================================= */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr) minmax(0, 0.9fr);
  padding-top: var(--hdr);
  min-height: 100vh;
}
.cols > * { padding: clamp(36px, 4vw, 56px) clamp(20px, 2.2vw, 36px) clamp(64px, 7vw, 100px); }
.cols__l { padding-left: 0; }
.cols__r { padding-right: 0; }
.cols__m { border-inline: 1px solid var(--line); }
.sticky { position: sticky; top: calc(var(--hdr) + 32px); }

.back { font-size: 14px; color: var(--ink-2); margin-bottom: 28px; }
.cs__title { font-weight: 500; font-size: clamp(44px, 4.8vw, 76px); line-height: 0.95; letter-spacing: -0.055em; }
.meta { margin-top: 36px; border-bottom: 1px solid var(--line); }
.meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.meta dt { color: var(--ink-3); }
.meta dd { text-align: right; font-weight: 500; }

.cols__m > .eyebrow { margin-bottom: 20px; }
.cs__lede { font-weight: 500; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.22; letter-spacing: -0.03em; text-wrap: pretty; }
.cs__sec { margin-top: clamp(48px, 5vw, 72px); }
.cs__h {
  font-weight: 500; font-size: 20px; letter-spacing: -0.025em;
  padding-bottom: 14px; margin-bottom: 4px;
}
.cs__points { counter-reset: pt; }
.cs__points li {
  counter-increment: pt;
  display: grid; grid-template-columns: 40px 1fr; gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 15.5px; line-height: 1.55;
}
.cs__points li::before { content: counter(pt, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 4px; }
.cols__r .eyebrow { margin-bottom: 16px; }

.next {
  display: grid; gap: 10px;
  padding-block: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
.next__title {
  display: inline-flex; align-items: center; gap: 0.25em;
  font-weight: 500; font-size: clamp(48px, 8vw, 128px); line-height: 0.95; letter-spacing: -0.055em;
  transition: transform 0.6s var(--ease);
}
.next__title .arr { width: 0.6em; height: 0.6em; }
.next:hover .next__title { transform: translateX(14px); }
.next:hover .arr { transform: rotate(45deg); }

/* About specifics */
.portrait { margin-top: 32px; max-width: 220px; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(0.15); }
.portrait figcaption { margin-top: 8px; text-align: right; }
.cols__l .link { margin-top: 28px; font-size: 14px; }
.prose { margin-top: 28px; display: grid; gap: 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 640px; }
.block { margin-top: clamp(64px, 7vw, 104px); scroll-margin-top: calc(var(--hdr) + 24px); }

.svc { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.svc h3 { font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.svc p:not(.mono) { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.svc .mono { padding-top: 5px; }

.xp { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.xp__when { color: var(--ink-3); padding-top: 5px; }
.xp__role { font-weight: 500; font-size: 19px; letter-spacing: -0.025em; line-height: 1.2; }
.xp__org { margin-top: 3px; font-size: 14.5px; }
.xp__desc { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.tk { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.tk__group { font-size: 14px; font-weight: 500; margin-bottom: 12px; }

.certs { border-bottom: 1px solid var(--line); }
.certs li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.certs li span:last-child { text-align: right; }

.stats--list { display: block; margin-top: 0; border-top: 0; }
.stats--list > div, .stats--list > div + div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line); border-left: 0;
}
.stats--list > div:last-child { border-bottom: 1px solid var(--line); }
.stats--list dt { font-size: 28px; letter-spacing: -0.04em; order: 2; }
.stats--list dd { margin: 0; }
.hl li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.hl li:last-child { border-bottom: 1px solid var(--line); }
.hl .muted { font-weight: 400; font-size: 13px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  width: 100%; padding: 16px 0; text-align: left; font-weight: 500; font-size: 16px;
}
.faq__q i { position: relative; width: 12px; height: 12px; flex: none; }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.45s var(--ease); }
.faq__q i::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] i::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 32px 18px 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.faq__item.open .faq__a { grid-template-rows: 1fr; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-top: calc(var(--hdr) + clamp(48px, 7vw, 110px)); padding-bottom: clamp(80px, 9vw, 140px); }
.contact .eyebrow:first-child { margin-bottom: 18px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); margin-top: clamp(48px, 6vw, 96px); }
.contact__lede { font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -0.025em; max-width: 460px; }
.contact > .contact__lede { margin-top: 32px; }
.cinfo { margin-top: 40px; display: grid; gap: 8px; }
.cinfo__mail { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em; }
.cinfo__mail a { border-bottom: 1px solid var(--ink); }
.copy { font-family: var(--mono); font-size: 11px; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.copy:hover { border-color: var(--ink-3); }
.cinfo__social { display: grid; gap: 6px; }

.form { display: grid; gap: 28px; align-content: start; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); padding: 0; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 10px 0 12px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
  border-radius: 0; resize: vertical; outline: none;
  transition: border-color 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: #b6b6b1; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.opts label { position: relative; cursor: pointer; font-family: var(--font); text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 13.5px; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.opts label:hover span { border-color: var(--ink-3); }
.opts input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 500; font-size: 15px;
}
.btn .arr { width: 15px; height: 15px; }
.btn:hover .arr { transform: rotate(45deg); }
.form__note { font-size: 13px; margin-top: -12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.talk {
  display: flex; overflow: hidden;
  border-top: 1px solid var(--line);
  margin-top: clamp(96px, 10vw, 150px);
  padding-block: clamp(20px, 2.4vw, 36px);
}
.talk__track {
  display: flex; flex: none; align-items: center;
  animation: marquee 26s linear infinite;
  font-weight: 500; font-size: clamp(64px, 10vw, 168px); line-height: 1; letter-spacing: -0.055em;
  white-space: nowrap;
  transition: color 0.4s;
}
.talk__track span { padding-right: 0.25em; }
.talk__track i { font-style: normal; font-size: 0.3em; padding-right: 0.8em; color: var(--accent); }
.talk:hover .talk__track { color: var(--accent); }
.talk:hover .talk__track i { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .talk__track { animation: none; } }

.ftr { padding: clamp(48px, 5vw, 72px) var(--pad) 28px; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr__lead .eyebrow, .ftr__col .eyebrow { margin-bottom: 14px; }
.ftr__mail { display: inline-block; font-weight: 500; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -0.035em; line-height: 1.1; border-bottom: 1px solid transparent; transition: border-color 0.3s; word-break: break-all; }
.ftr__mail:hover { border-bottom-color: currentColor; }
.ftr__col { display: grid; align-content: start; gap: 6px; font-size: 15px; font-weight: 500; }
.ftr__col .muted { font-weight: 400; }
.ftr__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(64px, 8vw, 120px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

.is-case .talk, .cols + .talk { margin-top: 0; }

/* Page fade */
body { animation: pagein 0.6s var(--ease) both; }
body.is-leaving { opacity: 0; transition: opacity 0.22s ease; }
@keyframes pagein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .prow__link { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 28px; }
  .prow__meta { display: none; }
  .cols { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
  .cols__m { border-right: 0; padding-right: 0; }
  .cols__r { grid-column: 2; border-left: 1px solid var(--line); padding: 0 0 80px clamp(20px, 2.2vw, 36px); }
  .cols__r .sticky { position: static; }
}

@media (max-width: 820px) {
  :root { --hdr: 56px; }
  .hdr { font-size: 14px; }
  .hero__copy { left: var(--pad); right: var(--pad); top: auto; bottom: 76px; width: auto; mix-blend-mode: normal; }
  .hero__media picture { --fx: 40%; -webkit-mask-image: none; mask-image: none; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 52%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.88) 100%); }
  .hero__name { font-size: clamp(60px, 18vw, 96px); }
  .hero__lede { margin-top: 16px; max-width: 330px; }
  .hero__meta { grid-template-columns: 1fr 1fr; font-size: 12px; mix-blend-mode: normal; }
  .hero__meta li:nth-child(2), .hero__meta li:nth-child(3) { display: none; }

  .intro__grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .caps__grid { grid-template-columns: 1fr; }
  .shead { grid-template-columns: 1fr; }

  .prow__link { grid-template-columns: 1fr 24px; grid-template-areas: "idx arr" "title arr" "sum sum"; gap: 8px 16px; padding-block: 24px; }
  .prow__idx { grid-area: idx; }
  .prow__title { grid-area: title; }
  .prow__sum { grid-area: sum; margin-top: 4px; }
  .prow__arr { grid-area: arr; align-self: center; }
  .mrow { grid-template-columns: 1fr; gap: 4px; }
  .mrow__stack { text-align: left; }
  .mrow__go { justify-self: start; margin-top: 6px; }

  .cols { display: block; }
  .cols > * { padding: 32px 0 0; border: 0 !important; }
  .sticky { position: static; }
  .cols__m { padding-top: 48px; }
  .cols__r { padding-bottom: 72px; margin-top: 56px; }
  .portrait { max-width: 180px; }
  .xp { grid-template-columns: 1fr; gap: 6px; }

  .contact__grid { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__lead { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hdr__brand { display: none; }
  .hdr { justify-content: flex-end; }
  .hdr__nav { width: 100%; justify-content: space-between; }
}
