@layer reset, tokens, base, layout, components, motion;

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: none; text-size-adjust: none; }
  img, svg { display: block; max-width: 100%; }
  input, button, textarea { font: inherit; color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
}

/* ----------------------------------------------------------------- tokens */
@layer tokens {
  @property --angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
  }

  :root {
    color-scheme: light;

    --violet: oklch(56% 0.25 293);
    --pink: oklch(65% 0.24 354);
    --sky: oklch(68% 0.15 232);
    --amber: oklch(78% 0.17 70);
    --emerald: oklch(70% 0.16 162);
    --coral: oklch(68% 0.19 30);

    --bg: oklch(98.5% 0.01 300);
    --bg-tint: oklch(96.5% 0.025 300);
    --surface: oklch(100% 0 0);
    --text: oklch(24% 0.04 285);
    --muted: oklch(48% 0.03 285);
    --line: oklch(90% 0.02 290);

    --grad: linear-gradient(120deg, var(--violet), var(--pink) 55%, var(--amber));

    --radius: 1.25rem;
    --shadow: 0 1px 2px oklch(30% 0.05 290 / 0.06), 0 12px 32px -12px oklch(40% 0.12 290 / 0.18);
    --shadow-lg: 0 2px 4px oklch(30% 0.05 290 / 0.06), 0 24px 60px -20px oklch(45% 0.18 300 / 0.35);

    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section: clamp(4rem, 10vw, 7.5rem);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  }
}

/* ------------------------------------------------------------------- base */
@layer base {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    @media (prefers-reduced-motion: reduce) { scroll-behavior: auto; }
  }

  body {
    font-family: var(--font);
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;
  }

  h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
  h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); font-weight: 800; }
  h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); font-weight: 800; }
  h3 { font-size: 1.2rem; font-weight: 700; }
  p { text-wrap: pretty; }

  a { color: var(--violet); text-underline-offset: 3px; }

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

  ::selection { background: color-mix(in oklch, var(--pink) 30%, transparent); }

  .skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    padding: .6rem 1rem; border-radius: .6rem;
    background: var(--text); color: #fff;
    &:focus { top: 1rem; }
  }
}

