/* ==========================================================================
   LastMileDev
   ========================================================================== */

:root {
  --bg: #05070f;
  --panel: #0b1021;
  --panel-2: #10172d;
  --line: rgba(150, 165, 220, 0.12);
  --line-2: rgba(150, 165, 220, 0.22);
  --text: #eef1fb;
  --text-2: #b3bcd6;
  --muted: #7a86a6;
  --blue: #3d6cff;
  --blue-2: #7b9bff;
  --purple: #a78bfa;
  --green: #25d366;
  --mint: #4ade80;
  --yellow: #ffd23f;
  --amber: #ffb547;
  --red: #ff5d6c;
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* film grain, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
p { margin: 0; }
/* Plus Jakarta's bold full stop is wide; pull it in so "done." doesn't read as "done ." */
.pd { margin-left: -0.075em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(61, 108, 255, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-sm { width: 16px; height: 16px; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue), var(--purple) 55%, var(--mint));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-wa {
  background: var(--green);
  color: #03230f;
  box-shadow: 0 12px 32px -12px rgba(37, 211, 102, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-wa:hover { box-shadow: 0 18px 40px -12px rgba(37, 211, 102, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(123, 155, 255, 0.55); background: rgba(61, 108, 255, 0.1); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled, .nav.nav-open {
  background: rgba(5, 7, 15, 0.75);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.logo-dev { color: var(--blue-2); }
.logo-code {
  width: 30px;
  height: 22px;
  margin-left: 8px;
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}
.logo:hover .logo-code { transform: rotate(-8deg) scale(1.08); }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- handwritten notes ---------- */
.note { font-family: var(--hand); font-weight: 600; line-height: 1.05; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute;
  top: -340px;
  left: 50%;
  width: 1400px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(61, 108, 255, 0.28), transparent 62%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 10%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 10%, #000 25%, transparent 75%);
}
.hero-glow {
  position: absolute;
  left: var(--gx, 72%);
  top: var(--gy, 45%);
  width: 820px;
  height: 820px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(61, 108, 255, 0.2), rgba(167, 139, 250, 0.07) 40%, transparent 66%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); }
}

.hero h1 {
  margin: 26px 0 26px;
  font-size: clamp(40px, 5.3vw, 74px);
  line-height: 1.04;
}
.mile {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(100deg, #a9c0ff 0%, var(--blue-2) 35%, #8f7bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.mile svg {
  position: absolute;
  left: -1%;
  bottom: -0.12em;
  width: 102%;
  height: 0.3em;
  overflow: visible;
}
.mile path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 6px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mile path { animation: draw 0.9s 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede { max-width: 30em; color: var(--text-2); font-size: 20px; line-height: 1.55; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-free { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--text-2); font-size: 15px; }
.hero-free .ic { width: 16px; height: 16px; stroke: var(--mint); stroke-width: 2.6; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 470px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.16);
}
.hero-meta strong { display: block; font-size: 16px; }
.hero-meta span { color: var(--muted); font-size: 14px; }

/* ---------- terminal ---------- */
.hero-visual { position: relative; padding-top: 30px; }

.note-hero {
  position: absolute;
  top: -62px;
  right: 8px;
  z-index: 2;
  color: #fff1bf;
  font-size: 30px;
  text-align: right;
  transform: rotate(3deg);
}
.note-hero svg {
  position: absolute;
  left: -74px;
  top: 22px;
  width: 70px;
  height: 54px;
  fill: none;
  stroke: #fff1bf;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1) rotate(-10deg);
}

.term {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(18, 25, 48, 0.94), rgba(9, 13, 27, 0.96));
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 0 160px -50px rgba(61, 108, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.8s var(--ease), box-shadow 0.6s;
}
.hero-visual:hover .term { transform: perspective(1400px) rotateY(0) rotateX(0); }
.term[data-state="live"] {
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 0 160px -50px rgba(74, 222, 128, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.term::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 155, 255, 0.7), transparent);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.term-title { margin-right: auto; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

.term-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.term-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.term-status[data-state="stuck"] { color: var(--amber); border-color: rgba(255, 181, 71, 0.3); background: rgba(255, 181, 71, 0.08); }
.term-status[data-state="fixing"] { color: var(--blue-2); border-color: rgba(123, 155, 255, 0.35); background: rgba(61, 108, 255, 0.1); }
.term-status[data-state="live"] { color: var(--mint); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.1); }

.term-body {
  min-height: 330px;
  padding: 18px 20px;
  color: #cdd5ee;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  transition: opacity 0.4s;
}
.term-body.fade { opacity: 0; }
.term-body .ln { display: block; animation: ln-in 0.25s ease both; }
@keyframes ln-in { from { opacity: 0; transform: translateY(3px); } }
.t-prompt { color: var(--mint); }
.t-path { color: #7fd8ff; font-weight: 600; }
.t-dim { color: #7f8bad; }
.t-red { color: var(--red); }
.t-green { color: var(--mint); }
.t-blue { color: var(--blue-2); }
.t-cmd { color: #fff; }
.t-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.22em;
  background: var(--blue-2);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}
.term-foot .bar {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.term-foot .bar span {
  display: block;
  width: var(--w, 90%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: width 0.7s var(--ease);
}
.term[data-state="stuck"] .bar span { animation: stall 1.6s ease-in-out infinite; }
.term[data-state="fixing"] .bar span { background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.term[data-state="live"] .bar span {
  background: linear-gradient(90deg, var(--blue), var(--mint));
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.7);
}
@keyframes stall { 50% { opacity: 0.55; } }
.pct { min-width: 4ch; color: var(--text); font-weight: 600; text-align: right; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  --pad: 130px;
  position: relative;
  padding: var(--pad) 0;
  /* Nav links land on the heading, not on the section's top padding */
  scroll-margin-top: calc(16px - var(--pad));
}
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head > p:not(.kicker) { max-width: 60ch; margin-top: 22px; color: var(--text-2); font-size: 19px; }
.section-head a { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(74, 222, 128, 0.4); text-underline-offset: 4px; }
.section-head a:hover { text-decoration-color: currentColor; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--blue-2);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

h2 { font-size: clamp(34px, 4.6vw, 58px); }

/* ---------- cards with spotlight ---------- */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent, var(--blue)) 15%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent, var(--blue)) 75%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card[data-spotlight]:hover::before, .card[data-spotlight]:hover::after { opacity: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
}

/* ==========================================================================
   The last mile route
   ========================================================================== */

.route { position: relative; padding-top: 150px; }
.route-track { position: relative; height: 190px; margin-inline: 70px; }
.route-line {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, rgba(150, 165, 220, 0.3) 0 10px, transparent 10px 18px);
}
.route-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 33.333%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #8f7bff);
  transition: background 0.5s, box-shadow 0.5s;
}
.route-fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 0 5px rgba(61, 108, 255, 0.35), 0 0 24px rgba(123, 155, 255, 0.9);
  transition: opacity 0.4s;
}
.route.complete .route-fill { background: linear-gradient(90deg, var(--blue), var(--mint)); box-shadow: 0 0 26px rgba(74, 222, 128, 0.45); }
.route.complete .route-fill::after { opacity: 0; }

.route-stops { position: absolute; inset: 0; }
.stop {
  position: absolute;
  top: 0;
  left: var(--x);
  width: 150px;
  padding-top: 34px;
  transform: translateX(-50%);
  text-align: center;
}
.stop .dot {
  position: absolute;
  top: -13px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg);
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.stop .dot .ic {
  width: 15px;
  height: 15px;
  stroke: #03230f;
  stroke-width: 3.4;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.stop.done .dot {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.14), 0 0 26px rgba(74, 222, 128, 0.5);
}
.stop.done .dot .ic { opacity: 1; transform: none; }
.stop strong { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.stop small { display: block; color: var(--muted); font-size: 14px; }

.route-bracket {
  position: absolute;
  top: 116px;
  left: 33.333%;
  right: 0;
  height: 16px;
  border: 2px solid rgba(255, 210, 63, 0.55);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.route-bracket span {
  position: absolute;
  top: 100%;
  left: 50%;
  color: var(--yellow);
  font-family: var(--hand);
  font-size: 32px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, 2px) rotate(-2deg);
}

.blockers { position: absolute; inset: 0 70px auto; height: 150px; }
.blocker {
  position: absolute;
  top: var(--top);
  left: var(--x);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 93, 108, 0.3);
  border-radius: 12px;
  background: rgba(30, 10, 18, 0.7);
  color: #ffc4ca;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 0.4s, background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.blocker::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: calc(150px - var(--top) - 38px);
  background: linear-gradient(rgba(255, 93, 108, 0.45), transparent);
  transition: background 0.4s;
}
.blocker i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 93, 108, 0.2);
  color: var(--red);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  transition: background 0.4s, color 0.4s;
}
.blocker i::before { content: "!"; }
.blocker span { text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 2px; transition: text-decoration-color 0.4s; }
.blocker.done {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(8, 28, 18, 0.7);
  color: var(--muted);
  transform: translateX(-50%) translateY(-3px);
}
.blocker.done::after { background: linear-gradient(rgba(74, 222, 128, 0.45), transparent); }
.blocker.done i { background: var(--mint); color: #03230f; }
.blocker.done i::before { content: "✓"; }
.blocker.done span { text-decoration-color: rgba(74, 222, 128, 0.8); }

/* ==========================================================================
   Services
   ========================================================================== */

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
  padding: 38px 38px 36px;
  background:
    radial-gradient(420px circle at 0% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
.service:hover { border-color: var(--line-2); }
.service .num { position: absolute; top: 34px; right: 36px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.service .icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  transition: transform 0.5s var(--ease);
}
.service:hover .icon { transform: rotate(-8deg) scale(1.06); }
.service .icon .ic { width: 27px; height: 27px; stroke-width: 1.9; }
.service h3 { margin-bottom: 12px; font-size: 26px; }
.service p { color: var(--text-2); }

/* ==========================================================================
   Diagnose
   ========================================================================== */

.diag { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.diag-list { position: relative; display: flex; flex-direction: column; gap: 8px; }
.diag-list [role="tab"] {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.diag-list [role="tab"] .n { padding-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 12px; transition: color 0.25s; }
.diag-list [role="tab"]:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.045); color: var(--text); }
.diag-list [role="tab"][aria-selected="true"] {
  border-color: rgba(123, 155, 255, 0.5);
  background: linear-gradient(90deg, rgba(61, 108, 255, 0.18), rgba(61, 108, 255, 0.04));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--blue-2);
}
.diag-list [role="tab"][aria-selected="true"] .n { color: var(--blue-2); }

.diag-panels { position: sticky; top: calc(var(--nav-h) + 24px); }
.diag-panel {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.diag-panel[hidden] { display: none; }
.diag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}
.diag-bar .file { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.diag-bar .file::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue-2); }
.diag-bar .sev { padding: 2px 9px; border: 1px solid rgba(255, 181, 71, 0.3); border-radius: 999px; color: var(--amber); }

.diag-body { padding: 30px 34px 34px; }
.diag-title { margin-bottom: 26px; font-size: 24px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; }
.diag-body h3 {
  margin: 28px 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.diag-body h3:first-of-type { margin-top: 0; }
.diag-body h3::before { content: "## "; color: var(--blue-2); }
.causes li {
  position: relative;
  padding: 10px 0 10px 30px;
  border-bottom: 1px dashed var(--line);
}
.causes li::before { content: "→"; position: absolute; left: 2px; color: var(--amber); font-family: var(--mono); }
.causes code, .fix code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #c9d6ff;
  font-family: var(--mono);
  font-size: 0.86em;
}
.fix { margin-bottom: 26px; color: var(--text-2); }
.diag-panel.anim .diag-title,
.diag-panel.anim .causes li,
.diag-panel.anim .fix { animation: slide-in 0.5s var(--ease) both; }
.diag-panel.anim .causes li:nth-child(1) { animation-delay: 0.05s; }
.diag-panel.anim .causes li:nth-child(2) { animation-delay: 0.1s; }
.diag-panel.anim .causes li:nth-child(3) { animation-delay: 0.15s; }
.diag-panel.anim .causes li:nth-child(4) { animation-delay: 0.2s; }
.diag-panel.anim .fix { animation-delay: 0.28s; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-10px); } }

/* ==========================================================================
   Work
   ========================================================================== */

.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { display: flex; flex-direction: column; }
.project:hover { transform: translateY(-4px); border-color: var(--line-2); }
.frame {
  display: block;
  margin: 14px 14px 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0a0e1b;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.addr {
  display: flex;
  align-items: center;
  flex: 1;
  height: 20px;
  margin-left: 10px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.frame-view { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.frame-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: object-position 1.4s var(--ease);
}
.project:hover .frame-view img { object-position: 50% 100%; transition: object-position 7s cubic-bezier(0.45, 0.05, 0.55, 0.95); }
.frame-view img.pin-left, .project:hover .frame-view img.pin-left { object-position: 0 0; }
@media (hover: none) {
  .project.in-view .frame-view img { animation: peek 12s ease-in-out infinite; }
}
@keyframes peek {
  0%, 15% { object-position: 50% 0%; }
  50%, 65% { object-position: 50% 100%; }
  100% { object-position: 50% 0%; }
}
.project-copy { display: flex; flex: 1; flex-direction: column; padding: 26px 28px 30px; }
.project h3 { font-size: 24px; }
.project .summary { margin: 8px 0 12px; color: var(--text); font-weight: 600; line-height: 1.45; }
.project .tags { margin-top: auto; padding-top: 22px; }
.visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 700;
}
.visit .ic { transition: transform 0.3s var(--ease); }
.visit:hover .ic { transform: translate(3px, -3px); }

/* ==========================================================================
   About
   ========================================================================== */

.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.about > * { min-width: 0; }
.about-visual { position: relative; }
.portrait { position: relative; width: min(320px, 80%); margin: 0 auto; }
.portrait::before, .portrait::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from var(--spin), var(--blue), var(--purple), var(--mint), var(--yellow), var(--blue));
  animation: spin 14s linear infinite;
}
.portrait::after { inset: 0; z-index: -1; filter: blur(46px); opacity: 0.45; }
/* Turn the gradient, not the element: a rotating box pokes past the screen edge on phones */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 1turn; } }
.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--bg);
  border-radius: 50%;
}
.note-about {
  position: absolute;
  right: -46px;
  bottom: 6px;
  z-index: 2;
  padding: 8px 18px 10px;
  border-radius: 3px;
  background: #fff6cf;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.7);
  color: #1a1f33;
  font-size: 28px;
  transform: rotate(-6deg);
}

