  :root {
    --bg: #E4E5E8;
    --lit: #F8F8F9;
    --ink: #0E0F12;
    --soft: #4A4D55;
    --line: rgba(14, 15, 18, 0.28);
    --bg-0: rgba(228, 229, 232, 0);
    /* Colour is used for one thing only: telling the drawn layers apart. */
    --cu: #B5621C;      /* die-to-die wiring, copper */
    --mem: #1B7F5E;     /* memory stacks */
    --gutter: clamp(20px, 5vw, 72px);
    --read: "STIX Two Text", "STIX Two", "Times New Roman", serif;
    --draw: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
    --bump: "Doto", "Barlow Semi Condensed", sans-serif;   /* letters made of dots, as a die's face is made of bumps */
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #121214; --lit: #2B2C32; --ink: #F3F3F4; --soft: #A9ACB4; --line: rgba(243, 243, 244, 0.3); --bg-0: rgba(18, 18, 20, 0);
            --cu: #E39A58; --mem: #58C9A0; }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--read);
    font-size: 1.1875rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  ::selection { background: var(--ink); color: var(--bg); }
  a {
    color: inherit; text-decoration: underline 1px var(--line); text-underline-offset: 0.24em;
    transition: text-decoration-color 0.3s ease, opacity 0.3s ease, background-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  a:hover { text-decoration-color: currentColor; }
  a:focus-visible, input:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; border-radius: 3px; }
  /* Lettering for everything that belongs to a drawing: callouts, controls, figures and tables. */
  .draw { font-family: var(--draw); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.012em; }

  .top {
    position: absolute; inset: 0 0 auto 0; z-index: 4;
    display: flex; justify-content: space-between; align-items: center;
    padding: 26px var(--gutter);
    font-size: 1.25rem;
  }
  .top a { text-decoration: none; }
  .top .name:hover { opacity: 0.72; }
  .top nav { display: flex; gap: clamp(1.1rem, 2.6vw, 2.4rem); }
  .top nav a {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    padding-bottom: 2px;
  }
  .top nav a:hover, .top nav a[aria-current] { background-size: 100% 1px; }
  .top nav a { white-space: nowrap; }
  @media (max-width: 599px) {
    .top { font-size: 1.0625rem; }
    .wordmark { font-size: 1.4rem; }
  }
  .top .name { display: block; line-height: 0; }
  /* The mark is a field of bumps, five by five, swelling toward the centre. The header uses its small cut
     (thicker outer dots); brand/torr-logo.html has all three cuts and the rule for each. */
  .wordmark { display: inline-flex; align-items: center; gap: 0.62em; font-family: "Archivo", sans-serif; font-weight: 500; font-stretch: 118%; font-size: 1.8rem; line-height: 1; letter-spacing: 0.14em; white-space: nowrap; }
  .wordmark svg { width: 1.5em; height: 1.5em; fill: currentColor; flex: none; }

  /* The product stays on screen while the text scrolls past it, and scrolling builds it. */
  .build { position: relative; }
  .stage {
    position: sticky; top: 0;
    height: 100svh;
    background: radial-gradient(40% 52% at 71.5% 52%, var(--lit) 0%, transparent 72%);
    overflow: hidden;
  }
  .stage canvas { display: block; width: 100%; height: 100%; opacity: 0; }
  .story { position: relative; z-index: 1; margin-top: -100svh; padding: 0 var(--gutter); pointer-events: none; }
  .panel { min-height: 86svh; width: min(31rem, 37vw); display: flex; flex-direction: column; justify-content: center; }
  .panel > * { pointer-events: auto; }
  .panel.first { min-height: 100svh; width: min(42rem, 43vw); }
  /* Headlines are set in dots. They arrive as thin square pads of paste and reflow into round bumps. */
  @property --rond { syntax: "<number>"; inherits: true; initial-value: 100; }
  @property --wt { syntax: "<number>"; inherits: true; initial-value: 900; }
  h1, h2 { margin: 0; font-family: var(--bump); font-weight: 900; font-variation-settings: "wght" var(--wt), "ROND" var(--rond); text-wrap: balance; }
  h1 { font-size: clamp(2.6rem, 5.6vw, 5.9rem); line-height: 0.96; letter-spacing: -0.045em; }
  /* The font's own full stop is a cross of five dots and reads as a plus sign, so the stop is drawn as one bump. */
  .stop { display: inline-block; width: 0.09em; height: 0.09em; margin-left: 0.035em; border-radius: 50%; background: currentColor; overflow: hidden; text-indent: 2em; }
  @keyframes reflow { from { --rond: 0; --wt: 180; opacity: 0.35; } 55% { --rond: 0; --wt: 900; opacity: 1; } to { --rond: 100; --wt: 900; } }
  @media (prefers-reduced-motion: no-preference) {
    h1 { animation: reflow 1.9s cubic-bezier(0.3, 0, 0.2, 1) 0.15s both; }
    @supports (animation-timeline: view()) {
      h2 { animation: reflow linear both; animation-timeline: view(); animation-range: entry 10% cover 38%; }
    }
  }
  .panel p { margin: 0; font-size: clamp(1.1875rem, 1.55vw, 1.4375rem); line-height: 1.5; text-wrap: pretty; }
  .panel p + p { margin-top: 1em; }
  .panel h2 { font-size: clamp(1.7rem, 2.9vw, 2.9rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 0.55em; }
  /* Each paragraph comes up to full strength as it reaches the middle of the screen and falls back as it leaves. */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .build .panel:not(.first) > p, .build .panel > .unit {
        animation: text-in linear both, text-out linear both;
        animation-timeline: view(), view();
        animation-range: cover 8% cover 34%, cover 70% cover 96%;
      }
      @media (max-width: 899px) {   /* on a phone only the part of the screen below the product counts */
        .build .panel:not(.first) > p, .build .panel > .unit { animation-timeline: view(block 54svh 0), view(block 54svh 0); animation-range: cover 0% cover 30%, cover 82% cover 100%; }
      }
      .build .panel:last-child > p { animation-name: text-in, none; }   /* the closing lines stay up at the end of the page */
    }
  }
  @keyframes text-in { from { opacity: 0.1; } to { opacity: 1; } }
  @keyframes text-out { to { opacity: 0.1; } }

  @media (max-width: 899px) {
    .stage { height: 54svh; z-index: 2; overflow: visible; background: radial-gradient(72% 62% at 50% 56%, var(--lit) 0%, transparent 74%), var(--bg); }
    /* Text slides under the pinned product; a short soft edge keeps lines from being cut in half. */
    .stage::after { content: ""; position: absolute; inset: 100% 0 auto 0; height: 2.25rem; background: linear-gradient(var(--bg), var(--bg-0)); pointer-events: none; }
    .story { margin-top: 0; }
    .panel { width: auto; min-height: 0; justify-content: flex-start; padding-bottom: 20svh; }
    .panel.first { width: auto; min-height: 46svh; justify-content: center; padding-bottom: 3svh; }
    .panel:last-child { padding-bottom: 12svh; }
  }

  .team { padding: clamp(64px, 10vw, 130px) 0 clamp(64px, 10vw, 130px); }
  .team p { margin: 0; padding: 0 var(--gutter); font-size: clamp(1.1875rem, 1.55vw, 1.4375rem); line-height: 1.5; color: var(--soft); }
  /* The company names slide past in a loop. Without JavaScript, or with reduced motion, they sit in a plain row. */
  .slide { overflow: hidden; margin-top: 1.15em; }
  .firms {
    list-style: none; margin: 0; padding: 0 var(--gutter);
    display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.55em;
    font-weight: 600; font-size: clamp(2.4rem, 6.6vw, 5.75rem); line-height: 1.12; letter-spacing: -0.04em; white-space: nowrap;
  }
  .firms li { padding-right: 1.3em; line-height: 0; }
  .logo { display: block; height: calc(var(--h, 0.45) * 1em); width: auto; fill: currentColor; }
  .slide.run { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
  /* Each name slides on its own and wraps round out of sight, so there is never a seam to jump back to. */
  .slide.run .firms { position: relative; padding: 0; }
  .slide.run .firms li { position: absolute; left: 0; top: 0; will-change: transform; }

  footer { padding: 26px var(--gutter) 30px; font-size: 1.0625rem; color: var(--soft); }

  /* The two inner pages: a statement at the top, then sections that run the full width. */
  .lead { padding: clamp(150px, 20vw, 250px) var(--gutter) clamp(48px, 7vw, 100px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4.5vw, 56px); }
  .lead h1 { font-size: clamp(2.6rem, 6.4vw, 6.6rem); }
  .lead p, .prose p { margin: 0; font-size: clamp(1.1875rem, 1.55vw, 1.4375rem); line-height: 1.5; text-wrap: pretty; }
  .lead p + p, .prose p + p { margin-top: 1em; }
  .lead p { max-width: 34em; }
  .prose { padding: clamp(40px, 6vw, 90px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 80px); align-items: start; }
  .prose h2 { font-size: clamp(1.9rem, 3.5vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; }
  .ask { padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(72px, 10vw, 140px); }
  .ask p { margin: 0; max-width: 34em; font-size: clamp(1.1875rem, 1.55vw, 1.4375rem); line-height: 1.5; }
  @media (max-width: 899px) {
    .prose { grid-template-columns: minmax(0, 1fr); }
  }

