/* ------------------------------------------------------------------
   CONCEPT: two-tone-glass. Ink on paper, two colours for light.
   Satoshi says it, Zodiak answers, Russo One is the wordmark only.
   Text is black. Backgrounds are white. Colour is light: it lives in
   glass (the hero), in progress (the bar, the nav line) and in the
   closing band. Nothing here is grey.
------------------------------------------------------------------- */

@font-face { font-family: 'Satoshi'; src: url('fonts/Satoshi-Variable.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('fonts/Satoshi-VariableItalic.woff2') format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Zodiak'; src: url('fonts/zodiak-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Zodiak'; src: url('fonts/zodiak-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Zodiak'; src: url('fonts/zodiak-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Zodiak'; src: url('fonts/zodiak-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Zodiak'; src: url('fonts/zodiak-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Russo One'; src: url('fonts/RussoOne-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #000000;
  --blue: #1B43D0;
  --orange: #D9643B;
  --navy: #0B1F6B;
  --blue-tint: #DCE4FA;
  --orange-tint: #F9E2D6;
  --navh: 66px;
  --grad: linear-gradient(90deg, var(--blue), var(--orange));
  --sans: 'Satoshi', Helvetica, Arial, sans-serif;
  --serif: 'Zodiak', Georgia, serif;
  --wordmark: 'Russo One', var(--sans);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.5rem, 5vw, 4.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--blue); color: var(--paper); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { position: relative; z-index: 1; background: var(--paper); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- reveal (wipe, never fade). The clip lives on the inner
   .rv-i: Chrome's IntersectionObserver honours clip-path, so a clipped
   target would never intersect. ---------- */

.rv-i {
  display: inline-block;
  max-width: 100%;
  clip-path: inset(-6% -3% 106% -3%);
  transform: translateY(14px);
  transition: clip-path 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.rv.in .rv-i { clip-path: inset(-6% -3% -18% -3%); transform: none; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.05rem var(--pad);
  background: var(--paper);
  --sp: 0;
}

/* scroll progress: the two colours draw along the bottom edge */
.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  clip-path: inset(0 calc((1 - var(--sp)) * 100%) 0 0);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  padding: 0.7rem 0;
  margin: -0.7rem 0;
  font-family: var(--wordmark);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.o-mark { flex: none; height: 1.15rem; width: auto; }

.nav-links { display: flex; gap: clamp(1.5rem, 2.6vw, 2.5rem); list-style: none; font-weight: 500; font-size: 0.875rem; }

.nav-links a {
  display: inline-block;
  padding-bottom: 2px;
  background: var(--grad) bottom left / 0% 2px no-repeat;
  transition: background-size 0.3s var(--ease);
}

.nav-links a:hover, .nav-links a[aria-current="page"] { background-size: 100% 2px; }

.nav-cta { justify-self: end; }
.menu-btn { display: none; justify-self: end; font-weight: 600; font-size: 0.875rem; padding: 0.7rem 0.4rem; margin: -0.7rem -0.4rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 99px;
  padding: 1rem 1.9rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn--sm { padding: 0.65rem 1.15rem; font-size: 0.8125rem; }

/* ---------- mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 5rem var(--pad) 2.5rem;
  background: var(--paper);
}

.menu::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.menu.open { display: flex; }
.menu-close { position: absolute; top: 1.05rem; right: var(--pad); font-weight: 600; font-size: 0.875rem; }

.menu a {
  font-weight: 900;
  font-size: clamp(2.2rem, 10.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  clip-path: inset(0 0 100% 0);
  transform: translateY(16px);
  transition: clip-path 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}

.menu.open a { clip-path: inset(-6% 0 -18% 0); transform: none; }
.menu .btn { margin-top: 1.5rem; align-self: flex-start; clip-path: none; transform: none; font-size: 0.9375rem; letter-spacing: 0.01em; line-height: 1; }

/* ---------- hero: the words on paper, a wall of liquid glass on the right half ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  padding-top: var(--navh);
}

.hero-copy { align-self: center; padding: 3rem var(--pad) 4rem; }

.hero h1 {
  font-weight: 900;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

/* AI sits above the TO of AUTOMATION: an invisible AU holds the space */
.h1-ghost { visibility: hidden; }

/* the serif line is drawn as an outline, then fills with ink once the page has landed */
.sub {
  position: relative;
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.sub .outline { -webkit-text-stroke: 1px var(--ink); color: transparent; }
.sub .fill {
  position: absolute;
  inset: 0;
  color: var(--ink);
  clip-path: inset(0 100% 0 0);
}
/* ink in slowly, hold a couple of seconds, ink back out, rest, again */
.loaded .sub .fill { animation: inkline 11s var(--ease) 0.6s infinite; }
@keyframes inkline {
  0% { clip-path: inset(0 100% 0 0); }
  28% { clip-path: inset(0 0 0 0); }
  62% { clip-path: inset(0 0 0 0); }
  88% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}

.hero-lead { margin-top: 1.5rem; font-size: 1.0625rem; line-height: 1.5; max-width: 28ch; }

.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-cta small { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; }

/* proof under the button: five ink stars, then client logos in ink drifting left to right */
.hero-proof { display: flex; align-items: center; gap: 1.75rem; margin-top: 1.5rem; }
.stars { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.stars .star { width: 16px; height: 16px; color: var(--ink); }
.stars span { margin-left: 0.6rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.logo-mq { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--ink); contain: inline-size; }
.logo-row { display: flex; align-items: center; gap: 2.5rem; width: max-content; padding-right: 2.5rem; animation: logos 16s linear infinite; }
.logo-row img { height: 26px; width: auto; }
@keyframes logos { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* the glass wall */

.glass {
  position: relative;
  min-height: calc(100svh - var(--navh));
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
  --sy: 0;
}

/* the colour field: blurred pools of the two colours, drifting, leaning toward the pointer */
.field { position: absolute; inset: -12%; --mx: 0; --my: 0; }

.blob {
  position: absolute;
  width: var(--s);
  aspect-ratio: 1;
  left: var(--x);
  top: var(--y);
  transform: translate(calc(var(--mx) * var(--px) * 1px), calc(var(--my) * var(--py) * 1px));
  will-change: transform;
}

.blob i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c);
  filter: blur(var(--bl, 64px));
  animation: drift calc(var(--t, 22s) * 3) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(calc(var(--dx, 5%) * 0.35), calc(var(--dy, -6%) * 0.35)) scale(1.02); }
}

/* the form: one sheet of glass cut to a bar-code silhouette, bars centred on the
   midline, each corner curving into its neighbour, heights breathing over time
   and rising under the pointer (the path is written by motion.js) */
.wave {
  position: absolute;
  inset: 0;
  clip-path: url(#clip-0);
  -webkit-backdrop-filter: blur(12px) saturate(1.5) brightness(1.1) contrast(1.12);
  backdrop-filter: blur(12px) saturate(1.5) brightness(1.1) contrast(1.12);
  /* every column carries a bright core down its middle and a thin edge, repeating at the bar width */
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 255, 255, 0.12) 66%, rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, 0.3) 100%);
  background-size: calc(100% / var(--n, 16)) 100%;
}

/* no drawn outline: the edge is a soft glow of the same silhouette, blurred outward,
   plus a wide blurred rim, so the form melts into the field like light through glass */
.wave-soft { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wave-soft .halo { fill: #fff; fill-opacity: 0.2; }
.wave-soft .rim { fill: none; stroke: #fff; stroke-opacity: 0.36; stroke-width: 5; }
.wave-clip { position: absolute; width: 0; height: 0; }

/* a specular band that follows the pointer across the rods */
.shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  --sx: 50%;
  background: linear-gradient(90deg, transparent calc(var(--sx) - 10%), rgba(255, 255, 255, 0.6) var(--sx), transparent calc(var(--sx) + 10%));
  mix-blend-mode: soft-light;
}

/* the hero picture: edge to edge on the right half, the lockup big over it */
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.glass-mark {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.14em;
  font-family: var(--wordmark);
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--paper);
  pointer-events: none;
  white-space: nowrap;
}

.glass-mark .o-mark { height: 0.86em; }

/* ---------- sections ---------- */

.sec { padding: clamp(5rem, 12vh, 9rem) var(--pad); }

.sec h2 { font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 22ch; }

.lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.4; margin-top: 1rem; max-width: 44ch; }

/* rows */

.rows { margin-top: 3.5rem; border-top: 1px solid var(--ink); }

.row { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 3rem; padding: 2rem 0.25rem; }

.row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}

.row.in::after { transform: scaleX(1); }

.row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.25; letter-spacing: -0.005em; }
.row p { font-size: 0.875rem; max-width: 34rem; }
.row--link { color: inherit; }
.row--link h3 { transition: color 0.2s var(--ease); }
.row--link:hover h3 { color: var(--blue); }
.rows--tight { margin-top: 2.25rem; }
.rows--tight .row { padding: 1.5rem 0.25rem; }

.row h3, .row p { clip-path: inset(-6% -3% 106% -3%); transform: translateY(12px); transition: clip-path 0.7s var(--ease), transform 0.7s var(--ease); }
.row.in h3, .row.in p { clip-path: inset(-6% -3% -18% -3%); transform: none; }
.row.in p { transition-delay: 0.1s; }

/* process: the bar fills blue to orange with the scroll */

.process { --tp: 0; }

/* the rail: down, flat, down. An ink edge, a paper track, the two colours filling along it with the scroll */
.rail { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 120; margin-top: 3.5rem; overflow: visible; }
.rail path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rail-edge { stroke: var(--ink); stroke-width: 14; }
.rail-track { stroke: var(--paper); stroke-width: 12; }
.rail-fill { stroke: url(#railgrad); stroke-width: 12; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--tp)); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }

.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 1.8rem); line-height: 1.2; -webkit-text-stroke: 1px var(--ink); color: transparent; transition: color 0.5s var(--ease); }
.step.on h3 { color: var(--ink); }
.step p { margin-top: 0.75rem; font-size: 1rem; line-height: 1.5; }
.step p .w { color: transparent; transition: color 0.2s linear; }
.step p .w.on { color: var(--ink); }

/* marquee: names in ink, the two colours as the dots between them */

.mq { margin-top: 3rem; overflow: hidden; display: grid; gap: 0.9rem; }
.mq-row { display: flex; width: max-content; animation: mq 42s linear infinite; }
.mq-row.rev { animation-direction: reverse; animation-duration: 50s; }
.mq-set { display: flex; align-items: center; font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -0.01em; white-space: nowrap; }
.mq-set span { display: inline-flex; align-items: center; }
.mq-set span::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin: 0 2.25rem; }
.mq-set span:nth-child(even)::after { background: var(--orange); }

@keyframes mq { to { transform: translateX(-50%); } }

/* the Zodiak one-liner under a heading: outlined, then inked word by word */
.line { margin-top: 0.9rem; max-width: 40ch; font-family: var(--serif); font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.35; }
.body { margin-top: 1.25rem; max-width: 46ch; font-size: 0.9375rem; line-height: 1.6; }
.more { display: inline-block; margin-top: 1.1rem; font-weight: 600; font-size: 0.875rem; padding: 0.6rem 0 2px; background: var(--grad) bottom left / 100% 2px no-repeat; }

/* ---------- feature: words on one half, the picture edge to edge on the other ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 68svh; }
.feat-copy { align-self: center; padding: clamp(3.5rem, 8vh, 6rem) var(--pad); }
.feat-copy h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 16ch; }
.feat-art { position: relative; min-height: 68svh; }
.feat-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-art--strip img { object-fit: contain; padding: 2.5rem var(--pad); }
.feat--flip .feat-copy { order: 2; }
.feat--flip .feat-art { order: 1; }
.feat + .feat { border-top: 1px solid var(--ink); }
main > .feat:first-child { margin-top: var(--navh); }

/* ---------- two testimonials side by side: no box around the whole, the logo in clean black ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem); padding: 1rem var(--pad) clamp(4rem, 10vh, 8rem); }
.card h2 { margin-top: 1.6rem; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 16ch; }
.card .line { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }
.card .body { font-size: 0.9rem; }
.card-logo { display: block; height: 44px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }

/* a small quote box: placeholder until the client's own words arrive */
.quote { margin-top: 1.5rem; max-width: 34rem; padding: 1rem 1.15rem; border: 1px solid var(--ink); border-radius: 14px; }
.quote p { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 1rem; line-height: 1.4; }
.quote footer { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- page hero: the colour field is the ground; the statement and its
   line sit on its paper, the glass form holds the right ---------- */

.page-hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--navh) + 4rem) var(--pad) 4rem;
  display: grid;
  align-content: center;
  isolation: isolate;
  overflow: hidden;
}

.page-glass { position: absolute; top: var(--navh); right: 0; bottom: 0; width: 54%; z-index: -1; min-height: 0; }

/* paper fades over the field's left edge so the words read */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 42%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.page-copy { position: relative; z-index: 1; max-width: 46rem; }

.page-hero h1 { font-weight: 900; font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: 0.98; letter-spacing: -0.03em; max-width: 12ch; }

.page-hero .line { font-size: clamp(1.3rem, 2vw, 1.8rem); max-width: 30ch; }
.page-hero .body { margin-top: 1.75rem; }
.page-hero--plain { min-height: 0; padding-bottom: 2rem; }
.page-hero--plain::before { display: none; }

/* a picture beside the words: a plain rectangle at its own proportion, sitting next to the text */
.page-hero--image { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.page-hero--image h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.page-hero--image::before { display: none; }
.page-hero--image .page-copy { max-width: 46rem; order: 1; }
.page-hero--image .page-art { position: static; order: 2; max-width: 800px; width: 100%; justify-self: end; }
.page-art img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }

/* two screens layered: the terminal on top, a smaller black-and-white one peeking out beneath */
.page-hero--image .page-art--layered, .page-art--layered { position: relative; padding: 38% 0 4% 22%; }
.page-art--layered .art-over { position: relative; z-index: 3; }
.page-art--layered .art-back { position: absolute; left: -7%; top: 0; z-index: 1; width: 62%; aspect-ratio: 4 / 3; }
.page-art--layered .art-back img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 62%; }

/* the o-mark laid over a picture, in ink or in paper */
.mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26%; pointer-events: none; }
.mark .art-mark { display: block; width: 100%; height: auto; }
.mark--ink { color: var(--ink); }
.mark--paper { color: var(--paper); }
.feat-art .mark { width: 18%; }
.art-back .mark { left: 50%; width: 30%; }
.ink .w { -webkit-text-stroke: 0.6px var(--ink); color: transparent; transition: color 0.6s var(--ease); }
.ink .w.on { color: var(--ink); }

.page-cta { margin-top: 2.5rem; }
.btn.rv-i { display: inline-flex; }

/* ---------- closer: the ask in ink, then colour takes the whole bottom of the page ---------- */

.closer { padding-bottom: clamp(6rem, 14vh, 10rem); }
.closer h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; max-width: 12ch; }
.closer .lead { max-width: 48ch; }
.closer-cta { margin-top: 2.25rem; }
.closer-cta .rv-i { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.closer-cta small { font-size: 0.8125rem; font-weight: 500; }
.closer-cta small a { display: inline-block; padding: 0.6rem 0; }

.band {
  position: relative;
  min-height: clamp(360px, 62svh, 640px);
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--paper);
}

