/* ==========================================================================
   VERTEX — Design tokens
   Theme-independent tokens live here. Color tokens are defined per-theme
   below so the whole site can switch between light and dark via
   [data-theme] on <html> — see the theme toggle in script.js.
   ========================================================================== */
:root {
  /* -- Brand accent: constant across both themes for a consistent identity -- */
  --color-accent: #e2872f;
  --color-accent-strong: #c96a1c;
  --color-accent-rgb: 226, 135, 47;
  --color-on-accent: #ffffff;

  /* -- Type -- */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* -- Spacing scale -- */
  --space-1: 0.4rem;
  --space-2: 0.8rem;
  --space-3: 1.6rem;
  --space-4: 2.4rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* -- Shape / motion -- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-mid: 380ms;

  --header-height: 110px;
  /* Small breathing room left between the panel's bottom edge and the
     bottom of the viewport (taskbar, browser chrome, etc). */
  --stack-bottom-gap: 20px;
  /* Panel height is derived from the viewport minus the sticky top
     offset and the bottom gap, so top + height + bottom-gap always
     equals 100vh — the panel can never be tall enough to get clipped. */
  --stack-panel-height: clamp(
    560px,
    calc(100vh - var(--header-height) - var(--space-2) - var(--stack-bottom-gap)),
    980px
  );

  /* Uniform reveal margin between one settled sub-section and the next
     one stacking over it. 38px = ~1cm on a standard 96dpi screen, so
     every "step" in the stack always leaves at least a full centimetre
     of the previous sub-section visible around the new one. */
  --stack-gap: 38px;
  --stack-card-radius: 44px;
  --stack-card-pad: 64px;

  /* Total scroll distance for the sequence: one full viewport to arrive
     at sub-section 1, plus one more per hand-off to the next card
     (3 hand-offs for 4 cards), so each stacking motion gets a full,
     unhurried scroll pass instead of feeling rushed. */
  --stack-track-height: 460vh;
}

@media (max-width: 900px) {
  :root {
    --stack-panel-height: clamp(
      520px,
      calc(100vh - var(--header-height) - var(--space-2) - var(--stack-bottom-gap)),
      920px
    );
    --stack-card-radius: 30px;
    --stack-card-pad: 32px;
    --stack-track-height: 420vh;
  }
}
@media (max-width: 560px) {
  :root { --stack-gap: 20px; --stack-card-pad: 22px; --stack-track-height: 380vh; }
}

/* ==========================================================================
   Theme: light (default)
   ========================================================================== */
:root,
:root[data-theme="light"] {
  --color-bg: #f7f6f2;
  --color-panel: #ffffff;
  --color-navy: #1c2b46;        /* structural borders / focus rings / ink accents */
  --color-ink: #171b22;
  --color-ink-muted: #5b6472;
  --color-header-bar: #12151c;

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(28, 43, 70, 0.28);
  --glass-blur: 14px;
  --field-bg: rgba(255, 255, 255, 0.85);
  --field-placeholder: rgba(23, 27, 34, 0.35);

  /* Sub-section gradients — a restrained corporate progression (deep
     navy → teal → indigo → bronze) that stays in the same family as
     the brand navy/accent instead of the previous candy-bright hues. */
  --card1-grad-a: #e6e8eb;
  --card1-grad-b: #35507c;
  --card2-grad-a: #f1f9f8;
  --card2-grad-b: #14958a;
  --card3-grad-a: #ffffff;
  --card3-grad-b: #133160;
  --card4-grad-a: #f0ebe8;
  --card4-grad-b: #b06a26;
  --card-ink: #ffffff;

  color-scheme: light;
}

/* ==========================================================================
   Theme: dark
   ========================================================================== */
