/* Local typefaces are distributed with their respective SIL Open Font Licenses. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/geist-variable.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/geist-mono-variable.woff2') format('woff2'); }

:root {
  /* colour */
  --paper:     #f6f3ec;  /* warm off-white: every page */
  --paper-2:   #efebe2;  /* a shade deeper, for wells and inputs */
  --pale:      #d6e4f5;  /* pale sky: tints and selected states */
  --mist:      #eaf0f8;
  --riso:      #1d5bb4;  /* the print blue: actions, lines, emphasis */
  --riso-deep: #142f7a;  /* hover, footer, text on pale */
  --riso-mid:  #6092d6;  /* imagery only, never text */
  --ink:       #1a2231;
  --ink-soft:  #475268;
  --line:      #d8d9d6;
  --line-soft: #e6e4de;
  --signal:    #c8361f;  /* form errors */
  --ask:       #8a5a12;

  /* type */
  --display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --dw: 480;
  --sans:    'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono:    'Geist Mono', ui-monospace, monospace;

  --t-micro: .75rem;
  --t-small: .9375rem;
  --t-body:  clamp(1.0625rem, 1.1vw, 1.1875rem);
  --t-lead:  clamp(1.125rem, 1.4vw, 1.3125rem);
  --t-h3:    clamp(1.3rem, 1.7vw, 1.6rem);
  --t-h2:    clamp(2.1rem, 4vw, 3.6rem);
  --t-h1:    clamp(2.7rem, 5.4vw, 5.2rem);

  /* space */
  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --head-h: 68px;
  --band: clamp(88px, 11vw, 160px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, dl, dd, fieldset { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.mono { font: 500 var(--t-micro)/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.slot { color: var(--riso-deep); background: var(--pale); padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.skip { position: absolute; left: -9999px; z-index: 100; padding: 10px 16px; background: var(--riso); color: #fff; }
.skip:focus { left: 12px; top: 12px; }
:is(a, button, input, textarea, summary):focus-visible { outline: 2px solid var(--riso); outline-offset: 3px; border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 22px; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px;
  font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-primary { background: var(--riso); color: #fff; }
.btn-primary:hover { background: var(--riso-deep); }
.btn-secondary { border-color: var(--riso); color: var(--riso-deep); background: #f6f3ecd9; }
.btn-secondary:hover { background: var(--pale); }
.btn-light { background: var(--paper); color: var(--riso-deep); }
.btn-light:hover { background: #fff; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; padding-block: 8px;
  color: var(--riso-deep); font-weight: 650; text-decoration: underline;
  text-decoration-color: #142f7a55; text-underline-offset: .3em;
}
.link-arrow:hover { text-decoration-color: currentColor; }

/* --- header ---------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  height: var(--head-h); margin-bottom: calc(-1 * var(--head-h));
  transition: background .3s ease, box-shadow .3s ease;
}
.site-head.is-scrolled, .site-head.is-solid { background: #f6f3ecf5; box-shadow: 0 1px 0 var(--line); }
.site-head.is-solid { margin-bottom: 0; }
.head-row { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1rem/1 var(--sans); letter-spacing: -.02em; text-decoration: none; white-space: nowrap;
}
.brand img { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: var(--t-small); font-weight: 550; }
.site-nav a { text-decoration: none; padding-block: 10px; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.nav-quiet { color: var(--ink-soft); }
.head-cta { min-height: 42px; padding: 9px 18px; font-size: var(--t-small); }
.site-nav .nav-cta { display: none; }              /* the menu copy of the header button, phone only */
.head-aside { margin-left: auto; color: var(--ink-soft); font-size: var(--t-small); }
.head-aside a { color: var(--riso-deep); font-weight: 650; }
.nav-toggle { display: none; }

/* --- the print: a tone layer under a one-bit grain layer --------------------- */
.print, .print picture, .print img { position: absolute; inset: 0; width: 100%; height: 100%; }
.print img { object-fit: cover; object-position: center 72%; }
.print-grain, .model-world-grain img { image-rendering: auto; }

/* --- hero ------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(700px, 100svh, 1040px);
}
.print { z-index: -1; pointer-events: none; }
/* the print bleeds out into the paper instead of stopping at a hard edge */
.hero .print { -webkit-mask-image: linear-gradient(180deg, #000 0 80%, #0000 100%); mask-image: linear-gradient(180deg, #000 0 80%, #0000 100%); }
.hero-copy {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 80px); align-items: end;
  padding-top: calc(var(--head-h) + clamp(56px, 10vh, 120px)); padding-bottom: 48px;
}
.hero h1 {
  max-width: 11ch;
  font: var(--dw, 320) var(--t-h1)/1 var(--display);
  font-variation-settings: 'opsz' 60;
  letter-spacing: -.03em;
}
.lede { max-width: 44ch; color: #2a3550; font-size: var(--t-lead); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 32px; }
.hint { margin-top: 14px; color: var(--ink-soft); font-size: var(--t-small); }


/* --- sections --------------------------------------------------------------- */
.band { padding-block: var(--band); }
.sec-label { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); }
.sec-label span { color: var(--riso); }
.sec-label::after { content: ''; flex: 0 0 56px; height: 1px; background: var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-top: 22px; }
.sec-title {
  max-width: 18ch;
  font: var(--dw, 330) var(--t-h2)/1.06 var(--display);
  font-variation-settings: 'opsz' 60; letter-spacing: -.025em;
}
.sec-lede { max-width: 44ch; color: var(--ink-soft); font-size: var(--t-lead); line-height: 1.6; }
h3 { font: 600 1.125rem/1.3 var(--sans); letter-spacing: -.01em; }

/* --- work grid --------------------------------------------------------------- */
.work-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: clamp(44px, 6vw, 80px);
  background: var(--line); border: 1px solid var(--line);
}
.work-grid li { display: flex; background: var(--paper); }
.work-tile {
  position: relative; isolation: isolate; flex: 1;
  display: grid; grid-template-rows: 1fr auto auto auto; gap: 6px;
  min-height: clamp(260px, 24vw, 340px); padding: clamp(20px, 2.4vw, 32px);
  text-decoration: none; overflow: hidden;
}
.work-tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--tile) center / cover no-repeat;
  opacity: .8; transition: opacity .4s ease, transform .8s var(--ease);
}
.work-tile:hover::before, .work-tile:focus-visible::before { opacity: 1; transform: scale(1.03); }
.work-tile:focus-visible { outline-offset: -4px; }
.tile-logo {
  justify-self: start; align-self: start;
  display: grid; place-items: center; width: 132px; height: 56px;
  border: 1px dashed #47526899; background: #f6f3ecd9;
  color: var(--ink-soft); font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.tile-name { font: var(--dw, 380) 1.5rem/1.2 var(--display); font-variation-settings: 'opsz' 40; letter-spacing: -.01em; }
.tile-layers { color: var(--ink-soft); }
.tile-cta {
  margin-top: 10px; color: var(--riso-deep); font-weight: 650; font-size: var(--t-small);
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease;
}
.work-tile:hover .tile-cta, .work-tile:focus-visible .tile-cta { opacity: 1; transform: none; }
@media (hover: none) { .tile-cta { opacity: 1; transform: none; } }

/* --- Place Cloud ------------------------------------------------------------ */
.place {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(900px, 112vh, 1100px);
  border-top: 1px solid var(--line-soft);
}
.model-world, .model-world-art, .model-world-backdrop, .model-world-grain, .model-world-grain img,
.model-world-bridges, .model-world-islands {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.model-world {
  z-index: 0; touch-action: pan-y pinch-zoom;
  --bridge-base: #f6f3ece6;
  --bridge-line: #1d5bb4;
  --bridge-glow: #f6f3ec;
  --bridge-tip:  #1d5bb4;
  --bridge-draft: #1d5bb4aa;
}
.model-world.is-placing { cursor: crosshair; }
.model-world-backdrop, .model-world-grain img { display: block; object-fit: cover; }
.model-world-art, .model-world-grain, .model-world-bridges, .model-world-islands { pointer-events: none; }
.model-world-bridges, .model-world-islands { z-index: 2; }

.place-copy { position: relative; z-index: 3; padding-top: var(--band); text-align: center; pointer-events: none; }
.place-copy > * { pointer-events: auto; }
.place-copy .sec-title { margin: 22px auto 0; }
.place-copy .sec-lede { margin: 18px auto 0; }
.place-copy .pilot-link { width: fit-content; margin: 24px auto 0; }
.flow-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; color: var(--ink-soft); }
.flow-steps li { display: flex; align-items: center; gap: 10px; }
.flow-steps span {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid currentColor; border-radius: 50%; letter-spacing: 0;
}
.flow-steps .is-now { color: var(--riso-deep); }
.flow-steps .is-now span { background: var(--riso); border-color: var(--riso); color: #fff; }
.flow-steps .is-done span { background: var(--pale); border-color: var(--riso); color: var(--riso-deep); }

.place-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 64px; margin-top: 30px; }
.model-world-controls {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border: 1px solid #1a22311f; border-radius: 999px;
  background: #f6f3eceb; box-shadow: 0 8px 30px #1d5bb414;
}
.model-world-controls button {
  min-height: 46px; padding: 8px 22px;
  border: 1px solid var(--riso); border-radius: 999px;
  background: var(--riso); color: #fff;
  font: 650 1rem/1 var(--sans); cursor: pointer;
}
.model-world-controls button:hover { background: var(--riso-deep); border-color: var(--riso-deep); color: #fff; }
.model-world-hint { padding-inline: 12px 16px; color: var(--ink-soft); font-size: var(--t-small); }
.model-world-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.next-step .btn { min-height: 58px; padding-inline: 26px; box-shadow: 0 8px 30px #1d5bb433; }
.place-noscript { margin-top: 24px; }

.model-island {
  position: absolute; width: 0; height: 0;
  --island-width: clamp(150px, 14vw, 230px);
  animation: cloud-in 1s .25s both var(--ease);
}
.model-island img {
  position: absolute; top: 0; left: 0; width: var(--island-width); max-width: none;
  transform: translate(-50%, -62%);
}
@keyframes cloud-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* --- footer ------------------------------------------------------------------ */
.site-foot { padding-block: 36px; background: var(--riso-deep); color: #e3ebf8; }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; font-size: var(--t-small); }
.site-foot nav a { padding-block: 10px; text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }
.site-foot .mono { width: 100%; color: #c4d3ec; }

/* ===========================================================================
   Case study
   =========================================================================== */
.cs-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0; }
.cs-hero .print { opacity: .42; }
.cs-hero .print img { object-position: center; }
.cs-back { margin: -8px 0 22px; }
.cs-card {
  max-width: 720px; padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line);
}
.cs-card .tile-logo { width: 168px; height: 64px; }
.cs-card h1 {
  margin-top: 24px;
  font: var(--dw, 320) clamp(2.4rem, 4.6vw, 4.2rem)/1.02 var(--display); font-variation-settings: 'opsz' 60; letter-spacing: -.03em;
}
.cs-card > p { margin-top: 14px; max-width: 48ch; color: var(--ink-soft); font-size: var(--t-lead); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px;
  border: 1px solid var(--riso); border-radius: 999px; color: var(--riso-deep);
  font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.chip.is-off { border-style: dashed; border-color: #47526880; color: var(--ink-soft); }

.cs-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(56px, 7vw, 104px); }
.cs-index { position: sticky; top: calc(var(--head-h) + 32px); align-self: start; display: grid; gap: 2px; }
.cs-index a { display: block; padding: 8px 0 8px 14px; border-left: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: var(--t-small); }
.cs-index a:hover, .cs-index a.is-here { border-left-color: var(--riso); color: var(--riso-deep); }
.cs-section { padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.cs-section:last-child { border-bottom: 0; margin-bottom: 0; }
.cs-section h2 { font: var(--dw, 340) clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--display); font-variation-settings: 'opsz' 56; letter-spacing: -.02em; }
.cs-section h2 .mono { display: block; margin-bottom: 10px; color: var(--riso); }
.cs-section > p { max-width: 62ch; margin-top: 16px; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--ink); }
.facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); }
.facts dd { margin-top: 6px; }

.cs-next { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.cs-next a { display: grid; gap: 6px; padding: clamp(28px, 4vw, 48px) 0; text-decoration: none; }
.cs-next a + a { padding-left: clamp(24px, 4vw, 48px); border-left: 1px solid var(--line); }
.cs-next .mono { color: var(--ink-soft); }
.cs-next strong { font: var(--dw, 340) clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--display); font-variation-settings: 'opsz' 50; }
.cs-next a:hover strong { color: var(--riso-deep); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* --- reveal ---------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) var(--delay, 0ms), transform .8s var(--ease) var(--delay, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .model-island { animation: none; }
  .work-tile::before, .tile-cta { transition: none; }
  .work-tile:hover::before { transform: none; }
}

/* --- tablet ---------------------------------------------------------------- */
@media (max-width: 980px) {
  .site-nav { gap: 18px; }
  /* narrower screens: the copy comes first and the print sits beneath it */
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero .print { position: relative; order: 2; flex: 0 0 auto; height: clamp(340px, 62vw, 560px); margin-top: 8px;
    -webkit-mask-image: linear-gradient(180deg, #0000 0, #000 22%, #000 84%, #0000 100%); mask-image: linear-gradient(180deg, #0000 0, #000 22%, #000 84%, #0000 100%); }
  .hero .print img { object-position: center bottom; }
  .hero-copy { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero h1 { max-width: 13ch; }
  .sec-head { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layers { grid-template-columns: 1fr; }
  .stack { position: static; max-width: 520px; }
  .layer-list > div { grid-template-columns: 160px 1fr; }
  .cs-body { grid-template-columns: 1fr; }
  .cs-index { display: none; }
  .flow { grid-template-columns: 1fr; }
  .flow-sky { min-height: 360px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app { grid-template-columns: 1fr; }
  .app-side { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); }
  .app-side h2 { display: none; }
}

/* --- phone ----------------------------------------------------------------- */
@media (max-width: 720px) {
  .place-copy .pilot-link { margin-inline: 0; }
  :root { --head-h: 60px; }

  .head-row { gap: 12px; }
  .head-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
  .nav-toggle span + span { margin-top: 6px; }
  .site-head.is-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .site-head.is-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: var(--head-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px var(--gutter) 16px; background: var(--paper); box-shadow: 0 12px 24px #1a22311a;
  }
  .site-head.is-open { background: var(--paper); }
  .site-head.is-open .site-nav { display: flex; }
  .site-nav a { padding-block: 14px; border-bottom: 1px solid var(--line-soft); font-size: 1.0625rem; }
  .site-head.is-open .site-nav .nav-cta { display: inline-flex; justify-content: center; margin-top: 12px; padding-block: 12px; border-bottom: 0; color: #fff; }

  .hero .print { height: clamp(340px, 96vw, 480px); }
  .hero-copy { padding-top: calc(var(--head-h) + 40px); }
  .hero h1 { max-width: 10ch; }
  .lede { font-size: 1.0625rem; }
  .actions .btn { flex: 1 1 100%; }

  .work-grid { grid-template-columns: 1fr; }
  .work-tile { min-height: 220px; }
  .layer-list > div { grid-template-columns: 1fr; }
  .layer-list dt { grid-row: auto; margin-bottom: 8px; }
  .stack-bands li { height: 54px; font-size: 1.1rem; }

  .place { min-height: 1020px; }
  .place-copy { text-align: left; }
  .place-copy .sec-title, .place-copy .sec-lede { margin-inline: 0; }
  .flow-steps { flex-direction: column; justify-content: flex-start; align-items: flex-start; }
  .place-row { justify-content: flex-start; }
  .model-world-controls { border-radius: 16px; }
  .model-world-controls { flex-wrap: wrap; }
  .model-world-hint { padding: 2px 10px 6px; }
  .next-step, .next-step .btn { width: 100%; }
  .model-island { --island-width: clamp(130px, 42vw, 180px); }

  .site-foot nav { margin-left: 0; }

  .facts { grid-template-columns: 1fr; }
  .pipe-track { grid-template-columns: 1fr; gap: 8px; }
  .pipe-track::before { left: 28px; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 1px dashed var(--riso); }
  .pipe-node { min-height: 0; grid-template-columns: 80px 1fr; align-items: center; }
  .cs-next { grid-template-columns: 1fr; }
  .cs-next a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .flow-sky .flow-steps { flex-direction: row; gap: 6px 16px; }
}

@media (max-width: 400px) {
  .brand { gap: 8px; font-size: .9375rem; }
  .brand img { width: 24px; height: 24px; }


}

body { font-weight: 400; letter-spacing: -.005em; }
.hero h1 { letter-spacing: -.045em; line-height: .98; }
:is(.sec-title, .closer h2, .cs-card h1, .flow-card h1, .app-title, .cs-section h2) { letter-spacing: -.035em; }
:is(.tile-name, .stack-bands li, .layer-list dt, .pipe-panel h3, .cs-next strong, .learn strong, .app-sec h2) { letter-spacing: -.02em; }
.mono { letter-spacing: .08em; }

/* ===========================================================================
   Homepage v4: eyebrow, named company tiles, the system figure
   =========================================================================== */
.eyebrow { margin-bottom: 18px; color: var(--riso); }
.work-grid.is-three .work-tile { min-height: clamp(300px, 28vw, 380px); grid-template-rows: auto 1fr auto auto; }
.tile-mark {
  justify-self: start; padding: 10px 14px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 86%, transparent);
  font: 650 1.0625rem/1 var(--sans); letter-spacing: -.02em;
}
.tile-meta { margin-top: 10px; color: var(--ink-soft); }
.work-tile .tile-name { align-self: end; max-width: 18ch; }
.work-tile.is-pending { cursor: default; }
.work-tile.is-pending::before { opacity: .35; }
.work-tile.is-pending .tile-name { color: var(--ink-soft); }

.system { padding-top: 0; }
.system-fig { margin-top: clamp(40px, 6vw, 72px); }
.system-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--riso); }
.system-flow li { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 20px 26px; }
.system-flow li + li { border-left: 1px solid var(--line); }
.system-flow li + li::before {
  content: '→'; position: absolute; left: -9px; top: 22px;
  display: grid; place-items: center; width: 18px; height: 18px;
  background: var(--paper); color: var(--riso); font-size: .8rem;
}
.system-flow .mono { color: var(--riso); }
.system-flow strong { font: var(--dw, 380) 1.3rem/1.2 var(--display); letter-spacing: -.02em; }
.system-flow span:last-child { color: var(--ink-soft); font-size: var(--t-small); line-height: 1.5; }
.system-flow li:nth-child(2) { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--riso) 9%, transparent) 0 1px, transparent 1px 7px); }
.system-fig figcaption { margin-top: 14px; color: var(--ink-soft); }
.sys-more { margin-top: 18px; }

/* How it works page */
.page-head { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 16ch; font: var(--dw, 330) var(--t-h2)/1.04 var(--display); letter-spacing: -.03em; }
.page-head p { max-width: 52ch; margin-top: 18px; color: var(--ink-soft); font-size: var(--t-lead); }
.hiw-part { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.hiw-part h2 { font: var(--dw, 340) clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--display); letter-spacing: -.025em; }
.hiw-part h2 .mono { display: block; margin-bottom: 10px; color: var(--riso); }
.hiw-part p { max-width: 62ch; color: var(--ink-soft); }
.hiw-part p + p { margin-top: 12px; }
.hiw-part .examples { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }

/* Adapter diagram */
.adapters { display: flex; align-items: stretch; gap: 0; margin-top: 28px; max-width: 620px; }
.adapters .base { display: grid; place-items: center; width: 120px; min-height: 200px; background: var(--riso); color: var(--paper); font: 600 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 12px; }
.adapters ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-left: 8px; flex: 1; }
.adapters li { display: grid; align-content: end; min-height: 96px; padding: 10px 12px; border: 1px solid var(--riso); font-size: .875rem; }
.adapters li.is-next { border-style: dashed; color: var(--ink-soft); }
.adapters li .mono { color: var(--riso); }

@media (max-width: 980px) {
  .system-flow { grid-template-columns: 1fr; }
  .system-flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .system-flow li + li::before { content: '↓'; left: 20px; top: -9px; }
  .hiw-part { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .work-grid.is-three .work-tile { min-height: 260px; }
  .adapters { flex-direction: column; }
  .adapters .base { width: 100%; min-height: 64px; }
  .adapters ol { padding: 8px 0 0; grid-template-columns: repeat(2, 1fr); }
}

/* project pages v4 */
.cs-card .tile-mark { margin-bottom: 0; }
.cs-card h1 { margin-top: 18px; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; }
.cs-status { display: flex; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--t-small); }
.cs-status .mono { flex: none; padding-top: 2px; color: var(--riso); }
.pipe-title { margin-top: 36px; font: var(--dw, 380) 1.35rem/1.2 var(--display); letter-spacing: -.02em; }
.pipe-intro { margin-top: 6px; color: var(--ink-soft); }
.pipe-track { grid-template-columns: repeat(var(--stages, 5), minmax(0, 1fr)); }
.pipe-track::before { left: 6%; right: 6%; }
.pipe-node { font-size: .9375rem; }
.rollout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.rollout li { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); color: var(--ink-soft); font-size: var(--t-small); }
.rollout .mono { color: var(--riso); }
.rollout strong { color: var(--ink); font-weight: 650; }
.fig-cap { margin-top: 12px; color: var(--ink-soft); }
@media (max-width: 980px) { .pipe-track { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pipe-track::before { display: none; } }
@media (max-width: 720px) { .pipe-track { grid-template-columns: 1fr; } .rollout { grid-template-columns: 1fr; } }

/* ===========================================================================
   Revision 3: "Compute, tuned to you." and the two steps
   =========================================================================== */
.hero h1 { max-width: 9ch; }
.steps2 { padding-top: clamp(24px, 4vw, 56px); }
.two-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--riso); }
.step-card { display: grid; align-content: start; gap: 14px; padding: clamp(24px, 3.4vw, 48px); }
.step-card + .step-card { border-left: 1px solid var(--riso); }
.step-card.is-free { background: color-mix(in srgb, var(--riso) 7%, transparent); }
.step-tag { color: var(--riso); }
.step-card h3 { max-width: 18ch; font: var(--dw, 340) clamp(1.6rem, 2.6vw, 2.3rem)/1.1 var(--display); letter-spacing: -.03em; }
.step-card > p:not(.step-tag) { max-width: 44ch; color: var(--ink-soft); }
.step-card .link-arrow { justify-self: start; margin-top: 6px; }
.flow-note { margin-top: 18px; padding: 12px 14px; border-left: 2px solid var(--riso); color: var(--ink-soft); font-size: .9375rem; }
@media (max-width: 720px) {
  .two-steps { grid-template-columns: 1fr; }
  .step-card + .step-card { border-left: 0; border-top: 1px solid var(--riso); }
}

@media (max-width: 720px) {
  .hero-aside { display: flex; flex-direction: column; }
  .hero .actions { display: contents; }
  .hero .btn-primary { order: 1; margin-top: 28px; }
  .hero .btn-secondary { order: 3; margin-top: 14px; }
}

/* ===========================================================================
   Ink map (inkmap.js): the print, pushed into a ballpoint chart.
   Land is paper; the coast is hatched; the sea is flow lines, eddies and
   dashes. Hand lettering (Reenie Beanie, SIL OFL, fonts/reenie-beanie-OFL.txt)
   is for names on the map only, never for copy.
   =========================================================================== */
@font-face { font-family: 'Reenie Beanie'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/reenie-beanie-latin.woff2') format('woff2'); }
:root { --ink-line: #2356b8; --ink-dark: #173f9a; --hand: 'Reenie Beanie', 'Bradley Hand', cursive; }

.inkmap { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.inkmap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .inkmap { -webkit-mask-image: linear-gradient(180deg, #000 0 90%, #0000 100%); mask-image: linear-gradient(180deg, #000 0 90%, #0000 100%); }

/* names on the map: a link per project, lettered by hand */
.ink-ports { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ink-port {
  position: absolute; width: 0; height: 0; pointer-events: auto;
  color: var(--ink-dark); text-decoration: none;
}
.ink-port::before { content: ''; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; }
.ink-port-name {
  position: absolute; white-space: nowrap; padding: 0 4px;
  font: 400 clamp(1.6rem, 2.2vw, 2.05rem)/1 var(--hand); letter-spacing: .01em;
  text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}
.ink-port.is-r .ink-port-name { left: 10px; top: 0; transform: translateY(-55%); }
.ink-port.is-l .ink-port-name { right: 10px; top: 0; transform: translateY(-55%); }
.ink-port.is-a .ink-port-name { left: 0; bottom: 10px; transform: translateX(-50%); }
.ink-port.is-b .ink-port-name { left: 0; top: 10px; transform: translateX(-50%); }
.ink-port-note {
  position: absolute; z-index: 2; white-space: nowrap; padding: 6px 9px;
  background: var(--paper); border: 1px solid var(--ink-dark); color: var(--ink-dark);
  font-size: .625rem; letter-spacing: .14em;
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.ink-port.is-r .ink-port-note { left: 14px; top: 22px; }
.ink-port.is-l .ink-port-note { right: 14px; top: 22px; }
.ink-port.is-a .ink-port-note { left: 0; top: 14px; transform: translate(-50%, 4px); }
.ink-port.is-b .ink-port-note { left: 0; top: 52px; transform: translate(-50%, 4px); }
.ink-port:is(:hover, :focus-visible) .ink-port-name { text-decoration-color: currentColor; text-decoration-style: wavy; }
.ink-port:is(:hover, :focus-visible) .ink-port-note { opacity: 1; transform: none; }
.ink-port.is-a:is(:hover, :focus-visible) .ink-port-note,
.ink-port.is-b:is(:hover, :focus-visible) .ink-port-note { transform: translateX(-50%); }
.ink-port:focus-visible { outline: none; }
.ink-port:focus-visible .ink-port-name { outline: 2px solid var(--ink-dark); outline-offset: 2px; border-radius: 3px; }



@media (max-width: 980px) {
  /* when the copy fills the width, the sea sits below it, with the ports */
  .hero { padding-bottom: clamp(400px, 60vw, 480px); }
  .hero .inkmap { -webkit-mask-image: linear-gradient(180deg, #000 0 92%, #0000 100%); mask-image: linear-gradient(180deg, #000 0 92%, #0000 100%); }
}
@media (max-width: 720px) {
  .ink-port-name { font-size: 1.55rem; }
  /* on a phone the copy sits on plain paper; the map starts below it, fading in */
  .hero-copy { position: relative; padding-bottom: 56px; }
  .hero-copy::before {
    content: ''; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%);
    background: linear-gradient(180deg, var(--paper) calc(100% - 56px), color-mix(in srgb, var(--paper) 0%, transparent));
  }
}

/* ink on the tiles, the Place Cloud sea and the small skies */
.work-tile.has-ink::before { display: none; }
.work-tile .inkmap { z-index: -1; transition: opacity .4s ease; opacity: .9; }
.work-tile:is(:hover, :focus-visible) .inkmap { opacity: 1; }
.model-world .inkmap { z-index: 0; }
.model-world:has(.inkmap) :is(.model-world-art, .model-world-grain) { opacity: 0; }
.mini-sky .inkmap { z-index: 0; }
.cs-hero .inkmap { -webkit-mask-image: linear-gradient(180deg, #000 0 86%, #0000 100%); mask-image: linear-gradient(180deg, #000 0 86%, #0000 100%); }

/* Footer and consent share the controls used throughout the public site. */
.site-foot { padding-block: clamp(38px, 6vw, 72px); }
.site-foot .foot-row { align-items: flex-start; }
.site-foot nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(20px, 5vw, 84px); }
.site-foot nav > div { display: grid; align-content: start; justify-items: start; }
.site-foot nav h2 { font: 650 1rem/1.4 var(--sans); color: white; margin-bottom: .6rem; }
.site-foot nav a, .site-foot nav button { padding: 5px 0; color: inherit; line-height: 1.4; }
.site-foot nav button { border: 0; background: none; cursor: pointer; font: inherit; text-align: left; }
.site-foot nav button:hover { text-decoration: underline; }
.site-foot :is(a,button):focus-visible { outline-color: white; }

.consent-banner {
  position: fixed; z-index: 35; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom));
  display: grid; gap: 10px; width: min(380px, calc(100% - 24px)); padding: 16px 20px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--riso); border-radius: var(--radius);
  box-shadow: 0 4px 28px #142f7a24;
}
.consent-banner h2 { font: 650 1rem/1.3 var(--sans); }
.consent-banner p { margin-top: 4px; font-size: .875rem; line-height: 1.45; }
.consent-banner a { color: var(--riso-deep); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions button {
  padding: 7px 13px; min-height: 40px; border: 1px solid var(--riso); border-radius: 24px;
  color: var(--riso-deep); background: transparent; font: 600 .875rem/1.2 var(--sans); cursor: pointer;
}
.consent-actions button:hover { background: var(--pale); }

.sky-methods { max-width: 72ch; padding: var(--band) 0 0; }
.sky-methods h2 { font: 480 var(--t-h2)/1.08 var(--display); letter-spacing: -.035em; }
.sky-methods > p { color: var(--ink-soft); margin-block: 16px; }
.sky-methods summary { cursor: pointer; font-weight: 600; color: var(--riso-deep); padding-block: 12px; }
.landscape-family, .landscape-verdict { margin-top: 2rem; }
.landscape-key { display: flex; flex-wrap: wrap; gap: 1em; margin-top: 1em; color: var(--ink-soft); }
.landscape-family h3, .landscape-verdict h3 { margin-bottom: .7em; }
.landscape-family h3 span, .method-cite { font: .8125rem/1.4 var(--mono); margin-left: .5em; }
.landscape-family a, .landscape-compare a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.landscape-family a:hover b, .landscape-compare a:hover b { text-decoration: underline; }
.method-note { display: block; color: var(--ink-soft); font-size: .9375rem; }
.method.is-use::after, .method.is-test::after, .method.is-seen::after { color: var(--riso-deep); font: .75rem/1.4 var(--mono); }
.method.is-use::after { content: "In use"; }
.method.is-test::after { content: "To test"; }
.method.is-seen::after { content: "Reviewed"; }

@media (max-width: 720px) {
  .site-foot nav { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .head-cta { display: inline-flex; margin-left: auto; }
}
