/* ============================================================================
   KENZY — kenzy.dev
   Aesthetic: engineering datasheet / hardware blueprint.
   Petrol-blue ink on white paper, golden-yellow as a "signal" accent.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --paper:        #ffffff;
  --paper-2:      #f4f7f9;   /* light blue-grey panel */
  --ink:          #013249;   /* dark blue — primary ink */
  --ink-2:        #0a4866;   /* slightly lifted ink */
  --ink-60:       #43687c;   /* secondary text */
  --ink-40:       #7593a2;   /* muted */
  --line:         rgba(1, 50, 73, 0.14);
  --line-soft:    rgba(1, 50, 73, 0.07);
  --signal:       #ffb500;   /* golden yellow */
  --signal-deep:  #e09e00;
  --signal-tint:  #fff4d6;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;

  --shadow-sm: 0 1px 0 var(--line), 0 1px 2px rgba(1, 50, 73, 0.04);
  --shadow-lg: 0 24px 60px -28px rgba(1, 50, 73, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@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; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--signal); color: var(--ink); }

/* ---- Blueprint grid backdrop ------------------------------------------- */
.grid-bg {
  position: relative;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Corner registration marks on bracketed blocks */
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--ink); opacity: 0.55; pointer-events: none;
}
.bracket::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bracket::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---- Typography --------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1.display { font-size: clamp(2.6rem, 6.6vw, 5.4rem); }
h2.display { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3.display { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow .num { color: var(--signal-deep); }
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 4px var(--signal-tint);
  flex: none;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-60); max-width: 56ch; }
.mono { font-family: var(--font-mono); }
.hl { color: var(--ink); background: linear-gradient(transparent 62%, var(--signal-tint) 0); padding: 0 0.1em; }
.signal-text { color: var(--signal-deep); }

.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head p { margin-top: 1.1rem; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.4rem; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }

.btn-signal { --bg: var(--signal); --fg: var(--ink); --bd: var(--signal); font-weight: 600; }
.btn-signal:hover { --bg: var(--signal-deep); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn-ghost:hover { --bd: var(--ink); background: var(--paper-2); }
.btn-lg { padding: 1rem 1.7rem; font-size: 0.95rem; }

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 0.85rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 34px; height: 34px; }
.brand-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand-text .dot { color: var(--signal-deep); }
.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-links a:not(.btn) {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-60);
  padding: 0.5rem 0.85rem; border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { background: var(--paper-2); }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: var(--radius); width: 44px; height: 40px; align-items: center;
  justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: clamp(3rem, 7vw, 7rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .swap { color: var(--signal-deep); }
.hero__lead { margin-bottom: 2.2rem; max-width: 50ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; container-type: inline-size; }

/* Install command pill */
.cmd {
  display: flex; align-items: stretch; border: 1.5px solid var(--ink);
  border-radius: var(--radius); overflow: hidden; background: var(--ink);
  font-family: var(--font-mono); max-width: 100%;
}
.cmd__prompt {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem;
  color: #cfe2ec; font-size: 0.9rem; white-space: nowrap; overflow-x: auto;
}
.cmd__prompt .sigil { color: var(--signal); }
.cmd__copy {
  border: 0; border-left: 1.5px solid rgba(255,255,255,0.16);
  background: transparent; color: var(--signal); padding: 0 1rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; transition: background 0.2s, color 0.2s;
}
.cmd__copy:hover { background: var(--signal); color: var(--ink); }
.cmd-note { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-40); margin-top: 0.7rem; }
/* Drop the Copy button below the command whenever the pill is too narrow for a
   side-by-side row — driven by the pill's OWN width, so it covers both small
   screens and the squeezed two-column hero column (no internal scrollbar). */
@container (max-width: 510px) {
  .cmd { flex-direction: column; }
  .cmd__copy { border-left: 0; border-top: 1.5px solid rgba(255, 255, 255, 0.16); padding: 0.6rem; }
}

