/* ============================================================
   Betrand Rafael — Portofolio
   Built on the supplied "Superpower" style reference: dark cinematic
   hero, floating dark pill nav, white content canvas, one rationed
   coral accent, whisper-weight display type at tight negative tracking.
   Vanilla CSS, no framework.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Colour — reference values, with two accessibility adjustments noted below */
  --coral:      #fc5f2b;   /* fills, brand mark, large type only */
  --coral-ink:  #c2390d;   /* darkened coral, used wherever coral carries small text
                              (#fc5f2b on white is 3.08:1 — below the 4.5:1 minimum) */
  --carbon:     #18181b;
  --zinc:       #66666e;   /* darkened from the reference #71717a, which measured
                              4.40:1 on the fog surface — just under the minimum */
  --ash:        #a1a1aa;   /* borders and disabled states only — never text (2.56:1) */
  --mist:       #e4e4e7;   /* hairlines only */
  --fog:        #f4f4f5;
  --white:      #ffffff;

  /* Type */
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-caption:    11px;
  --text-body:       15px;
  --text-body-lg:    17px;
  --text-subheading: 19px;
  --text-heading-sm: 22px;
  --text-heading:    30px;
  --text-heading-lg: 45px;
  --text-display:    66px;

  /* Spacing — 4px base, compact */
  --s-4: 4px;
  --s-8: 8px;
  --s-11: 11px;
  --s-16: 16px;
  --s-24: 24px;
  --s-28: 28px;
  --s-40: 40px;
  --s-60: 60px;
  --s-96: 96px;

  --page: 1200px;

  /* Radius */
  --r-sm: 5px;
  --r-icon: 7.5px;
  --r-card: 15px;
  --r-pill: 9999px;

  --shadow-subtle: rgba(0, 0, 0, .05) 0 2px 2px 0;
  --shadow-lift: rgba(0, 0, 0, .04) 0 2px 8px 0;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--text-body-lg);
  /* The reference sets body-lg at 1.4. These paragraphs run long, so they
     use 1.6 for legibility; short UI copy keeps the tighter reference value. */
  line-height: 1.6;
  letter-spacing: -.009em;
  color: var(--carbon);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--coral); color: var(--carbon); }

:focus-visible {
  outline: 2px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.shell {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--s-24);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--carbon);
  color: var(--white);
  font: 400 var(--text-body)/1 var(--sans);
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ── Floating pill navigation ───────────────────────────── */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--s-16);
  pointer-events: none;
}

.nav-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-16);
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 10px 10px 10px 19px;
  border-radius: var(--r-card);
  background: var(--carbon);
  pointer-events: auto;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.js .nav-pill.lifted { box-shadow: rgba(0, 0, 0, .12) 0 6px 24px 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  color: var(--white);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: -.012em;
  white-space: nowrap;
}
.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--coral);
}
.js .brand-mark { animation: beat 3s var(--ease) infinite; }
@keyframes beat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.6); opacity: .55; }
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  z-index: 1;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: var(--text-body);
  letter-spacing: -.005em;
  color: rgba(255, 255, 255, .7);
  transition: color .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }

/* Sliding capsule that tracks the section currently in view. */
.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 34px;
  width: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  transform: translate3d(var(--x, 0), -50%, 0);
  opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.nav-indicator.on { opacity: 1; }

/* ── Coral pill CTA ─────────────────────────────────────────
   The reference calls for a filled coral pill but pairs it with white
   text, which measures 3.08:1. The fill stays; the label is Carbon Black
   at 5.75:1. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  min-height: 48px;
  padding: 15px var(--s-28);
  border-radius: var(--r-pill);
  background: var(--coral);
  color: var(--carbon);
  font-size: var(--text-body-lg);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.009em;
  white-space: nowrap;
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.cta svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.cta:hover { filter: brightness(1.06); }
.cta:hover svg { transform: translateX(4px); }
.cta:active { transform: scale(.98); }

.cta-sm {
  min-height: 40px;
  padding: 11px 18px;
  font-size: var(--text-body);
}
.cta-sm svg { width: 15px; height: 15px; }

.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-body);
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.ghost-link:hover { border-color: currentColor; }

/* ── Mobile menu ────────────────────────────────────────── */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 40px;
  border-radius: var(--r-pill);
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.75px;
  background: var(--white);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child  { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { top: 19px; transform: rotate(-45deg); }

.nav-sheet {
  max-width: var(--page);
  margin: var(--s-8) auto 0;
  padding: var(--s-8);
  border-radius: var(--r-card);
  background: var(--carbon);
  pointer-events: auto;
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 var(--s-16);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .7);
  font-size: var(--text-body-lg);
}
.nav-sheet a:hover,
.nav-sheet a:focus-visible { color: var(--white); background: rgba(255, 255, 255, .06); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px var(--s-24) var(--s-96);
  background: var(--carbon);
  overflow: hidden;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Slow ambient drift — the only motion allowed to loop. */
.drift {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.drift-a {
  width: 620px;
  height: 620px;
  top: -14%;
  left: 8%;
  background: rgba(252, 95, 43, .16);
}
.drift-b {
  width: 520px;
  height: 520px;
  bottom: -18%;
  right: 6%;
  background: rgba(255, 255, 255, .06);
}
.js .drift-a { animation: floatA 26s ease-in-out infinite; }
.js .drift-b { animation: floatB 34s ease-in-out infinite; }
@keyframes floatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6%, 8%, 0) scale(1.12); }
}
@keyframes floatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-7%, -6%, 0) scale(1.08); }
}