.band .wave { -webkit-backdrop-filter: blur(18px) saturate(1.25) brightness(1.03); backdrop-filter: blur(18px) saturate(1.25) brightness(1.03); }

.band-mark {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  padding: 4rem var(--pad) 2rem;
  font-family: var(--wordmark);
  font-size: clamp(2.6rem, 11.5vw, 10.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.band-mark .o-mark { height: 0.86em; }

/* the footer line lives inside the colour, in paper */
.foot-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  margin: 0 var(--pad);
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  font-weight: 500;
}

.foot-row nav { display: flex; gap: 1.5rem; }
.foot-row nav a { padding-bottom: 2px; background: linear-gradient(var(--paper), var(--paper)) bottom left / 0% 1px no-repeat; transition: background-size 0.3s var(--ease); }
.foot-row nav a:hover { background-size: 100% 1px; }

/* ---------- footer: a solid bar under the pages, revealed as they scroll off ---------- */
.foot {
  position: sticky;
  bottom: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(2rem, 4vw, 4rem);
  padding-right: var(--pad);
  background: var(--ink);
  color: var(--paper);
}
.foot-copy { display: flex; flex-direction: column; justify-content: center; padding: 2.25rem var(--pad) 2rem; }
.wordmark--paper { color: var(--paper); font-size: 0.9rem; justify-self: start; align-self: flex-start; }
.foot-title { margin-top: 1.4rem; font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 3.9vw, 3.6rem); line-height: 1.02; letter-spacing: -0.01em; max-width: 12ch; }
.foot-line { margin-top: 0.8rem; max-width: 40ch; font-size: 0.9rem; line-height: 1.5; }
.btn--paper { align-self: flex-start; margin-top: 1.3rem; color: var(--ink); background: var(--paper); border-color: var(--paper); }
.btn--paper:hover { background: var(--ink); color: var(--paper); }
.foot-mark { display: inline-flex; align-items: center; gap: 0.5em; justify-self: center; font-family: var(--wordmark); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; letter-spacing: 0.06em; color: var(--paper); }
.foot-mark .o-mark { height: 0.95em; }
.foot-pages { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; justify-self: end; font-weight: 600; font-size: 0.9375rem; }
.foot-pages a, .foot-meta a { padding: 0.35rem 0; background: linear-gradient(var(--paper), var(--paper)) bottom left / 0% 1px no-repeat; transition: background-size 0.3s var(--ease); }
.foot-pages a:hover, .foot-meta a:hover { background-size: 100% 1px; }
.foot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.4); font-size: 0.8125rem; font-weight: 500; }
.foot-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin: -0.35rem 0; background: none; }
.foot-icon svg { width: 20px; height: 20px; }


