/* Layout and components. Colours, fonts and shapes come from theme.css only.
   Native CSS throughout: cascade layers, nesting, container queries, :has(),
   scroll-driven animation, @starting-style, text-wrap. No preprocessor, no framework. */
@layer reset, theme, base, components, motion;

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* While Inter loads, text is set in a local font scaled to Inter's width, so when Inter arrives the lines do not re-wrap and push
   the page down (this was an intermittent layout shift of about 0.1). Measured on this machine: Inter is 6.7% wider than Arial at
   body weight and 2.1% wider at bold. Two faces cover the two weight ranges. Phones without Arial use system-ui, which is unadjusted. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica");
  font-weight: 100 599;
  size-adjust: 106.7%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold");
  font-weight: 600 900;
  size-adjust: 102.1%;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 80px; interpolate-size: allow-keywords; }
  body {
    background: var(--bg); color: var(--ink);
    font: 400 1rem/1.6 var(--font-body); font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
  h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; text-wrap: balance; }
  p { text-wrap: pretty; }
  .wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip { position: absolute; left: -999px; top: 0; background: var(--action); color: var(--action-ink); padding: 8px 16px; z-index: 30; font-weight: 600; }
  .skip:focus { left: 16px; top: 16px; }
  /* no content-visibility on pages in general: they are small and it saves nothing. The home page is the exception, see the end of this file. */
  section { padding-block: 64px; }
}

