/* Zest Assure marketing site — brand palette from the logo (navy #081529,
   orange gradient #f6851f → #f05423). Interactive text on white uses the
   deeper orange so pairs stay ≥ 4.5:1; the brand orange carries buttons and
   accents on navy, always with navy text (≥ 6:1). */

:root {
  --navy: #081529;
  --navy-soft: #0d2036;
  --orange: #f27021;
  --orange-bright: #f6851f;
  --orange-hover: #e05e15;
  --primary: #c2410c;
  --primary-dark: #9a3412;
  --primary-soft: #fef1e7;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --success: #059669;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Logo-orange scrollbar (Firefox + standard). */
  scrollbar-color: var(--orange) var(--surface-alt);
}

/* Logo-orange scrollbar (WebKit/Blink). */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--surface-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 999px;
  border: 3px solid var(--surface-alt);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-hover);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--primary);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-soft);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-invert {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}

.btn-invert:hover {
  background: var(--orange-bright);
  border-color: var(--orange-bright);
}


.btn-outline-invert {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-invert:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------------------------------- header */
/* Navy header reproduces the logo's native dark background. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 21, 41, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: auto;
  display: block;
}

.brand-wordmark {
  width: 150px;
  height: auto;
  display: block;
}

/* In the header the slice sits on the menu rule like the logo's own baseline:
   the flat base is at 253/303 of the mark's height, so the drip crosses the
   line by ~16.5% of the rendered height (75px tall → -12px). */
.site-nav .brand {
  align-self: stretch;
}

.site-nav .brand-logo {
  height: 75px;
  width: auto;
  align-self: flex-end;
  margin-bottom: -12px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-links > a:not(.btn) {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav-links > a:not(.btn):hover {
  color: #fff;
}

/* ------------------------------------------------------------------- hero */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* The logo's navy, fading from the top-left toward the right. */
  background: linear-gradient(105deg, var(--navy) 0%, #0c2138 55%, #17395f 100%);
  color: #fff;
}

/* Liquid canvas sits between the navy backdrop and the hero content. */
.hero-liquid {
  position: absolute;
  inset: 0;
  /* A <canvas> is a replaced element: inset:0 alone won't stretch it, so it
     would render at its intrinsic buffer size (W*dpr × H*dpr). Pin the CSS box
     to the hero and let the high-DPI buffer scale down into it. */
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 72px 24px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
  max-width: 34em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.hero-points li::before {
  content: '✓';
  color: var(--orange-bright);
  font-weight: 700;
  margin-right: 8px;
}

/* As the liquid pool rises over the hero copy, submerged elements flip to
   navy-on-orange (6.2:1) so they stay readable. Toggled by hero-liquid.js. */
.hero-eyebrow,
.hero h1,
.hero p.lead,
.hero-points li,
.hero-points li::before,
.hero .hero-ctas .btn {
  transition:
    color 0.45s ease,
    background 0.45s ease,
    border-color 0.45s ease;
}

.hero h1.in-liquid,
.hero p.lead.in-liquid,
.hero-points li.in-liquid,
.hero-points li.in-liquid::before {
  color: var(--navy);
}

.hero-eyebrow.in-liquid {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(8, 21, 41, 0.35);
}

.hero-ctas .btn-invert.in-liquid {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.hero-ctas .btn-outline-invert.in-liquid {
  color: var(--navy);
  border-color: rgba(8, 21, 41, 0.55);
}

/* The in-liquid rules outrank the base hover styles — restore affordance. */
.hero-ctas .btn-invert.in-liquid:hover {
  background: #0d2440;
  border-color: #0d2440;
}

.hero-ctas .btn-outline-invert.in-liquid:hover {
  background: rgba(8, 21, 41, 0.1);
  border-color: var(--navy);
}

.hero-visual {
  min-width: 0;
  padding: 32px 8px;
}

/* Hero mark: the slice pieces fall into place once on load. Pieces start
   above their final spot (custom --za-from per piece) and settle with a
   slight overshoot; the drip drops in last. */
.hero-mark {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 24px 48px rgba(3, 8, 18, 0.55));
}

/* Base state is the settled piece (backwards fill shows the keyframe `from`
   during each piece's delay) — so after the entrance, hover transforms apply
   cleanly instead of being overridden by a forwards fill. */
.hero-mark .za-piece {
  transform-box: fill-box;
  transform-origin: center;
  animation: za-fall 0.9s cubic-bezier(0.22, 1.25, 0.36, 1) backwards;
  animation-delay: var(--za-delay, 0s);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Segments pop out slightly under the pointer; the drip stretches. */
.hero-mark .za-seg-1:hover,
.hero-mark .za-seg-2:hover,
.hero-mark .za-seg-3:hover,
.hero-mark .za-seg-4:hover,
.hero-mark .za-seg-5:hover {
  transform: scale(1.08);
}

.hero-mark .za-drip:hover {
  transform: translateY(5px) scale(1.1);
}

.hero-mark .za-arc {
  --za-delay: 0.1s;
  --za-from: translateY(-170px);
}

/* Segments assemble clockwise around the fan. */
.hero-mark .za-seg-1 {
  --za-delay: 0.55s;
  --za-from: translateY(-190px) rotate(-16deg);
}
.hero-mark .za-seg-2 {
  --za-delay: 0.7s;
  --za-from: translateY(-210px) rotate(10deg);
}
.hero-mark .za-seg-3 {
  --za-delay: 0.85s;
  --za-from: translateY(-200px) rotate(-9deg);
}
.hero-mark .za-seg-4 {
  --za-delay: 1s;
  --za-from: translateY(-210px) rotate(14deg);
}
.hero-mark .za-seg-5 {
  --za-delay: 1.15s;
  --za-from: translateY(-190px) rotate(-12deg);
}

.hero-mark .za-drip {
  --za-delay: 1.5s;
  --za-from: translateY(-48px);
  animation-duration: 0.6s;
}

@keyframes za-fall {
  from {
    opacity: 0;
    transform: var(--za-from, translateY(-140px));
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark .za-piece {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------------ cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover,
.framework-card:not(.framework-card-placeholder):hover,
.steps li:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 112, 33, 0.55);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.08),
    0 16px 36px rgba(240, 84, 35, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .feature-card:hover,
  .framework-card,
  .framework-card:hover,
  .steps li,
  .steps li:hover {
    transition: none;
    transform: none;
  }
}

.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.framework-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.framework-card .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.framework-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

/* Roadmap placeholders even the grid out on desktop; hidden on mobile where
   the grid is a single column and padding cards would just add scroll. */
.framework-card-placeholder {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.framework-card-placeholder .badge {
  background: var(--surface-alt);
  color: var(--muted);
}

/* Hidden only when the grid is a single column — at 2+ columns the
   placeholders are exactly what keeps the rows even (10 → 12 cards). */
@media (max-width: 600px) {
  .framework-card-placeholder {
    display: none;
  }
}

.framework-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ how it works */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------- reuse band */
.reuse-band {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 240px at 90% 0%, rgba(242, 112, 33, 0.08), transparent 60%),
    var(--surface-alt);
  padding: 36px 36px 28px;
}

.reuse-diagram {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--font);
}

.reuse-diagram .ag-node rect {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
}

.reuse-diagram .ag-node text {
  fill: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

.reuse-diagram .ag-node .ag-sub {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.reuse-diagram .ag-hub-ring {
  fill: var(--surface);
  stroke: rgba(246, 133, 31, 0.7);
  stroke-width: 1.5;
}

.reuse-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

/* ------------------------------------------------------------ agentic band */
.agentic-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(500px 260px at 85% 10%, rgba(242, 112, 33, 0.18), transparent 65%),
    linear-gradient(135deg, #050d1c, var(--navy) 60%, #0d2440);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
}

.agentic-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}

.agentic-points h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.agentic-points p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.93rem;
}

.agentic-points li {
  padding-left: 18px;
  border-left: 3px solid var(--orange);
}

.agentic-visual {
  min-width: 0;
}

.agentic-diagram {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--font);
}

/* flow lines shimmer along their length */
.agentic-diagram .flow-line,
.reuse-diagram .flow-line {
  fill: none;
  stroke: rgba(246, 133, 31, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
  animation: ag-dash 2.4s linear infinite;
}

@keyframes ag-dash {
  to {
    stroke-dashoffset: -44;
  }
}

/* data packets travelling the paths */
.agentic-diagram .flow-dot,
.reuse-diagram .flow-dot {
  fill: var(--orange-bright);
}

.agentic-diagram .flow-dot-return {
  fill: #fdba74;
}

.agentic-diagram .ag-node rect {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.agentic-diagram .ag-node text {
  fill: #dbe4ee;
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

.agentic-diagram .ag-node .ag-sub {
  fill: #8b9bb0;
  font-size: 10px;
  font-weight: 500;
}

.agentic-diagram .ag-node-approval rect {
  stroke: rgba(246, 133, 31, 0.45);
}

.agentic-diagram .ag-hub-ring {
  fill: rgba(8, 21, 41, 0.85);
  stroke: rgba(246, 133, 31, 0.8);
  stroke-width: 1.5;
}

.agentic-diagram .ag-hub-pulse,
.reuse-diagram .ag-hub-pulse {
  fill: none;
  stroke: rgba(246, 133, 31, 0.5);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ag-pulse 3s ease-out infinite;
}

@keyframes ag-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.agentic-diagram .ag-hub-spoke {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.agentic-diagram .ag-hub-label {
  fill: #fff;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
}

.agentic-diagram .ag-hub-label-sub {
  fill: #f6a45f;
  font-size: 10px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .agentic-diagram .flow-dot,
.reuse-diagram .flow-dot {
    display: none;
  }
  .agentic-diagram .flow-line,
  .agentic-diagram .ag-hub-pulse,
.reuse-diagram .ag-hub-pulse {
    animation: none;
  }
}

@media (max-width: 900px) {
  .agentic-band {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* --------------------------------------------------------------- CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(242, 112, 33, 0.25), transparent 65%),
    linear-gradient(135deg, #050d1c, var(--navy) 60%, #0d2440);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 64px 0 32px;
  margin-top: 88px;
}

.site-footer .brand-logo {
  width: 52px;
}

.site-footer .brand-wordmark {
  width: 126px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(140px, 1fr));
  gap: 32px;
}

.footer-brand-col p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 16px 0 0;
}

.footer-col h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid var(--navy-soft);
  margin-top: 48px;
  padding-top: 24px;
}

.footer-legal p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* ----------------------------------------------------------- policy pages */
.policy-page {
  padding-top: 56px;
}

.policy-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.policy-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 36px;
}

.policy-page h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.policy-page h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

.policy-page p,
.policy-page li {
  color: var(--ink-soft);
}

.policy-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 20px 0;
}

.policy-page th,
.policy-page td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.policy-page th {
  color: var(--ink);
  background: var(--surface-alt);
}

/* -------------------------------------------------------------- 404 page */
.notfound-hero {
  text-align: center;
}

.notfound-mark {
  width: min(420px, 82vw);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  overflow: visible;
}

/* The whole slice rocks gently, as if hunting for its missing piece. */
.notfound-mark .nf-rock {
  transform-box: fill-box;
  transform-origin: 50% 85%;
  animation: nf-rock 6s ease-in-out infinite;
}

@keyframes nf-rock {
  0%,
  100% {
    transform: rotate(-1.6deg);
  }
  50% {
    transform: rotate(1.6deg);
  }
}

/* The neighbouring segments occasionally lean in to peer at the hole. */
.notfound-mark .nf-peek {
  transform-box: fill-box;
  transform-origin: center;
  animation: nf-peek 5.5s ease-in-out infinite;
}

.notfound-mark .nf-peek-left {
  animation-delay: 2.7s;
  --nf-peek-angle: 7deg;
}

.notfound-mark .nf-peek-right {
  --nf-peek-angle: -7deg;
}

@keyframes nf-peek {
  0%,
  24%,
  100% {
    transform: rotate(0deg);
  }
  8% {
    transform: rotate(var(--nf-peek-angle, -7deg));
  }
  16% {
    transform: rotate(calc(var(--nf-peek-angle, -7deg) * -0.3));
  }
}

/* Chalk outline where the missing segment should be. */
.notfound-mark .nf-outline {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2.5;
  stroke-dasharray: 7 7;
  animation: nf-march 1.4s linear infinite;
}

@keyframes nf-march {
  to {
    stroke-dashoffset: -28;
  }
}

.notfound-mark .nf-404 {
  font-family: var(--font);
  font-size: 54px;
  font-weight: 800;
  fill: var(--navy);
  text-anchor: middle;
  transform-box: fill-box;
  transform-origin: center;
  animation: nf-bob 3s ease-in-out infinite;
}

@keyframes nf-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* The drip drips. Forever. It knows nothing else. */
.notfound-mark .nf-drip {
  transform-box: fill-box;
  transform-origin: top center;
  animation: nf-drip 3s ease-in infinite;
}

@keyframes nf-drip {
  0%,
  26% {
    transform: translateY(0);
    opacity: 1;
  }
  32% {
    transform: translateY(3px) scaleY(1.12);
  }
  72% {
    transform: translateY(84px) scaleY(1);
    opacity: 0;
  }
  73%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.notfound-copy {
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 28px;
}

.notfound-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .notfound-mark .nf-rock,
  .notfound-mark .nf-peek,
  .notfound-mark .nf-outline,
  .notfound-mark .nf-404,
  .notfound-mark .nf-drip {
    animation: none;
  }
}

/* --------------------------------------------------------- consent banner */
.consent-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
  padding: 18px 20px;
  z-index: 90;
}

.consent-banner p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.consent-actions .btn {
  padding: 8px 18px;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 24px;
  }

  /* Mobile: no hero mark, no entrance animation — the copy carries the fold. */
  .hero-visual {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-nav-links > a:not(.btn) {
    display: none;
  }

  .site-nav .brand {
    gap: 10px;
  }

  .site-nav .brand-logo {
    height: 64px;
    margin-bottom: -11px;
  }

  .brand-wordmark {
    width: 100px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-band {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
