/* ==========================================================================
   KRYO components — nav, buttons, cards, badge, accordion, forms
   ========================================================================== */

/* --- Header / nav ----------------------------------------------------------
   No-JS-safe by inversion: the header is static and links are always visible.
   main.js adds .nav-ready (fixed header + mobile drawer) and .is-scrolled. */

.site-header {
  /* relative, not static: the ::before glass and the ::after progress rail are
     absolutely positioned, and without JS nothing else would anchor them.
     Identical to static in flow, so this still causes no layout shift. */
  position: relative;
  z-index: 50;
  width: 100%;
}

/* Sticky (not fixed): stays in flow, so enabling it causes zero layout shift. */
.nav-ready .site-header {
  position: sticky;
  top: 0;
}

/* Glass backdrop lives on a pseudo so the header itself never gets
   backdrop-filter (a filtered header would re-anchor the fixed drawer). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header::before {
    background: rgba(14, 21, 38, 0.94);
  }
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  min-height: var(--nav-h);
  padding-block: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-hi);
}

.brand:hover {
  color: var(--text-hi);
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--cyan-400);
  flex: none;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.18em;
}

.brand-wordmark {
  height: 0.72em;
  width: auto;
  aspect-ratio: 1434.63 / 360;
  display: block;
  overflow: visible;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}

.nav-link,
.nav-summary {
  display: inline-block;
  position: relative;
  padding: var(--space-2) 2px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.nav-link::after,
.nav-summary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-link:hover,
.nav-summary:hover {
  color: var(--text-hi);
}

.nav-link:hover::after,
.nav-summary:hover::after,
.nav-menu[open] > .nav-summary::after,
.nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="true"] {
  color: var(--text-hi);
}

/* Hamburger — hidden until JS enables the drawer */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--text-hi);
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile: before JS, the nav is a single-row scrollable strip at exactly
   nav height — same height as the JS header, so enabling the drawer causes
   zero layout shift. */
@media (max-width: 959px) {
  .nav-wrap {
    flex-wrap: nowrap;
  }

  .site-nav {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-list {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .nav-cta {
    display: none; /* CTA lives in the drawer (JS) and page body; row stays compact */
  }

  .nav-ready .site-nav {
    overflow-x: visible;
  }

  .nav-ready .nav-cta {
    display: block;
  }

  .nav-ready .nav-toggle {
    display: inline-flex;
  }

  .nav-ready .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1;
    height: 100dvh;
    width: min(20rem, 85vw);
    padding: calc(var(--nav-h) + var(--space-6)) var(--space-6) var(--space-6);
    background: rgba(14, 21, 38, 0.97);
    border-left: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3);
    transform: translateX(110%);
    transition: transform var(--dur-slow) var(--ease-out);
    visibility: hidden;
  }

  .nav-ready .site-header.nav-open .site-nav {
    transform: none;
    visibility: visible;
  }

  .nav-ready .nav-list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-5);
  }

  .nav-ready .nav-link {
    font-size: 1.15rem;
  }

  .nav-ready .nav-cta {
    margin-top: var(--space-4);
  }
}

/* --- Buttons ------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--glow-md);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--cyan-400);
  color: var(--text-on-accent);
}

.btn--primary:hover {
  background: var(--cyan-300);
  color: var(--text-on-accent);
}

.btn--primary:hover::after {
  opacity: 1;
}

.btn--primary:active {
  background: var(--cyan-500);
}

.btn--ghost {
  background: rgba(106, 227, 255, 0.06);
  border: 1px solid var(--glass-border-hover);
  color: var(--text-hi);
}

.btn--ghost:hover {
  background: rgba(106, 227, 255, 0.12);
  border-color: var(--cyan-400);
  color: var(--cyan-300);
}

.btn--sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
}

/* --- Cards ---------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--space-5);
}

/* Sections carried one grid until the pen-test evidence section needed a row of
   figures above a row of cards. gap only applies inside a grid, so stacked grids
   sat flush against each other — match the gap between them too. */
.card-grid + .card-grid {
  margin-top: var(--space-5);
}

@media (min-width: 720px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: var(--space-6);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--glow-sm);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.card:hover {
  border-color: var(--glass-border-hover);
}

.card:hover::after {
  opacity: 1;
}

/* CSS hover lift only when JS tilt is not driving the transform */
html:not(.has-tilt) .card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: var(--space-3);
  font-size: 1.35rem;
}