@layer components {
  /* nav: dark navy, with a popover menu on small screens */
  .nav {
    position: sticky; top: 0; z-index: 10; background: var(--band-bg); color: var(--band-ink);
    border-bottom: 1px solid var(--band-line);
    & .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
    & .mark { height: 32px; width: auto; }
  }
  .nav-links {
    display: flex; align-items: center; gap: 24px;
    & a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--band-muted); }
    & a:hover { color: var(--band-ink); }
    & a.cta { background: var(--action); color: var(--action-ink); padding: 8px 16px; border-radius: var(--radius-btn); font-weight: 600; }
  }
  .menu-btn { display: none; background: transparent; border: 1px solid #3A5069; color: var(--band-ink); padding: 8px 14px; border-radius: var(--radius-btn); font-weight: 600; cursor: pointer; }
  .menu-pop {
    display: none; position: fixed; inset: 64px 16px auto auto; margin: 0; min-width: 220px;
    background: var(--band-bg); color: var(--band-ink); border: 1px solid var(--band-line); border-radius: var(--radius-card); padding: 8px;
    & a { display: block; padding: 12px 16px; text-decoration: none; border-radius: 8px; font-weight: 500; }
    & a:hover { background: #12263B; }
    &:popover-open { display: block; }
  }
  @media (max-width: 680px) {
    .nav-links { display: none; }
    .menu-btn { display: inline-block; }
  }

  /* Downloads: a button in the main links that opens a panel of our apps, anchored under it where supported */
  .nav-drop { display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; border: 0; cursor: pointer;
    font: inherit; font-size: .92rem; font-weight: 500; color: var(--band-muted); anchor-name: --downloads;
    &:hover { color: var(--band-ink); }
    & svg { width: 14px; height: 14px; transition: rotate .2s; }
  }
  .nav:has(#downloads:popover-open) .nav-drop { color: var(--band-ink); & svg { rotate: 180deg; } }
  .dl-pop {
    display: none; position: fixed; inset: 64px 16px auto auto; margin: 0; width: min(360px, calc(100vw - 32px));
    background: var(--band-bg); color: var(--band-ink); border: 1px solid var(--band-line); border-radius: var(--radius-card); padding: 8px;
    box-shadow: 0 24px 60px -24px rgb(0 0 0 / .6);
    &:popover-open { display: block; }
    @supports (position-area: bottom) { position-anchor: --downloads; position-area: bottom span-right; inset: auto; margin-top: 12px; }
    & .dl-head { margin: 0; padding: 8px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); }
    & .dl-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px;
      &:hover { background: #12263B; }
    }
    & .dl-name { display: grid; gap: 2px; text-decoration: none; color: var(--band-ink);
      & small { color: var(--band-muted); font-size: .8rem; }
      &:hover b { text-decoration: underline; }
    }
    & .dl-get { background: var(--action); color: var(--action-ink); padding: 8px 12px; border-radius: var(--radius-btn); font-weight: 600; font-size: .85rem; text-decoration: none; white-space: nowrap; }
  }
  .menu-pop .menu-group { margin: 8px 0 0; padding: 12px 16px 4px; border-top: 1px solid var(--band-line); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); }

  /* hero */
  .hero {
    background: var(--band-bg); color: var(--band-ink); padding-block: 72px 80px;
    & .lockup { width: min(100%, 300px); height: auto; }
    & .eyebrow { margin-top: 48px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--band-muted); }
    & h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); letter-spacing: -.02em; margin-top: 16px; max-width: 18ch; }
    & .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--band-muted); max-width: 52ch; margin-top: 24px; }
  }
  .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; cursor: pointer;
    padding: 12px 20px; border-radius: var(--radius-btn); font-size: .98rem; border: 1px solid transparent;
    &.primary { background: var(--action); color: var(--action-ink); }
    &.ghost { border-color: #3A5069; color: var(--band-ink); background: transparent; &:hover { border-color: var(--action); } }
    &.line { border-color: var(--line); color: var(--ink); background: transparent; &:hover { border-color: var(--ink); } }
  }

  /* headings for sections */
  .sec-label {
    display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--label);
    &::before { content: ""; width: 12px; height: 12px; background: var(--marker); }
  }
  h2.big { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-top: 16px; letter-spacing: -.015em; }
  .intro { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin-top: 16px; }

  /* cards: the grid is a size container, so layout follows available space */
  .grid-wrap { container-type: inline-size; margin-top: 32px; }
  .grid { display: grid; gap: 16px; grid-template-columns: 1fr;
    @container (min-width: 620px) { grid-template-columns: repeat(2, 1fr); }
    @container (min-width: 940px) { grid-template-columns: repeat(3, 1fr); }
    /* dim the siblings of the card you are on */
    &:has(.card:hover) .card:not(:hover) { opacity: .72; }
  }
  .card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px;
    display: flex; flex-direction: column; transition: opacity .2s, border-color .2s, translate .2s;
    &:hover { border-color: var(--ink); translate: 0 -2px; }
    & .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
    & h3 { font-size: 1.2rem; flex: 1; }
    & p { color: var(--muted); flex: 1; font-size: .98rem; }
    & .link { margin-top: 20px; font-weight: 600; font-size: .92rem; color: var(--link); text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 4px;
      &:hover { text-decoration-thickness: 5px; }
      &.none { color: var(--muted); font-weight: 500; text-decoration: none; }
    }
  }
  .badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 6px; white-space: nowrap;
    &.live { background: var(--badge-live-bg); color: var(--badge-live-ink); }
    &.soon { background: var(--badge-soon-bg); color: var(--badge-soon-ink); }
    &.svc { background: var(--badge-svc-bg); color: var(--badge-svc-ink); }
  }

  /* games */
  .games { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
  .game {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: clip; display: flex; flex-direction: column;
    & .shot { aspect-ratio: 16 / 9; background: var(--band-bg); display: grid; place-items: center; color: var(--band-ink); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.01em; }
    & .shot img { width: 100%; height: 100%; object-fit: cover; }
    & .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
    & h3 { font-size: 1.3rem; }
    & p { color: var(--muted); flex: 1; }
    & .chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
    & .chips li { font-size: .74rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
    & .actions { margin-top: 4px; }
  }

  /* capabilities and tech facts */
  .tiles { display: grid; gap: 16px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
  .tile { border-top: 3px solid var(--marker); padding-top: 16px;
    & h3 { font-size: 1.1rem; }
    & p { color: var(--muted); margin-top: 8px; font-size: .96rem; }
    & .tag { display: inline-block; margin-top: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label); }
  }
  .demo { background: var(--panel); border-block: 1px solid var(--line); }
  .facts { display: grid; gap: 0; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); column-gap: 32px; }
  .fact { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line);
    & .k { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--label); padding-top: 3px; }
    & h3 { font-size: 1rem; }
    & p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
  }

  /* contact block */
  .contact { background: var(--band-bg); color: var(--band-ink); border-radius: var(--radius-card); padding: 56px 32px; margin-bottom: 64px;
    & h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); max-width: 22ch; }
    & p { color: var(--band-muted); margin-block: 16px 32px; max-width: 46ch; }
    & .actions { margin-top: 0; }
  }
  .copy-status { color: var(--band-muted); font-size: .88rem; align-self: center; }

  footer { background: var(--band-bg); color: var(--band-muted); padding-block: 32px; font-size: .88rem;
    & .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; align-items: center; }
    & .line { color: var(--band-ink); font-weight: 600; }
  }

  /* the game window: a native <dialog> */
  dialog.player {
    width: min(1100px, 96vw); height: min(720px, 92dvh); padding: 0; border: 1px solid var(--band-line); border-radius: var(--radius-card);
    background: var(--band-bg); color: var(--band-ink); overflow: clip;
    &[open] { display: flex; flex-direction: column; }
    &::backdrop { background: rgb(9 22 38 / .78); backdrop-filter: blur(4px); }
    & .bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--band-line); }
    & .bar strong { flex: 1; }
    & .bar a, & .bar button { background: transparent; border: 1px solid #3A5069; color: var(--band-ink); border-radius: var(--radius-btn); padding: 8px 14px; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; }
    & .bar a:hover, & .bar button:hover { border-color: var(--action); }
    & iframe { flex: 1; width: 100%; border: 0; background: transparent; position: relative; z-index: 1; }
    & .loading { position: absolute; inset: 56px 0 0 0; margin: 0; display: grid; place-items: center; color: var(--band-muted); font-weight: 600; }
    & .tip { display: none; padding: 8px 16px; font-size: .88rem; color: var(--band-muted); }
    @media (orientation: portrait) and (max-width: 700px) { & .tip { display: block; } }
    /* fade and rise in, using @starting-style */
    transition: opacity .25s, translate .25s, overlay .25s allow-discrete, display .25s allow-discrete;
    opacity: 0; translate: 0 12px;
    &[open] { opacity: 1; translate: 0 0; @starting-style { opacity: 0; translate: 0 12px; } }
  }
}

