/* arcanum-nce.com. White, one accent, one typeface. Large words at the
   beginning and at the end; quiet in between, where the pictures speak. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --ink: #141414;
  --ink-2: #57514F;
  --ink-3: #8C8583;
  --ink-4: #B9B3B1;
  --line: #EDE8E6;
  --accent: #A04F47;
  --accent-ink: #8A3F38;
  /* the lines of the drawings (engine.js, layers.js), on --bg */
  --draw: #A04F47;
  --bar-bg: rgba(255, 255, 255, .88);
  --foot-bg: #0F0E0E;
  --foot-edge: transparent;
  --hero-fade: #000;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --bar: 64px;
  --gut: clamp(20px, 4vw, 64px);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --bar: 76px; } }

/* Dark (round 55): the ground of the first page runs through the whole
   site; ink is a warm white, the greys keep their contrast to the ground,
   and the accent is a shade lighter so that it still reads on the dark.
   It follows the device, unless the switch in the header chose
   (theme.js sets data-theme). The same tokens twice, for both ways in. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0C0C;
    --ink: #F1ECEA;
    --ink-2: #A9A19E;
    --ink-3: #77706E;
    --ink-4: #4B4543;
    --line: #272221;
    --accent: #CF7064;
    --accent-ink: #E48C80;
    --draw: #C9695E;
    --bar-bg: rgba(14, 12, 12, .8);
    --foot-bg: #090808;
    --foot-edge: rgba(255, 255, 255, .07);
    --hero-fade: transparent;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0C0C;
  --ink: #F1ECEA;
  --ink-2: #A9A19E;
  --ink-3: #77706E;
  --ink-4: #4B4543;
  --line: #272221;
  --accent: #CF7064;
  --accent-ink: #E48C80;
  --draw: #C9695E;
  --bar-bg: rgba(14, 12, 12, .8);
  --foot-bg: #090808;
  --foot-edge: rgba(255, 255, 255, .07);
  --hero-fade: transparent;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* on the home page the page starts and ends dark: when a phone or a
   trackpad pulls past either end, the ground shown there is dark too */
html:has(> body.home) { background: #0E0C0C; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  translate: 0 -200%;
}
.skip:focus { translate: 0 0; }

