/*
  RevoHy site stylesheet. Shared across every page (index, about, contact,
  legal-notice, privacy-policy). Dark theme throughout, carrying over the
  approved hero treatment from the original homepage mockup, with layout
  and heading motifs borrowed from the print one-pager (the bracket-pair
  icon, the Who we are / The Problem / Our Solution structure, the banded
  callout panel).

  Fonts are self-hosted (../fonts/*.woff2) rather than loaded from
  fonts.googleapis.com, so no visitor IP address is sent to Google before
  consent is given.
*/
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/outfit-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-clearance: calc(18px + 60px + 24px + env(safe-area-inset-top, 0px));
  --accent: #7FC4DB;
  --ink: #F3F5F7;
  --bg: #060A0F;

  /* The 337px floor was tuned against a 375px-wide phone (335px available
     content width), so it's already a near-exact fit there. Below that
     (e.g. the 320px "iPhone SE 1st gen" width still used as a baseline
     responsive-testing breakpoint), 337px alone would overflow the
     available content width and get visually clipped by overflow-x:clip.
     The outer min() re-caps it to whatever actually fits, the same
     pattern --mark-peak-safe already uses below. */
  --mark-rest: min(clamp(337px, 57.48vw, 521px), calc(100vw - 2 * var(--gutter)));
  --mark-peak: clamp(416px, 62vw, 624px);
  /* The hero is centered at every width now (it used to flip to centered
     only below 760px, flush-left above it), so the keyframe's flush-left
     correction term is permanently zeroed out via this 1. Left in as a
     variable rather than deleted from the keyframe below in case an
     asymmetric width is reintroduced later. */
  --mark-narrow-mode: 1;
  --mark-peak-safe: min(var(--mark-peak), calc(100vw - 2 * var(--gutter)));
  /* Measured at 375x812, 581x750 and 1280x800: the gap between the mark's
     own center and true viewport-center ran ~97-123px across those three.
     This clamp sits in that band and is used only to correct the initial
     (pre-scroll) frame -- see the keyframe comment below. */
  --hero-lead-offset: clamp(90px, 11vh, 130px);
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
html, body { background: var(--bg); }
body {
  margin: 0;
  width: 100%;
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
#top, #systems, #technology, #company, #solution, #contact-panel { scroll-margin-top: 100px; }

.skip-link {
  position: absolute; top: -80px; left: 20px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: top 0.25s cubic-bezier(0.32,0.72,0,1);
}
.skip-link:focus { top: 20px; }

/* ============ surfaces ============ */
.glass, .panel {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.35);
}
.glass::after, .panel::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 0%, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
.glass {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.025);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}
.panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    #0D141E;
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #10161E; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.pill { border-radius: 999px; }
.bezel { padding: 6px; border-radius: 28px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.bezel-core {
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)), #0D141E;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