:root[data-theme="dark"] {
  --color-bg: #0b0f16;
  --color-panel: #131a26;
  --color-navy: #aab6c9;        /* structural borders lighten so they read on dark surfaces */
  --color-ink: #eef2f7;
  --color-ink-muted: #93a0b4;
  --color-header-bar: #05070b;

  --glass-bg: rgba(19, 26, 38, 0.6);
  --glass-border: rgba(238, 242, 247, 0.16);
  --glass-blur: 16px;
  --field-bg: rgba(255, 255, 255, 0.06);
  --field-placeholder: rgba(238, 242, 247, 0.35);

  --card1-grad-a: #b1b5bb;
  --card1-grad-b: #0a1220;
  --card2-grad-a: #b2c9c6;
  --card2-grad-b: #06231f;
  --card3-grad-a: #c6c5cd;
  --card3-grad-b: #1c1740;
  --card4-grad-a: #dacfc3;
  --card4-grad-b: #2b1706;
  --card-ink: #F3F4F6;

  color-scheme: dark;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

/* Smooth cross-theme transitions on the main surfaces (gradients on the
   sub-section cards are intentionally excluded — browsers can't tween
   gradient stops smoothly, so those swap instantly, which reads fine). */
.stack-frame,
.feature-box,
.site-footer,
.closing__panel,
.field__input,
.stack-card__label {
  transition: background-color var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}

/* ==========================================================================
   Header — thin top accent bar + logo pinned top-left
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 100;
  transition: background var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.site-header__bar {
  height: 0px;
  width: 100%;
  background: var(--color-header-bar);
}
.site-header.is-scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 24px -16px rgba(28, 43, 70, 0.35);
}

.navbar{
    max-width:1480px;
    margin:0 auto;
    height:100%;
    padding :0 var(--space-5);
    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* Logo container — pinned top-left per spec */
.navbar__logo { display: inline-flex; }
.navbar__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.navbar__logo:hover .navbar__logo-badge { transform: translateY(-2px); }


.navbar__logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  color: #ffffff;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.navbar__logo-img {
  height: 100px;
  width: auto;
  display: block;
  transform: translate(-70px, 0px);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: 0.9rem;
}
.navbar__links { display: flex; gap: var(--space-4); font-size: 0.9rem; color: var(--color-ink-muted); }
.navbar__links a { transition: color var(--dur-fast) var(--ease-out); }
.navbar__links a:hover { color: var(--color-navy); }

/* Theme toggle — small circular switch, sun/moon crossfade */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--color-ink);
  position: relative;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.theme-toggle__icon {
  width: 19px;
  height: 19px;
  position: absolute;
  transition: opacity var(--dur-mid) var(--ease-in-out), transform var(--dur-mid) var(--ease-in-out);
}
.theme-toggle__icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle__icon--moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
[data-theme="dark"] .theme-toggle__icon--sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* =====================================================
   MEGA MENU
===================================================== */

.dropdown{
    position:relative;
}

/* Show dropdown on hover */

.dropdown:hover .mega-menu{
    opacity:1;
    visibility:visible;
    transform:
    translateX(-50%)
    translateY(0);
}

/* Dropdown Box */

.mega-menu{

    position:absolute;

    top:100%;
    margin-top:-2px;
    left:50%;

    transform:
    translateX(-50%)
    translateY(0);

    width:650px;

    background:white;

    padding:30px;

    border-radius:20px;

    box-shadow:
    0 20px 50px rgba(0,0,0,.12);

    opacity:0;
    visibility:hidden;

    transition:.3s ease;

    z-index:1000;
}

/* Links Layout */

.menu-links{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap: 10px;

    align-items:center;

    white-space:nowrap;
}

.menu-links a{

    color:var(--text-light);

    font-weight:500;

    transition:.3s ease;
}

.menu-links a:hover{

    color:var(--secondary);

    transform:translateY(-2px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: var(--color-on-accent);
}
.btn--primary:hover { box-shadow: 0 10px 24px -8px rgba(var(--color-accent-rgb), 0.55); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--color-ink);
}
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn--pill { border-radius: 999px; padding: 0.7rem 1.4rem; font-size: 0.85rem; }
.btn--small { padding: 0.65rem 1.2rem; font-size: 0.85rem; }
.btn--large { padding: 1.1rem 2.2rem; font-size: 1rem; }

/* Activate reads as the brand-accent control, with a soft idle pulse
   to invite the click — same treatment in both themes. */
.btn--activate {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: var(--color-on-accent);
  min-width: 168px;
}
.btn--activate::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.45);
  animation: pulse-ring 2.6s var(--ease-in-out) infinite;
  z-index: -1;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.4); }
  70%  { box-shadow: 0 0 0 14px rgba(var(--color-accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: calc(var(--header-height) + var(--space-5)) var(--space-5) var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}
.hero__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
}
.hero__subtitle {
  margin-top: var(--space-2);
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--color-ink-muted);
}