/* ---------- the header ---------- */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  height: var(--bar);
  padding: 0 var(--gut);
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  border-bottom: 1px solid transparent;
  transition: background-color .4s ease, border-color .4s ease;
}
.bar.on {
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.mark {
  width: 24px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
  mask: url("assets/logo.png") center / contain no-repeat;
}
/* over the dark first page the bar is light on a dark, clear ground */
.bar.dark .brand, .bar.dark .sign { color: #fff; }
.bar.dark .btn { color: #E3A398; }
.bar.dark.on { background: rgba(14, 12, 12, .55); border-bottom-color: rgba(255, 255, 255, .08); }
.brand, .btn { transition: color .4s ease; }
.sign { transition: color .2s ease; }
.sign:hover { color: var(--ink); }
.act { display: flex; align-items: center; gap: 22px; justify-self: end; font-size: 14px; }
.sign { color: var(--ink-2); }
.btn {
  position: relative;
  padding: 6px 0;
  color: var(--accent);
  font-weight: 500;
}
/* a line draws itself under it on hover */
.btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
/* light or dark (round 55): a small circle, half filled; the half turns
   over when the page changes */
.theme {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -8px -9px -8px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color .2s ease;
}
.theme:hover { color: var(--ink); }
.theme svg { width: 17px; height: 17px; overflow: visible; }
.theme circle { fill: none; stroke: currentColor; stroke-width: 1.3; }
.theme path { fill: currentColor; transform-origin: 12px 12px; }
.theme[aria-pressed="true"] path { transform: rotate(180deg); }
.theme-ready .theme path { transition: transform .6s cubic-bezier(.3, 1.3, .45, 1); }
.bar.dark .theme { color: rgba(255, 255, 255, .78); }
.bar.dark .theme:hover { color: #fff; }
@media (max-width: 899px) {
  .btn { font-size: 14px; }
  .act { gap: 16px; }
}
@media (max-width: 389px) { .btn { display: none; } }

/* ---------- pictures that hold the screen while their section scrolls by ---------- */
.scene { position: relative; }
.cases { height: 600vh; }
.stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: 58svh auto;
  height: 100svh;
  padding-top: var(--bar);
}
.draw {
  display: block;
  width: 100%;
  height: 100%;
  /* a close view fades out where it meets the edges of its stage */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.side { position: relative; padding: 0 var(--gut); }
/* without WebGL the pictures stay away and the words stand on their own */
.nogl .draw { display: none; }
.scene.nogl { height: auto; }
.nogl .stage { position: relative; display: block; height: auto; min-height: 70svh; padding-block: calc(var(--bar) + 48px) 48px; }
.nogl .cases-list li { color: var(--ink); }
.nogl .cases-list li p { display: block; }
.nogl.cases .cases-list li { opacity: 1; transform: none; }

.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* 1. The first words, very large, set in steps; below them, in two
   sentences, what Arcanum is. No picture. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 8vh, 96px);
  min-height: 100svh;
  padding: calc(var(--bar) + clamp(28px, 7vh, 88px)) var(--gut) clamp(28px, 6vh, 64px);
}
/* a dark ground with a slow glow moving through it (aura.js) */
.hero { background: #0E0C0C; color: #fff; }
.aura { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* in the dark (round 55) the page below has the same ground: the glow and
   the grain fade out towards the bottom, so the first page runs into the
   next without an edge (--hero-fade is #000, no fade, in the light) */
.aura, .grain {
  -webkit-mask-image: linear-gradient(#000 58%, var(--hero-fade));
  mask-image: linear-gradient(#000 58%, var(--hero-fade));
}
.hero { overflow: hidden; }
/* a still, fine film grain */
.grain {
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  mix-blend-mode: overlay;
  opacity: .16;
  pointer-events: none;
}

.hero h1, .hero-foot { position: relative; }
.hero h1 {
  font-size: clamp(46px, 9.4vw, 172px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.052em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .l2 { --in: calc(12vw - 24px); margin-left: var(--in); }
.hero h1 .l3 { --in: calc(4vw - 8px); margin-left: var(--in); }
/* On arrival the lines come in flush, then "comprehends" and the last line
   snap to their steps. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l1 { animation: come .5s ease both; }
  .hero h1 .l2 { animation: snap 1s both .15s; }
  .hero h1 .l3 { animation: snap 1s both .3s; }
}
@keyframes come { from { opacity: 0; } }
@keyframes snap {
  0% { opacity: 0; transform: translateX(calc(-1 * var(--in, 0px))); }
  35% { opacity: 1; transform: translateX(calc(-1 * var(--in, 0px))); animation-timing-function: cubic-bezier(.3, 1.4, .45, 1); }
  100% { opacity: 1; transform: none; }
}
.hero-foot { display: flex; justify-content: flex-end; }
.hero-lede {
  max-width: 24em;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(19px, .7rem + .9vw, 26px);
  line-height: 1.38;
  letter-spacing: -.012em;
}
@media (max-width: 699px) {
  /* on a phone the words stand in the middle of the screen, larger */
  .hero h1 { margin-block: auto; font-size: 12.6vw; }
  .hero h1 .l2 { --in: 3vw; }
  .hero h1 .l3 { --in: 1vw; }
  .hero-foot { justify-content: flex-start; }
}
@media (min-width: 700px) and (max-width: 899px) and (min-height: 700px), (min-width: 900px) and (max-width: 1100px) and (max-aspect-ratio: 5/6) {
  /* on a tablet held upright too: the words large, in the middle */
  .hero h1 { margin-block: auto; font-size: 12vw; }
  .hero h1 .l2 { --in: 6vw; }
  .hero h1 .l3 { --in: 2vw; }
  .hero-foot { justify-content: flex-start; }
}

/* Section openings: a small label, a very large title set in steps, a
   line of explanation. */
.sec-head { display: grid; gap: clamp(18px, 3vh, 32px); }
.big-title {
  font-size: clamp(44px, 7.6vw, 140px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.048em;
}
.big-title span { display: block; white-space: nowrap; }
.big-title .i1 { --in: calc(9vw - 18px); margin-left: var(--in); }
.big-title .i2 { --in: calc(4vw - 8px); margin-left: var(--in); }
/* A title's stepped lines stand flush until its section comes into view,
   then snap to their steps (site.js adds .in). */
.snap-in span { width: fit-content; }
.js .snap-in span { transition: transform .7s cubic-bezier(.25, 1.2, .4, 1); }
.js .product .snap-in span { transition-duration: .55s; }
.js .snap-in:not(.in) span { transform: translateX(calc(-1 * var(--in, 0px))); }
.sec-lede {
  max-width: 30em;
  font-size: clamp(18px, .6rem + .8vw, 23px);
  line-height: 1.42;
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.sec-head .kicker { margin: 0; }

/* 2. Product overview: the engine, what it relies on, builds and gives */
.product { padding: clamp(110px, 18vh, 200px) var(--gut) clamp(90px, 16vh, 180px); }
.product-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}
.product .big-title { font-size: clamp(42px, 6.4vw, 116px); }
.product .sec-lede { max-width: 25em; font-size: clamp(17px, .55rem + .6vw, 20px); color: var(--ink); }
/* a small mark in front of a step: IN, CORE, OUT */
.tag {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 7px 2px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: 3px;
}

/* the engine (round 48): a server rack in the house's lines (engine.js).
   The page holds while its five units slide out one after another; at the
   left the unit in view is told in words: its name, one sentence, a short
   paragraph. At the end, the whole rack and one closing sentence. */
.product.engine { position: relative; padding: 0; }
/* first the title and what Arcanum is, scrolling by as usual (round 41):
   the title at the left, the words at the right, the first sentence
   larger and in ink */
/* less room above the title (round 50); the title and the words hold a
   moment at the top while the room under them (30vh) passes, as the title
   over the house does, then leave with the page */
.e-head { padding: clamp(40px, 7vh, 88px) var(--gut) 0; }
.e-head::after { content: ""; display: block; height: 30vh; }
.e-intro {
  position: sticky;
  top: calc(var(--bar) + clamp(24px, 5vh, 56px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 33em);
  align-items: end;
  gap: 40px clamp(40px, 6vw, 112px);
}
.e-title .kicker { margin-bottom: clamp(12px, 2vh, 18px); }
.engine .big-title { font-size: clamp(40px, 5.2vw, 92px); }
.e-text { display: grid; gap: .8em; font-size: clamp(16px, .5rem + .5vw, 19px); line-height: 1.5; color: var(--ink-2); }
.e-text p { margin: 0; text-wrap: pretty; }
.e-text .e-lead { margin-bottom: .35em; font-size: clamp(20px, .6rem + .95vw, 28px); line-height: 1.26; letter-spacing: -.014em; color: var(--ink); text-wrap: balance; }
/* then the page holds while the units slide out */
.e-pin { position: relative; height: 520vh; }
.e-stage {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(14px, 3vh, 36px);
  height: 100svh;
  overflow: hidden;
  padding: calc(var(--bar) + clamp(10px, 2.4vh, 28px)) var(--gut) clamp(18px, 4vh, 44px);
}
/* a drawing's title line: what it shows, and the unit in view */
.arch-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.arch-fl { color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* the words at the left, the rack at the right */
.arch {
  display: grid;
  grid-template-columns: minmax(0, 33em) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  min-height: 0;
}
.arch-draw { min-width: 0; min-height: 0; height: 100%; }
.arch .draw { display: block; width: 100%; height: 100%; min-height: 0; }
/* where the drawing is cut at its top and bottom, it fades */
.arch .draw { -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }
.arch-text { min-width: 0; }
/* the names are buttons: each opens its unit */
.f-btn { display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; cursor: pointer; }
.f-btn:hover { color: var(--ink); }
.f-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* the units, one per line; the unit in view opens */
.floors { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.floors li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: clamp(7px, 1.25vh, 12px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-4);
  transition: color .4s ease;
}
.f-n { padding-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; transition: color .4s ease; }
.f-t { margin: 0; font-size: clamp(17px, .5rem + .55vw, 20px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.floors li.done { color: var(--ink-3); }
.floors li.on { color: var(--ink); }
.floors li.on .f-n { color: var(--accent); }
.f-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.3, .7, .2, 1); }
.f-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .3s ease; }
.floors li.on .f-more { grid-template-rows: 1fr; }
.floors li.on .f-in { opacity: 1; transition: opacity .5s ease .18s; }
.f-h { margin: 0; padding-top: clamp(8px, 1.4vh, 14px); font-size: clamp(21px, .55rem + 1.05vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -.017em; color: var(--ink); text-wrap: balance; }
.f-d { margin: 0; padding: 12px 0 clamp(4px, .8vh, 10px); max-width: 30em; font-size: clamp(16px, .5rem + .5vw, 18px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
/* at the end every unit is back in: every line dark, and a closing sentence */
.arch-end { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.3, .7, .2, 1); }
.end-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .3s ease; }
.arch.fin .arch-end { grid-template-rows: 1fr; }
.arch.fin .end-in { opacity: 1; transition: opacity .6s ease .2s; }
.arch.fin .floors li { color: var(--ink); }
.arch.fin .floors li .f-n { color: var(--accent); }
.arch-end .f-h { padding-top: clamp(18px, 3vh, 30px); }
/* without WebGL: no rack, every unit open, as plain text */
.nogl .e-pin { height: auto; }
.nogl .e-stage { position: static; height: auto; }
.nogl .arch { grid-template-columns: minmax(0, 40em); }
.nogl .arch-draw { display: none; }
.nogl .floors li .f-more { grid-template-rows: 1fr; }
.nogl .floors li .f-in { opacity: 1; }
.nogl .floors li { color: var(--ink); }
/* a wide screen of little height: only the unit in view, beside the rack */
@media (min-width: 700px) and (max-height: 699px) {
  .arch { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .floors { border-top: 0; }
  .floors li { border: 0; padding: 0; }
  .floors li:not(.on) { display: none; }
  .arch.fin .floors { display: none; }
  .arch.fin .arch-end .f-h { padding-top: 0; }
  .f-h { font-size: 20px; }
  .f-d { font-size: 15px; line-height: 1.5; }
}
@media (max-width: 899px), (max-width: 1100px) and (max-aspect-ratio: 5/6) {
  .product-top { flex-direction: column; align-items: flex-start; }
  .e-head { padding-top: 32px; }
  .e-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; top: calc(var(--bar) + 20px); }
  .engine .big-title { font-size: 40px; }
  .e-text { font-size: 16px; }
  .e-text .e-lead { font-size: 21px; }
}
/* A tablet held upright (round 42): the phone's order, one thing under
   another, but at the tablet's size. */
@media (min-width: 700px) and (max-width: 899px) and (min-height: 700px), (min-width: 900px) and (max-width: 1100px) and (max-aspect-ratio: 5/6) {
  .e-head { padding-top: 6vh; }
  .e-intro { gap: 40px; max-width: 46em; top: calc(var(--bar) + 4vh); }
  .engine .big-title { font-size: 8vw; }
  .e-text { font-size: 19px; }
  .e-text .e-lead { font-size: 30px; }
}
/* On a phone, and a tablet held upright: the rack on top, the unit in
   view told below it; at the end, the closing sentence. */
@media (max-width: 699px), (max-width: 899px) and (min-height: 700px), (max-width: 1100px) and (max-aspect-ratio: 5/6) {
  .e-pin { height: 500vh; }
  .arch { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46svh minmax(0, 1fr); align-items: start; gap: clamp(12px, 2.4svh, 28px); }
  .arch-draw { grid-row: 1; }
  .arch-text { grid-row: 2; }
  .floors { border-top: 0; }
  .floors li { border: 0; padding: 0; grid-template-columns: 32px minmax(0, 1fr); }
  .floors li:not(.on) { display: none; }
  .arch.fin .floors { display: none; }
  .arch.fin .arch-end .f-h { padding-top: 0; }
  .f-n { padding-top: 5px; }
  .f-t { font-size: 17px; }
  .f-h { padding-top: 8px; font-size: 22px; }
  .f-d { padding: 10px 0 0; font-size: 16px; line-height: 1.5; }
}
@media (min-width: 700px) and (max-width: 899px) and (min-height: 700px), (min-width: 900px) and (max-width: 1100px) and (max-aspect-ratio: 5/6) {
  .arch { grid-template-rows: 48svh minmax(0, 1fr); }
  .arch-draw { width: min(100%, 680px); justify-self: center; }
  .arch-text { max-width: 40em; }
  .floors li { grid-template-columns: 40px minmax(0, 1fr); }
  .f-t { font-size: 20px; }
  .f-h { font-size: 30px; }
  .f-d { font-size: 19px; }
}
/* on a phone the rack is larger (round 54): its picture runs to both
   edges of the screen, and engine.js frames it closer */
@media (max-width: 699px) {
  .arch-draw { margin-inline: calc(-1 * var(--gut)); }
}
@media (max-width: 699px) and (max-height: 700px) {
  .arch { grid-template-rows: 43svh minmax(0, 1fr); }
  .f-h { font-size: 20px; }
  .f-d { font-size: 15px; line-height: 1.45; }
}

/* 3. Use cases: the title on top, then the house; the three cases come in
   beside it, airy, the one in view dark and the others grey */
.cases-title { text-align: center; pointer-events: none; }
/* On a wide screen the title stands over the house in its own layer: it
   holds for a moment (the 30vh under it) and then leaves with the page,
   by the browser's own sticky, which stays smooth on a phone or tablet
   too. On a narrow screen the copy inside the stage stays at its top. */
.cases-head { display: none; }
.cases-title .kicker { margin-bottom: clamp(14px, 2.4vh, 24px); }
.cases-title .big-title { font-size: clamp(38px, 6.2vw, 116px); }
.cases-title .big-title span { margin-inline: auto; }
.cases-title .i3 { --in: -7vw; }
/* the list comes in the moment the house has arrived at the left, its
   lines snapping in one after another */
.cases-list li { opacity: 0; transform: translateX(36px); }
.cases .side.shown li { opacity: 1; transform: none; transition: opacity .35s ease, transform .7s cubic-bezier(.25, 1.25, .4, 1), color .5s ease; }
.cases .side.shown li:nth-child(2) { transition-delay: .08s, .08s, 0s; }
.cases .side.shown li:nth-child(3) { transition-delay: .16s, .16s, 0s; }
.cases-list { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(28px, 7vh, 76px); }
.cases-list li { color: var(--ink-4); transition: color .5s ease; }
.cases-list li.on { color: var(--ink); }
.cases-list h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(22px, .9rem + .9vw, 32px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.cases-list p { max-width: 26em; margin-top: 10px; padding-left: 38px; font-size: clamp(15px, .55rem + .45vw, 17.5px); line-height: 1.5; }
.ico { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
/* (a tablet held upright, up to 1100 px, keeps the narrow order: below) */
@media (min-width: 1101px), (min-width: 900px) and (min-aspect-ratio: 501/600) {
  /* the house takes the whole stage; the list stands over its right side */
  .cases .stage { display: block; }
  .cases .draw { position: absolute; top: var(--bar); left: 0; width: 100%; height: calc(100% - var(--bar)); }
  .cases-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: block;
    padding: calc(var(--bar) + clamp(28px, 6vh, 72px)) var(--gut) 0;
    pointer-events: none;
  }
  /* the room the title holds over: content, since a sticky element never
     moves into its container's padding */
  .cases-head::after { content: ""; display: block; height: 30vh; }
  .cases-head .cases-title { position: sticky; top: calc(var(--bar) + clamp(28px, 6vh, 72px)); }
  .stage > .cases-title { display: none; }
  .cases .side {
    position: absolute;
    top: var(--bar);
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    width: min(36%, 540px);
    padding: 0 var(--gut) 0 0;
  }
}
@media (max-width: 899px), (max-width: 1100px) and (max-aspect-ratio: 5/6) {
  /* on a phone the walk past the house is shorter */
  .cases { height: 440vh; }
  /* on a phone: the title, the house beneath it, the list below */
  .cases .stage { grid-template-rows: auto 38svh auto; }
  .cases-title { padding: clamp(16px, 3vh, 32px) var(--gut) 0; }
  .cases-list li { opacity: 1; transform: none; }
  .cases-list { gap: 14px; margin-top: 8px; }
  .cases-list li:not(.on) p { display: none; }
  .cases-list p { padding-left: 38px; }
}
@media (min-width: 700px) and (max-width: 899px) and (min-height: 700px), (min-width: 900px) and (max-width: 1100px) and (max-aspect-ratio: 5/6) {
  /* on a tablet held upright: a larger house, and the whole list beneath
     it, the case in view dark and the others grey, as on a wide screen */
  .cases .stage { grid-template-rows: auto 46svh auto; }
  .cases-title .big-title { font-size: 7.6vw; }
  .cases-list { gap: 26px; max-width: 32em; margin: 12px auto 0; }
  .cases-list li:not(.on) p { display: block; }
  .cases-list h3 { font-size: 26px; }
  .cases-list p { font-size: 17px; }
  .statement { font-size: 8.6vw; }
}

/* 4. Our mission: one sentence, very large; the page holds while its words
   turn from grey to ink (site.js) */
.mission { position: relative; height: 230vh; }
.mission-page {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3vh, 32px);
  min-height: 100svh;
  padding: calc(var(--bar) + 24px) var(--gut) 40px;
}
.mission .kicker { margin: 0; }
.statement {
  max-width: 15em;
  font-size: clamp(38px, 6.2vw, 112px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: pretty;
}
.statement .w { color: var(--ink-4); transition: color .35s ease; }
.statement .w.lit { color: var(--ink); }
.statement .w.end.lit { color: var(--accent); }

/* On a touch screen (round 43) the parts that hold the page last the same
   travel of the finger on every screen, rather than so many screen
   heights: a tablet's screen is twice a phone's, so it held twice as many
   swipes and felt slow. The ledger and the mission keep up by themselves
   (engine.js, site.js), so a quick swipe still shows them write. */
@media (any-pointer: coarse) {
  .e-pin { height: calc(100svh + 3000px); }
  /* the engine's title holds as long as the one over the house */
  .e-head::after { height: 170px; }
  .cases { height: calc(100svh + 2800px); }
  /* the title over the house holds until the house moves (t = .06) */
  .cases-head::after { height: 170px; }
  /* the sentence holds longer, so that two flicks never carry it away half lit (round 51) */
  .mission { height: calc(100svh + 1600px); }
}

/* 4. Contact, large */
.contact {
  padding: clamp(96px, 18vh, 200px) var(--gut) clamp(96px, 16vh, 180px);
  scroll-margin-top: var(--bar);
}
/* one line where there is room; on a phone it breaks after the @ and stays large */
.big-mail {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(36px, 7.4vw, 112px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--accent);
}
.big-mail .nb { white-space: nowrap; }
.big-mail .arr {
  display: inline-block;
  width: .62em;
  height: .62em;
  margin-left: .2em;
  vertical-align: -.04em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: translate .3s cubic-bezier(.16, 1, .3, 1);
}
.big-mail:hover { color: var(--accent-ink); }
.big-mail:hover .arr { translate: .12em 0; }

/* ---------- the footer ---------- */
.foot {
  padding: clamp(48px, 8vh, 88px) var(--gut) calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--foot-bg);
  border-top: 1px solid var(--foot-edge);
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
  overflow: hidden;
  container-type: inline-size;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .brand { color: #fff; }
.foot-brand p { max-width: 18em; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-h {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}
.foot-col a { justify-self: start; transition: color .2s ease; }
.foot-col a:hover, .foot-end a:hover { color: #fff; }
.foot :focus-visible { outline-color: #fff; }
.foot-word {
  margin: clamp(40px, 8vh, 96px) 0 0;
  /* the word, large but no longer across the whole footer */
  font-size: 12vw;
  font-size: calc(100cqi / 7.6);
  font-weight: 500;
  line-height: .74;
  letter-spacing: -.045em;
  /* the accent, a shade lighter on the dark ground */
  color: #B8645B;
  white-space: nowrap;
  user-select: none;
}
.foot-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(20px, 3vh, 32px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}
.foot-note { flex-basis: 100%; color: rgba(255, 255, 255, .38); }
.foot-col a { white-space: nowrap; }
@media (max-width: 899px) {
  /* columns as wide as their words, so the address never breaks */
  .foot-top { grid-template-columns: max-content max-content; column-gap: clamp(36px, 14vw, 96px); }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------- Impressum and Privacy ---------- */
.legal .bar { background: var(--bar-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.legal main { padding: calc(var(--bar) + clamp(56px, 12vh, 140px)) var(--gut) clamp(72px, 12vh, 140px); }
.page-head { display: grid; gap: 18px; margin-bottom: clamp(48px, 9vh, 96px); }
.page-head h1 {
  font-size: clamp(48px, 8vw, 128px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.04em;
}
.langs { display: flex; gap: 10px; font-size: 14px; color: var(--ink-3); }
.langs a { color: var(--accent); }
.langs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.block { max-width: 1100px; scroll-margin-top: calc(var(--bar) + 24px); }
.block + .block { margin-top: clamp(64px, 12vh, 120px); }
.block-title { font-size: clamp(24px, 1rem + 1.2vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.block-sub, .lede, .promise { margin-top: 14px; max-width: 40em; color: var(--ink-2); }
.promise { font-size: 18px; color: var(--ink); }
.rows { margin-top: 36px; border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 8px 32px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}
.row h3 { font-size: 15px; font-weight: 500; line-height: 1.5; }
.text { display: grid; gap: 10px; max-width: 40em; color: var(--ink-2); }
.text a, .lede a, .block-sub a { color: var(--accent); }
.text a:hover, .lede a:hover, .block-sub a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
address { font-style: normal; }
.pairs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.pairs dt { color: var(--ink-3); }
.pairs dd { margin: 0; }
@media (max-width: 699px) {
  .row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .lg-row .c b, .lg-row .c .k, .lg-more, .lg-h, .lg-row .n { transition: none; }
  .snap-in span { transition: none; transform: none !important; }
  .cases-list li, .cases .side.shown li, .bar, .btn, .big-mail .arr { transition: none; }
}