/* Cards carried a single paragraph until the pen-test method section needed two.
   Body copy has no bottom margin here, so consecutive paragraphs ran together as
   one block. Scoped to unclassed paragraphs on purpose: a bare `p + p` also
   catches the `p.fine-print` "More on this →" link that closes eleven cards on
   the home page, and those are deliberately tight against the copy above them. */
.card p:not([class]) + p:not([class]) {
  margin-top: var(--space-3);
}

.card::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-full);
  background: var(--grad-accent);
}

.card-tag {
  margin-bottom: var(--space-3);
  font-size: var(--step--1);
  line-height: 1.4;
  /* Tags run 20-44 characters across the site, so some wrap and some don't, which
     pushed the h3 below it out of line across a row. Reserving two lines keeps every
     heading in a row on the same baseline whatever the tag length. */
  min-height: 2.8em;
  letter-spacing: var(--tracking-wide);
  color: var(--text-low);
}

/* --- Check list -------------------------------------------------------------------- */
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-top: var(--space-3);
  color: var(--text-mid);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--cyan-400);
}

/* --- Badge ---------------------------------------------------------------------------- */
.badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--grad-accent);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Accordion ---------------------------------------------------------------------------
   Panels ship expanded in HTML; JS adds .is-collapsed. Animated via grid rows. */
.acc-item {
  border-bottom: 1px solid var(--ink-700);
}

.acc-item:first-child {
  border-top: 1px solid var(--ink-700);
}

.acc-heading {
  margin: 0;
}

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
  padding: var(--space-5) var(--space-2);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--text-hi);
  transition: color var(--dur-base) var(--ease-out);
}

.acc-trigger:hover {
  color: var(--cyan-300);
}

.acc-icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--cyan-400);
  transform: rotate(45deg); /* expanded = × */
  transition: transform var(--dur-base) var(--ease-out);
}

.acc-item.is-collapsed .acc-icon {
  transform: rotate(0deg); /* collapsed = + */
}

.acc-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}

.acc-item.is-collapsed .acc-panel {
  grid-template-rows: 0fr;
}

.acc-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.acc-panel-inner p {
  margin: 0 var(--space-2) var(--space-5);
  max-width: 60ch;
}

/* --- Forms ------------------------------------------------------------------------------- */
.form-row--2col {
  display: grid;
  gap: 0 var(--space-4);
}

@media (min-width: 720px) {
  .form-row--2col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  margin-bottom: var(--space-5);
}

.form-field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-hi);
}

.label-opt {
  font-weight: 400;
  color: var(--text-low);
}

.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-sm);
  color: var(--text-hi);
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-low);
  opacity: 0.7;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(106, 227, 255, 0.15);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236AE3FF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

/* Custom select — JS-enhanced replacement for the native <select> popup,
   which can't be restyled cross-browser. Native select stays in the DOM
   (visually hidden) as the no-JS fallback and the form's real field. */
.cs {
  position: relative;
}

.cs-native {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  padding: 12px 14px;
  background: var(--ink-900);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-sm);
  color: var(--text-hi);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.cs-trigger .cs-placeholder {
  color: var(--text-low);
  opacity: 0.7;
}

.cs-trigger-icon {
  flex: none;
  color: var(--cyan-400);
  transition: transform var(--dur-base) var(--ease-out);
}

.cs.is-open .cs-trigger-icon {
  transform: rotate(180deg);
}

.cs-trigger:hover {
  border-color: var(--ink-700);
}

.cs.is-open .cs-trigger,
.cs-native:focus-visible ~ .cs-trigger {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(106, 227, 255, 0.15);
}

.cs-listbox {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 15rem;
  overflow-y: auto;
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.cs.is-open .cs-listbox {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cs-option {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-mid);
  cursor: pointer;
}

.cs-option:hover,
.cs-option.is-active {
  background: var(--ink-700);
  color: var(--text-hi);
}

.cs-option.is-selected {
  color: var(--cyan-400);
  font-weight: 600;
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
}

.form-field select[aria-invalid="true"] ~ .cs-trigger {
  border-color: var(--danger);
}

.field-error {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--danger);
}

.form-field--check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-field--check input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--cyan-400);
}

.form-field--check label {
  margin: 0;
  font-weight: 400;
  color: var(--text-mid);
}

.hp-field {
  display: none !important;
}

/* --- Chips (compliance / evidence tags) ------------------------------------ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-7);
  max-width: none; /* it's a <p>; escape the base 65ch prose cap so chips stay on one line */
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-sm);
  background: rgba(106, 227, 255, 0.05);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  white-space: nowrap;
}