/* Pointer light, driven by --mx / --my from JS. */
.hero-cursor {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 45%),
    rgba(255, 255, 255, .07),
    transparent 68%
  );
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.js .hero:hover .hero-cursor { opacity: 1; }

.hero-body {
  position: relative;
  width: 100%;
  max-width: 820px;
}

.kicker {
  margin-bottom: var(--s-24);
  font-family: var(--mono);
  font-size: var(--text-caption);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
}

/* Weight 400 at display size is the reference's signature decision. */
.display {
  font-size: clamp(42px, 8.4vw, var(--text-display));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--white);
}

.hero-sub {
  max-width: 580px;
  margin: var(--s-24) auto 0;
  font-size: var(--text-body-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, .72);
}
.hero-sub-2 {
  margin-top: var(--s-11);
  color: rgba(255, 255, 255, .58);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-16);
  margin-top: var(--s-40);
}
.hero .ghost-link { color: rgba(255, 255, 255, .78); }
.hero .ghost-link:hover { color: var(--white); }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: var(--s-96) 0; }
.section-fog { background: var(--fog); }
.section-dark { background: var(--carbon); color: var(--white); }

.eyebrow {
  margin-bottom: var(--s-24);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -.006em;
  color: var(--coral-ink);
}
.section-dark .eyebrow { color: var(--coral); }

.section-title {
  max-width: 22ch;
  margin-bottom: var(--s-24);
  font-size: clamp(30px, 4.6vw, var(--text-heading-lg));
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.015em;
}
.section-lead {
  max-width: 58ch;
  color: var(--zinc);
}
.section-lead + .section-lead { margin-top: var(--s-11); }
.section-dark .section-lead { color: rgba(255, 255, 255, .7); }

/* One rule sets the gap between a section's intro and its content,
   whether or not that section has a lead paragraph. */
.focus,
.projects,
.steps { margin-top: var(--s-60); }

/* Honest placeholder — hatched, labelled, never posing as a real image. */
.slot {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-11);
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, var(--fog) 10px 11px),
    var(--white);
}
.slot-note {
  padding: 5px 11px;
  border: 1px solid var(--mist);
  border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--mono);
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--zinc);
}
/* ── Cards ──────────────────────────────────────────────── */
.card {
  padding: var(--s-28);
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--ash);
}
.card-num {
  font-family: var(--mono);
  font-size: var(--text-caption);
  color: var(--coral-ink);
}
.card h3 {
  margin: var(--s-11) 0 var(--s-8);
  font-size: var(--text-heading-sm);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.012em;
}
.card p {
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -.005em;
  color: var(--zinc);
}

.focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-16);
}
@media (min-width: 900px) {
  .focus { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .focus .card:nth-child(1) { grid-column: span 4; }
  .focus .card:nth-child(2) { grid-column: span 2; }
  .focus .card:nth-child(3) { grid-column: span 2; }
  .focus .card:nth-child(4) { grid-column: span 4; }
}

/* ── Projects ───────────────────────────────────────────── */
.projects { display: grid; gap: var(--s-60); }

.project {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: var(--s-40);
  align-items: start;
  padding-top: var(--s-60);
  border-top: 1px solid var(--mist);
}
.project:first-child { padding-top: 0; border-top: 0; }
/* Even rows put the artwork on the right. The column widths flip with it,
   or the artwork would land in the wider column and render larger. */
.project:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.project:nth-child(even) .project-media { order: 2; }

/* The body runs long, so the artwork rides along with it. */
.project-media { position: sticky; top: 108px; }
/* 3:2 roughly matches the height of a screenshot composite, so projects
   still waiting on artwork sit at the same size as the finished ones. */
.project-media .slot {
  aspect-ratio: 3 / 2;
  transition: transform .4s var(--ease);
}
.project:hover .project-media .slot { transform: translateY(-3px); }

/* Screenshot composite: desktop in a browser frame, phone overlapping its
   lower-right corner. The padding reserves the phone's overhang. */
.shot {
  position: relative;
  padding: 0 6% 9% 0;
}
.shot-desktop {
  overflow: hidden;
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--shadow-subtle);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--mist);
}
.shot-bar i {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--mist);
}
.shot-bar i { flex: none; }
.shot-bar span {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: var(--text-caption);
  color: var(--zinc);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot-mobile {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 23%;
  overflow: hidden;
  border: 4px solid var(--carbon);
  border-radius: 18px;
  background: var(--carbon);
  box-shadow: rgba(0, 0, 0, .06) 0 4px 12px -2px;
  transition: transform .45s var(--ease);
}
.project:hover .shot-mobile { transform: translateY(-6px); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-8);
  margin-bottom: var(--s-11);
  font-family: var(--mono);
  font-size: var(--text-caption);
  letter-spacing: -.006em;
  color: var(--zinc);
}
.meta-num {
  padding: 3px 7px;
  border-radius: var(--r-sm);
  background: var(--carbon);
  color: var(--white);
}
.pip {
  width: 3px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--ash);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral-ink);
}
.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--coral);
}
.js .live::before { animation: beat 2.4s var(--ease) infinite; }