@layer motion {
  /* thin cyan reading-progress bar, driven by scroll in CSS (no JavaScript) */
  @supports (animation-timeline: scroll()) {
    .progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--action); transform-origin: 0 50%; scale: 0 1; z-index: 40;
      animation: grow linear both; animation-timeline: scroll(root);
    }
    @keyframes grow { to { scale: 1 1; } }
  }
  /* sections rise into view as they enter, only where supported and wanted */
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
      @keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, dialog.player { transition: none; }
  }
}

@layer components {
  /* hero background canvas, drawn by hero-worker.js */
  .hero { position: relative; overflow: clip; isolation: isolate; }
  .hero > .wrap { position: relative; z-index: 1; }
  .hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

  /* theme toggle in the navigation */
  .nav-tools { display: flex; align-items: center; gap: 12px; }
  .icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-btn); cursor: pointer;
    background: transparent; border: 1px solid #3A5069; color: var(--band-ink);
    &:hover { border-color: var(--action); }
    & svg { width: 20px; height: 20px; }
  }

  /* a soft spotlight that follows the pointer over cards */
  .card, .game, .member { position: relative; }
  .card::after, .member::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--marker) 16%, transparent), transparent 70%);
  }
  .card:hover::after, .member:hover::after { opacity: 1; }
  @media (hover: none) { .card::after, .member::after { display: none; } }

  /* team */
  .team { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
  .member { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 24px 16px 16px;
    & .avatar { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; background: var(--band-bg); color: var(--band-ink); font-weight: 700; letter-spacing: -.3px; }
    & .nm { font-weight: 700; }
    & .rl { font-size: .88rem; color: var(--muted); }
  }

  /* the "AI-assisted art" chip opens a short note, anchored to the chip */
  .chip-ai { font: inherit; font-size: .74rem; font-weight: 600; padding: 4px 10px; border: 1px dashed var(--muted); border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; anchor-name: --ai-chip;
    &:hover { border-color: var(--ink); color: var(--ink); }
  }
  #ai-note { margin: 0; padding: 12px 16px; max-width: 280px; font-size: .88rem; color: var(--band-ink); background: var(--band-bg); border: 1px solid var(--band-line); border-radius: var(--radius-card);
    @supports (position-area: top) { position-anchor: --ai-chip; position-area: top span-right; margin-bottom: 8px; inset: auto; }
  }
}

@layer motion {
  /* staggered rise for groups of cards, where sibling-index() is available */
  @media (prefers-reduced-motion: no-preference) {
    @supports (width: calc(sibling-index() * 1px)) and (animation-timeline: view()) {
      .reveal:has(> .card, > .game, > .tile, > .fact), .grid-wrap.reveal { animation: none; }
      .grid > .card, .games > .game, .tiles > .tile, .facts > .fact {
        animation: rise linear backwards; animation-timeline: view();
        animation-range: entry calc((sibling-index() - 1) * 5%) entry calc(38% + (sibling-index() - 1) * 5%);
      }
    }
  }
  /* theme change: reveal the new colours as a circle from the toggle */
  :root.vt-theme::view-transition-old(root), :root.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  :root.vt-theme::view-transition-new(root) { z-index: 2; }
  :root.vt-theme::view-transition-old(root) { z-index: 1; }
  @media (prefers-reduced-motion: reduce) { .card::after, .member::after { transition: none; } }
}