/* Hero device schematic */
.device {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
}
.device__rings { position: absolute; inset: 0; display: grid; place-items: center; }
.device__rings span {
  position: absolute; border: 1.5px solid var(--line); border-radius: 50%;
}
.device__rings span:nth-child(1) { width: 58%; height: 58%; }
.device__rings span:nth-child(2) { width: 78%; height: 78%; border-style: dashed; opacity: 0.6; }
.device__rings span:nth-child(3) { width: 98%; height: 98%; opacity: 0.4; }
.device__pulse {
  position: absolute; width: 58%; height: 58%; border-radius: 50%;
  border: 2px solid var(--signal); opacity: 0;
  animation: ping 3.4s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.device__art {
  width: 62%; position: relative; z-index: 2;
  filter: drop-shadow(0 22px 40px rgba(1, 50, 73, 0.28));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.callout {
  position: absolute; z-index: 3; font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--ink-60); background: var(--paper); border: 1px solid var(--line);
  padding: 0.35rem 0.6rem; border-radius: var(--radius); white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.callout::before {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); top: 50%; transform: translateY(-50%);
}
.callout--tl { top: 8%; left: -4%; }
.callout--tl::before { right: -14px; }
.callout--tr { top: 26%; right: -6%; }
.callout--tr::before { left: -14px; }
.callout--bl { bottom: 22%; left: -6%; }
.callout--bl::before { right: -14px; }
.callout--br { bottom: 6%; right: 0%; }
.callout--br::before { left: -14px; }

/* Waveform */
.waveform { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.waveform span {
  width: 3px; background: var(--signal-deep); border-radius: 2px;
  animation: wave 1.1s ease-in-out infinite;
}
.waveform span:nth-child(odd) { background: var(--ink); }
@keyframes wave { 0%,100% { height: 5px; } 50% { height: 22px; } }

/* ---- Stat / marquee strip ---------------------------------------------- */
.specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.specs__item { background: var(--paper); padding: 1.6rem 1.4rem; }
.specs__k { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--ink); }
.specs__v { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-60); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- Card grid ---------------------------------------------------------- */
.cards { display: grid; gap: 1.25rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 18px 18px 0;
  border-color: transparent var(--paper-2) transparent transparent;
  transition: border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.card:hover::after { border-color: transparent var(--signal) transparent transparent; }
.card__tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--signal-deep); letter-spacing: 0.08em; text-transform: uppercase; }
.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1.1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; margin: 0.7rem 0 0.5rem; letter-spacing: -0.01em; }
.card p { color: var(--ink-60); font-size: 0.97rem; }

