/* ════════════════════════════════════════════════════════════════
   mimOE Studio — front page
   Design system lifted from mimik.com: Nunito, the mimik palette,
   a bright #f8fafb canvas, white feature bands, and the blue→cyan
   brand gradient. Dark surfaces are reserved for the hero, the
   screenshot frames, and the footer.

   Only index.html loads this file. The feature pages under
   features/ still use style.css (the dark theme).
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Nunito';
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/Nunito-VariableFont_wght.ttf') format('truetype-variations'),
       url('assets/fonts/Nunito-VariableFont_wght.ttf') format('truetype');
}

:root {
  /* brand */
  --mimik-teal:  #29b5be;
  --mimik-blue:  #2c4ec5;
  --mimik-cyan:  #00f0ff;
  --mimik-sky:   #01ccff;
  --mimik-navy:  #010626;
  --mimik-lime:  #7bc62c;
  --mimik-orange:#f6921e;

  /* neutrals */
  --grey-95: #404040;
  --grey-70: #8e8e8e;
  --grey-51: #6b6b6b;
  --grey-15: #d0d0d0;
  --grey-08: #e8e8e8;
  --grey-04: #f3f3f3;
  --grey-02: #f8fafb;

  /* page canvas below the hero — page-local, slightly cooler than --grey-02 */
  --page: #f5f8fd;

  --grad: linear-gradient(90deg, var(--mimik-blue) 35%, var(--mimik-cyan) 100%);

  --shadow-xs: 0 1px 2px rgba(20,40,80,.04);
  --shadow-sm: 0 2px 6px rgba(20,40,80,.06);
  --shadow-md: 0 6px 18px rgba(20,40,80,.08);
  --shadow-lg: 0 14px 32px rgba(20,40,80,.10);
  --shadow-xl: 0 28px 60px rgba(20,40,80,.14);
  --shadow-cta: 0 10px 24px rgba(44,78,197,.32);

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --w: 1200px;

  /* per-band accent (bands override these) */
  --acc:      #148a92;
  --acc-wash: rgba(41,181,190,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--grey-95);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(1,204,255,.22); }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 40px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ─────────────────────────── nav ─────────────────────────── */
.rnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248,250,251,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(20,40,80,.08);
}
.rnav .nav-in {
  display: flex; align-items: center; gap: 36px;
  height: 72px; position: relative; z-index: 2;
}
/* wordmark with the site URL tucked under it, as in the printed lockup */
.rnav .brand {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 1px; flex: none; line-height: 1;
}
/* the lockup now carries the 'by mimik' byline, so it needs more height
   than the plain wordmark did to read at the same size */
.rnav .brand-logo { height: 60px; width: auto; display: block; }
.rnav .brand-url {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--grey-70); transition: color .18s;
}
.rnav .brand-url:hover { color: var(--mimik-blue); }
.logo {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: url(assets/app-icon.png) center / contain no-repeat;
  display: inline-block;
}
.wordmark {
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
  color: var(--mimik-navy); white-space: nowrap;
}
.wordmark span { color: var(--grey-51); font-weight: 600; }

.rnav .links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.rnav .links > a,
.rnav .menu-t {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--grey-51); white-space: nowrap;
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: color .18s;
}
.rnav .links > a:hover,
.rnav .menu:hover .menu-t,
.rnav .menu:focus-within .menu-t { color: var(--mimik-blue); }

.rnav .nav-cta { display: flex; gap: 12px; align-items: center; }