/* cross-document view transitions between pages of this site */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- first pass: display type, proof, trust strip, bento work, case studies, form ---------- */
@layer components {
  /* bigger, tighter display headline */
  .hero h1 { font-size: clamp(2.5rem, 7.4vw, 5.6rem); letter-spacing: -.04em; line-height: 1; font-weight: 750; max-width: 15ch; }
  .hero .lede { max-width: 48ch; }
  .proof { margin-top: 32px; font-size: .86rem; color: var(--band-muted); font-variant-numeric: tabular-nums;
    & b { color: var(--band-ink); font-weight: 650; }
  }

  /* trust strip under the hero */
  .strip { padding-block: 0; background: var(--panel); border-bottom: 1px solid var(--line);
    & ul { list-style: none; margin: 0; padding: 16px 0; display: grid; gap: 8px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); font-size: .9rem; color: var(--muted); }
    & .k { display: inline-block; margin-right: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
  }

  /* selected work: a bento grid that follows the space it has */
  .bento { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 32px;
    @container (min-width: 760px) { grid-template-columns: repeat(12, 1fr);
      & .w-441 { grid-column: span 7; }
      & .w-psp { grid-column: span 5; }
      & .w-rbr { grid-column: span 12; flex-direction: row; }
    }
  }
  .work { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: clip; transition: border-color .2s, translate .2s, box-shadow .2s;
    &:hover, &:focus-within { border-color: var(--ink); translate: 0 -2px; box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ink) 55%, transparent); }
    & .shot { aspect-ratio: 16 / 10; background: var(--band-bg); overflow: clip; }
    & .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
    & .wb { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
    & .top { display: flex; align-items: center; gap: 12px; }
    & h3 { font-size: 1.3rem; flex: 1; letter-spacing: -.01em; }
    & p { color: var(--muted); margin: 0; }
    & .metric { color: var(--ink); font-size: .95rem; padding-block: 12px 0; border-top: 1px solid var(--line); margin-top: auto;
      & b { font-weight: 750; font-variant-numeric: tabular-nums; }
      & small { color: var(--muted); font-size: .78rem; margin-left: 4px; }
    }
    & .chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
    & .chips li { font-size: .74rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
    & .link { font-weight: 600; font-size: .95rem; color: var(--link); text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 4px;
      &::after { content: ""; position: absolute; inset: 0; }
    }
  }
  .w-rbr .shot { flex: 0 0 38%; aspect-ratio: auto; min-height: 200px; }
  @container (max-width: 759px) { .w-rbr { flex-direction: column; } .w-rbr .shot { flex: none; aspect-ratio: 16 / 7; min-height: 0; } }
  .panel-rbr { display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--band-ink); text-align: center; padding: 24px;
    background: radial-gradient(120% 90% at 85% 0%, #12304a 0%, var(--band-bg) 60%);
    & .lock { color: var(--fr-cyan); & svg { width: 44px; height: 44px; } }
    & .cap { font-size: .9rem; color: var(--band-muted); }
  }
  .sub { font-size: 1.1rem; margin-top: 48px; }
  .grid.also { margin-top: 16px; &:has(.card:hover) .card:not(:hover) { opacity: 1; } @container (min-width: 940px) { grid-template-columns: repeat(3, 1fr); } }

  /* contact: copy on the left, form on the right */
  .contact { display: grid; gap: 40px; grid-template-columns: 1fr; padding: clamp(32px, 6vw, 56px); align-items: start;
    @media (min-width: 900px) { grid-template-columns: 5fr 7fr; }
    & .c-copy h2 { max-width: 14ch; }
    & .c-copy p { margin-block: 16px 24px; }
  }
  .c-form { display: grid; gap: 16px;
    & label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--band-ink); }
    & input, & select, & textarea { font: inherit; font-weight: 400; font-size: 1rem; color: var(--band-ink); background: #0F2236; border: 1px solid #3A5069; border-radius: var(--radius-btn); padding: 12px 14px; width: 100%; }
    & textarea { resize: vertical; min-height: 120px; }
    & input:hover, & select:hover, & textarea:hover { border-color: #5A7390; }
    & :is(input, select, textarea):focus-visible { outline: 3px solid #7FA0FF; outline-offset: 2px; border-color: transparent; }
    & :is(input, select, textarea):user-invalid { border-color: #FFB3A7; }
    & .f-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
    & .f-foot { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
    & .f-note { margin: 0; font-size: .84rem; color: var(--band-muted); max-width: 40ch; & a { color: var(--band-ink); } }
    & .f-status { margin: 0; min-height: 1.4em; font-weight: 600; color: var(--band-ink); &[data-state="error"] { color: #FFB3A7; } &[data-state="ok"] { color: var(--fr-cyan); } & a { color: inherit; } }
    & .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
    & button[disabled] { opacity: .6; cursor: progress; }
  }
  .contact .btn.ghost { border-color: #3A5069; }
  .contact .copy-status { align-self: center; }

  /* footer links */
  footer .wrap { align-items: flex-start; }
  .f-left { display: grid; gap: 4px; }
  .foot-links { display: flex; gap: 20px; flex-wrap: wrap; & a { color: var(--band-muted); text-decoration: none; &:hover { color: var(--band-ink); text-decoration: underline; } } }

  /* ---------- case-study pages ---------- */
  .cs-hero { background: var(--band-bg); color: var(--band-ink); padding-block: 56px 64px; position: relative; overflow: clip;
    & .back { display: inline-block; color: var(--band-muted); text-decoration: none; font-size: .9rem; margin-bottom: 32px; &:hover { color: var(--band-ink); } }
    & .eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--band-muted); }
    & h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.035em; line-height: 1.02; font-weight: 750; margin-top: 12px; max-width: 18ch; }
    & .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--band-muted); max-width: 56ch; margin-top: 20px; }
  }
  .cs-facts { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 0; padding-block: 24px; border-bottom: 1px solid var(--line);
    & div { display: grid; gap: 4px; }
    & dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
    & dd { margin: 0; font-weight: 600; }
  }
  .cs-body { padding-block: 56px; display: grid; gap: 56px;
    & h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; margin-bottom: 16px; }
    & p { max-width: 66ch; color: var(--muted); font-size: 1.05rem; }
    & p + p { margin-top: 12px; }
    & ul.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 66ch;
      & li { padding-left: 24px; position: relative; color: var(--muted); font-size: 1.02rem; }
      & li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 10px; background: var(--marker); }
      & li b { color: var(--ink); }
    }
  }
  .cs-hero-shot { margin-top: -40px; position: relative; z-index: 2; }
  .shotbox { position: relative; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: clip; background: var(--panel); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--ink) 60%, transparent);
    & img { width: 100%; height: auto; }
  }
  .pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 28px; height: 28px; border-radius: 999px; background: var(--fr-cyan); color: var(--fr-navy); font-weight: 800; font-size: .85rem; display: grid; place-items: center; box-shadow: 0 0 0 4px rgb(9 22 38 / .35); }
  .pins { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; counter-reset: pin;
    & li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); max-width: 66ch; }
    & li::before { counter-increment: pin; content: counter(pin); width: 28px; height: 28px; border-radius: 999px; background: var(--fr-cyan); color: var(--fr-navy); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
    & li b { color: var(--ink); }
  }
  .cs-two { display: grid; gap: 32px; align-items: start; @media (min-width: 860px) { grid-template-columns: 7fr 3fr; } }
  .phone { border: 8px solid var(--fr-navy); border-radius: 32px; overflow: clip; max-width: 260px; justify-self: center; background: var(--fr-navy); box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--ink) 60%, transparent);
    & img { width: 100%; height: auto; border-radius: 22px; }
  }
  .stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); margin: 0;
    & > div { border-top: 3px solid var(--marker); padding-top: 12px; display: flex; flex-direction: column; }
    & dt { color: var(--muted); font-size: .9rem; order: 2; }
    & dd { margin: 0; font-size: clamp(2rem, 5vw, 3rem); font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  }
  .src { font-size: .84rem !important; margin-top: 16px; }
  .cs-cta { background: var(--band-bg); color: var(--band-ink); border-radius: var(--radius-card); padding: clamp(32px, 6vw, 56px); margin-bottom: 64px;
    & h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); max-width: 22ch; }
    & p { color: var(--band-muted); margin-block: 16px 24px; max-width: 46ch; }
  }
  .notice { border: 1px solid var(--line); border-left: 4px solid var(--marker); border-radius: 8px; padding: 16px 20px; background: var(--panel); max-width: 66ch; color: var(--muted); margin: 0; }

  /* Reach Mail product page */
  .rm-meta { margin-top: 16px; color: var(--band-muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
  .rm-second { margin-top: 24px; }
  .rm-notice { margin-top: 24px; & b { color: var(--ink); } }
  .rm-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; max-width: 66ch;
    & > li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--muted); font-size: 1.02rem; }
    & > li::before { counter-increment: step; content: counter(step); width: 28px; height: 28px; border-radius: 999px; background: var(--fr-cyan); color: var(--fr-navy); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
    & b { color: var(--ink); }
  }
  .rm-code { margin: 12px 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); max-width: 66ch; white-space: pre-wrap; overflow-wrap: anywhere;
    & code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9rem; color: var(--ink); }
  }
  [data-rm="hash-block"][hidden] { display: none; }

  /* plain text pages: privacy, thanks */
  .doc { padding-block: 56px 80px; max-width: 760px;
    & h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; margin-bottom: 16px; }
    & h2 { font-size: 1.3rem; margin-top: 40px; margin-bottom: 8px; }
    & p, & li { color: var(--muted); font-size: 1.05rem; }
    & p { margin-top: 12px; }
    & ul { padding-left: 20px; display: grid; gap: 6px; }
    & a { color: var(--link); text-decoration-color: var(--marker); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  }
}

