/* Arooj Qureshi — Sketch Bold (dark). Tokens from the "Arooj Qureshi — Sketch Bold" design system. */
:root {
  --surface: #111214;
  --surface-raised: #1C1D21;
  --ink: #FAFAFA;
  --ink-muted: #D4D4D8;
  --ink-subtle: #A1A1AA;
  --highlighter: #FDE047;
  --on-highlighter: #111214;
  --accent: #FDE047;
  --accent-secondary: #A5B4FC;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-card: 20px;
  --radius-pill: 999px;
  --space-1: 16px;
  --space-2: 24px;
  --space-3: 36px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface); color: var(--accent); padding: 0.1em 0.4em; border-radius: 6px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--highlighter); color: var(--on-highlighter); padding: 10px 16px; border-radius: 8px; }

/* Type */
.display {
  font-weight: 900;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}
.display-sm { font-size: clamp(36px, 5.2vw, 76px); }
.title {
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: var(--space-2) 0 var(--space-3);
  max-width: 18ch;
  text-wrap: balance;
}
.lead { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; color: var(--ink-muted); line-height: 1.4; max-width: 34em; margin: 0; }
.sub { color: var(--ink-muted); max-width: 40em; margin: calc(var(--space-2) * -0.5) 0 var(--space-3); }
.muted { color: var(--ink-subtle); font-size: 15px; margin-bottom: 0; }
.hl {
  background: var(--highlighter);
  color: var(--on-highlighter);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hand { font-family: var(--font-hand); font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; color: var(--accent); margin: 0; }
.hand-tilt { transform: rotate(-3deg); transform-origin: left center; }
.hand-indent { margin: calc(var(--space-3) * -0.5) 0 var(--space-3); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 800; font-size: 17px; text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--highlighter); color: var(--on-highlighter); }
.btn-yellow:hover { color: var(--on-highlighter); background: #FEF08A; }
.btn-ghost { color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-light { background: var(--ink); color: var(--surface); }
.btn-light:hover { color: var(--surface); background: var(--highlighter); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; margin-top: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-3); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(17, 18, 20, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--surface-raised); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.badge { width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--highlighter); color: var(--on-highlighter); font-weight: 900; font-size: 18px; display: grid; place-items: center; }
.brand-name { font-weight: 800; font-size: 19px; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 920px) { .nav nav { display: none; } }
@media (max-width: 420px) { .brand-name { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--surface); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; z-index: -2; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: rgba(17, 18, 20, 0.5); }
.hero-content { padding-block: 96px 120px; display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.hero-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.hero-line { display: block; white-space: nowrap; }
@media (max-width: 480px) { .hero-line { white-space: normal; } }
.hero-content .lead { max-width: 26em; }
.sound {
  position: absolute; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(17, 18, 20, 0.75); color: var(--ink);
  border: 2px solid var(--ink-subtle);
  font: 700 15px var(--font-display); cursor: pointer;
}
.sound[hidden] { display: none; }
.sound:hover { border-color: var(--accent); color: var(--accent); }
.sound[aria-pressed="false"] .wave { opacity: 0.35; }

/* Proof */
.proof { border-block: 1px solid var(--surface-raised); background: var(--surface); }
.proof-row { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); padding: 28px 0; margin-block: 0; }
.proof-row li { color: var(--ink-muted); font-size: 16px; line-height: 1.4; }
.proof-row strong { color: var(--ink); font-weight: 800; }
@media (max-width: 760px) { .proof-row { grid-template-columns: 1fr; gap: 12px; } }

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-raised { background: var(--surface-raised); }
.section-raised .card { background: var(--surface); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-raised);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.card h3 { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.card p { margin: 0; color: var(--ink-muted); }
.card-label { font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-subtle) !important; }
.card-emphasis { outline: 3px solid var(--highlighter); outline-offset: -3px; }
.card-emphasis .card-label { color: var(--accent) !important; }
.fix { margin-top: auto !important; padding-top: 14px; border-top: 1px dashed #3F3F46; font-size: 16px; }
.fix-small { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-subtle); text-transform: uppercase; }
.fix-big { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; margin-left: 6px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; color: var(--ink-muted); font-size: 16px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.link { font-weight: 800; text-decoration: none; margin-top: auto; }
.link:hover { text-decoration: underline; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1); }
.step { background: var(--surface); border-radius: var(--radius-card); padding: 32px; }
.step h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 18px 0 10px; }
.step p { color: var(--ink-muted); margin: 0; }
.step-n { width: 48px; height: 48px; border-radius: var(--radius-pill); border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.step { outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .4s ease; }
.step .step-n { transition: background-color .4s ease, color .4s ease; }
.step.is-reached { outline-color: var(--highlighter); }
.step.is-reached .step-n { background: var(--highlighter); color: var(--on-highlighter); }

/* Route: a GPS line drawn across the three steps */
.route { margin: 0 0 8px; }
.route-svg { width: 100%; height: auto; display: block; overflow: visible; }
.route-track { fill: none; stroke: #3F3F46; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 14; }
.route-line { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.route-pulse { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; opacity: 0; }
.route.is-done .route-pulse { opacity: 0.9; animation: route-pulse 2.6s linear infinite; }
@keyframes route-pulse { to { stroke-dashoffset: 0; } }
.route-pin { fill: var(--surface-raised); stroke: #52525B; stroke-width: 3; transition: fill .3s ease, stroke .3s ease; }
.route-pin.is-reached { fill: var(--accent); stroke: var(--accent); }
.route-car { fill: var(--ink); stroke: var(--accent); stroke-width: 4; }
.route-note { font-family: var(--font-hand); font-weight: 700; font-size: 34px; fill: var(--accent); opacity: 0; transition: opacity .5s ease; }
.route.is-done .route-note { opacity: 1; }
@media (max-width: 960px) { .route { display: none; } }

/* Writing */
.post-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-subtle); text-transform: uppercase; }
.post a { color: var(--ink); text-decoration: none; }
.post a:hover { color: var(--accent); }
.post-empty { grid-column: 1 / -1; }
.writing-more { margin-top: var(--space-3); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-text p { color: var(--ink-muted); max-width: 36em; }
.about-text .hand { margin-top: var(--space-2); transform: rotate(-2deg); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.facts li { background: var(--surface); border-radius: var(--radius-card); padding: 20px 24px; font-weight: 600; }
.facts-k { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-subtle); margin-bottom: 4px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--space-3); } }

/* Contact */
.contact-inner { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.contact .display { max-width: 16ch; }

/* Footer */
.footer { border-top: 1px solid var(--surface-raised); padding: 32px 0; color: var(--ink-subtle); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