/* dropdown panels — white glass cards, mimik.com "mega" treatment */
.rnav .menu { position: relative; display: inline-flex; align-items: center; }
.rnav .menu-t svg { opacity: .5; transition: transform .2s; }
.rnav .menu:hover .menu-t svg,
.rnav .menu:focus-within .menu-t svg { transform: rotate(180deg); opacity: 1; }
.rnav .menu-panel {
  position: absolute; top: 100%; left: -8px; margin-top: 14px;
  display: flex; flex-direction: column; gap: 2px; min-width: 210px;
  padding: 8px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(20,40,80,.07);
  box-shadow: 0 32px 64px rgba(16,28,72,.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 70;
}
.rnav .menu-panel::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.rnav .menu:hover .menu-panel,
.rnav .menu:focus-within .menu-panel { opacity: 1; visibility: visible; transform: none; }
.rnav .menu-panel a {
  display: block; padding: 10px 14px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600; color: var(--grey-51);
  transition: color .15s, background .15s;
}
.rnav .menu-panel a:hover { color: var(--mimik-blue); background: #f1f5fc; }

/* ─────────────────────────── buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: 8px;
  font-family: inherit; font-weight: 700; font-size: 15.5px;
  cursor: pointer; border: 0; white-space: nowrap;
  transition: box-shadow .2s, transform .2s, background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-cta); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--mimik-blue);
  border: 1.4px solid var(--grey-15);
}
.btn-ghost:hover { border-color: var(--mimik-blue); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* on the dark hero */
/* Opaque on purpose: the hero mesh animates behind this button, and a
   transparent fill let the lines and nodes track through the label. */
.btn-ghost.on-dark {
  color: #fff; border-color: rgba(120,160,255,.4);
  background: #0a1130;
  box-shadow: 0 6px 18px rgba(1,6,38,.45);
}
.btn-ghost.on-dark:hover {
  border-color: rgba(120,160,255,.9);
  background: #131c4a;
}

/* ─────────────────────────── eyebrow ─────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  line-height: 1.5; color: var(--mimik-blue); margin: 0 0 22px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; flex: none;
  background: var(--mimik-blue); border-radius: 2px;
}
.eyebrow .lower { text-transform: none; letter-spacing: .02em; }
.eyebrow.on-dark { color: var(--mimik-cyan); }
.eyebrow.on-dark::before { background: var(--mimik-cyan); }

/* ─────────────────────────── hero ─────────────────────────── */
.phero {
  position: relative; overflow: hidden;
  background: var(--mimik-navy);
  color: #fff;
}
/* animated agent-network background — painted by mesh.js, over navy */
.phero-net {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  pointer-events: none;
  opacity: .5;
}
.phero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: 84px 0 88px;
}
.phero h1 {
  /* 800 to match the mimoe-studio hero on mimik.com */
  font-size: clamp(34px, 4.6vw, 56px); font-weight: 800;
  line-height: 1.04; letter-spacing: -.02em;
  margin: 16px 0 0; max-width: 15ch;
}
.phero .lead {
  font-size: clamp(17px, 1.9vw, 20px); color: #c9d7f5;
  line-height: 1.55; margin: 20px 0 0; max-width: 48ch;
}
.std-ttv {
  margin: 14px 0 0; color: var(--mimik-cyan);
  font-weight: 800; font-size: 14px; line-height: 1.5; letter-spacing: .01em;
}
.phero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ─────────────────────────── window frame ─────────────────────────── */
.frame {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid #28324d; background: #080b16;
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 30px 80px rgba(0,0,0,.55),
    0 8px 30px rgba(0,0,0,.4);
}
.frame .bar {
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: linear-gradient(180deg, #10152a, #0a0e1c);
  border-bottom: 1px solid #1a2137;
}
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; }
.frame .bar i:nth-child(1) { background: #e0564f; }
.frame .bar i:nth-child(2) { background: #e2a93b; }
.frame .bar i:nth-child(3) { background: #57bf5a; }
.frame img { width: 100%; cursor: zoom-in; }

/* screenshot-missing placeholder */
.frame .ph {
  display: none; aspect-ratio: 16/10; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: #5c6884; font-size: 14px; font-weight: 600;
  background: #080b16;
}
.frame .ph code { font-family: var(--mono); font-size: 12px; color: #96a1b9; }
.frame.missing img { display: none; }
.frame.missing .ph { display: flex; }

/* on a light band the frame needs a softer, bluer shadow */
.std-band .frame {
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 24px 56px rgba(20,40,80,.20),
    0 6px 20px rgba(20,40,80,.12);
}

.std-hero-visual { position: relative; z-index: 2; }
.std-hero-visual .frame {
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 34px 90px rgba(0,0,0,.6),
    0 0 90px rgba(1,204,255,.10);
}
.std-hero-visual .float-card.lo { left: -8px; bottom: 14%; }
.std-hero-visual .float-card.hi { right: -8px; top: 8%; }

/* ─────────────────────────── floating UI cards ─────────────────────────── */
.float-card {
  position: absolute; z-index: 3;
  background: rgba(13,17,32,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid #28324d; border-radius: 16px;
  padding: 14px 18px; color: #eaf0f8;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06) inset;
  animation: floaty 7s ease-in-out infinite alternate;
}
.float-card.d1 { animation-delay: -2.2s; }
.float-card.d2 { animation-delay: -4.4s; }
@keyframes floaty {
  from { transform: translateY(-7px); }
  to   { transform: translateY(7px); }
}
.float-card .t {
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #5c6884;
}
.float-card .v { font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin-top: 2px; }
.float-card .v em { font-style: normal; font-size: 13px; font-weight: 700; color: #96a1b9; }
.float-card .v code, .float-card .chip code { font-family: var(--mono); }
.float-card .row { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; }
.float-card .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--mimik-lime); box-shadow: 0 0 10px var(--mimik-lime);
}
.float-card .chipline { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
  background: #141a2e; border: 1px solid #28324d; color: #96a1b9;
  white-space: nowrap;
}
.chip.acc { color: #45d3dc; background: rgba(41,181,190,.12); border-color: rgba(41,181,190,.4); }
.chip.ok  { color: #a6e05a; background: rgba(123,198,44,.1); border-color: rgba(123,198,44,.4); }
.chip code { font-size: 11.5px; }

/* ─────────────────────── sticky section rail ─────────────────────── */
.sec-rail {
  position: sticky; top: 71px; z-index: 40;
  border-bottom: 1px solid rgba(20,40,80,.08);
  background: rgba(248,250,251,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
/* content capped at 1280px, centred, 24px side padding */
.sec-rail-in {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.sec-rail ul {
  list-style: none; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  column-gap: 18px; row-gap: 4px;   /* tightened so nine tabs hold one line */
}
.sec-rail a {
  display: flex; align-items: center; white-space: nowrap;
  padding: 12px 20px;                 /* 48px tall: 12 + 24 line-height + 12 */
  font-size: 16px; line-height: 24px; font-weight: 400;
  color: rgba(1,6,38,.6);
  transition: color .18s;
}
.sec-rail a:hover { color: var(--mimik-navy); }
.sec-rail a[aria-current='true'] { font-weight: 600; color: var(--mimik-blue); }

/* ─────────────────────────── feature bands ─────────────────────────── */
.std-bands {
  max-width: 1180px; margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex; flex-direction: column; gap: 34px;
}

.std-band {
  position: relative; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(20,40,80,.08);
  background: #fff; box-shadow: var(--shadow-lg);
  padding: clamp(40px, 5vw, 72px);
  scroll-margin-top: 140px;
}
.std-band.acc-blue   { --acc: #2c4ec5; --acc-wash: rgba(44,78,197,.10); }
.std-band.acc-lime   { --acc: #5a8f16; --acc-wash: rgba(123,198,44,.13); }
.std-band.acc-orange { --acc: #c2700a; --acc-wash: rgba(246,146,30,.13); }

.std-band-in {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.std-band-in > * { min-width: 0; }
.std-band.flip .txt { order: 2; }
.std-band.flip .vis { order: 1; }

/* the band eyebrow is a tinted pill in the band's accent */
.std-band .eyebrow {
  color: var(--acc); background: var(--acc-wash);
  margin: 0; padding: 6px 14px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: .14em;
}
.std-band .eyebrow::before { background: var(--acc); }

.std-band h2 {
  margin-top: 20px;
  /* 800 to match the mimoe-studio section headings on mimik.com */
  font-size: clamp(28px, 3.6vw, 46px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.024em; color: var(--mimik-navy);
}
.std-line {
  margin-top: 16px; max-width: 560px;
  font-size: clamp(15.5px, 1.7vw, 18px); font-weight: 600;
  color: var(--grey-51); line-height: 1.6;
}
.std-line b { color: var(--mimik-navy); }
.std-line code {
  font-family: var(--mono); font-size: .88em;
  color: var(--acc); background: var(--acc-wash);
  padding: 2px 7px; border-radius: 7px;
}
.std-line a {
  color: var(--mimik-navy); font-weight: 800;
  border-bottom: 1px solid rgba(48,83,198,.28);
  transition: color .2s, border-color .2s;
}
.std-line a:hover { color: var(--mimik-blue); border-bottom-color: rgba(48,83,198,.46); }

.std-cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  padding: 11px 20px; border-radius: 8px;
  font-weight: 800; font-size: 15px; color: var(--acc);
  background: var(--acc-wash); border: 1px solid rgba(20,40,80,.10);
  transition: border-color .2s, transform .2s, background .2s;
}
.std-cta:hover { border-color: var(--acc); transform: translateY(-1px); }
.std-cta span { transition: transform .2s; }
.std-cta:hover span { transform: translateX(3px); }

.std-band .vis { position: relative; }
.std-band .vis .float-card { left: -18px; bottom: -22px; max-width: 74%; }
.std-band .vis .float-card.right { left: auto; right: -18px; }
.std-band .vis .float-card.top { top: -24px; bottom: auto; }

/* stack: copy in two columns, visual full-width beneath */
.std-band.stack .std-band-in { grid-template-columns: 1fr; }
.std-band.stack .txt {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 64px); align-items: end;
}
.std-band.stack .txt .eyebrow { grid-column: 1; justify-self: start; }
.std-band.stack .txt h2       { grid-column: 1; }
.std-band.stack .txt .std-cta { grid-column: 1; justify-self: start; }
.std-band.stack .txt .std-line {
  grid-column: 2; grid-row: 1 / 3; align-self: end;
  text-align: right; margin: 0 0 0 auto; max-width: 44ch;
}
.std-band.stack .vis { max-width: 920px; margin: 40px auto 0; }
.std-band.stack .vis .float-card { left: auto; right: -18px; top: -24px; bottom: auto; }

/* ─────────────────────────── closing ─────────────────────────── */
.std-closing { position: relative; text-align: center; padding: 120px 24px 110px; }
.std-closing::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 420px; z-index: 0;
  pointer-events: none;
  background: radial-gradient(680px 320px at 50% 100%, rgba(1,204,255,.10), transparent 70%);
}
.std-closing > .wrap { position: relative; z-index: 1; }
.std-closing h2 {
  font-size: clamp(36px, 5.2vw, 60px); font-weight: 800;
  letter-spacing: -.026em; color: var(--mimik-navy);
}
.std-closing p {
  margin: 18px auto 0; max-width: 560px;
  color: var(--grey-51); font-weight: 600; font-size: 17px;
}
.std-closing .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.std-closing .fine {
  margin: 20px auto 0; max-width: 480px;
  color: var(--grey-70); font-size: 13.5px; font-weight: 600;
}
/* keep the phrase whole so it wraps as a unit instead of orphaning 'gateway.' */
.std-closing .fine .nowrap { white-space: nowrap; }

/* ─────────────────────────── footer ─────────────────────────── */
.rft {
  background: var(--mimik-navy); color: #9faacb;
  padding: 44px 0 34px; font-family: var(--font);
}
.rft .in {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600;
}
/* the footer uses the dark-mode wordmark, which is already light-on-transparent */
.rft .brand {
  /* the url line is gone, so the logo sits at the column's left edge */
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; line-height: 1;
}
.rft .brand-logo {
  height: 60px; width: auto; display: block;
}
.rft .brand-url {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: #8392bc; transition: color .18s;
}
.rft .brand-url:hover { color: #fff; }
/* column layout: brand, then one column per nav group */
.rft .ft-grid {
  /* columns hug their content and the brand takes the slack, so the group
     ends flush with the right margin instead of trailing empty space */
  display: grid; grid-template-columns: 1fr repeat(3, max-content);
  gap: 40px 68px; align-items: start;
}
.rft .ft-col h5 {
  margin: 0 0 16px; color: #fff;
  /* 400 to match mimoe-studio on mimik.com; stated, since the UA makes h5 bold */
  font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
}
.rft .ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.rft .ft-col a { font-size: 14.5px; }
@media (max-width: 900px) {
  .rft .ft-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
.rft a { color: #9faacb; transition: color .18s; }
.rft a:hover { color: #fff; }

/* legal bar */
.rft .legal {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 13px; color: #6e7ca3;
}
.rft .legal-links { display: flex; gap: 26px; flex-wrap: wrap; }
.rft .legal a { color: #8392bc; font-size: 13px; }
.rft .legal a:hover { color: #fff; }

/* ─────────────────────────── lightbox ─────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw;
  background: rgba(1,6,38,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
  cursor: zoom-out;
}
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 12px; border: 1px solid #28324d;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  transform: scale(.96); transition: transform .25s;
}
.lightbox.on img { transform: scale(1); }

/* ─────────────────────────── reveal on scroll ───────────────────────────
   Gated on html.js (set by an inline script in the head). Without JS the
   observer never fires, so the starting state must not hide the page. */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,0,.2,1), transform .7s cubic-bezier(.2,0,.2,1);
}
.js .reveal.in { opacity: 1; transform: none; }
.js [data-stagger] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,0,.2,1), transform .7s cubic-bezier(.2,0,.2,1);
}
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js [data-stagger].in > *:nth-child(2) { transition-delay: .08s; }
.js [data-stagger].in > *:nth-child(3) { transition-delay: .16s; }
.js [data-stagger].in > *:nth-child(4) { transition-delay: .24s; }
.js [data-stagger].in > *:nth-child(5) { transition-delay: .32s; }

:focus-visible { outline: 2px solid var(--mimik-blue); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js [data-stagger] > * { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ─────────────────────────── responsive ─────────────────────────── */
@media (max-width: 980px) {
  .rnav .links { display: none; }
  .phero-grid {
    grid-template-columns: 1fr; gap: 40px;
    padding: 64px 0 72px; text-align: center;
  }
  .phero .eyebrow { justify-content: center; }
  .phero h1, .phero .lead { margin-left: auto; margin-right: auto; }
  .phero-cta { justify-content: center; }
  /* below the md breakpoint keep the bar one row tall and let it scroll,
     rather than wrapping eight tabs onto four lines */
  .sec-rail-in { padding: 0 16px; }
  .sec-rail ul {
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none;
  }
  .sec-rail ul::-webkit-scrollbar { display: none; }
}
@media (max-width: 820px) {
  .std-band-in { grid-template-columns: 1fr; }
  .std-band.flip .txt { order: 1; }
  .std-band.flip .vis { order: 2; }
  .std-band.stack .txt { grid-template-columns: 1fr; }
  .std-band.stack .txt .std-line {
    grid-column: 1; grid-row: auto; text-align: left; margin: 16px 0 0;
  }
  .std-band.stack .vis { margin-top: 28px; }
  .std-band .vis { margin-top: 26px; }
  .float-card { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 24px; }
  .std-bands { padding-left: 16px; padding-right: 16px; }
  .phero-cta > *, .std-closing .cta-row > * { width: 100%; }
  .rft .ft-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .rft .brand { align-items: center; }
  .rft .ft-col ul { justify-items: center; }
  .rft .legal { justify-content: center; text-align: center; }
  .rft .legal-links { justify-content: center; }
}