/* case studies hero, the experiment: the rays run the full width behind the words,
   paper washes over the left so the words read, the colour comes through on the right */
.page-hero--wash { min-height: 0; padding: var(--navh) var(--pad) 0; display: grid; align-content: center; }
.page-hero--wash::before { display: none; }
.page-hero--wash .page-copy { max-width: 40%; padding: 6rem 0; }
.page-wash { position: absolute; top: var(--navh); left: 0; right: 0; height: 56.3vw; z-index: -1; }
.page-wash img { width: 100%; height: 100%; object-fit: cover; }
.page-wash::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 30%, rgba(255, 255, 255, 0.85) 44%, rgba(255, 255, 255, 0) 64%); }
.page-wash .mark { left: 76%; top: 50%; width: 9%; z-index: 1; }
.page-hero--wash { min-height: calc(var(--navh) + 56.3vw); }
/* no words on it for now: the rays run clean, the O sits big in the middle */
.page-hero--bare .page-wash::after { display: none; }
.page-hero--bare .page-wash .mark { left: 50%; width: 16%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* case studies hero: the words on paper, colour on the right half */
.page-hero--art::before { display: none; }
.page-hero--art .page-copy { max-width: 44%; }
.page-half { position: absolute; top: var(--navh); right: 0; width: 50%; z-index: -1; }
.page-half img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.page-hero--art { min-height: calc(var(--navh) + 50vw * 0.5628); padding-top: var(--navh); padding-bottom: 0; }

/* ---------- laptop heights ---------- */

@media (max-height: 800px) and (min-width: 761px) {
  .hero-copy { padding-top: 2rem; padding-bottom: 2.5rem; }
  .hero h1 { font-size: clamp(2.6rem, 5vw, 5rem); }
}

/* ---------- tablet ---------- */

@media (max-width: 1099px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav nav, .nav-cta { display: none; }
  .menu-btn { display: inline-block; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- mobile: words first, then the glass ---------- */

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: 2.5rem var(--pad) 2.5rem; }
  .hero h1 { font-size: clamp(2.3rem, 12vw, 3.2rem); }
  .sub { font-size: clamp(1.35rem, 6.2vw, 1.6rem); white-space: normal; }
  .hero-lead { margin-top: 1.1rem; }
  .hero-cta { margin-top: 1.5rem; }
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.25rem; }
  .logo-mq { width: 100%; align-self: stretch; }
  .hero-proof { min-width: 0; }
  .glass { min-height: 56svh; }
  .glass-mark { font-size: clamp(2rem, 10vw, 2.8rem); }

  .sec { padding: 4.5rem var(--pad); }
  .rows { margin-top: 2.5rem; }
  .row { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.6rem 0.25rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .mq-set { font-size: 1.15rem; }

  /* the field takes the top of the screen and fades down into paper under the words */
  .page-hero { min-height: 0; padding: calc(var(--navh) + 44svh) var(--pad) 3.5rem; align-content: end; }
  .page-glass { top: var(--navh); left: 0; right: 0; bottom: auto; width: auto; height: 60svh; }
  .page-hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.88) 66%, var(--paper) 80%); }
  .page-hero--plain { padding-top: calc(var(--navh) + 3rem); }
  .page-hero--art { min-height: 0; padding-top: calc(var(--navh) + 56.3vw + 2rem); padding-bottom: 2.5rem; }
  .page-hero--wash { min-height: 0; padding-top: calc(var(--navh) + 56.3vw + 1rem); padding-bottom: 1rem; }
  .page-hero--wash .page-copy { max-width: none; padding: 1rem 0 1.5rem; }
  .page-hero--bare { padding-top: calc(var(--navh) + 56.3vw); padding-bottom: 0; }
  .page-hero--bare .page-wash .mark { width: 22%; }
  .page-hero--frame { padding-top: calc(var(--navh) + 1.5rem); }
  .page-hero--frame .frame { width: 100%; }
  .frame .mark { width: 22%; }
  .signup-row { grid-template-columns: 1fr; }
  .signup-row .btn { justify-self: start; }
  .page-wash::after { display: none; }
  .page-wash .mark { left: 50%; width: 16%; }
  .page-hero--art .page-copy { max-width: none; }
  .page-half { left: 0; right: 0; width: auto; }
  .foot { grid-template-columns: 1fr; position: static; padding-right: 0; row-gap: 1.75rem; }
  .foot-copy { padding: 2.5rem var(--pad) 0; }
  .foot-mark { justify-self: start; margin-left: var(--pad); }
  .foot-pages { justify-self: start; margin: 0 var(--pad) 2.5rem; }
  .page-hero--image { grid-template-columns: 1fr; row-gap: 2rem; padding-top: calc(var(--navh) + 2rem); }
  .cards { grid-template-columns: 1fr; gap: 3rem; }
  .page-hero--image .page-art { order: -1; max-width: none; width: auto; justify-self: stretch; margin: 0 calc(-1 * var(--pad)); overflow: hidden; }
  .page-hero--image .page-art--layered { padding: 40% var(--pad) 4% 22%; }
  .page-art--layered .art-back { left: 0; width: 60%; }
  .feat { grid-template-columns: 1fr; min-height: 0; }
  .feat-art { min-height: 52svh; order: 1; }
  .feat-copy { order: 2; padding: 2.5rem var(--pad) 3rem; }
  .feat-art--strip { min-height: 64svh; }
  .feat-art--strip img { padding: 1.5rem var(--pad); }
  .page-hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .ink { margin-top: 1.5rem; font-size: 1.25rem; max-width: none; }

  .band { min-height: 52svh; }
  .band-mark { padding: 3rem var(--pad) 1.5rem; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv-i, .row h3, .row p, .row::after, .menu a { transition: none; clip-path: none; transform: none; }
  .row::after { transform: scaleX(1); }
  .mq-row, .logo-row { animation: none; }
  .blob i { animation: none; }
  .blob { transform: none; }
  .sub .fill { animation: none; clip-path: inset(0); }
  .step h3, .step p .w, .ink .w { color: var(--ink); }
}