@layer motion {
  @media (prefers-reduced-motion: reduce) { .work { transition: none; } }
}

.cs-body { grid-template-columns: minmax(0, 1fr); }
.cs-two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .cs-two { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); } }

/* ---------- hero: product on show, live vitals, mesh light ---------- */

@layer components {
  .hero { padding-block: clamp(48px, 7vw, 96px); --mx: 70%; --my: 30%; }
  .hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "stage" "vitals";
    & .hero-copy { grid-area: copy; }
    & .stage { grid-area: stage; }
    & .vitals-wrap { grid-area: vitals; }
    @media (min-width: 960px) { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); column-gap: 32px; row-gap: 0;
      grid-template-areas: "copy stage" "vitals stage";
      & .hero-copy { align-self: end; }
      & .vitals-wrap { align-self: start; }
    }
  }
  .hero .eyebrow { margin-top: 0; }
  .hero h1 { font-size: clamp(2.3rem, 4.1vw, 3.9rem); letter-spacing: -.04em; line-height: 1.04; max-width: none; margin-top: 20px; text-wrap: balance;
    & .ln { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
    & .ln > span { display: inline-block; }
  }
  .hero .lede { margin-top: 24px; }

  /* mesh light behind everything: three soft pools of brand colour that turn slowly, plus film grain */
  .hero-mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip;
    &::before { content: ""; position: absolute; inset: -12%;
      background:
        radial-gradient(38% 34% at 78% 22%, rgb(22 217 232 / .26), transparent 70%),
        radial-gradient(42% 40% at 12% 88%, rgb(53 100 255 / .30), transparent 70%),
        radial-gradient(30% 30% at 55% 60%, rgb(22 217 232 / .10), transparent 70%);
      }
    &::after { content: ""; position: absolute; inset: 0; opacity: .06;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
  }
  /* a soft light that follows the pointer */
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgb(245 249 252 / .07), transparent 70%); }
  @media (hover: none) { .hero::after { display: none; } }

  /* the screens */
  .stage { --px: 0; --py: 0; position: relative; perspective: 1500px; min-height: 340px; width: min(100%, 560px); justify-self: center;
    aspect-ratio: 1.12;
    @media (max-width: 959px) { aspect-ratio: 1.25; }
  }
  .card-desk { position: absolute; left: 0; top: 8%; width: 90%; border-radius: 14px; overflow: clip; background: #F5F9FC; border: 1px solid rgb(255 255 255 / .14);
    box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(9 22 38 / .6);
    transform: rotateY(calc(-9deg + var(--px) * 6deg)) rotateX(calc(4deg - var(--py) * 4deg));
    & .chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #E3EBF4; color: #41566B; font-size: .7rem; }
    & .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #B4C3D2; display: block; }
    & .chrome span { margin-left: 10px; flex: 1; background: #F5F9FC; border-radius: 6px; padding: 3px 10px; }
    & img { width: 100%; height: auto; }
  }
  .card-phone { position: absolute; right: 0; bottom: 0; width: 33%; border: 6px solid #0F2236; border-radius: 28px; overflow: clip; background: #0F2236;
    box-shadow: 0 40px 70px -20px rgb(0 0 0 / .75), 0 0 0 1px rgb(255 255 255 / .12);
    transform: translateZ(70px) rotateY(calc(-9deg + var(--px) * 9deg)) rotateX(calc(3deg - var(--py) * 5deg));
    & img { width: 100%; height: auto; border-radius: 21px; }
  }
  .chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap;
    color: var(--band-ink); background: rgb(9 22 38 / .82); border: 1px solid rgb(255 255 255 / .16);
    box-shadow: 0 12px 30px -12px rgb(0 0 0 / .6);
    & .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fr-cyan); box-shadow: 0 0 0 3px rgb(22 217 232 / .25); }
    transform: translateZ(110px);
  }
  .chip.c1 { left: 2%; top: 0; }
  .chip.c2 { left: 6%; bottom: 8%; }
  @media (max-width: 520px) { .chip { font-size: .7rem; padding: 6px 10px; } .chip.c2 { left: 0; } }

  /* live vitals */
  .vitals-wrap { margin-top: 36px; max-width: 560px; }
  .vitals-h { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 10px; }
  .vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; border: 1px solid var(--band-line); border-radius: 12px; overflow: clip; background: var(--band-line);
    & > div { background: rgb(9 22 38 / .72); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
    /* without JavaScript the three measured figures cannot exist, so only the two fixed claims show */
    :root:not(.js) & > div[data-live] { display: none; }
    & > div:last-child { grid-column: span 2; }
    @media (min-width: 480px) { grid-template-columns: repeat(5, 1fr); & > div:last-child { grid-column: auto; } }
    & dt { order: 2; font-size: .72rem; color: var(--band-muted); }
    & dd { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--band-ink); font-variant-numeric: tabular-nums; }
  }
  .vitals-f { margin-top: 10px; font-size: .78rem; color: var(--band-muted); font-variant-numeric: tabular-nums; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    /* headline: each line rises out of a mask, then the rest follows */
    .hero h1 .ln > span { animation: ln-up .9s cubic-bezier(.16, 1, .3, 1) both; }
    .hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
    .hero .eyebrow, .hero .lede, .hero .actions, .hero .vitals-wrap { animation: hero-in .8s cubic-bezier(.16, 1, .3, 1) both; }
    .hero .lede { animation-delay: .22s; }
    .hero .actions { animation-delay: .3s; }
    .hero .vitals-wrap { animation-delay: .4s; }
    @keyframes ln-up { from { translate: 0 105%; } }
    @keyframes hero-in { from { opacity: 0; translate: 0 14px; } }

    /* the mesh turns very slowly; the chips bob */
    .hero-mesh::before { animation: mesh-turn 90s linear infinite; }
    @keyframes mesh-turn { to { rotate: 360deg; } }
    .chip.c1 { animation: bob 7s ease-in-out infinite; }
    .chip.c2 { animation: bob 8s ease-in-out -3s infinite; }
    @keyframes bob { 50% { translate: 0 -8px; } }

    /* the screens drift apart as you scroll */
    @supports (animation-timeline: scroll()) {
      .card-desk { animation: desk-drift linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
      .card-phone { animation: phone-drift linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
      @keyframes desk-drift { to { translate: 0 28px; } }
      @keyframes phone-drift { to { translate: 0 -48px; } }
    }
  }
}

/* shared element names for the cross-page transition, and pin positions (no inline styles: the CSP forbids them) */
.vt-441 { view-transition-name: shot-441; }
.vt-psp { view-transition-name: shot-psp; }
/* pins sit in the margins beside the thing they mark, so they never cover the screen's own text */
.pin { width: 22px; height: 22px; font-size: .74rem; }
.pin[data-at="441-1"] { --x: 6.5%;  --y: 20%; }
.pin[data-at="441-2"] { --x: 6.5%;  --y: 68%; }
.pin[data-at="441-3"] { --x: 6.5%;  --y: 80.7%; }
.pin[data-at="psp-1"] { --x: 4.5%;  --y: 42.3%; }
.pin[data-at="psp-2"] { --x: 95.5%; --y: 33%; }
.pin[data-at="psp-3"] { --x: 4.5%;  --y: 62%; }
.pin[data-at="psp-4"] { --x: 78%;   --y: 9.5%; }

/* ---------- custom software page ---------- */
@layer components {
  /* "What are you building?": radio buttons and CSS only, so it works without JavaScript.
     Where :has() is missing, every panel simply stays open. */
  .chooser { border: 0; margin: 32px 0 0; padding: 0; min-width: 0; }
  .choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
  .choices label { display: grid; gap: 4px; align-content: start; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); cursor: pointer; transition: border-color .2s;
    & b { font-size: 1.05rem; }
    & span { color: var(--muted); font-size: .9rem; }
    &:hover { border-color: var(--ink); }
  }
  .choices input:checked + label { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--marker); }
  .choices input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
  .panels { margin-top: 16px; }
  .panel { display: grid; gap: 12px; max-width: 760px; margin-top: 16px; padding: clamp(20px, 4vw, 32px); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--marker); border-radius: var(--radius-card);
    & h3 { font-size: 1.25rem; }
    & p { color: var(--muted); }
    & b { color: var(--ink); }
    & a { color: var(--link); text-decoration-color: var(--marker); text-decoration-thickness: 2px; text-underline-offset: 3px; }
    & .link { justify-self: start; font-weight: 600; text-decoration-thickness: 3px; text-underline-offset: 4px; }
  }
  @supports selector(:has(*)) {
    .panel { display: none; margin-top: 0; }
    .chooser:has(#b-sched:checked) #p-sched,
    .chooser:has(#b-portal:checked) #p-portal,
    .chooser:has(#b-tool:checked) #p-tool,
    .chooser:has(#b-dir:checked) #p-dir { display: grid; }
  }

  /* tags on the project cards */
  .card .chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 16px 0 0;
    & li { font-size: .74rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
  }

  /* how a project runs */
  .steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: step; grid-template-columns: minmax(0, 1fr);
    @media (min-width: 760px) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    & > li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); }
    & > li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 999px; background: var(--fr-cyan); color: var(--fr-navy); font-weight: 800; }
    & h3 { font-size: 1.15rem; }
    & > li > p { color: var(--muted); font-size: .98rem; }
  }

  /* questions */
  .faq { margin-top: 32px; max-width: 800px; border-top: 1px solid var(--line);
    & details { border-bottom: 1px solid var(--line); }
    & summary { position: relative; padding: 18px 40px 18px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.05rem; }
    & summary::-webkit-details-marker { display: none; }
    & summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -75%; transition: rotate .2s, translate .2s; }
    & details[open] summary::after { rotate: 225deg; translate: 0 -25%; }
    & .ans { display: grid; gap: 12px; max-width: 66ch; padding-bottom: 20px; }
    & .ans > p { color: var(--muted); }
    & .ans a { color: var(--link); text-decoration-color: var(--marker); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  }

  /* home page: the pointer to this page */
  .teaser { display: grid; gap: 24px 48px; align-items: center; grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 4vw, 40px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card);
    @media (min-width: 900px) { grid-template-columns: minmax(0, 1fr) auto; }
    & h2.big { max-width: 24ch; }
    & .actions { margin-top: 0; }
  }

  /* Draft wording and placeholders. Visible on purpose, so nothing undecided can pass for finished copy.
     `node tools/check.mjs --launch` fails while any of these remain. */
  aside.draft { max-width: 66ch; margin-top: 12px; padding: 12px 16px; border: 2px dashed var(--focus); border-radius: 8px; background: color-mix(in srgb, var(--focus) 8%, var(--panel));
    & p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
    & p.draft-tag { margin: 0 0 4px; color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
    & ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); font-size: .95rem; }
    & b { color: var(--ink); }
  }
}