/* ==========================================================================
   STACKED SEQUENCE (true overlapping cards)
   .stack-track is a tall spacer; .stack-panel pins via position: sticky
   for the duration of that scroll — this is what prevents the page from
   advancing until the sequence finishes.

   Inside the fixed-size panel, every .stack-card is absolutely positioned
   and fully fills sub-section 1's footprint. Sub-section 1 stays put as
   the base layer. Each following sub-section starts translated fully out
   of view below the frame; as the user scrolls through its phase it
   slides up and settles inset by (--stack-gap * its position in the
   stack) from the frame edge — which, because every earlier card is
   itself inset by one fewer step, always reads as a uniform ≥1cm margin
   around the sub-section sitting directly beneath it. script.js drives
   the reveal (0→1) and the covered-card dim/blur purely via custom
   properties, so layout math never fights the animation.
   ========================================================================== */
.stack-track {
  position: relative;
  height: var(--stack-track-height, 480vh);
}

.stack-panel {
  position: sticky;
  top: calc(var(--header-height) + var(--space-2));
  height: var(--stack-panel-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.stack-frame {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: 95%;
  border-radius: var(--stack-card-radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(28, 43, 70, 0.45);
  background: var(--color-panel);
}

/* Every card fills the frame at rest; each successive card is inset one
   more --stack-gap step than the one before it, so it settles leaving a
   uniform margin around whichever card is directly beneath it. */
.stack-card {
  position: absolute;
  border-radius: var(--stack-card-radius);
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 24px 48px -20px rgba(8, 12, 20, 0.55);
  /* Translate by the full panel height (not the card's own, inset-reduced
     height) so a not-yet-revealed card travels far enough to clear the
     frame's bottom edge completely — otherwise an inset card only moves
     by its own shorter height and ends up still poking into view. */
  transform: translateY(calc((1 - var(--reveal, 1)) * (var(--stack-panel-height) + 100px)));
  transition: box-shadow var(--dur-fast) linear;
}

.stack-card[data-stack-card="1"] { top: 0;                              right: 0;                              bottom: 0; left: 0;                             z-index: 1; }
.stack-card[data-stack-card="2"] { top: var(--stack-gap);               right: var(--stack-gap);               bottom: 0; left: var(--stack-gap);              z-index: 2; }
.stack-card[data-stack-card="3"] { top: calc(var(--stack-gap) * 2);     right: calc(var(--stack-gap) * 2);     bottom: 0; left: calc(var(--stack-gap) * 2);    z-index: 3; }
.stack-card[data-stack-card="4"] { top: calc(var(--stack-gap) * 3);     right: calc(var(--stack-gap) * 3);     bottom: 0; left: calc(var(--stack-gap) * 3);    z-index: 4; }

.stack-card[data-stack-card="1"] { background: linear-gradient(135deg, var(--card1-grad-a), var(--card1-grad-b)); color: var(--card-ink); }
.stack-card[data-stack-card="2"] { background: linear-gradient(135deg, var(--card2-grad-a), var(--card2-grad-b)); color: var(--card-ink); }
.stack-card[data-stack-card="3"] { background: linear-gradient(135deg, var(--card3-grad-a), var(--card3-grad-b)); color: var(--card-ink); }
.stack-card[data-stack-card="4"] { background: linear-gradient(135deg, var(--card4-grad-a), var(--card4-grad-b)); color: var(--card-ink); }

/* A card not yet revealed sits fully below the frame — keep it out of
   the tab/click order until it actually slides into view. */
.stack-card.is-hidden { pointer-events: none; }
.stack-card.is-hidden .stack-card__body { visibility: hidden; }

/* Dim + blur overlay for a sub-section once the next one has settled on
   top of it. Sits above the body but below the label, so the
   "Sub-Section N" chip always stays crisp while the body behind it
   visibly recedes — driven by --collapse-dim / --collapse-blur from JS. */
.stack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(10, 14, 22, var(--collapse-dim, 0));
  backdrop-filter: blur(var(--collapse-blur, 0px));
  -webkit-backdrop-filter: blur(var(--collapse-blur, 0px));
  transition: background var(--dur-fast) linear;
}

/* Label — small bordered chip pinned to each card's own top-left corner */
.stack-card__label {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  margin: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  color: #171b22;                 /* constant — this chip is a fixed white "sticker" in both themes */
  border: 1.5px solid #1c2b46;
  border-radius: var(--radius-sm);
  z-index: 2;
}

/* Body: left = heading/copy, right = the enlarged feature box. The box
   is stretched to the row's full height and roughly half the row's
   width, with a uniform --stack-card-pad gap on every side, so it reads
   as covering at least half of the sub-section with even breathing room
   all around it. */
.stack-card__body {
  position: relative;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: var(--stack-card-pad);
  padding: calc(var(--stack-card-pad) + 28px) var(--stack-card-pad) var(--stack-card-pad) var(--stack-card-pad);
}

.stack-card__left {
  flex: 1 1 46%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stack-card__title { font-size: clamp(2.2rem, 3.4vw, 3.4rem); font-weight: 600; line-height: 1.05; color: var(--card-ink); transform: translateY(-170px); }
.stack-card__title1 { font-size: clamp(5.1rem, 3.4vw, 3.4rem); font-weight: 600; line-height: 1.05; color: var(--card-ink); transform: translateY(-170px); }
.stack-card__text1 { margin-top: var(--space-3); max-width: 46ch; color: currentColor; opacity: 0.82; font-size: 3.05rem; transform: translateY(-150px); }

.stack-card__title2 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); font-weight: 600; line-height: 1.05; color: var(--card-ink); transform: translateY(-130px); }
.stack-card__title3 { font-size: clamp(5.2rem, 7.5vw, 8.5rem); font-weight: 600; line-height: 1.05; color: var(--card-ink); transform: translateY(-140px); }
.stack-card__text2 { margin-top: var(--space-3); max-width: 46ch; color: currentColor; opacity: 0.82; font-size: 3.05rem; transform: translateY(-90px); }

.stack-card__title4 { font-size: clamp(5.2rem, 3.4vw, 3.4rem); font-weight: 600; line-height: 1.05; color: var(--card-ink); transform: translateY(-100px); }
.stack-card__title5 { font-size: clamp(4.2rem, 5.2vw, 8.5rem); font-weight: 600; line-height: 1.05; color: var(--card-ink); transform: translateY(-110px); }
.stack-card__text3 { margin-top: var(--space-3); max-width: 46ch; color: currentColor; opacity: 0.82; font-size: 3.05rem; transform: translateY(-60px); }

.stack-card__title6 { font-size: clamp(6.2rem, 4.2vw, 4.2rem); font-weight: 600; line-height: 1.05; color: var(--card-ink); transform: translateY(-100px); }
.stack-card__text4 { margin-top: var(--space-3); max-width: 46ch; color: currentColor; opacity: 0.82; font-size: 3.05rem; transform: translateY(-50px); }


/* ==========================================================================
   Feature Box — glassmorphic card pinned to the right, per the mockup
   ========================================================================== */
.feature-box {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: 0 20px 40px -18px rgba(28, 43, 70, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
}

.feature-box__panel {
  grid-area: 1 / 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-in-out), transform var(--dur-mid) var(--ease-in-out);
}
.feature-box__panel.is-active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* ==========================================================================
   Sample form
   ========================================================================== */
.sample-form { width: 100%; display: flex; flex-direction: column; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field__label { font-size: 0.78rem; color: var(--color-ink-muted); font-weight: 500; }
.field__input {
  background: var(--field-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--color-ink);
  font-size: 0.92rem;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.field__input::placeholder { color: var(--field-placeholder); }
.field__input:focus { outline: none; border-color: var(--color-accent); }
.sample-form__actions { display: flex; gap: var(--space-2); }

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.closing {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-5);
}
.closing__panel {
  max-width: 640px;
  text-align: center;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.closing__panel .eyebrow { justify-content: center; }
.closing__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: var(--space-3); }
.closing__text { color: var(--color-ink-muted); margin-bottom: var(--space-4); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 2px solid var(--color-navy);
  background: var(--color-panel);
  padding: var(--space-5) var(--space-5) var(--space-4);
}
.site-footer__top {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--glass-border);
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); max-width: 320px; }
.site-footer__tagline { color: var(--color-ink-muted); font-size: 0.88rem; }
.site-footer__col h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-3);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__col a { color: var(--color-ink); font-size: 0.9rem; transition: color var(--dur-fast) var(--ease-out); }
.site-footer__col a:hover { color: var(--color-accent); }
.site-footer__bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--activate::after { animation: none; }
  .feature-box__panel { transition-duration: 1ms; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .navbar { padding: var(--space-2) var(--space-3) 0; }
  .navbar__links { display: none; }
  .stack-card__body { flex-direction: column; overflow-y: auto; }
  .stack-card__left { flex: 0 0 auto; justify-content: flex-start; }
  .feature-box { flex: 1 1 auto; width: 100%; height: auto; min-height: 260px; }
  :root {
    --stack-panel-height: clamp(
      480px,
      calc(100vh - var(--header-height) - var(--space-2) - var(--stack-bottom-gap)),
      900px
    );
  }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .stack-panel { padding: 0 var(--space-3); }
  .stack-card__body { padding-left: var(--space-3); padding-right: var(--space-3); gap: var(--space-3); }
}