/* ============ nav ============ */
.nav-shell { position: fixed; top: calc(18px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding-inline: 20px; }
.nav {
  width: min(920px, 100%);
  display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 22px;
  height: 60px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
/*
  Collapsed to the "o" rather than the leading "R": the o sits mid-word
  (svg path bbox x 608.75-796.68 of the 1233-wide viewBox, i.e. 39.81px-
  52.10px once scaled to this 24px-tall render), so showing it alone
  takes two things, not just a clip width:
    1. nav-logo-clip is a 13px porthole -- just wide enough for the o.
    2. the svg itself sits shifted left by the o's own offset (-39.81px),
       so the o lands at the porthole's x:0 instead of its natural
       mid-word position.
  On hover/focus both resolve to their natural state together: the
  porthole widens to the full wordmark's width (82px) while the svg's
  shift eases back to 0 -- which is what carries the o rightward, back
  to its real spot, as R/e/v and H/y unveil on either side of it.
*/
.nav-logo-clip { display: block; height: 24px; width: 13px; overflow: hidden; }
.nav-logo svg { height: 24px; width: auto; display: block; transform: translateX(-39.81px); }
.nav-logo svg .p-rest { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .nav-logo-clip { transition: width 0.5s cubic-bezier(0.16,1,0.3,1); }
  .nav-logo svg { transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
  .nav-logo svg .p-rest {
    transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
  }
  /* R/e/v (left of the o) and H/y (right of the o) each nudge a little
     further toward their own side at rest, then settle back to 0 on
     reveal -- the word parts from the center outward rather than
     sliding in as one flat block. */
  .nav-logo svg .p-left { transform: translateX(13px); }
  .nav-logo svg .p-right { transform: translateX(-13px); }
}
.nav-logo:focus-visible .nav-logo-clip { width: 82px; }
.nav-logo:focus-visible svg { transform: translateX(0); }
.nav-logo:focus-visible svg .p-rest { opacity: 1; transform: translateX(0); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 0.88rem; color: rgba(243,245,247,0.78); text-decoration: none; transition: color 0.3s cubic-bezier(0.32,0.72,0,1); touch-action: manipulation; }
.nav-links a:focus-visible { color: var(--ink); outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  font-size: 0.84rem; font-weight: 500; text-decoration: none;
  padding: 10px 18px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s cubic-bezier(0.32,0.72,0,1), transform 0.15s cubic-bezier(0.32,0.72,0,1);
  white-space: nowrap; touch-action: manipulation; margin-left: auto;
}
.nav-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mobile nav toggle: hidden entirely on desktop, replaces .nav-links below 760px */
.nav-toggle {
  display: none; position: relative; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-left: 8px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(255,255,255,0.18);
  color: var(--ink); cursor: pointer; touch-action: manipulation;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Hamburger-to-close morph: both icons sit stacked in the same spot and
   cross-fade with a rotate, rather than hard-swapping via display. */
.nav-toggle svg {
  position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  transition: opacity 0.3s cubic-bezier(0.32,0.72,0,1), transform 0.3s cubic-bezier(0.32,0.72,0,1);
}
.nav-toggle .icon-open { opacity: 1; transform: rotate(0deg) scale(1); }
.nav-toggle .icon-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.nav-shell.menu-open .nav-toggle .icon-open { opacity: 0; transform: rotate(90deg) scale(0.6); }
.nav-shell.menu-open .nav-toggle .icon-close { opacity: 1; transform: rotate(0deg) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle svg { transition: opacity 0.01s linear; transform: none; }
}

.nav-sheet {
  display: none;
  position: fixed; top: calc(18px + 60px + 30px + env(safe-area-inset-top, 0px));
  left: 20px; right: 20px; z-index: 39;
  border-radius: 20px; padding: 10px;
  background: #0B1119ee;
  border: 1px solid rgba(255,255,255,0.11);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.nav-sheet a {
  display: block; padding: 14px 16px; border-radius: 12px;
  font-size: 1rem; color: var(--ink); text-decoration: none;
}
.nav-sheet a + a { margin-top: 2px; }
.nav-sheet a[aria-current="page"] { background: rgba(255,255,255,0.08); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  /* The collapse-to-"o"/reveal-on-hover mark doesn't have a hover to
     trigger on touch, and sitting right next to the hamburger read as
     two competing circular buttons. Dropping it here leaves the
     hamburger as the sole, leftmost control; "Home" is still one tap
     away in the menu it opens. */
  .nav-logo { display: none; }
  .nav-toggle { display: inline-flex; margin-left: 0; }
  .nav-sheet {
    display: block; opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.32,0.72,0,1), transform 0.25s cubic-bezier(0.32,0.72,0,1);
  }
  .nav-shell.menu-open .nav-sheet { opacity: 1; transform: translateY(0); pointer-events: auto; }
  @media (prefers-reduced-motion: no-preference) {
    .nav-sheet a {
      opacity: 0; transform: translateY(-6px);
      transition: opacity 0.22s cubic-bezier(0.32,0.72,0,1), transform 0.22s cubic-bezier(0.32,0.72,0,1);
    }
    .nav-shell.menu-open .nav-sheet a { opacity: 1; transform: translateY(0); }
    .nav-shell.menu-open .nav-sheet a:nth-child(1) { transition-delay: 0.04s; }
    .nav-shell.menu-open .nav-sheet a:nth-child(2) { transition-delay: 0.09s; }
    .nav-shell.menu-open .nav-sheet a:nth-child(3) { transition-delay: 0.14s; }
  }
}
@media (hover: hover) and (pointer: fine) {
  .nav-logo:hover .nav-logo-clip { width: 82px; }
  .nav-logo:hover svg { transform: translateX(0); }
  .nav-logo:hover svg .p-rest { opacity: 1; transform: translateX(0); }
  .nav-links a:hover { color: var(--ink); }
  .nav-cta:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
  .nav-toggle:hover { background: rgba(255,255,255,0.1); }
  .nav-sheet a:hover { background: rgba(255,255,255,0.08); }
}

/* ============ home hero ============ */
/* Centered at every width (the old version split into an asymmetric
   left/right layout above 760px; centered reads better and keeps the
   subhead wrapping into several short lines instead of one long one). */
.hero-grid {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(20px, 4vw, 32px);
  width: 100%;
}
.hero-lead { width: fit-content; margin-inline: auto; }
.hero-aside { width: auto; }
.hero-mark { width: var(--mark-rest); margin: 0 auto clamp(12px, 2vw, 20px); }
.hero-mark svg { display: block; width: 100%; height: auto; }
.hero-headline {
  margin: 0;
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(1.98rem, 5.4vw, 3.06rem); line-height: 1.08; letter-spacing: -0.02em;
  color: rgba(243,245,247,0.72);
  text-wrap: balance;
  text-align: center;
}
.hero-sub {
  max-width: 36ch; margin: 0 auto 22px; color: rgba(243,245,247,0.72);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem); text-align: center; text-wrap: balance;
}
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-ctas .btn { width: 100%; max-width: 280px; justify-content: center; }

.btn {
  font-size: 0.95rem; font-weight: 500; padding: 13px 24px; text-decoration: none; white-space: nowrap;
  transition: transform 0.16s cubic-bezier(0.32,0.72,0,1), background 0.3s cubic-bezier(0.32,0.72,0,1);
  display: inline-flex; align-items: center; gap: 10px; touch-action: manipulation;
  border: none; cursor: pointer; font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-glass { background: rgba(255,255,255,0.1); color: var(--ink); border: 1px solid rgba(255,255,255,0.22); }
.btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px; background: rgba(6,10,15,0.12);
  font-size: 0.85rem; line-height: 1; flex-shrink: 0;
  transition: transform 0.16s cubic-bezier(0.32,0.72,0,1);
}
@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { transform: translateY(-1px); background: #ffffff; }
  .btn-glass:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
  .btn-solid:hover .btn-arrow { transform: translateX(2px); }
}

/* ============ home intro sequence (pinned) ============ */
.hero-pin { position: relative; }
/* min-height lives here unconditionally, not only inside the @supports
   block below: without it, a browser that skips the scroll-driven intro
   (prefers-reduced-motion, or no animation-timeline support -- Firefox,
   older Safari) gets a .hero-pin-stage sized to exactly its content's
   height, which makes align-items:center a no-op and leaves the mark
   sitting at the natural top of the page instead of centered in the
   viewport. 100vh first for browsers without dvh support, then the dvh
   override: vh includes the mobile browser chrome (address bar) in its
   100%, so it jumps the layout as that chrome hides/shows on scroll; dvh
   tracks the actual visible viewport and holds steady instead. */
.hero-pin-stage {
  display: flex; align-items: center; padding-top: var(--nav-clearance);
  min-height: 100vh; min-height: 100dvh;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-pin { height: 240vh; }
    .hero-pin-stage { position: sticky; top: 0; }
    .hero-mark {
      transform-origin: center;
      animation: hero-mark-settle linear both;
      animation-timeline: scroll(root);
      animation-range: 0vh 70vh;
      will-change: transform;
    }
    .hero-headline, .hero-sub, .hero-ctas {
      animation: hero-content-emerge linear both;
      animation-timeline: scroll(root);
      animation-range: 0vh 70vh;
    }
  }
}
/*
  At scroll 0, only the mark is visible -- the headline/subtext/CTAs below
  it are still at opacity:0, but (being opacity, not display:none) they
  still occupy their normal flex layout height, which is what the whole
  hero-grid block centers against. That makes the mark, alone, sit above
  true viewport-center by roughly half of that invisible content's height.
  --hero-lead-offset pushes the whole intro (mark and the not-yet-visible
  content together) down by that much at the "from" keyframe, landing the
  mark at true center while it's the only thing anyone can see, then
  animates back to 0 by "to", converging on the exact resting composition
  (mark+headline+subtext+CTAs in their tuned tight lockup) that was
  already approved. Measured empirically across viewport sizes, the same
  way --mark-rest/--mark-peak were, rather than derived from font/line
  metrics that would need to track every copy change.
*/
@keyframes hero-mark-settle {
  from {
    transform:
      translate(
        calc((1 - var(--mark-narrow-mode)) * (50vw - max(0px, (100vw - 1160px) / 2) - var(--gutter) - (var(--mark-rest) / 2))),
        var(--hero-lead-offset)
      )
      scale(calc(var(--mark-peak-safe) / var(--mark-rest)));
  }
  to { transform: translate(0, 0) scale(1); }
}
@keyframes hero-content-emerge {
  from { opacity: 0; transform: translateY(calc(28px + var(--hero-lead-offset))); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-photo { padding-block: 24px 64px; }
.hero-visual { position: relative; height: clamp(320px, 46vw, 520px); }
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 48%, #000 52%, transparent 92%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 48%, #000 52%, transparent 92%);
}
.hero-caption { font-size: 0.8rem; letter-spacing: 0.01em; color: rgba(243,245,247,0.5); margin: 4px 0 0; }

/* ============ reveal on scroll ============ */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="up"] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
  [data-reveal="left"] { opacity: 0; transform: translateX(-34px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
  [data-reveal="right"] { opacity: 0; transform: translateX(34px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
  .bento-tile:nth-child(2) { transition-delay: 0.1s; }
  .bento-tile:nth-child(3) { transition-delay: 0.2s; }
  .bento-tile:nth-child(4) { transition-delay: 0.1s; }
  .bento-tile:nth-child(5) { transition-delay: 0.2s; }
}

/* ============ page header banner (one-pager inspired) ============ */
.page-header {
  position: relative;
  padding-top: calc(var(--nav-clearance) + 12px);
  padding-bottom: clamp(48px, 8vw, 80px);
  background:
    radial-gradient(ellipse 120% 100% at 15% -10%, rgba(127,196,219,0.16), transparent 55%),
    linear-gradient(135deg, #0B2A42 0%, #081722 48%, var(--bg) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: clip;
}
.page-kicker {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: rgba(243,245,247,0.75);
  padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  margin: 0 0 20px;
}
.page-title {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 16px; max-width: 18ch; text-wrap: balance;
}
.page-lede { max-width: 56ch; color: rgba(243,245,247,0.72); font-size: clamp(1rem, 1.6vw, 1.1rem); margin: 0; text-wrap: balance; }

/* The bracket-pair mark that leads every section heading on the print
   one-pager ("<> Who we are"); recreated here as a small accent rather
   than literal angle brackets, so it survives any font. */
.bracket-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1em; flex-shrink: 0;
}
.bracket-icon svg { width: 100%; height: 100%; display: block; }
.eyebrow-head {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.eyebrow-head .bracket-icon { font-size: 0.85em; color: var(--accent); }

/* ============ content sections (about / contact) ============ */
.content-section { padding-block: clamp(56px, 8vw, 88px); }
.content-section + .content-section { border-top: 1px solid rgba(255,255,255,0.08); }
.content-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.content-grid p + p { margin-top: 14px; }
.content-body { color: rgba(243,245,247,0.74); max-width: 62ch; }
.content-body p + p { margin-top: 14px; }
.content-body ul { margin: 18px 0 0; padding-left: 1.2em; }
.content-body li { margin-bottom: 8px; }
.content-body li::marker { color: var(--accent); }
.content-visual img {
  border-radius: 20px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 60%, transparent 98%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 60%, transparent 98%);
}
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ============ team grid ============ */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 40px);
}
.team-card { text-align: center; }
.team-photo {
  width: clamp(104px, 14vw, 152px); height: clamp(104px, 14vw, 152px);
  border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.team-name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; margin: 0 0 2px; color: var(--ink); }
.team-role { font-size: 0.85rem; color: rgba(243,245,247,0.6); margin: 0; }
@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; max-width: 220px; margin-inline: auto; }
}

/* Banner callout, directly modeled on the one-pager's dark "What's next:"
   band: full-bleed-feeling gradient strip with a bold, short label. */
.band-callout {
  display: inline-flex; align-items: center;
  padding: 14px 28px; border-radius: 14px;
  background: linear-gradient(100deg, #0B2A42, #061520);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0 0 24px;
}

/* ============ stat band ============ */
.stat-section { padding-block: clamp(64px, 9vw, 96px); }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-inner { padding: 28px 22px; }
.stat-num { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-variant-numeric: tabular-nums; color: var(--ink); margin: 0 0 8px; }
.stat-label { font-size: 0.8rem; letter-spacing: 0.01em; color: rgba(243,245,247,0.62); }
@media (max-width: 700px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

/* ============ how it works ============ */
.how-section { padding-block: clamp(72px, 11vw, 108px); }
.how-intro { max-width: 58ch; margin: 0 0 32px; color: rgba(243,245,247,0.68); }
.how-stage { max-width: 900px; margin-inline: auto; }
#cellCanvas {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 82% 80% at 50% 50%, #000 58%, transparent 96%);
  mask-image: radial-gradient(ellipse 82% 80% at 50% 50%, #000 58%, transparent 96%);
}

/* ============ bento ============ */
.bento-section { padding-block: clamp(64px, 10vw, 96px); }
.section-head { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; max-width: 27ch; margin: 0 0 40px; text-wrap: balance; }
/* Five tiles, two rows, zero empty cells at any width: a 6-column track
   lets 3 tiles (each 2 of 6 = a third) fill row one exactly, and 2 wider
   tiles (each 3 of 6 = a half) fill row two exactly -- a clean 3-then-2
   pyramid instead of forcing a 5th item into leftover space. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento-tile.third { grid-column: span 2; }
.bento-tile.half { grid-column: span 3; }
.bento-tile-inner { padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 208px; }
.bento-tile:nth-of-type(odd) .bento-tile-inner { background-image: radial-gradient(circle at 85% 15%, rgba(127,196,219,0.14), transparent 58%); }
.bento-tile:nth-of-type(even) .bento-tile-inner { background-image: radial-gradient(circle at 85% 15%, rgba(127,196,219,0.10), transparent 60%); }
.tile-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; }
.tile-body { font-size: 0.92rem; color: rgba(243,245,247,0.68); margin: 0; max-width: 42ch; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .bento-tile.third, .bento-tile.half { grid-column: span 1; }
  /* The 208px floor was sized for a 3-across/2-across grid holding
     multi-line copy; stacked single-column on mobile it just leaves a
     block of dead air above short tiles like "Low maintenance". Let each
     tile size to its own content instead. */
  .bento-tile-inner { min-height: 0; }
}

/* ============ audience strip ============ */
.audience-section { padding-block: clamp(64px, 9vw, 96px); }
.audience-label { font-size: 0.85rem; letter-spacing: 0.01em; color: rgba(243,245,247,0.55); margin: 0 0 22px; }
.audience-row { display: flex; flex-wrap: wrap; margin-left: -27px; }
.audience-row span { padding: 6px 26px; font-size: 0.98rem; border-left: 1px solid rgba(255,255,255,0.14); }
@media (max-width: 640px) {
  .audience-row { flex-direction: column; gap: 4px; margin-left: 0; }
  .audience-row span { border-left: none; padding: 4px 0; }
}

/* ============ closing cta ============ */
.closing-section { padding-block: clamp(72px, 10vw, 104px); }
/* Technology's bento grid used to have the "Built for" strip between it
   and this panel, whose own padding absorbed some of the gap; with that
   section gone, bento's bottom padding and this one's top padding stack
   into a noticeably oversized gap. Pulled in only for this adjacency, not
   the closing panel elsewhere (e.g. Background's), which doesn't follow
   a bento grid and never had that problem. */
.bento-section + .closing-section { padding-top: clamp(24px, 4vw, 40px); }
.closing-panel { max-width: 620px; }
.closing-panel-inner { padding: clamp(40px, 6vw, 72px); }
/* Matches the bento grid's large tile right above it on Technology, so
   the two feel like one family rather than the plain bezel-core every
   other panel on the site uses. */
.bento-section + .closing-section .closing-panel-inner { background-image: radial-gradient(circle at 85% 15%, rgba(127,196,219,0.16), transparent 55%); }
.closing-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.closing-sub { max-width: 40ch; margin: 0 0 28px; color: rgba(243,245,247,0.68); font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.closing-panel.wide { max-width: 100%; }
.closing-meta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.meta-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: rgba(243,245,247,0.82); text-decoration: none;
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16);
}
@media (hover: hover) and (pointer: fine) {
  .meta-link:hover { background: rgba(255,255,255,0.08); }
}
.meta-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ contact page ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.contact-card { padding: clamp(28px, 4vw, 40px); }
.contact-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.15rem; margin: 0 0 10px; }
.contact-card p { color: rgba(243,245,247,0.68); margin: 0 0 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============ legal / article pages ============ */
.legal-article { padding-block: clamp(56px, 8vw, 88px); max-width: 76ch; }
.legal-article h2 { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.3rem; margin: 40px 0 14px; }
.legal-article h2:first-child { margin-top: 0; }
.legal-article h3 { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.05rem; margin: 28px 0 10px; }
.legal-article p { color: rgba(243,245,247,0.78); margin: 0 0 14px; }
.legal-article ul { color: rgba(243,245,247,0.78); margin: 0 0 14px; padding-left: 1.2em; }
.legal-article li { margin-bottom: 6px; }
.legal-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-article strong { color: var(--ink); }
.legal-note {
  font-size: 0.85rem; color: rgba(243,245,247,0.55); border-left: 2px solid rgba(127,196,219,0.5);
  padding: 2px 0 2px 16px; margin: 24px 0;
}

/* ============ footer ============ */
footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 40px 0 48px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo svg { height: 16px; width: auto; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.84rem; color: rgba(243,245,247,0.6); text-decoration: none; }
.footer-links a:focus-visible { color: var(--ink); outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--ink); }
}
.footer-legal-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.footer-legal { font-size: 0.76rem; letter-spacing: 0.01em; color: rgba(243,245,247,0.5); margin: 0; }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 0.76rem; color: rgba(243,245,247,0.5); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .footer-legal-links a:hover { color: rgba(243,245,247,0.8); }
}