/* ---------- FAQ: hairline rows, the question in Satoshi, the answer opens beneath ---------- */
.faqs { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-top: 2.5rem; }
.faq-col { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0.25rem; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; transition: transform 0.3s var(--ease), background-color 0.2s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: background-color 0.2s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] summary i { transform: rotate(45deg); background: var(--ink); }
.faq[open] summary i::before, .faq[open] summary i::after { background: var(--paper); }
.faq summary:hover span { color: var(--blue); }
.faq p { padding: 0 3rem 1.25rem 0.25rem; font-size: 0.9375rem; line-height: 1.6; max-width: 62ch; }
@media (max-width: 900px) { .faqs { grid-template-columns: 1fr; } .faq-col + .faq-col { border-top: 0; } }

/* ---------- case studies: a framed rectangle in the middle of the page ---------- */
.page-hero--frame { min-height: 0; padding: calc(var(--navh) + 3rem) var(--pad) 1rem; display: grid; justify-items: center; }
.page-hero--frame::before { display: none; }
.frame { position: relative; width: min(100%, 56vw); aspect-ratio: 1672 / 941; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .mark { width: 18%; }

/* ---------- articles sign-up: an email, two honest checks, in ink ---------- */
.signup-form { margin-top: 2rem; max-width: 40rem; }
.signup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; align-items: end; }
.signup-row .btn { height: 44px; padding-top: 0; padding-bottom: 0; }
.check { display: flex; align-items: flex-start; gap: 0.7rem; margin-top: 1rem; font-size: 0.875rem; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check i { position: relative; flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--ink); border-radius: 4px; transition: background-color 0.15s var(--ease); }
.check i::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.check input:checked + i { background: var(--ink); }
.check input:checked + i::after { opacity: 1; }
.check input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.check.err i { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.signup-done { margin-top: 1.5rem; font-family: var(--serif); font-size: 1.1rem; }

/* ---------- legal documents: a readable column, numbered clauses ---------- */
.legal { max-width: 68ch; margin: 0 auto; padding: calc(var(--navh) + 4rem) var(--pad) 5rem; }
.legal h1 { font-weight: 900; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.legal-meta { margin-top: 1rem; font-size: 0.8125rem; font-weight: 500; line-height: 1.5; }
.legal .clause { margin-top: 2.25rem; }
.legal h2 { font-weight: 700; font-size: 1.125rem; line-height: 1.3; margin-bottom: 0.6rem; }
.legal p { font-size: 0.9375rem; line-height: 1.65; }
.legal p + p { margin-top: 0.75rem; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- the booking modal: the page blurs, a small paper card, a weekday calendar and 9 to 5 slots ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
.modal-card { position: relative; width: min(100%, 44rem); max-height: calc(100svh - 2rem); overflow: auto; padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem) 1.75rem; background: var(--paper); border: 1px solid var(--ink); border-radius: 22px; }
.modal-close { position: absolute; top: 1rem; right: 1.1rem; font-weight: 600; font-size: 0.8125rem; padding: 0.5rem 0.6rem; }
.modal-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; padding-right: 4rem; }
.modal-line { margin-top: 0.4rem; font-size: 0.875rem; }
.book-form { margin-top: 1.25rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.fld { display: block; }
.fld span { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.3rem; }
.fld input { width: 100%; font: inherit; font-size: 0.9375rem; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 10px; padding: 0.65rem 0.75rem; }
.fld input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.fld input.err { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.pick { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 1.25rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.cal-nav { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 0.875rem; }
.cal-nav:disabled { opacity: 0.25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-grid .dow { font-size: 0.6875rem; font-weight: 600; text-align: center; padding: 0.2rem 0; letter-spacing: 0.02em; }
.cal-day { height: 34px; font-size: 0.8125rem; border: 1px solid transparent; border-radius: 8px; transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease); }
.cal-day:hover:not(:disabled) { border-color: var(--ink); }
.cal-day:disabled { color: transparent; -webkit-text-stroke: 0.5px var(--ink); cursor: default; }
.cal-day.today { text-decoration: underline; text-underline-offset: 3px; }
.cal-day.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slots-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.slots-label span { font-weight: 400; display: block; margin-top: 0.1rem; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.slot { height: 32px; font-size: 0.75rem; font-weight: 500; border: 1px solid var(--ink); border-radius: 8px; transition: background-color 0.15s var(--ease), color 0.15s var(--ease); }
.slot:hover { background: var(--blue-tint); }
.slot.sel { background: var(--ink); color: var(--paper); }
.slots:empty::before { content: 'Pick a day first.'; font-size: 0.8125rem; grid-column: 1 / -1; -webkit-text-stroke: 0.4px var(--ink); color: transparent; }
.pick-summary { margin-top: 0.9rem; font-family: var(--serif); font-size: 1.05rem; min-height: 1.4em; }
.form-error { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--orange); font-weight: 500; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.form-actions small { font-size: 0.75rem; }
.book-done h3 { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin-top: 1rem; }
.book-done p { margin-top: 0.5rem; font-size: 0.9375rem; max-width: 40ch; }
.book-done a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .modal { padding: 0.75rem; align-items: end; }
  .modal-card { border-radius: 18px; padding: 1.4rem 1.1rem 1.25rem; }
  .fld-row { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
