/* ============================================================
   LAYER ORDER — declared first; later layers win
   ============================================================ */
@layer reset, base, layout, components, animations;

/* ============================================================
   RESET
   ============================================================ */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
}

/* ============================================================
   BASE — design tokens + element defaults
   ============================================================ */
@layer base {
  :root {
    /* Palette */
    --paper:  #f6f5ef;
    --white:  #fffef9;
    --ink:    #23362c;
    --muted:  #69726b;
    --line:   #d8ddd2;
    --orange: #cd522a;
    --pale:   #eeeee6;
    --dark:   #21392d;
    --water:  #4e9590;
    --water-light: #a6d8cd;

    /* Motion */
    --ease:          cubic-bezier(.2, .7, .3, 1);
    --dur-fast:      180ms;
    --dur-base:      260ms;
    --dur-slow:      500ms;

    /* Type scale */
    --text-xs:   10px;
    --text-sm:   11px;
    --text-base: 13px;
    --text-md:   15px;
    --text-lg:   17px;
    --text-h3:   24px;
    --text-h2:   clamp(32px, 3.6vw, 48px);
    --text-h1:   clamp(42px, 4.45vw, 64px);

    /* Space */
    --section-pad: 100px;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: var(--text-md);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; text-decoration: none; }
  button, input, textarea { font: inherit; }
  button { cursor: pointer; color: inherit; }
  button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 5px;
  }

  svg { display: block; }
  a svg, .button svg { width: 22px; height: 22px; flex-shrink: 0; }
  p, h1, h2, h3 { margin: 0; }

  h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.045em;
  }

  h1 {
    font-size: var(--text-h1);
    line-height: 1.08;
    letter-spacing: -0.045em;
  }

  h2 {
    font-size: var(--text-h2);
    line-height: 1.12;
  }

  h3 {
    font-size: var(--text-h3);
    line-height: 1.25;
  }

  p { color: var(--muted); }

  [hidden] { display: none !important; }

  .eyebrow,
  .overline {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.09em;
    line-height: 1.5;
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    margin-bottom: 25px;
  }

  .orange-square {
    width: 7px;
    height: 7px;
    background: var(--orange);
  }

  /* ── Buttons ── */
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: var(--ink);
    color: var(--white);
    border: 1px solid var(--ink);
    padding: 16px 22px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 3px;
    transition: background var(--dur-base), border-color var(--dur-base), transform var(--dur-base);
  }

  .button:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
  }

  .button-small { padding: 11px 15px; font-size: 11px; gap: 18px; }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
  }

  .text-link svg { transition: transform var(--dur-base); }
  .text-link:hover svg { transform: translateX(5px); }

  /* ── Skip link ── */
  .skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    transform: translateY(-150%);
    z-index: 1000;
    background: var(--ink);
    color: white;
    padding: 10px 20px;
  }

  .skip-link:focus { transform: translateY(0); }
}

/* ============================================================
   LAYOUT — structural primitives
   ============================================================ */
@layer layout {
  .container {
    width: min(1280px, calc(100% - 112px));
    margin-inline: auto;
  }

  .section {
    padding-block: var(--section-pad);
  }

  .section-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 70px;
    margin-bottom: 43px;
  }

  .section-description {
    max-width: 350px;
    font-size: 14px;
    line-height: 1.8;
  }

  @media (max-width: 1150px) {
    .container { width: calc(100% - 70px); }
    .section-intro { gap: 45px; }
    .section-description { max-width: 300px; }
  }

  @media (max-width: 950px) {
    .section { --section-pad: 75px; }
    .section-intro { align-items: flex-start; gap: 30px; }
    .section-description { max-width: 260px; font-size: 13px; }
  }

  @media (max-width: 700px) {
    .container { width: calc(100% - 40px); }
    .section { --section-pad: 63px; }
    .section-intro { display: block; margin-bottom: 30px; }
    .section-description { max-width: 460px; margin-top: 22px; font-size: 13px; }
  }

  @media (max-width: 380px) {
    .container { width: calc(100% - 32px); }
  }
}

/* ============================================================
   COMPONENTS
   ============================================================ */