/* ----------------------------------------------------------------- layout */
@layer layout {
  .container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

  .section { padding-block: var(--section); position: relative; }
  .section-tint { background: var(--bg-tint); }

  .section-head {
    max-width: 44rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center;
    & p:last-child { color: var(--muted); margin-top: 1rem; font-size: 1.08rem; }
  }

  .eyebrow {
    display: inline-block; margin-bottom: .9rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  }

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

/* ------------------------------------------------------------- components */
@layer components {
  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
    font-weight: 700; text-decoration: none; color: #fff;
    background: var(--grad); background-size: 160% 100%;
    box-shadow: 0 10px 24px -10px color-mix(in oklch, var(--pink) 70%, transparent);
    transition: background-position .4s, transform .2s, box-shadow .2s;

    &:hover { background-position: 100% 0; transform: translateY(-2px); }
    &:active { transform: translateY(0); }
    &:disabled { opacity: .6; cursor: progress; transform: none; }
  }
  .btn-ghost {
    background: var(--surface); color: var(--text);
    box-shadow: inset 0 0 0 1.5px var(--line);
    &:hover { box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--violet); }
  }
  .btn-small { padding: .55rem 1.15rem; font-size: .95rem; }
  .btn-block { width: 100%; }

  /* Header */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in oklch, var(--bg) 78%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;

    &.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px oklch(30% .1 290 / .5); }
  }
  .header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }

  .logo {
    display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none;
  }
  .logo-mark { width: 2.6rem; height: 2.6rem; flex-shrink: 0; transition: rotate .5s cubic-bezier(.5, 1.6, .4, 1); }
  .logo:hover .logo-mark { rotate: -8deg; }
  .logo-text { display: grid; line-height: 1; }
  .logo-name {
    font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em;
    & b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  }
  .logo-text small {
    margin-top: .3rem; font-size: .62rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
    color: var(--muted);
  }

  .site-nav {
    & ul { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; }
    & a:not(.btn) {
      display: block; padding: .5rem .85rem; border-radius: 999px;
      color: var(--text); font-weight: 600; text-decoration: none; transition: background .2s, color .2s;
      &:hover { background: var(--bg-tint); color: var(--violet); }
    }
  }

  .nav-toggle {
    display: none; width: 2.75rem; height: 2.75rem; padding: .7rem;
    border: 0; border-radius: .8rem; background: var(--bg-tint); cursor: pointer;
    flex-direction: column; justify-content: space-between;
    & span { display: block; height: 2px; border-radius: 2px; background: var(--text); }
  }

  /* Desktop: the popover nav is just an inline nav. */
  @media (min-width: 821px) {
    .site-nav[popover] {
      display: block; position: static; inset: auto; padding: 0; margin: 0;
      border: 0; background: none; overflow: visible;
    }
  }

  @media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .site-nav[popover] {
      inset: 5rem var(--gutter) auto auto; margin: 0;
      width: min(18rem, calc(100vw - 2 * var(--gutter)));
      padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius);
      background: var(--surface); box-shadow: var(--shadow-lg);
      opacity: 0; translate: 0 -8px;
      transition: opacity .2s, translate .2s, display .2s allow-discrete, overlay .2s allow-discrete;

      &:popover-open {
        opacity: 1; translate: 0 0;
        @starting-style { opacity: 0; translate: 0 -8px; }
      }
      & ul { flex-direction: column; align-items: stretch; }
      & .btn { margin-top: .4rem; }
    }
  }

  /* Hero */
  .hero { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 10vw, 7.5rem); isolation: isolate; }
  .hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
  .lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 36rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

  .blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .blob {
    position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
    &.b1 { width: 30rem; aspect-ratio: 1; background: color-mix(in oklch, var(--violet) 55%, white); top: -10rem; left: -8rem; }
    &.b2 { width: 26rem; aspect-ratio: 1; background: color-mix(in oklch, var(--pink) 50%, white); top: 4rem; right: -6rem; }
    &.b3 { width: 22rem; aspect-ratio: 1; background: color-mix(in oklch, var(--amber) 55%, white); bottom: -8rem; left: 35%; }
  }

  .hero-visual { position: relative; }
  .window {
    position: relative; border-radius: var(--radius); background: oklch(22% 0.05 285);
    box-shadow: var(--shadow-lg); overflow: hidden;

    /* Animated gradient border */
    &::before {
      content: ""; position: absolute; inset: 0; padding: 2px; border-radius: inherit;
      background: conic-gradient(from var(--angle), var(--violet), var(--pink), var(--amber), var(--sky), var(--violet));
      mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
      animation: spin 6s linear infinite;
    }
  }
  .window-bar {
    display: flex; gap: .45rem; padding: .9rem 1rem;
    & i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--coral); }
    & i:nth-child(2) { background: var(--amber); }
    & i:nth-child(3) { background: var(--emerald); }
  }
  .code {
    margin: 0; padding: .25rem 1.4rem 1.6rem; overflow-x: auto;
    font: 500 clamp(.78rem, .72rem + .25vw, .92rem)/1.75 ui-monospace, "Cascadia Code", Consolas, monospace;
    color: oklch(92% 0.02 285);
    & .k { color: oklch(75% 0.17 330); }
    & .f { color: oklch(80% 0.13 220); }
    & .s { color: oklch(84% 0.15 110); }
    & .c { color: oklch(62% 0.03 285); }
  }

  .float-card {
    position: absolute; display: flex; align-items: center; gap: .5rem;
    padding: .7rem 1rem; border-radius: 999px;
    background: var(--surface); box-shadow: var(--shadow); font-size: .9rem; font-weight: 700;
    &.fc1 { left: -1.5rem; bottom: -1.3rem; }
    &.fc2 { right: -1rem; top: -1.3rem; }
    & .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--emerald);
             box-shadow: 0 0 0 4px color-mix(in oklch, var(--emerald) 25%, transparent); }
  }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .float-card.fc1 { left: .5rem; }
    .float-card.fc2 { right: .5rem; }
  }

  /* Service cards */
  .cards {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  }
  .card {
    --c: var(--violet);
    container-type: inline-size;
    position: relative; padding: 1.8rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;

    &::after {
      content: ""; position: absolute; inset-inline: 1.8rem; top: 0; height: 3px; border-radius: 0 0 3px 3px;
      background: var(--c); opacity: 0; transition: opacity .25s;
    }
    &:hover {
      transform: translateY(-4px); box-shadow: var(--shadow-lg);
      border-color: color-mix(in oklch, var(--c) 45%, var(--line));
      &::after { opacity: 1; }
    }
    & h3 { margin-block: 1.1rem .5rem; }
    & p { color: var(--muted); }
  }
  .card-icon {
    display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem;
    background: color-mix(in oklch, var(--c) 14%, white);
    & svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  }

  /* Process */
  .steps {
    display: grid; gap: 1.25rem; counter-reset: step;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  }
  .step {
    position: relative; padding: 1.8rem; border-radius: var(--radius); background: var(--surface);
    box-shadow: var(--shadow);
    & h3 { margin-block: .9rem .4rem; }
    & p { color: var(--muted); }
  }
  .step-no {
    font-size: 2.4rem; font-weight: 800; line-height: 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  /* Technology marquee */
  .marquee {
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .marquee-track {
    display: flex; gap: .9rem; width: max-content;
    animation: marquee 40s linear infinite;
    &:hover { animation-play-state: paused; }

    & li {
      padding: .75rem 1.4rem; border-radius: 999px; white-space: nowrap; font-weight: 700;
      background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    }
    & li:nth-child(6n+1) { color: var(--violet); }
    & li:nth-child(6n+2) { color: var(--pink); }
    & li:nth-child(6n+3) { color: var(--sky); }
    & li:nth-child(6n+4) { color: oklch(60% 0.16 70); }
    & li:nth-child(6n+5) { color: oklch(58% 0.14 162); }
    & li:nth-child(6n+6) { color: var(--coral); }
  }

  /* About */
  .about-grid {
    display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
    & p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; }
    @media (max-width: 900px) { grid-template-columns: minmax(0, 1fr); }
  }
  .values { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .value {
    --c: var(--violet);
    display: grid; gap: .3rem; padding: 1.4rem; border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow);
    border-left: 4px solid var(--c);
    & span { color: var(--muted); font-size: .95rem; }
  }

  /* Contact */
  .contact-grid {
    display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start;
    & > div > p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; }
    @media (max-width: 900px) { grid-template-columns: minmax(0, 1fr); }
  }
  .company {
    display: grid; gap: .8rem; margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius);
    background: var(--bg-tint);
    & div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
    & dt { color: var(--muted); }
    & dd { font-weight: 700; }
    & address { font-style: normal; text-align: right; }
  }

  .contact-form {
    display: grid; gap: 1.1rem; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: calc(var(--radius) + .25rem);
    background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  }
  .field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr;
    @media (max-width: 560px) { grid-template-columns: 1fr; } }
  .field {
    display: grid; gap: .4rem;
    & label { font-weight: 600; font-size: .95rem; }
    & small { font-weight: 400; color: var(--muted); }
    & input, & textarea {
      width: 100%; padding: .8rem 1rem; border-radius: .8rem; border: 1.5px solid var(--line);
      background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s;
      &:focus { outline: none; border-color: var(--violet); background: var(--surface);
                box-shadow: 0 0 0 4px color-mix(in oklch, var(--violet) 18%, transparent); }
    }
    & textarea { resize: vertical; min-height: 8rem; field-sizing: content; }

    /* Show errors only after the visitor has interacted with the field. */
    &:has(:user-invalid) {
      & input, & textarea { border-color: var(--coral); }
      & label { color: oklch(52% 0.19 30); }
    }
  }
  .consent {
    display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer;
    & input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--violet); flex-shrink: 0; }
  }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .form-status {
    min-height: 1.5rem; font-weight: 600; text-align: center;
    &.ok { color: oklch(52% 0.14 162); }
    &.err { color: oklch(52% 0.19 30); }
  }

  /* Live dashboard */
  .dash {
    --chart-1: #7c3aed; --chart-2: #0ea5e9; --chart-3: #e8590c;
    padding: clamp(1rem, 3vw, 1.75rem); border-radius: calc(var(--radius) + .5rem);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .dash-bar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem;
  }
  .dash-title { font-weight: 800; font-size: 1.1rem; }
  .live {
    display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 999px;
    font-size: .75rem; font-weight: 800; letter-spacing: .12em;
    color: oklch(45% 0.13 162); background: color-mix(in oklch, var(--emerald) 16%, white);
    & i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--emerald); animation: pulse 1.6s infinite; }
  }

  .kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); margin-bottom: 1rem; }
  .kpi {
    display: grid; gap: .2rem; padding: 1.1rem 1.2rem; border-radius: 1rem; background: var(--bg-tint);
  }
  .kpi-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
  .kpi-value { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .kpi-delta {
    font-size: .8rem; font-weight: 700; min-height: 1.2em; color: var(--muted);
    &.up { color: oklch(50% 0.14 162); }
    &.down { color: oklch(55% 0.19 30); }
  }

  .panels { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    @media (max-width: 900px) { grid-template-columns: minmax(0, 1fr); } }
  .panel {
    margin: 0; padding: 1.1rem 1.2rem 1rem; border-radius: 1rem; border: 1px solid var(--line); min-width: 0;
    & figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .6rem; }
    & figcaption strong { font-size: .98rem; }
    & figcaption span { font-size: .8rem; color: var(--muted); }
  }
  .panel-full { grid-column: 1 / -1; }
  .panel:has(.hbars) { display: flex; flex-direction: column; }
  .chart:has(.hbars) { flex: 1; display: grid; align-content: center; }

  .chart {
    position: relative;
    & svg { width: 100%; height: auto; overflow: visible; }
    & .grid line { stroke: var(--line); stroke-width: 1; }
    & .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
    & .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
    & .s1 { stroke: var(--chart-1); } & .dot.s1 { fill: var(--chart-1); }
    & .s2 { stroke: var(--chart-2); } & .dot.s2 { fill: var(--chart-2); }
    & .s3 { stroke: var(--chart-3); } & .dot.s3 { fill: var(--chart-3); }
    & .bar { fill: var(--chart-1); transition: fill .15s; }
    & .bar.current { fill: var(--chart-3); }
    & .bar.hover { fill: color-mix(in oklch, var(--chart-1) 70%, black); }
    & .bar.current.hover { fill: color-mix(in oklch, var(--chart-3) 75%, black); }
    & .dot { stroke: var(--surface); stroke-width: 2; }
    & .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
    & .legend { margin-top: .4rem; }
  }

  /* Horizontal bars (platform share) */
  .hbars {
    display: grid; gap: 1.1rem; margin-top: .6rem; padding: 0; list-style: none;
    & li { display: grid; grid-template-columns: 4.5rem 1fr 3rem; align-items: center; gap: .75rem; }
  }
  .hbar-label { font-weight: 600; font-size: .92rem; }
  .hbar-track { height: 2rem; }
  .hbar-fill {
    display: block; height: 100%; border-radius: 0 6px 6px 0; min-width: 6px;
    transition: width .9s cubic-bezier(.4, 0, .2, 1);
  }
  .hbar-value { text-align: right; font-variant-numeric: tabular-nums; }

  /* KPI sparklines */
  .spark {
    height: 44px; margin-top: .35rem;
    & svg { width: 100%; height: 100%; overflow: visible; }
  }
  .spark-line { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .spark-area { fill: color-mix(in oklch, var(--chart-1) 14%, transparent); }
  .spark-dot { fill: var(--chart-1); stroke: var(--bg-tint); stroke-width: 2; }

  .legend {
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .8rem; padding: 0; list-style: none; font-size: .9rem;
    & li { display: flex; align-items: center; gap: .45rem; }
    & i { width: .75rem; height: .75rem; border-radius: 3px; }
    & b { font-variant-numeric: tabular-nums; }
  }

  .chart-tip {
    position: fixed; z-index: 60; pointer-events: none; padding: .45rem .7rem; border-radius: .6rem;
    background: var(--text); color: #fff; font-size: .82rem; line-height: 1.35; white-space: nowrap;
    box-shadow: var(--shadow); translate: -50% calc(-100% - 12px);
    & b { font-size: .95rem; }
  }
  .tip-row {
    display: flex; align-items: center; gap: .4rem;
    & i { width: .6rem; height: .6rem; border-radius: 2px; }
    & b { margin-left: auto; padding-left: .75rem; }
  }

  /* Footer */
  .site-footer {
    padding-block: 2.2rem; border-top: 1px solid var(--line); background: var(--bg-tint);
    color: var(--muted); font-size: .92rem;
    & a { color: inherit; }
  }
  .footer-inner { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
}

/* ----------------------------------------------------------------- motion */
@layer motion {
  @keyframes spin { to { --angle: 360deg; } }
  @keyframes marquee { to { translate: calc(-50% - .45rem) 0; } }
  @keyframes float { 50% { translate: 0 -10px; } }
  @keyframes drift { 50% { translate: 3rem 2rem; scale: 1.1; } }
  @keyframes reveal { from { opacity: 0; translate: 0 2rem; } }
  @keyframes pulse { 50% { opacity: .35; } }

  @media (prefers-reduced-motion: no-preference) {
    .blob { animation: drift 16s ease-in-out infinite; }
    .blob.b2 { animation-duration: 20s; animation-direction: reverse; }
    .blob.b3 { animation-duration: 24s; }
    .float-card { animation: float 5s ease-in-out infinite; }
    .float-card.fc2 { animation-delay: -2.5s; }

    /* Scroll-driven reveal where supported; otherwise content is simply visible. */
    @supports (animation-timeline: view()) {
      .reveal {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
      }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .window::before, .marquee-track { animation: none; }
    .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  }
}