/* ---------- home: skip layout below the first screen ---------- */
@layer components {
  /* The home page is long. Everything after the hero is laid out and painted on first load even though nobody can see it yet,
     and on a slow phone that work delays the hero (measured: the hero appears about 0.5 s sooner on a throttled phone profile).
     content-visibility:auto lets the browser skip these sections until they are near the screen. They stay in the page for
     search, anchors, screen readers and find-in-page.
     A skipped section is held open at an estimated height, and a wrong estimate makes a link such as /#contact land short,
     so each section has its measured height at phone, tablet and desktop widths. The estimate is the CONTENT height: the
     section's own 128px of vertical padding is added on top, so it is the measured height minus 128px (the contact block has
     no padding). If a section's content changes a lot, re-measure it. The sizes only matter for the first jump to an anchor,
     because the browser remembers the real size once a section has been seen.
     Scoped with ".hero ~", so it only applies on the home page. The strip and the first section sit at the fold and are left alone. */
  .hero ~ #work, .hero ~ #play, .hero ~ #capabilities, .hero ~ #custom, .hero ~ #island, .hero ~ #team, .hero ~ #demo, .hero ~ #contact { content-visibility: auto; }
  .hero ~ #work { contain-intrinsic-size: auto 2790px; }
  .hero ~ #play { contain-intrinsic-size: auto 1290px; }
  .hero ~ #capabilities { contain-intrinsic-size: auto 1100px; }
  .hero ~ #custom { contain-intrinsic-size: auto 440px; }
  .hero ~ #island { contain-intrinsic-size: auto 660px; }
  .hero ~ #team { contain-intrinsic-size: auto 210px; }
  .hero ~ #demo { contain-intrinsic-size: auto 2120px; }
  .hero ~ #contact { contain-intrinsic-size: auto 1060px; }
  @media (min-width: 560px) {
    .hero ~ #work { contain-intrinsic-size: auto 2790px; }
    .hero ~ #play { contain-intrinsic-size: auto 1500px; }
    .hero ~ #capabilities { contain-intrinsic-size: auto 640px; }
    .hero ~ #custom { contain-intrinsic-size: auto 310px; }
    .hero ~ #island { contain-intrinsic-size: auto 360px; }
    .hero ~ #team { contain-intrinsic-size: auto 180px; }
    .hero ~ #demo { contain-intrinsic-size: auto 1340px; }
    .hero ~ #contact { contain-intrinsic-size: auto 760px; }
  }
  @media (min-width: 900px) {
    .hero ~ #work { contain-intrinsic-size: auto 1460px; }
    .hero ~ #play { contain-intrinsic-size: auto 810px; }
    .hero ~ #capabilities { contain-intrinsic-size: auto 500px; }
    .hero ~ #custom { contain-intrinsic-size: auto 300px; }
    .hero ~ #island { contain-intrinsic-size: auto 370px; }
    .hero ~ #team { contain-intrinsic-size: auto 190px; }
    .hero ~ #demo { contain-intrinsic-size: auto 950px; }
    .hero ~ #contact { contain-intrinsic-size: auto 590px; }
  }
}