@layer components {

  /* ── Header ── */
  .header {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(246 245 239 / 96%);
    backdrop-filter: blur(15px);
  }

  .header-inner {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }

  .brand {
    display: inline-flex;
    align-items: baseline;
    gap: .09em;
    font-weight: 600;
    font-size: 27px;
    letter-spacing: -1.1px;
    line-height: 1;
  }

  .brand-mark { width: .715em; height: .715em; color: var(--orange); }
  .brand-dot  { color: var(--orange); }

  .desktop-nav {
    display: flex;
    gap: 29px;
    margin-left: auto;
  }

  .desktop-nav a {
    font-size: 11px;
    color: #4c5950;
    transition: color var(--dur-base);
  }

  .desktop-nav a:hover { color: var(--orange); }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 29px;
  }

  .language-switch {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .language-switch a {
    font-size: 10px;
    color: var(--muted);
    line-height: 28px;
    border-bottom: 1px solid transparent;
    transition: color var(--dur-base);
  }

  .language-switch a[aria-current] {
    color: var(--ink);
    border-bottom-color: var(--orange);
    font-weight: 700;
  }

  .language-switch a:hover { color: var(--orange); }

  .menu-toggle {
    display: none;
    border: 0;
    padding: 10px;
    background: none;
  }

  .menu-toggle span {
    width: 20px;
    height: 1px;
    background: var(--ink);
    display: block;
    margin: 5px 0;
    transition: transform var(--dur-base);
  }

  .mobile-nav {
    padding: 10px 28px 25px;
    border-top: 1px solid var(--line);
  }

  .mobile-nav a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
  }

  @media (max-width: 1150px) {
    .header-inner { gap: 22px; }
    .desktop-nav  { gap: 20px; }
    .header-actions { gap: 20px; }
  }

  @media (max-width: 950px) {
    .desktop-nav { display: none; }
    .header-actions { margin-left: auto; }
    .header-inner { height: 74px; }
    .menu-toggle { display: block; }
  }

  @media (max-width: 700px) {
    .header-inner { height: 68px; gap: 15px; }
    .brand { font-size: 25px; }
    .header-actions { gap: 16px; }
    .header-cta { display: none; }
    .language-switch { gap: 12px; }
    .language-switch a { font-size: 10px; }
    .menu-toggle { padding: 5px; }
  }

  @media (max-width: 380px) {
    .header-actions { gap: 10px; }
    .language-switch { gap: 9px; }
    .brand { font-size: 23px; }
  }

  /* ── Hero ── */
  .hero {
    display: grid;
    grid-template-columns: 1.03fr 1fr;
    gap: 44px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 66px;
  }

  .hero-copy { padding: 14px 0 4px; }

  h1 > span { color: var(--orange); }

  .hero-intro {
    max-width: 480px;
    font-size: var(--text-md);
    line-height: 1.8;
    margin-top: 26px;
  }

  .hero-audience {
    max-width: 450px;
    font-size: 12px;
    line-height: 1.8;
    margin-top: 16px;
    color: #5d695f;
  }

  .hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero-buttons .button  { font-size: 11px; padding: 16px 18px; gap: 15px; }
  .hero-buttons .text-link { font-size: 11px; gap: 10px; }

  .hero-foot {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 30px;
    font-size: 11px;
    color: #697268;
    line-height: 1.7;
    max-width: 440px;
  }

  .mini-line {
    height: 1px;
    width: 20px;
    background: var(--orange);
    flex-shrink: 0;
    margin-top: 9px;
  }

  /* Hero art */
  .hero-art {
    height: 535px;
    position: relative;
    background: #e6e9df;
    overflow: hidden;
    border: 1px solid #dbe0d4;
    border-radius: 3px;
  }

  .art-top {
    position: absolute;
    z-index: 2;
    left: 25px;
    right: 25px;
    top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font: 8px/1.5 "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.07em;
    color: #465c4b;
  }

  .art-top > span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .art-top i {
    background: #71866c;
    border-radius: 50%;
    width: 5px;
    height: 5px;
  }

  .art-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#bac5b2 0.7px, transparent 0.7px);
    background-size: 20px 20px;
    opacity: 0.45;
    mask-image: linear-gradient(#000, transparent 80%);
  }

  .warehouse {
    width: 115%;
    position: absolute;
    top: -8px;
    left: -8%;
    height: 86%;
  }

  @media (max-width: 1150px) {
    .hero { gap: 32px; }
    h1    { font-size: 52px; }
    .hero-art { height: 540px; }
    .hero-buttons { gap: 18px; }
    .hero-buttons .button    { font-size: 10px; gap: 10px; }
    .hero-buttons .text-link { font-size: 10px; }
  }

  @media (max-width: 950px) {
    .hero { grid-template-columns: 1fr 0.9fr; gap: 30px; }
    h1    { font-size: 43px; }
    .hero-intro   { font-size: 14px; }
    .hero-audience { font-size: 11px; }
    .hero-art { height: 525px; }
    .warehouse { height: auto; width: 125%; left: -15%; }
    .hero-art .art-top { font-size: 6px; }
    .hero-art .warehouse { top: 50px; }
    .hero-foot { font-size: 10px; margin-top: 23px; }
  }

  @media (max-width: 700px) {
    .hero { grid-template-columns: 1fr; padding-top: 39px; padding-bottom: 42px; gap: 32px; }
    .hero-copy { padding: 0; }
    h1 { font-size: clamp(35px, 7.9vw, 52px); line-height: 1.12; }
    .hero-intro   { margin-top: 23px; font-size: 14px; }
    .hero-audience { font-size: 12px; margin-top: 16px; }
    .hero-buttons { flex-direction: row; align-items: center; gap: 19px; margin-top: 27px; }
    .hero-buttons .button    { font-size: 11px; padding: 15px; gap: 13px; }
    .hero-buttons .text-link { font-size: 10px; }
    .hero-art { height: 440px; }
    .hero-art .warehouse { top: -20px; width: 105%; left: -3%; height: 91%; }
    .hero-art .art-top { font-size: 7px; }
  }

  @media (max-width: 380px) {
    h1 { font-size: 35px; }
  }

  @media (min-width: 1500px) {
    .hero { gap: 70px; padding-block: 65px; }
    h1   { font-size: 86px; }
    .hero-art { height: 580px; }
  }

  /* ── Use Cases ── */
  .use-cases {
    background: #edeee6;
    border-top: 1px solid var(--line);
  }

  .tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-bottom: 1px solid #c9d0c0;
    gap: 0;
  }

  .tabs button {
    justify-self: start;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 18px 22px 18px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    color: #788371;
    font-size: 12px;
    transition: color var(--dur-base);
  }

  .tabs button > span { font-size: 9px; font-family: monospace; }

  .tabs button[aria-selected="true"] {
    border-color: var(--orange);
    color: var(--ink);
  }

  .tabs button[aria-selected="true"] > span { color: var(--orange); }
  .tabs button:hover { color: var(--orange); }

  .industry-panel {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 70px;
    padding-top: 43px;
    align-items: start;
  }

  .industry-visual {
    position: sticky;
    top: 110px;
    background: var(--dark);
    padding: 28px 28px 34px;
    color: var(--paper);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 3px;
    transition: background var(--dur-slow) var(--ease);
  }

  .industry-visual:has([data-workflow-mode="after"][aria-pressed="true"]) { background: #1b3b37; }

  .industry-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#82977d 0.7px, transparent 0.7px);
    background-size: 22px 22px;
    opacity: 0.17;
    mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
  }

  .industry-visual > * { position: relative; }

  .industry-visual-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: 8px/1.4 monospace;
    letter-spacing: 0.06em;
    color: #aab8a2;
  }

  .industry-glyph { color: #d4dec9; }
  .industry-glyph svg { width: 30px; height: 30px; stroke-width: 1; }

  .workflow-switch {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-self: flex-start;
    padding: 4px;
    margin-top: 24px;
    border: 1px solid #4a6247;
    border-radius: 4px;
    background: rgb(0 0 0 / 12%);
    max-width: 100%;
  }

  .workflow-switch::before {
    content: "";
    position: absolute;
    inset: 4px auto 4px 4px;
    width: calc(50% - 4px);
    border-radius: 2px;
    background: var(--paper);
    transition: transform var(--dur-base) var(--ease), background var(--dur-base);
  }

  .workflow-switch:has([data-workflow-mode="after"][aria-pressed="true"])::before {
    transform: translateX(100%);
    background: var(--water-light);
  }

  .workflow-switch button {
    position: relative;
    border: 0;
    background: transparent;
    padding: 8px 14px;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
    color: #b9c6ae;
    transition: color var(--dur-base);
  }

  .workflow-switch button:hover                { color: var(--white); }
  .workflow-switch button[aria-pressed="true"] { color: var(--ink); }

  /* Rows share one height so each channel segment can span exactly one row,
     and the travelling drops can be timed in thirds of the diagram. */
  .process-diagram {
    --rail: 9px;
    position: relative;
    display: grid;
    grid-auto-rows: 1fr;
    margin-top: 30px;
  }

  .process-diagram > div {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: baseline;
    align-content: center;
    padding: 23px 32px 23px 40px;
    background: linear-gradient(rgb(255 255 255 / 8%), rgb(255 255 255 / 8%)) 40px 100% / calc(100% - 40px) 1px no-repeat;
    animation: step-in 0.5s var(--ease) both;
  }

  .process-diagram > div:last-child { background: none; }
  .process-diagram > div:nth-child(2) { animation-delay: 0.12s; }
  .process-diagram > div:nth-child(3) { animation-delay: 0.24s; }

  .process-diagram span { font: 9px/1 monospace; letter-spacing: 0.06em; color: #8fa487; }
  .process-diagram b    { font-size: 16px; font-weight: 400; line-height: 1.45; min-width: 0; color: #eef0e6; }

  .process-diagram > div::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: calc(var(--rail) - 6px);
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--water);
    box-shadow: 0 0 0 4px rgb(78 149 144 / 18%);
    animation: node-in 0.4s var(--ease) both;
    animation-delay: inherit;
  }

  .process-diagram > div:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--rail) - 1px);
    top: 50%;
    width: 2px;
    height: 100%;
    background:
      linear-gradient(var(--water-light) 0 5px, transparent 5px) 0 0 / 100% 16px repeat-y,
      var(--water);
    box-shadow: 0 0 0 3px rgb(78 149 144 / 12%);
    transform-origin: top;
    animation:
      channel-fill 0.45s var(--ease) 0.3s both,
      channel-flow 0.8s linear infinite;
  }

  .process-diagram > div:nth-child(2)::after { animation-delay: 0.5s, 0s; }

  .process-diagram > div:last-child::before {
    background: var(--water-light);
    box-shadow: 0 0 0 4px rgb(166 216 205 / 18%);
  }

  .process-diagram > div:last-child span::before {
    content: "";
    position: absolute;
    left: calc(var(--rail) - 6px);
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--water-light);
    animation: ripple 2.4s var(--ease) 0.8s infinite both;
  }

  .process-diagram > div:last-child b::after {
    content: "✓";
    position: absolute;
    right: 4px;
    top: 50%;
    translate: 0 -50%;
    font-size: 14px;
    color: var(--water-light);
  }

  .process-diagram::before,
  .process-diagram::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: calc(var(--rail) - 3px);
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #e6f6f1;
    box-shadow: 0 0 10px 2px rgb(166 216 205 / 55%);
    animation: drop-through 2.6s cubic-bezier(.45, 0, .55, 1) 0.9s infinite both;
  }

  .process-diagram::after { animation-delay: 2.2s; }

  [data-workflow-view="before"] > div:nth-child(2) {
    padding-right: 48px;
    background:
      linear-gradient(90deg, rgb(205 82 42 / 16%), rgb(205 82 42 / 0%) 75%),
      linear-gradient(rgb(255 255 255 / 8%), rgb(255 255 255 / 8%)) 40px 100% / calc(100% - 40px) 1px no-repeat;
  }

  [data-workflow-view="before"] > div:nth-child(2)::before {
    left: calc(var(--rail) - 8px);
    top: calc(50% - 8px);
    width: 16px;
    height: 16px;
    background: var(--orange);
    box-shadow: none;
    animation:
      node-in 0.4s var(--ease) 0.12s both,
      backlog 2.6s ease-in-out 1s infinite;
  }

  [data-workflow-view="before"] > div:nth-child(2) span::before {
    content: "";
    position: absolute;
    left: calc(var(--rail) - 8px);
    top: calc(50% - 8px);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--orange);
    animation: ripple 2.2s var(--ease) 1s infinite both;
  }

  [data-workflow-view="before"] > div:nth-child(2) b::after {
    content: "";
    position: absolute;
    right: 12px;
    top: calc(50% - 2px);
    width: 15px;
    height: 11px;
    border: 1px solid #d98a62;
    border-radius: 1px;
    background: #2c4433;
    box-shadow:
      -4px -4px 0 -1px #2c4433, -4px -4px 0 0 rgb(217 138 98 / 70%),
      -8px -8px 0 -1px #2c4433, -8px -8px 0 0 rgb(217 138 98 / 40%);
    animation: pile-up 2.6s ease-in-out 1s infinite both;
  }

  [data-workflow-view="before"] > div:first-child::after {
    background:
      linear-gradient(var(--water-light) 0 4px, transparent 4px) 0 0 / 100% 16px repeat-y,
      #3d6a5f;
    animation:
      channel-fill 0.45s var(--ease) 0.3s both,
      channel-flow 2.2s linear infinite;
  }

  [data-workflow-view="before"] > div:nth-child(2)::after {
    background:
      repeating-linear-gradient(rgb(255 255 255 / 16%) 0 3px, transparent 3px 8px);
    animation: channel-fill 0.45s var(--ease) 0.5s both;
  }

  [data-workflow-view="before"] > div:last-child::before {
    background: var(--dark);
    box-shadow: inset 0 0 0 1.5px #d98a62;
  }

  [data-workflow-view="before"] > div:last-child span::before,
  [data-workflow-view="before"] > div:last-child b::after { content: none; }

  [data-workflow-view="before"] > div:last-child b {
    text-decoration: underline wavy rgb(217 138 98 / 75%);
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
  }

  [data-workflow-view="before"]::before { animation-name: drop-stall; animation-duration: 3s; }

  [data-workflow-view="before"]::after {
    background: #d98a62;
    box-shadow: 0 0 8px 1px rgb(205 82 42 / 45%);
    animation: drop-leak 3s ease-in 1.8s infinite both;
  }

  .industry-content h3 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.035em;
  }

  .workflow-description { font-size: 13px; line-height: 1.85; min-height: 100px; }

  .workflow-evidence {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
    padding: 15px 18px 16px;
    background: rgb(255 254 249 / 55%);
    border: 1px solid #dde1d5;
    border-left: 2px solid var(--orange);
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
  }

  .workflow-evidence + .workflow-evidence { margin-top: 10px; }

  .workflow-evidence small {
    order: -1;
    font: 500 9px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--orange);
  }

  .panel-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    border-top: 1px solid #ccd3c2;
    margin-top: 24px;
    padding-top: 20px;
  }

  .team-question .overline,
  .workflow-measure .overline {
    font-size: 9px;
    letter-spacing: 0.035em;
    color: #536549;
    margin-bottom: 9px;
  }

  .team-question > p:last-child { font-size: 13px; line-height: 1.7; color: var(--ink); }

  .workflow-measure > p:last-child { font-size: 12px; line-height: 1.8; }

  .industry-content > .text-link { margin-top: 22px; font-size: 11px; }

  @media (max-width: 1150px) {
    .industry-panel { gap: 42px; }
  }

  @media (max-width: 950px) {
    .industry-panel { gap: 28px; grid-template-columns: 0.85fr 1fr; }
    .industry-visual { padding: 22px; }
    .industry-content h3 { font-size: 26px; }
    .workflow-switch button { font-size: 10px; padding: 8px; }
    .process-diagram > div { padding-right: 24px; grid-template-columns: 24px 1fr; }
    [data-workflow-view="before"] > div:nth-child(2) { padding-right: 44px; }
    .process-diagram b { font-size: 13px; }
    .panel-meta { grid-template-columns: 1fr; gap: 20px; }
    .tabs button { font-size: 10px; }
  }

  @media (max-width: 700px) {
    .tabs {
      display: flex;
      gap: 24px;
      margin: 30px -20px 0;
      padding-inline: 20px;
      scroll-padding-inline: 20px;
      overflow-x: auto;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
      mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 44px), transparent);
    }

    .tabs::-webkit-scrollbar { display: none; }

    .tabs button {
      flex: none;
      scroll-snap-align: start;
      white-space: nowrap;
      font-size: 12px;
      padding: 16px 0 15px;
      gap: 9px;
    }

    .industry-panel { grid-template-columns: 1fr; padding-top: 26px; gap: 27px; }
    .industry-visual { position: relative; top: auto; padding: 22px 20px 24px; }
    .process-diagram { margin-top: 22px; }
    .process-diagram > div { padding-block: 16px; }
    .process-diagram b { font-size: 14px; }
    .industry-content h3 { font-size: 28px; line-height: 1.25; }
    .workflow-switch button { font-size: 12px; padding: 8px 11px; }
    .workflow-description { font-size: 14px; min-height: 0; }
    .team-question > p:last-child { font-size: 14px; }
    .workflow-measure > p:last-child { font-size: 13px; }
    .industry-content > .text-link { font-size: 12px; }
  }

  @media (max-width: 380px) {
    .tabs { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
    .workflow-switch button { font-size: 11px; padding: 8px 9px; }
  }

  /* ── Calculator ── */
  .calculator { background: #e7eadf; }

  .calculator-layout {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 100px;
  }

  .calculator-copy > p:not(.eyebrow) {
    margin-top: 24px;
    font-size: 14px;
    max-width: 390px;
    line-height: 1.8;
  }

  .calc-controls {
    margin-top: 28px;
    display: grid;
    gap: 16px;
  }

  .calc-controls > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 12px;
  }

  .input-wrap {
    display: flex;
    align-items: center;
    background: #f6f7ef;
    border: 1px solid #cbd3c2;
    min-width: 113px;
    width: 113px;
    border-radius: 3px;
    padding-right: 12px;
  }

  .input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: none;
    padding: 10px 6px 10px 13px;
    font-size: 14px;
    color: var(--ink);
    border-radius: 3px;
    -moz-appearance: textfield;
  }

  .input-wrap input::-webkit-inner-spin-button { appearance: none; }
  .input-wrap input:focus-visible { outline: none; }

  .input-wrap:focus-within {
    outline: 3px solid var(--orange);
    outline-offset: 5px;
  }

  .input-wrap > span { font-size: 10px; color: #87917f; }

  .range-label {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
  }

  .range-label output { font-size: 13px; font-weight: 500; }

  input[type="range"] {
    width: 100%;
    accent-color: var(--orange);
    margin: 0;
    height: 19px;
    cursor: pointer;
  }

  .calculator-result {
    background: var(--white);
    border: 1px solid #d3dac8;
    border-radius: 3px;
    padding: 33px 35px;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .calc-result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .calc-result-top .overline { font-size: 8px; color: #7e8a74; }
  .result-spark { font-size: 26px; color: var(--orange); line-height: 1; }

  .hours-number {
    font-size: clamp(52px, 7vw, 103px);
    line-height: 1.2;
    letter-spacing: -0.07em;
    margin-top: 14px;
    color: var(--orange);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
  }

  .hours-label { font-size: 17px; margin-top: -3px; color: #6b7861; }

  .money-result {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e1e5d9;
    padding-top: 21px;
    margin-top: 23px;
    gap: 4px;
  }

  .money-result > span   { font-size: 11px; color: #7f8a75; }
  .money-result strong   { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; overflow-wrap: anywhere; }
  .money-result small    { font-size: 11px; letter-spacing: 0; color: #85907b; }

  .range-scale {
    position: relative;
    height: 24px;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: .02em;
    color: #87917f;
  }
  .range-scale span {
    position: absolute;
    top: 0;
    padding-top: 9px;
    transform: translateX(-50%);
  }
  .range-scale span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 5px;
    background: #b9c0b0;
  }
  .range-scale span:first-child { transform: none; }
  .range-scale span:first-child::before { left: 0; }
  .range-scale span:last-child { transform: translateX(-100%); }
  .range-scale span:last-child::before { left: auto; right: 0; }

  .range-help {
    margin-top: 10px;
    min-height: 3.4em;
    font-size: 12px;
    line-height: 1.7;
    color: #5d6b60;
  }

  .time-alt {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.7;
    color: #6b7861;
  }
  .time-alt strong { font-weight: 600; color: var(--ink); }

  .capacity-art {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 42px;
    margin-top: 18px;
  }

  .capacity-art span {
    display: block;
    flex: 1;
    height: calc(12px + var(--i) * 0.8px);
    background: #e5e8dc;
    transform-origin: bottom;
  }

  .capacity-art span:nth-child(-n+18) { background: #d7774b; }

  .calc-note {
    font-size: 9px;
    line-height: 1.8;
    margin-top: 23px;
    color: #818b78;
  }

  .calculator-result > .text-link {
    font-size: 11px;
    margin-top: auto;
    padding-top: 22px;
  }

  .estimate-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-top: 22px;
  }

  .estimate-choice input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: var(--orange);
  }

  .brief-estimate-row {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .brief-estimate-row .brief-estimate-summary { margin-right: 0; }

  .brief-estimate-link {
    display: inline-block;
    margin-top: 8px;
    border-bottom: 1px solid #b9b6a5;
    font-size: 11px;
    color: #617052;
    transition: color var(--dur-base), border-color var(--dur-base);
  }

  .brief-estimate-link:hover { color: var(--orange); border-color: var(--orange); }

  .brief-estimate-summary {
    margin: 8px 0 0 26px;
    padding-left: 12px;
    border-left: 2px solid var(--orange);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.7;
  }

  @media (max-width: 1150px) {
    .calculator-layout { gap: 60px; }
  }

  @media (max-width: 950px) {
    .calculator-layout { gap: 35px; }
    .calculator-result { padding: 28px; }
    .hours-number { font-size: 90px; }
  }

  @media (max-width: 700px) {
    .calculator-layout { grid-template-columns: 1fr; gap: 32px; }
    .calculator-copy > p:not(.eyebrow) { font-size: 13px; }
    .calculator-result { padding: 28px; }
    .hours-number { font-size: clamp(52px, 18vw, 99px); }
    .calc-note { font-size: 10px; }
    .money-result strong { font-size: 25px; }
  }

  /* ── Delivery / Approach ── */
  .delivery {
    background: var(--dark);
    color: var(--paper);
  }

  .delivery .section-description { color: #b6c3ad; }

  .delivery-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #50634a;
    border-bottom: 1px solid #50634a;
    margin-bottom: 35px;
    gap: 24px;
  }

  .delivery-tabs button {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #bdc8b3;
    text-align: left;
    padding: 22px 0;
    font-size: 14px;
    line-height: 1.5;
    transition: color var(--dur-base);
  }

  .delivery-tabs button > span        { font: 10px/1.5 monospace; color: #a9b89c; }
  .delivery-tabs button > svg         { width: 19px; height: 19px; margin-left: auto; color: #8f9f81; flex-shrink: 0; }
  .delivery-tabs button[aria-selected="true"] { color: #fffaf0; border-bottom-color: #e19057; }
  .delivery-tabs button[aria-selected="true"] > span { color: #eda369; }
  .delivery-tabs button:hover         { color: #fffaf0; }

  .delivery-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    min-height: 300px;
  }

  .delivery-explanation h3 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 470px;
    margin-bottom: 20px;
  }

  .delivery-explanation > p { font-size: 14px; line-height: 1.85; color: #b6c3ad; }

  .delivery-review {
    margin-top: 26px;
    border-left: 2px solid #c28251;
    padding-left: 18px;
  }

  .delivery-review .overline,
  .delivery-outputs > .overline { color: #c0cfb3; font-size: 9px; letter-spacing: 0.05em; }

  .delivery-review p { font-size: 13px; line-height: 1.8; color: #dde5d4; margin-top: 8px; }

  .delivery-outputs {
    padding: 25px 28px;
    background: #2a4230;
    border: 1px solid #4c6343;
    border-radius: 3px;
    align-self: start;
  }

  .delivery-outputs ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
  }

  .delivery-outputs li {
    display: flex;
    gap: 13px;
    padding: 16px 0;
    border-top: 1px solid #4d6344;
    font-size: 14px;
    line-height: 1.7;
    color: #e3e9db;
  }

  .delivery-outputs li > span { color: #dda373; font-size: 12px; flex-shrink: 0; padding-top: 2px; }

  .technical-details { border-top: 1px solid #50634a; margin-top: 34px; }

  .technical-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0 0;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
    color: #cbd7c0;
  }

  .technical-details summary::-webkit-details-marker { display: none; }
  .technical-details summary > span { font-size: 22px; color: #c6aa85; }
  .technical-details[open] summary > span { transform: rotate(45deg); }

  .technical-details > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    padding-top: 22px;
  }

  .technical-details p { font-size: 13px; line-height: 1.85; color: #b6c3ad; }

  @media (max-width: 1150px) {
    .delivery-panel { gap: 42px; }
    .delivery-explanation h3 { font-size: 28px; }
  }

  @media (max-width: 950px) {
    .delivery-tabs { gap: 20px; }
    .delivery-tabs button { font-size: 12px; gap: 10px; }
    .delivery-panel { gap: 30px; min-height: 365px; }
    .delivery-outputs { padding: 21px; }
    .delivery-outputs li { font-size: 12px; }
    .delivery-explanation > p { font-size: 13px; }
    .delivery-explanation h3 { font-size: 26px; }
  }

  @media (max-width: 700px) {
    .delivery-tabs { grid-template-columns: 1fr; gap: 0; margin-bottom: 28px; }

    .delivery-tabs button {
      font-size: 14px;
      padding: 16px 0;
      border-bottom: 1px solid #50634a;
      gap: 17px;
    }

    .delivery-tabs button:last-child     { border-bottom-color: transparent; }
    .delivery-tabs button[aria-selected="true"] { border-bottom-color: #e19057; }

    .delivery-panel { grid-template-columns: 1fr; gap: 25px; min-height: 0; }
    .delivery-explanation h3 { font-size: 28px; }
    .delivery-explanation > p { font-size: 14px; }
    .delivery-outputs { padding: 22px; }
    .delivery-outputs li { font-size: 14px; }
    .delivery-review p { font-size: 14px; }
    .technical-details > div { grid-template-columns: 1fr; gap: 20px; }
    .technical-details p { font-size: 13px; }
    .technical-details summary { font-size: 14px; }
  }

  /* ── FAQ ── */
  .faq {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 75px;
  }

  .faq-title h2 { font-size: 38px; }
  .faq-title .eyebrow { font-size: 9px; }

  .faq-list details { border-top: 1px solid var(--line); }
  .faq-list details:last-child { border-bottom: 1px solid var(--line); }

  .faq-list summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 21px 0;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.6;
  }

  .faq-list summary::-webkit-details-marker { display: none; }

  .faq-list summary > span {
    font-size: 22px;
    color: #8d9783;
    line-height: 1;
    flex-shrink: 0;
    font-weight: 300;
    transition: transform var(--dur-base), color var(--dur-base);
  }

  .faq-list details[open] summary > span {
    transform: rotate(45deg);
    color: var(--orange);
  }

  .faq-list details > p { font-size: 13px; line-height: 1.8; padding: 0 30px 22px 0; }

  .faq-list summary { transition: color var(--dur-base); }
  .faq-list summary:hover,
  .faq-list details[open] summary { color: var(--orange); }

  .faq-list details { interpolate-size: allow-keywords; }

  .faq-list details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--dur-slow) var(--ease), content-visibility var(--dur-slow) allow-discrete;
  }

  .faq-list details[open]::details-content { block-size: auto; }

  .faq-list details[open] > p { animation: faq-reveal var(--dur-slow) var(--ease); }

  @media (max-width: 950px) {
    .faq { gap: 40px; }
    .faq-title h2 { font-size: 32px; }
  }

  @media (max-width: 700px) {
    .faq { grid-template-columns: 1fr; gap: 27px; }
    .faq-title h2 { font-size: 34px; }
    .faq-list summary { font-size: 14px; gap: 15px; padding: 20px 0; }
    .faq-list details > p { font-size: 13px; }
  }

  /* ── Contact ── */
  .contact-section {
    background: #eee4d7;
    border-top: 1px solid #e6dac9;
  }

  .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
  }

  .contact-copy h2   { font-size: 42px; }
  .contact-intro     { margin-top: 25px; max-width: 480px; font-size: 14px; color: #7f7a6b; line-height: 1.8; }
  .contact-phones    { margin-top: 32px; max-width: 520px; }

  .phone-row {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 16px 0;
    border-top: 1px solid #d5cbb9;
  }

  .phone-row:last-child { border-bottom: 1px solid #d5cbb9; }

  .phone-locale {
    font: 9px/1 monospace;
    border: 1px solid #c7bea9;
    padding: 8px;
    color: #827b68;
  }

  .phone-row.current .phone-locale { color: #a65131; border-color: #b99070; }

  .phone-row > div { display: flex; flex-direction: column; gap: 2px; }
  .phone-row > div > span:first-child { font-size: 11px; color: #6f715f; }

  .phone-number    { font-size: 18px; letter-spacing: -0.02em; }
  .mock-phone-note { font-size: 8px; color: #857460; }

  .phone-row > span:last-child { margin-left: auto; color: #978973; font-size: 19px; }

  .contact-email {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 23px;
    font-size: 16px;
  }

  .brief-form {
    background: #faf7ef;
    border: 1px solid #e4dacb;
    border-radius: 3px;
    padding: 29px 31px;
    align-self: start;
  }

  .brief-heading { display: flex; align-items: center; gap: 11px; }
  .brief-heading > svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; }
  .brief-heading h3 { font-size: 22px; letter-spacing: -0.035em; }

  .brief-form > p {
    font-size: 11px;
    line-height: 1.8;
    margin-top: 12px;
    margin-bottom: 22px;
    color: #8c8677;
  }

  .brief-form label { display: block; font-size: 11px; margin-bottom: 7px; margin-top: 16px; }

  .brief-form input,
  .brief-form textarea {
    display: block;
    width: 100%;
    background: #fffcf6;
    border: 1px solid #d8d4c7;
    border-radius: 2px;
    color: var(--ink);
    padding: 10px 11px;
    font-size: 12px;
    line-height: 1.7;
    transition: border-color var(--dur-base);
  }

  .brief-form input:focus,
  .brief-form textarea:focus { border-color: var(--orange); }

  .brief-form textarea { resize: vertical; min-height: 95px; }

  @media (min-width: 701px) {
    .brief-form {
      align-self: stretch;
      display: flex;
      flex-direction: column;
    }

    .brief-form textarea { flex: 1 1 auto; }
  }

  .brief-form input::placeholder,
  .brief-form textarea::placeholder { color: #a6a08f; font-size: 11px; }

  .brief-form .estimate-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
  }

  .brief-form .estimate-choice input {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
  }

  .brief-form .button { margin-top: 24px; width: 100%; font-size: 11px; padding: 14px 16px; }

  .brief-form .form-status { margin: 12px 0 0; color: #536844; }
  .brief-form .form-status:empty { display: none; }

  .download-copy {
    display: block;
    margin: 15px auto 0;
    border: 0;
    border-bottom: 1px solid #b9b6a5;
    background: none;
    padding: 0 0 3px;
    font-size: 10px;
    color: #617052;
    transition: color var(--dur-base), border-color var(--dur-base);
  }

  .download-copy:hover { color: var(--orange); border-color: var(--orange); }

  @media (max-width: 1150px) {
    .contact-layout { gap: 60px; }
    .contact-copy h2 { font-size: 37px; }
  }

  @media (max-width: 950px) {
    .contact-layout { gap: 35px; }
    .contact-copy h2 { font-size: 34px; }
  }

  @media (max-width: 700px) {
    .contact-layout { grid-template-columns: 1fr; gap: 33px; }
    .contact-copy h2 { font-size: 35px; }
    .contact-intro { font-size: 14px; }
    .contact-phones { max-width: none; }
    .phone-row { padding: 17px 0; }
    .brief-form { padding: 25px; }
    .brief-heading h3 { font-size: 23px; }
    .brief-form > p { font-size: 12px; }
    .brief-form label { font-size: 12px; }
    .brief-form input,
    .brief-form textarea { font-size: 16px; }
    .brief-form input::placeholder,
    .brief-form textarea::placeholder { font-size: 12px; }
    .brief-form .button { font-size: 12px; }
  }

  @media (max-width: 380px) {
    .brief-form { padding: 20px; }
    .contact-copy h2 { font-size: 31px; }
  }

  /* ── Standards ── */
  .standards { border-top: 1px solid var(--line); }

  .standards-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-block: 26px;
  }

  .standards-inner .overline { color: var(--muted); flex-shrink: 0; }

  .standards-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 56px;
  }

  .standards-list li { display: flex; align-items: center; gap: 14px; }
  .standards-list strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
  .standards-note { font-size: 12px; color: var(--muted); }

  @media (max-width: 950px) {
    .standards-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  }

  @media (max-width: 700px) {
    .standards-list { flex-direction: column; gap: 16px; }
  }

  /* ── Security and team ── */
  .security,
  .team { border-top: 1px solid var(--line); }

  .team-label { color: var(--orange); margin-bottom: 18px; }

  .record-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
  }

  .record-list li {
    display: grid;
    grid-template-columns: 230px 1fr 170px;
    gap: 40px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
  }

  .record-figure > span:first-child {
    display: block;
    font-size: 52px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.055em;
    transition: color var(--dur-base);
  }

  .record-figure small {
    margin-left: 3px;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--orange);
  }

  .record-figure .overline {
    display: block;
    margin-top: 12px;
    color: var(--muted);
  }

  .record-list li:hover .record-figure > span:first-child { color: var(--orange); }

  .record-body h3 {
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
  }

  .record-body p { font-size: 14px; line-height: 1.75; max-width: 560px; }

  .record-tag { justify-self: end; color: var(--orange); padding-top: 6px; }

  @media (max-width: 950px) {
    .record-list li { grid-template-columns: 170px 1fr; gap: 14px 30px; }
    .record-figure > span:first-child { font-size: 42px; }
    .record-tag { grid-column: 2; grid-row: 1; justify-self: start; padding-top: 0; }
    .record-body { grid-column: 2; }
    .record-figure { grid-row: span 2; }
  }

  @media (max-width: 700px) {
    .record-list li { grid-template-columns: 1fr; padding: 26px 0; }
    .record-tag, .record-body, .record-figure { grid-column: 1; grid-row: auto; }
  }

  .security-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 75px;
  }

  .security-intro {
    align-self: start;
    position: sticky;
    top: 120px;
  }

  .security-intro p {
    margin-top: 24px;
    max-width: 390px;
    font-size: 14px;
    line-height: 1.8;
  }

  .security-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .security-list li {
    display: flex;
    gap: 22px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
  }

  .security-list li:last-child { border-bottom: 1px solid var(--line); }

  .security-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #f7e2d7;
    color: var(--orange);
    border-radius: 3px;
  }

  .security-icon svg { width: 21px; height: 21px; }

  .security-list h3 {
    font-size: 19px;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
  }

  .security-list p { font-size: 14px; line-height: 1.75; }

  @media (max-width: 950px) {
    .security-layout { grid-template-columns: 1fr; gap: 35px; }
    .security-intro { position: static; }
  }

  @media (max-width: 700px) {
    .security-list li { gap: 16px; padding: 22px 0; }
    .security-icon { width: 36px; height: 36px; }
  }

  /* ── Footer ── */
  .footer { padding-top: 45px; padding-bottom: 25px; }

  .footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 35px;
  }

  .footer-top .brand { font-size: 25px; }
  .footer-top p {
    font-size: 11px;
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.7;
  }

  .back-top { display: flex; align-items: center; gap: 15px; font-size: 11px; }

  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 23px;
    gap: 20px;
    font-size: 9px;
    color: #8a9182;
  }

  .footer-bottom p { font-size: 9px; }

  .privacy-button {
    background: none;
    border: 0;
    padding: 0;
    font-size: 9px;
    color: #7e8974;
    transition: color var(--dur-base);
  }

  .privacy-button:hover { color: var(--orange); }

  @media (max-width: 700px) {
    .footer { padding-top: 35px; }
    .footer-top { align-items: flex-start; padding-bottom: 27px; }
    .footer-top .brand { font-size: 25px; }
    .footer-top p { max-width: 245px; font-size: 11px; }
    .back-top { font-size: 10px; gap: 8px; padding-top: 5px; }
    .footer-bottom { flex-wrap: wrap; row-gap: 15px; column-gap: 20px; }
    .footer-bottom > p { flex-basis: 100%; }
    .footer-bottom > span { margin-right: auto; }
  }

  /* ── Privacy dialog ── */
  dialog {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink);
    padding: 40px;
    max-width: 530px;
    width: calc(100% - 40px);
    box-shadow: 0 20px 100px rgb(0 0 0 / 20%);
  }

  dialog::backdrop {
    background: rgb(21 37 28 / 60%);
    backdrop-filter: blur(3px);
  }

  dialog h2    { font-size: 30px; margin-bottom: 22px; }
  dialog p     { font-size: 14px; line-height: 1.8; }

  .dialog-close {
    position: absolute;
    top: 8px;
    right: 13px;
    background: none;
    border: 0;
    font-size: 27px;
    color: #718065;
  }

  @media (max-width: 700px) {
    dialog { padding: 35px 25px; }
    dialog h2 { font-size: 26px; }
  }

  /* ── River ── */
  .river {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
  }

  .river path {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .river .river-bed   { stroke: rgb(78 149 144 / 9%); }
  .river .river-water { stroke: rgb(78 149 144 / 70%); }

  .river .river-current {
    stroke: rgb(166 216 205 / 45%);
    stroke-width: 1.5;
    stroke-dasharray: 10 46;
    animation: river-current 2.6s linear infinite;
  }

  .river-node circle {
    fill: var(--paper);
    stroke: rgb(78 149 144 / 45%);
    stroke-width: 1.5;
    transition: fill var(--dur-slow), stroke var(--dur-slow);
  }

  .river-node.is-end .river-dot { transform: scale(1.4); }

  .river-node.is-wet circle { fill: var(--water); stroke: var(--water); }

  .river-node .river-ripple {
    fill: none;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
  }

  .river-node.is-wet .river-ripple { fill: none; animation: ripple 1.6s var(--ease); }
  .river-node.is-end.is-wet .river-ripple { animation: ripple 2.4s var(--ease) infinite; }

  .river-head { transition: opacity var(--dur-slow); }
  .river-head circle { fill: var(--water-light); }
  .river-head .river-glow { fill: rgb(78 149 144 / 18%); }
  .river.is-full .river-head { opacity: 0; }

  @media (max-width: 700px) {
    .river path { stroke-width: 2.5; }
    .river .river-current { stroke-width: 1; }
    .river-dot { transform: scale(0.7); }
    .river-node.is-end .river-dot { transform: scale(1); }
    .river-drop { transform: scale(0.75); }
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@layer animations {

  @keyframes river-current {
    to { stroke-dashoffset: -56; }
  }

  @keyframes ripple {
    from { opacity: 0.8; transform: scale(1); }
    to   { opacity: 0;   transform: scale(3.4); }
  }

  @keyframes step-in {
    from { opacity: 0; transform: translateY(8px); }
  }

  @keyframes channel-fill {
    from { transform: scaleY(0); }
  }

  @keyframes channel-flow {
    to { background-position: 0 14px, 0 0; }
  }

  @keyframes channel-drip {
    from { background-position: 0 -10px, 0 0; }
    to   { background-position: 0 34px, 0 0; }
  }

  @keyframes node-in {
    from { transform: scale(0); }
  }

  @keyframes drop-through {
    0%   { top: 16.667%; opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { top: 83.333%; opacity: 0; }
  }

  @keyframes drop-stall {
    0%   { top: 16.667%; opacity: 0; }
    10%  { opacity: 1; }
    45%  { top: 50%; opacity: 1; }
    60%, 100% { top: 50%; opacity: 0; }
  }

  @keyframes drop-leak {
    0%, 30% { top: 50%; opacity: 0; }
    40%     { opacity: 1; }
    90%     { opacity: 1; }
    100%    { top: 83.333%; opacity: 0; }
  }

  @keyframes pile-up {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50%      { transform: translateY(-2px); opacity: 1; }
  }

  @keyframes backlog {
    0%, 100% { box-shadow: 0 0 0 0 rgb(205 82 42 / 0%); }
    50%      { box-shadow: 0 0 0 5px rgb(205 82 42 / 22%); }
  }

  /* Route march — "ants" animate along the warehouse route */
  @keyframes faq-reveal {
    from { opacity: 0; transform: translateY(-8px); }
  }

  @keyframes route-march {
    to { stroke-dashoffset: -24; }
  }

  .flow-route {
    animation: route-march 1.5s linear infinite;
  }

  /* Calculator number flash on update */
  @keyframes countup {
    from { opacity: 0.55; transform: translateY(6px); }
    to   { opacity: 1;    transform: translateY(0); }
  }

  .hours-number.counting {
    animation: countup 0.3s var(--ease) forwards;
  }

  /* ── Scroll reveal system ──────────────────────────────── */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity  var(--dur-slow) var(--ease),
      transform var(--dur-slow) var(--ease);
    transition-delay: var(--delay, 0s);
  }

  .js [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Capacity bars grow in when calculator result is revealed */
  .js .capacity-art span {
    transform: scaleY(0);
    transform-origin: bottom;
    transition:
      transform  0.4s var(--ease) calc(var(--i) * 18ms),
      background 0.25s ease;
  }

  .js .calculator-result.revealed .capacity-art span {
    transform: scaleY(1);
  }

  /* ── Reduced motion ─────────────────────────────────────── */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .js [data-reveal] {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .js .capacity-art span {
      transform: scaleY(1);
    }
  }
}