.about-copy h2 { margin-bottom: 24px; }
.about-copy > p:not(.kicker) { margin-bottom: 16px; color: var(--text-2); font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0 36px; }
.stat {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.stat strong {
  display: block;
  background: linear-gradient(120deg, #fff, var(--blue-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue-2); }
.faq-list summary::before, .faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-a { padding: 0 48px 26px 0; color: var(--text-2); }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-list details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.section-contact { --pad: 60px; padding-bottom: 130px; }
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
  padding: 64px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(61, 108, 255, 0.24), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(37, 211, 102, 0.14), transparent 50%),
    var(--panel);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 50%, #000, transparent 60%);
  mask-image: radial-gradient(ellipse at 100% 50%, #000, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.contact-copy, .qr-wrap { position: relative; }
.contact-copy h2 { font-size: clamp(32px, 4vw, 52px); }
.contact-lede { margin-top: 18px; color: var(--text-2); font-size: 18px; }

.composer { display: grid; gap: 16px; margin-top: 32px; }
.field label { display: block; margin-bottom: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(5, 7, 15, 0.6);
  color: var(--text);
  font-size: 16px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #58637f; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(123, 155, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(61, 108, 255, 0.18);
}
.field textarea.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 40% { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.2); } }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.hint { max-width: 32ch; color: var(--muted); font-size: 14px; line-height: 1.45; }

.qr-wrap { display: grid; justify-items: center; }
.qr-card {
  width: min(270px, 100%);
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: #fff;
  color: #0b1020;
  text-align: center;
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.28), 0 40px 70px -24px rgba(0, 0, 0, 0.8);
  transform: rotate(2.5deg);
  transition: transform 0.5s var(--ease);
}
.qr-card:hover { transform: rotate(0) scale(1.03); }
.qr { width: 100%; height: auto; }
.qr-label { margin-top: 8px; color: #0b7a36; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.35; }
.note-contact { margin-top: 26px; color: var(--yellow); font-size: 30px; transform: rotate(-4deg); }

/* ==========================================================================
   Footer + toast
   ========================================================================== */

.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 32px; align-items: center; }
.footer-tag { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-tag span { color: var(--blue-2); }
.footer-small { color: var(--muted); font-size: 14px; }
.footer-small a:hover { color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 14px;
  background: #0f1a24;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.8);
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 110px; }
  .hero-visual { width: min(640px, 100%); }
  .term { transform: none; }
  .work { grid-template-columns: 1fr; }
  .project { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
  .frame { margin: 14px; }
  .about { grid-template-columns: 1fr; gap: 64px; }
  .about-visual { width: min(560px, 100%); margin: 0 auto; }
  .contact-card { grid-template-columns: 1fr; padding: 52px; gap: 48px; }
  .qr-wrap { grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 32px; }
  .note-contact { margin-top: 0; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 4px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line-2);
    border-radius: 18px;
    background: rgba(10, 14, 28, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 17px; border-radius: 12px; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }

  .route { padding-top: 0; }
  .route-track { margin-inline: 46px; }
  .stop { width: 100px; }
  .stop strong { font-size: 17px; }
  .stop small { font-size: 12px; line-height: 1.35; }
  .route-bracket { top: 128px; }
  .blockers {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: auto;
    margin-top: 40px;
  }
  .blocker, .blocker.done { position: static; transform: none; white-space: normal; }
  .blocker::after { display: none; }
  .route { display: flex; flex-direction: column-reverse; }

  .services { grid-template-columns: 1fr; }
  .diag { grid-template-columns: 1fr; }
  .diag-panels { position: static; }
  .diag-list {
    flex-direction: row;
    gap: 8px;
    margin: 0 -24px;
    padding: 0 24px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
  }
  .diag-list::-webkit-scrollbar { display: none; }
  .diag-list [role="tab"] { flex: none; width: 240px; scroll-snap-align: start; font-size: 15px; }
  .faq { grid-template-columns: 1fr; gap: 40px; }
  .faq .section-head { position: static; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { width: min(1180px, 100% - 40px); }
  .diag-list { margin: 0 -20px; padding: 0 20px 6px; scroll-padding-inline: 20px; }
  .section { --pad: 96px; }
  .section-contact { padding-bottom: 96px; }
  .section-head { margin-bottom: 48px; }
  .section-head > p:not(.kicker) { font-size: 17px; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 52px); }
  .lede { font-size: 18px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-inner { gap: 96px; }
  .note-hero { top: -66px; right: 0; font-size: 25px; }
  .note-hero svg { left: -58px; width: 54px; }
  .term-body { min-height: 360px; padding: 14px 16px; font-size: 12px; }
  .term-title { display: none; }
  .project { display: flex; }
  .frame { margin: 12px 12px 0; }
  .project-copy { padding: 22px 22px 26px; }
  .service { padding: 30px 26px; }
  .service .num { top: 28px; right: 26px; }
  .diag-body { padding: 24px 22px 26px; }
  .diag-title { font-size: 21px; }
  .stats { gap: 8px; }
  .stat { padding: 14px 12px; }
  .stat strong { font-size: 30px; }
  .stat span { font-size: 12.5px; }
  .note-about { right: -12px; font-size: 24px; }
  .contact-card { padding: 34px 22px; border-radius: 22px; }
  .composer-foot .btn { width: 100%; }
  .qr-wrap { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .nav-cta { width: 42px; padding: 0; }
  .nav-cta span { display: none; }
  .blockers { grid-template-columns: 1fr; }
  .route-track { margin-inline: 34px; }
  .stop { width: 80px; }
  .stop small { display: none; }
  .route-bracket { top: 74px; }
  .route-track { height: 136px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .mile path { stroke-dashoffset: 0; }
}