/* ---- Split feature rows ------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.feature:nth-child(even) .feature__media { order: -1; }
.feature__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal-deep); letter-spacing: 0.1em; }
.feature h3 { margin: 0.8rem 0 1rem; }
.feature p + p { margin-top: 0.9rem; }
.feature ul.ticks { margin-top: 1.3rem; display: grid; gap: 0.65rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: 0.96rem; color: var(--ink-60); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 9px; height: 9px;
  background: var(--signal); border-radius: 2px; transform: rotate(45deg);
}
.feature__media {
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
  padding: clamp(1.2rem, 3vw, 2rem); position: relative;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.3rem 0.7rem;
}
.chip--signal { border-color: var(--signal); background: var(--signal-tint); }

/* ---- Code block --------------------------------------------------------- */
.code {
  background: var(--ink); color: #d6e6ee; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7;
  overflow: hidden; border: 1.5px solid var(--ink);
}
.code__bar {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12); color: #9fc0d0; font-size: 0.74rem;
}
.code__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.code__dot.sig { background: var(--signal); }
.code pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; }
.code .c { color: #6f93a4; }       /* comment */
.code .p { color: var(--signal); } /* prompt / accent */
.code .s { color: #9fe0b0; }       /* string-ish */

/* ---- Pipeline schematic ------------------------------------------------- */
.pipe { position: relative; }
.pipe__track {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.node-cell {
  background: var(--paper); padding: 1.3rem 1.4rem; position: relative;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.node-cell .port { font-family: var(--font-mono); font-size: 0.72rem; color: var(--signal-deep); }
.node-cell .nm { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.node-cell .rl { font-size: 0.9rem; color: var(--ink-60); }
.node-cell .cmd-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-40); margin-top: 0.4rem; }

/* services table */
.svc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.svc-table th, .svc-table td { text-align: left; padding: 0.95rem 1rem; border-bottom: 1px solid var(--line); }
.svc-table th { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-60); }
.svc-table td.mono { font-family: var(--font-mono); font-size: 0.86rem; }
.svc-table tr:hover td { background: var(--paper-2); }
.svc-table .svc-name { font-weight: 600; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* flow diagram */
.flow { display: grid; gap: 0.9rem; }
.flow__row { display: flex; align-items: stretch; gap: 0.9rem; flex-wrap: wrap; }
.flow__box {
  flex: 1 1 160px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: 1.1rem 1.2rem; position: relative;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.flow__box .l {
  display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-60);
}
.flow__box .t { font-weight: 600; line-height: 1.3; }
.flow__box .d { font-size: 0.86rem; color: var(--ink-60); line-height: 1.45; }
.flow__box.signal { border-color: var(--signal); background: var(--signal-tint); }
.port-badge {
  font-family: var(--font-mono); font-style: normal; font-size: 0.66rem;
  letter-spacing: 0.06em; color: var(--ink); white-space: nowrap;
  background: var(--signal-tint); border: 1px solid var(--signal);
  border-radius: 100px; padding: 0.1rem 0.5rem;
}
.flow__box.signal .port-badge { background: var(--paper); }
.flow__arrow { display: grid; place-items: center; color: var(--ink-40); font-family: var(--font-mono); padding: 0.2rem 0; }
.flow__parallel { display: grid; gap: 0.9rem; flex: 1 1 220px; }

/* ---- CTA band ----------------------------------------------------------- */
.band {
  background: var(--ink); color: #eaf3f7; border-radius: 8px;
  padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.band h2 { color: #fff; position: relative; }
.band p { color: #b9d2de; position: relative; max-width: 52ch; margin-top: 1rem; }
.band .hero__cta { position: relative; margin-top: 2rem; }
.band .btn-ghost { --fg: #fff; --bd: rgba(255,255,255,0.3); }
.band .btn-ghost:hover { background: rgba(255,255,255,0.08); --bd: #fff; }
.band .eyebrow { color: #b9d2de; }

/* ---- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2.5rem; }
.footer__brand .brand { margin-bottom: 1rem; }
.footer__brand p { color: var(--ink-60); font-size: 0.95rem; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-40); margin-bottom: 1rem; }
.footer__col a { display: block; padding: 0.3rem 0; color: var(--ink-60); font-size: 0.95rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bar {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-40);
}
.footer__bar a { color: var(--ink-60); }
.footer__bar a:hover { color: var(--signal-deep); }

/* ---- Scroll reveal ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---- Hero load stagger -------------------------------------------------- */
.rise { opacity: 0; transform: translateY(16px); animation: rise 0.8s var(--ease) forwards; }
.rise[data-d="1"] { animation-delay: 0.05s; }
.rise[data-d="2"] { animation-delay: 0.15s; }
.rise[data-d="3"] { animation-delay: 0.25s; }
.rise[data-d="4"] { animation-delay: 0.35s; }
.rise[data-d="5"] { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; animation: none; } }

/* ---- Overflow guards ---------------------------------------------------- */
/* Grid/flex children default to min-width:auto, which lets unbreakable content
   (code blocks, the install pill) push the whole page wider than the viewport.
   Allowing them to shrink keeps long content inside its own scroll area. */
.hero__grid > *,
.hero__cta > *,
.feature > *,
.cards > *,
.footer__top > * { min-width: 0; }
.cmd, .cmd__prompt { min-width: 0; }
.code, .feature__media, .card, .band { max-width: 100%; }
.code pre { max-width: 100%; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .device { max-width: 420px; margin-inline: auto; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.3rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.4rem; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links .btn { justify-content: center; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .callout { display: none; }
}
/* .cmd stacking is handled by the @container query above (covers small screens
   and the squeezed hero column alike). */