.project-body h3 {
  margin-bottom: var(--s-16);
  font-size: clamp(22px, 3vw, var(--text-heading));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.013em;
}
.project-body > p {
  max-width: 56ch;
  color: var(--zinc);
}
.project-body > p + p { margin-top: var(--s-16); }

/* Feature list — only for work that is actually running. */
.facts-head {
  margin-top: var(--s-28);
  margin-bottom: var(--s-11);
  font-family: var(--mono);
  font-size: var(--text-caption);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--carbon);
}
.checks { display: grid; gap: var(--s-8); }
.checks li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: var(--s-11);
  align-items: start;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--zinc);
}
.checks svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--coral-ink);
}

/* Project facts — label/value rows in the system's technical voice. */
.facts {
  margin-top: var(--s-28);
  border-top: 1px solid var(--mist);
}
.facts > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--s-16);
  padding: var(--s-11) 0;
  border-bottom: 1px solid var(--mist);
}
.facts dt {
  font-family: var(--mono);
  font-size: var(--text-caption);
  line-height: 1.6;
  color: var(--zinc);
}
.facts dd {
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--carbon);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  min-height: 44px;
  margin-top: var(--s-24);
  padding: 11px 20px;
  border: 1px solid var(--carbon);
  border-radius: var(--r-pill);
  font-size: var(--text-body);
  font-weight: 500;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.project-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.project-link:hover { background: var(--carbon); color: var(--white); }
.project-link:hover svg { transform: translate(2px, -2px); }
.project-link:active { transform: scale(.98); }

/* Not a link: there is nothing to open yet. */
.project-link.is-soon {
  border-style: dashed;
  border-color: var(--ash);
  color: var(--zinc);
  font-family: var(--mono);
  font-size: var(--text-caption);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: default;
}

/* ── Cara kerja ─────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-16);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--s-24);
  border-top: 2px solid var(--mist);
  transition: border-color .35s var(--ease);
}
.step:hover { border-top-color: var(--coral); }
.step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: var(--s-16);
  border-radius: var(--r-pill);
  background: var(--carbon);
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
}
.step h3 {
  margin-bottom: var(--s-8);
  font-size: var(--text-subheading);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.009em;
}
.step p {
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--zinc);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  margin-top: var(--s-24);
}
.tags li {
  padding: 7px 14px;
  border: 1px solid var(--mist);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -.006em;
  color: var(--zinc);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tags li:hover { color: var(--carbon); border-color: var(--ash); }
.section-fog .tags li { background: var(--white); }

/* ── Contact ────────────────────────────────────────────── */
.contact-title {
  font-size: clamp(36px, 6.4vw, 56px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.022em;
}
.contact-lead {
  max-width: 46ch;
  margin-top: var(--s-16);
  color: rgba(255, 255, 255, .7);
}
.contact-actions { margin-top: var(--s-40); }
.contact-actions .cta { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.social {
  display: grid;
  gap: 0;
  margin-top: var(--s-60);
  max-width: 640px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.social a {
  display: flex;
  align-items: center;
  gap: var(--s-16);
  min-height: 68px;
  padding: var(--s-16) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: padding .3s var(--ease);
}
.social a:hover { padding-left: var(--s-11); }
.s-name {
  flex: none;
  width: 104px;
  font-family: var(--mono);
  font-size: var(--text-caption);
  color: var(--coral);
}
.s-val { font-size: var(--text-body-lg); color: var(--white); }
.social svg {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: rgba(255, 255, 255, .5);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.social a:hover svg { transform: translate(3px, -3px); color: var(--coral); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  padding: var(--s-40) 0;
  background: var(--fog);
  border-top: 1px solid var(--mist);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-16);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-body);
  color: var(--zinc);
}

/* ── Scroll reveal ──────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .project,
  .project:nth-child(even) { grid-template-columns: 1fr; gap: var(--s-24); }
  .project:nth-child(even) .project-media { order: 0; }
  .project-media { position: static; max-width: 460px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-28); }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-pill .cta-sm { display: none; }
  .burger { display: block; margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --s-96: 64px; --s-60: 40px; }
  html { scroll-padding-top: 96px; }
  .hero { padding: 120px var(--s-16) var(--s-60); }
  .focus { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .cta { width: 100%; }
  .hero .ghost-link { justify-content: center; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .s-name { width: 84px; }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-cursor,
  .drift { display: none; }
}