/* --- Cookie consent bar -------------------------------------------------------
   Injected by js/consent.js. Sits over the HUD (z-index 40) rather than above
   it: the HUD is aria-hidden decorative telemetry, and those 44px are hero the
   visitor cannot tap while the banner is up. The bar is transient — it goes away
   the moment the choice is made.

   z-index 60 is above the header's 50, so the bar also paints over the mobile
   nav drawer (fixed, 100dvh, inside the header's stacking context). That is
   deliberate: the drawer's links are top-aligned and none reach the bar, while
   dropping the bar below the header instead makes Accept and Reject
   unclickable behind the open drawer. Both directions were hit-tested. */
.consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: var(--space-4) var(--gutter);
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-3);
}

@supports not (backdrop-filter: blur(1px)) {
  .consent-bar {
    background: var(--ink-950);
  }
}

.consent-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.consent-copy {
  flex: 1 1 24rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-mid);
}

.consent-copy a {
  color: var(--cyan-300);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Equal width so neither choice is visually cheaper than the other. */
.consent-btn {
  min-width: 7.5rem;
}

@media (max-width: 720px) {
  /* The bar is position:fixed over a hero that is already taller than a phone
     viewport, so every pixel of bar height is hero the visitor cannot reach
     until they answer it. Tighten, but do not shorten the notice itself. */
  .consent-bar {
    padding: var(--space-3) var(--gutter);
  }

  .consent-inner {
    align-items: stretch;
    gap: var(--space-3);
  }

  .consent-copy {
    flex-basis: 100%;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .consent-actions {
    width: 100%;
  }

  .consent-btn {
    flex: 1 1 0;
  }
}

/* --- Scroll progress rail ---------------------------------------------------
   Native scroll-driven animation: no JS, no scroll listener, no markup.
   The animation MUST stay inside @supports. Without it, a browser that lacks
   animation-timeline drops that one declaration but still runs the animation on
   the document timeline, where animation-duration resolves to 0s — with
   fill: both that paints the rail permanently at scaleX(1). Guarded, such a
   browser keeps the scaleX(0) below and the rail simply never shows. */
.site-header::after,
.doc-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--aurora-cyan), var(--aurora-violet), var(--aurora-blue));
}

@supports (animation-timeline: scroll()) {
  .site-header::after,
  .doc-header::after {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes scroll-progress {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after,
  .doc-header::after { display: none; }
}

/* --- Services dropdown -------------------------------------------------------
   Built on <details>/<summary>: the disclosure behaviour, keyboard handling and
   no-JS fallback are the element's, not ours. main.js only adds Escape and
   click-outside. Below 960px it renders inline inside the drawer instead. */
.nav-has-menu {
  position: relative;
  display: flex;
}

.nav-summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-summary::-webkit-details-marker {
  display: none;
}

/* chevron */
.nav-summary::before {
  content: "";
  order: 2;
  width: 0.42em;
  height: 0.42em;
  margin-top: -0.18em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-menu[open] > .nav-summary::before {
  transform: rotate(-135deg) translate(-0.14em, -0.14em);
}

/* Hide the closed state explicitly rather than trusting the UA's <details>
   hiding — author `display` rules on the content can defeat it. */
.nav-menu:not([open]) > .nav-menu-list {
  display: none;
}

.nav-menu[open] > .nav-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-menu-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-mid);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.nav-menu-link:hover,
.nav-menu-link:focus-visible {
  background-color: rgba(106, 227, 255, 0.1);
  color: var(--text-hi);
}

@media (min-width: 960px) {
  .nav-menu[open] > .nav-menu-list {
    position: absolute;
    top: calc(100% + var(--space-3));
    left: 50%;
    z-index: 60;
    min-width: 14rem;
    padding: var(--space-3);
    transform: translateX(-50%);
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3);
    animation: nav-menu-in var(--dur-base) var(--ease-out) both;
  }

  @supports not (backdrop-filter: blur(1px)) {
    .nav-menu[open] > .nav-menu-list {
      background: rgba(14, 21, 38, 0.97);
    }
  }
}

@keyframes nav-menu-in {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Inside the mobile drawer the menu is just an indented list */
@media (max-width: 959px) {
  .nav-ready .nav-menu-list {
    padding: var(--space-3) 0 0 var(--space-4);
    gap: var(--space-3);
  }

  .nav-ready .nav-menu-link {
    padding: 0;
    font-size: 1rem;
  }

  .nav-ready .nav-summary {
    font-size: 1.15rem;
  }
}

/* Back-to-home nav link: arrow nudges on hover, sits tight to the label */
.nav-back {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
}

.nav-back span {
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-back:hover span {
  transform: translateX(-3px);
}
