/* Bill C-36 campaign site. The "Lost & Found" creative, set in our own
   typeface: Fabric Sans Black, ink and electric blue type on a
   photographed-LCD panel that stands between the visitor and a small business
   owner.

   Motion rules: anything that pins, hides or animates is scoped to html.motion
   (set before paint when the visitor has not asked for reduced motion) or to a
   class a script adds once it is running. Without them the page reads top to
   bottom with everything visible. */

@font-face { font-family: 'Fabric Sans'; src: url('../fonts/FabricSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fabric Sans'; src: url('../fonts/FabricSans-RegularItalic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fabric Sans'; src: url('../fonts/FabricSans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fabric Sans'; src: url('../fonts/FabricSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fabric Sans'; src: url('../fonts/FabricSans-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

/* The two holes a barrier can have. Registered so they can be transitioned. */
@property --ir { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@property --lr { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --ink: #0e1322;
  --blue: #0034d5;
  --blue-on-dark: #6ea2ff;
  /* Small blue type on the screen: the same blue, deep enough to read at body size (4.9:1). */
  --blue-on-screen: #002ab0;
  --arrow: #0665ff;
  --arrow-light: #5596ff;
  --screen: #9ab2ce;
  --paper: #f1f4f9;
  --white: #fff;
  --muted: rgba(14, 19, 34, 0.68);
  --rule: rgba(14, 19, 34, 0.18);

  --font: 'Fabric Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --radius: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}
html.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--arrow);
  outline-offset: 3px;
  border-radius: 3px;
}

.defs { position: absolute; }
.wrap { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.b { color: var(--blue); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 14px; border-radius: 5px;
  background: var(--white); color: var(--blue); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Buttons: the white, blue-edged button from the ads ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.1;
  color: var(--blue); background: var(--white);
  border: 1.5px solid var(--blue); border-radius: 5px;
  padding: 0.82em 1.15em;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 52, 213, 0.2), 0 12px 26px -12px rgba(14, 19, 60, 0.5);
  transition: background-color 0.18s, color 0.18s, transform 0.18s;
}
.btn:hover,
.btn.is-hover { background: var(--blue); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--small { font-size: 0.9375rem; padding: 0.62em 0.9em; box-shadow: none; }
.btn--solid { background: var(--blue); color: var(--white); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

/* ---------- The LCD surface ----------
   Red, green and blue sub-pixel columns with a faint row grid, mixed so the
   whole reads as the campaign's periwinkle. It is a small bitmap tile, not
   CSS gradients: Safari repaints a barrier whenever its mask changes, and a
   tile costs it almost nothing where three full-size gradients and a blend
   mode cost a third of a second. ::after lays light columns over the type,
   the way a photographed screen does. Nothing here animates.
   The tiles come from tools/build-lcd.py, which sets how strong the pattern
   is: half the raw sub-pixel contrast, so small type stays easy to read. */

.lcd {
  position: relative;
  isolation: isolate;
  background: var(--screen) url('../img/lcd.png?v=2') 0 0 / 96px 96px;
}
.lcd > * { position: relative; z-index: 1; }
.lcd::after {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background: url('../img/lcd-over.png?v=2') 0 0 / 96px 96px;
}

/* ---------- The barrier ----------
   An LCD panel with up to two holes: the iris (--ir, a share of the distance
   to the panel's farthest corner, opened by scrolling or by being found) and
   the lens (--lr, in px, which follows the cursor). */

.barrier {
  --ix: 50%; --iy: 10%;
  --lx: 50%; --ly: 50%;
  border-radius: var(--radius);
  color: var(--ink);
  -webkit-mask-image:
    radial-gradient(circle farthest-corner at var(--ix) var(--iy), transparent calc(var(--ir) * 0.84), #000 var(--ir)),
    radial-gradient(circle at var(--lx) var(--ly), transparent calc(var(--lr) * 0.8), #000 var(--lr));
  mask-image:
    radial-gradient(circle farthest-corner at var(--ix) var(--iy), transparent calc(var(--ir) * 0.84), #000 var(--ir)),
    radial-gradient(circle at var(--lx) var(--ly), transparent calc(var(--lr) * 0.8), #000 var(--lr));
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.barrier-arrows { width: clamp(34px, 9cqi, 60px); aspect-ratio: 40 / 30; flex: none; }

/* ---------- Cursors ---------- */

.cur { shape-rendering: crispEdges; overflow: visible; flex: none; max-width: none; }
.cur--hand { width: calc(17 * var(--cpx, 2px)); height: calc(21 * var(--cpx, 2px)); --cur-line: var(--ink); --cur-fill: #fff; }
.cur--arrow { width: calc(12 * var(--cpx, 2px)); height: calc(19 * var(--cpx, 2px)); --cur-line: #fff; --cur-fill: var(--ink); }
.cur-line { fill: var(--cur-line, #0e1322); }
.cur-fill { fill: var(--cur-fill, #fff); }

.cursor,
.ghost {
  position: fixed; left: 0; top: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.cursor { z-index: 1000; --cpx: 2px; }
.ghost { position: absolute; z-index: 6; --cpx: 3px; transition: opacity 0.35s; }
.cursor .cur,
.ghost .cur {
  position: absolute; left: 0; top: 0;
  filter: drop-shadow(calc(var(--cpx) * 0.5) var(--cpx) 0 rgba(14, 19, 34, 0.3));
  transition: transform 0.12s;
}
/* The hand's hot spot is its fingertip. */
.cursor .cur--hand,
.ghost .cur--hand { left: calc(-5.5 * var(--cpx)); opacity: 0; }
.cursor.is-hand .cur--hand,
.ghost.is-hand .cur--hand { opacity: 1; }
.cursor.is-hand .cur--arrow,
.ghost.is-hand .cur--arrow { opacity: 0; }
.cursor.is-down .cur { transform: scale(0.9); }
html.pointer-seen .cursor { opacity: 1; }
html.pointer-seen .cursor.is-hidden { opacity: 0; }
.ghost.is-on { opacity: 1; }

html.cursor-on,
html.cursor-on * { cursor: none !important; }
html.cursor-on input,
html.cursor-on textarea,
html.cursor-on select { cursor: text !important; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  color: var(--white);
  transition: color 0.3s, background-color 0.3s;
}
.nav[data-tone='dark'] {
  color: var(--ink);
  background: rgba(241, 244, 249, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.nav[data-tone='light-bar'] {
  background: rgba(14, 19, 34, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
/* The standard Chamber of Progress logo, behaving as it does on
   progresschamber.org: the stacked lockup at the top of the page, folding to
   one line once the page scrolls. The numbers are that site's. The link's box
   stays one line tall so the bar never changes height; the stacked logo hangs
   below it, and the links move down to sit beside it. */
.logo { display: block; width: 167px; height: 76px; overflow: visible; }
.logo-text { fill: currentColor; }
.nav-logo { display: block; width: 167px; height: 27px; text-decoration: none; }
.nav .logo-text { transform: translate(36px, -21px) scale(0.6); transition: transform 0.3s var(--ease-out); }
.nav .logo-arrows { transform: scale(0.75); transition: transform 0.3s var(--ease-out); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 0.9375rem; font-weight: 600; transition: transform 0.3s var(--ease-out); }
html.js .nav:not(.is-scrolled) .logo-text,
html.js .nav:not(.is-scrolled) .logo-arrows { transform: none; }
html.js .nav:not(.is-scrolled) .nav-links { transform: translateY(24px); }
.nav-links > a:not(.btn) { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size 0.25s var(--ease-out); }
.nav-links > a:not(.btn):hover { background-size: 100% 2px; }
.nav-lang { display: inline-flex; gap: 8px; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.06em; }
.nav-lang a { text-decoration: none; opacity: 0.6; transition: opacity 0.2s; }
.nav-lang a:hover,
.nav-lang a:focus-visible { opacity: 1; }
.cta-short { display: none; }
@media (max-width: 880px) {
  .nav-links > a:not(.btn) { display: none; }
}
/* Phones keep the language switch. The links stay on the top row, beside the
   arrows, so they clear the stacked wordmark below them. */
@media (max-width: 600px) {
  .nav { gap: 12px; }
  .nav-links { gap: 12px; }
  html.js .nav:not(.is-scrolled) .nav-links { transform: none; }
  /* The logo's box narrows to its one-line width; the stacked wordmark hangs past it, under the links. */
  .nav-logo { width: 136px; }
  .btn--small { font-size: 0.8125rem; padding: 0.6em 0.75em; white-space: nowrap; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* ---------- 1. Hero ---------- */

.hero { position: relative; height: 100svh; background: var(--ink); color: var(--white); }
html.motion .hero { height: 250svh; }
.hero-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }

.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* The photo's eye line is 21% down. Aligning that point with the same point
     of the frame keeps the owner's eyes behind the panel at any window shape. */
  object-fit: cover; object-position: 53% 21%;
  transform-origin: 53% 21%;
  transform: scale(calc(1.07 - 0.07 * var(--iris, 0)));
  will-change: transform;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 19, 34, 0.55), rgba(14, 19, 34, 0) 20%);
}
/* The shade under "FOUND." fades in by opacity alone, on its own layer. */
.hero-shade::after {
  content: '';
  position: absolute; inset: 42% 0 0 0;
  background: linear-gradient(0deg, rgba(14, 19, 34, 0.86), rgba(14, 19, 34, 0));
  opacity: var(--iris, 0);
  will-change: opacity;
}

.hero-barrier {
  position: absolute;
  left: 53%; top: 17.5svh; bottom: 5svh;
  width: min(92vw, max(620px, 36vw));
  transform: translateX(-50%);
  container-type: inline-size;
  display: flex; flex-direction: column;
  padding: clamp(20px, 3vw, 44px);
  --iy: 6%;
  box-shadow: none;
}
.hero-barrier.is-gone { pointer-events: none; }
.hero-barrier-shadow {
  position: absolute;
  left: 53%; top: 17.5svh; bottom: 5svh;
  width: min(92vw, max(620px, 36vw));
  transform: translateX(-50%);
  border-radius: var(--radius);
  box-shadow: 0 36px 70px -18px rgba(14, 19, 34, 0.6), 0 6px 18px rgba(14, 19, 34, 0.28);
  opacity: calc(1 - var(--iris, 0) * 2.4);
  will-change: opacity;
  pointer-events: none;
}
html.motion .hero-barrier-shadow { opacity: 0; }
html.motion.is-loaded .hero-barrier-shadow { opacity: calc(1 - var(--iris, 0) * 2.4); transition: opacity 0.6s ease 0.7s; }
html.motion.is-loaded .hero.is-scrolled .hero-barrier-shadow { transition: none; }

.hero-title {
  margin-top: auto;
  font-weight: 900;
  font-size: min(16.6cqi, 8.7svh);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero-title .l { display: block; }
.key { transition: background-color 0.12s, color 0.12s; box-decoration-break: clone; }
.key.is-hit,
.key:hover { background: var(--blue); color: var(--white); box-shadow: 0.06em 0 0 var(--blue), -0.06em 0 0 var(--blue); }

.hero-lede {
  margin-top: 1.05em;
  max-width: 29em;
  text-wrap: pretty;
  font-size: clamp(1.0625rem, min(3.9cqi, 2.6svh), 1.75rem);
  line-height: 1.28;
  font-weight: 500;
}
.hero-lede strong { display: block; color: var(--blue-on-screen); font-weight: 800; }
.hero-cta { margin-top: 1.1em; }

/* Power on: a bright line that opens into the panel. */
html.motion .hero-barrier { clip-path: inset(50%); }
html.motion.is-loaded .hero-barrier { animation: power-on 0.85s var(--ease-io) 0.15s both; }
html.motion.is-loaded .hero-barrier.is-on { animation: none; clip-path: none; }
@keyframes power-on {
  0% { clip-path: inset(49.7% 47% 49.7% 47% round 8px); filter: brightness(3); }
  30% { clip-path: inset(49.7% 0 49.7% 0 round 8px); filter: brightness(3); }
  100% { clip-path: inset(0 0 0 0 round 8px); filter: brightness(1); }
}
html.motion .hero-barrier > * { opacity: 0; transform: translateY(0.5em); }
html.motion.is-loaded .hero-barrier > * {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.7s var(--ease-out);
  transition-delay: calc(0.75s + var(--i, 0) * 0.09s);
}
.hero-barrier > :nth-child(2) { --i: 1; }
.hero-barrier > :nth-child(3) { --i: 2; }
.hero-barrier > :nth-child(4) { --i: 3; }

.hero-found {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 5svh, 52px);
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  align-items: end; gap: clamp(16px, 3vw, 48px);
  pointer-events: none;
}
html.motion .hero-found { display: grid; }
.hero-found-word {
  font-weight: 900;
  /* Sized so the word and its full stop fit beside the copy column. */
  font-size: calc((100vw - 2 * var(--gutter) - 25rem - 3vw) / 3.06);
  line-height: 0.8; letter-spacing: -0.035em;
  margin-left: -0.04em;
  clip-path: inset(0 0 100% 0);
  transform: translateY(18%);
  transition: clip-path 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero-found-copy {
  font-size: clamp(1rem, 1.5vw, 1.3125rem); line-height: 1.35; font-weight: 500;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease 0.15s, transform 0.8s var(--ease-out) 0.15s;
}
.hero.is-found .hero-found-word { clip-path: inset(-10% -12% -10% -5%); transform: none; }
.hero.is-found .hero-found-copy { opacity: 1; transform: none; }

.hero-place,
.hero-cue {
  position: absolute; bottom: clamp(16px, 4svh, 36px);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.25;
  text-shadow: 0 1px 12px rgba(14, 19, 34, 0.6);
  transition: opacity 0.4s;
}
.hero-place { left: var(--gutter); }
.hero-place span { display: block; font-weight: 900; }
.hero-cue { right: var(--gutter); display: none; align-items: center; gap: 10px; }
html.motion .hero-cue { display: flex; }
.hero-cue::after {
  content: ''; width: 2px; height: 34px; background: currentColor;
  transform-origin: 0 0; animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1) translateY(34px) scaleY(0); }
}
.hero.is-scrolled .hero-cue,
.hero.is-scrolled .hero-place,
.hero.is-scrolled .ghost { opacity: 0; }

/* Short laptop screens: keep the arrows clear of the headline. */
@media (max-height: 760px) and (min-width: 721px) {
  .hero-barrier { padding-block: 24px; }
  .hero-barrier .barrier-arrows { width: 38px; }
  .hero-title { font-size: min(16.6cqi, 7.9svh); }
  .hero-lede { margin-top: 0.8em; }
  .hero-cta { margin-top: 0.9em; }
}
@media (max-width: 720px) {
  .hero-barrier, .hero-barrier-shadow { left: 50%; bottom: 9svh; }
  .hero-cue { right: 50%; transform: translateX(50%); bottom: 2.2svh; white-space: nowrap; }
  .hero-cue::after { height: 22px; }
  .hero-place { display: none; }
  .hero-found { grid-template-columns: 1fr; gap: 14px; }
  .hero-found-word { font-size: 30vw; }
  .ghost { --cpx: 2px; }
}

/* ---------- 2. Mission ---------- */

.mission { background: var(--paper); padding: clamp(96px, 17svh, 210px) 0 clamp(88px, 15svh, 180px); }
.mission-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(22px, 4svh, 44px); }
.mission-say {
  grid-column: 1 / span 11;
  font-size: clamp(1.9rem, 4.7vw, 4.6rem);
  line-height: 1.04; font-weight: 700; letter-spacing: -0.022em;
  text-wrap: pretty;
}
html.motion .mission-say .w { opacity: 0.14; transition: opacity 0.35s ease; }
html.motion .mission-say .w.on { opacity: 1; }
.mission-body { grid-column: 6 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(16px, 2vw, 32px); margin-top: clamp(12px, 3svh, 36px); color: var(--muted); }
@media (max-width: 900px) {
  .mission-say { grid-column: 1 / -1; }
  .mission-body { grid-column: 1 / -1; grid-template-columns: 1fr; }
}

/* ---------- 3. Found: the customer's side ---------- */

.flip { position: relative; background: var(--ink); color: var(--white); }
.flip-pin {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-content: center; justify-items: center; gap: 22px;
  padding: clamp(96px, 16svh, 160px) var(--gutter) clamp(48px, 8svh, 96px);
}
.flip-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58.5% 25%; }
.flip-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 19, 34, 0.6), rgba(14, 19, 34, 0) 26%); }
.flip-search, .flip-blur { display: none; }

.flip-ad,
.flip-lcd { position: relative; width: min(600px, 100%); border-radius: 10px; }

.flip-ad {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px;
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
  container-type: inline-size;
}
.flip-ad-label { font-weight: 900; font-size: clamp(1rem, 3.8cqi, 1.4rem); line-height: 1; }
.flip-ad-label span { display: block; }
.flip-ad-title { margin-top: 0.18em; font-weight: 900; font-size: clamp(2.4rem, min(16.4cqi, 17svh - 57px), 6rem); line-height: 0.92; letter-spacing: -0.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.flip-ad-meta { margin-top: 0.9em; font-size: clamp(0.9rem, 3cqi, 1.0625rem); font-weight: 600; }
.flip-ad-cur { position: absolute; right: 12%; bottom: 17%; --cpx: 3px; filter: drop-shadow(2px 3px 0 rgba(14, 19, 34, 0.3)); }

.flip-lcd {
  display: flex; flex-direction: column;
  padding: clamp(20px, 3vw, 44px);
  color: var(--ink);
  container-type: inline-size;
}
.flip-lcd-copy { font-size: clamp(1.5rem, 7.9cqi, 3.1rem); line-height: 1.04; font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
/* With no logo on the panel, the copy sits at its foot, as it does on the poster and the cards. */
.flip-lcd-copy:first-child { margin-top: auto; }
.flip-lcd-copy.b { margin-top: 0.6em; font-weight: 900; }

html.motion .flip { height: 380svh; }
html.motion .flip-pin { position: sticky; top: 0; height: 100svh; min-height: 0; display: block; padding: 0; }
/* Before the customer finds the shop the photo is out of focus. That is a
   small pre-blurred copy on top, faded out by opacity: a live blur filter on
   a full-screen photo is one of the slowest things a browser can be asked for. */
html.motion .flip-photo { transform: scale(1.08); transition: transform 1.4s var(--ease-out); will-change: transform; }
html.motion .flip.is-found .flip-photo { transform: none; }
html.motion .flip-blur {
  display: block;
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 58.5% 25%;
  transform: scale(1.1);
  transition: opacity 0.9s ease;
  will-change: opacity;
}
html.motion .flip.is-found .flip-blur { opacity: 0; }

html.motion .flip-search {
  position: absolute; left: 50%; top: 38svh;
  width: min(720px, 92vw);
  display: flex; align-items: center; gap: 14px;
  padding: 0.7em 1em;
  background: var(--white); color: var(--ink);
  border-radius: 999px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  font-size: clamp(1.15rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.2;
  transform: translate(-50%, 0);
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}
.flip-search svg { width: 1.1em; height: 1.1em; color: var(--blue); flex: none; }
.flip-query { white-space: pre; overflow: hidden; }
.flip-caret { width: 2px; height: 1.15em; background: var(--blue); margin-left: -10px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
html.motion .flip.is-found .flip-search { opacity: 0; transform: translate(-50%, -40px) scale(0.94); }

html.motion .flip-ad {
  position: absolute; left: 58.5%; top: 46svh; bottom: 7svh;
  width: min(600px, 92vw); min-height: 0;
  opacity: 0; transform: translate(-50%, 28px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.8s var(--ease-out);
}
html.motion .flip.is-found .flip-ad { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.25s; }
html.motion .flip-ad-cur { opacity: 0; transform: translate(60px, 40px); transition: opacity 0.4s ease 0.7s, transform 0.9s var(--ease-out) 0.7s; }
html.motion .flip.is-found .flip-ad-cur { opacity: 1; transform: none; }

/* The shutter: the bill comes down over the ad as the page scrolls. */
html.motion .flip-lcd {
  position: absolute; left: 58.5%; top: 13svh; bottom: 7svh;
  width: min(600px, 92vw);
  transform: translateX(-50%);
  clip-path: inset(0 0 calc((1 - var(--shut, 0)) * 100%) 0 round 10px);
  box-shadow: none;
}
html.motion .flip-lcd > * { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.7s var(--ease-out); }
html.motion .flip.is-shut .flip-lcd > * { opacity: 1; transform: none; }
html.motion .flip.is-shut .flip-lcd > :nth-child(2) { transition-delay: 0.12s; }

@media (max-width: 720px) {
  html.motion .flip-ad,
  html.motion .flip-lcd { left: 50%; }
  html.motion .flip-ad { top: 50svh; }
}

/* ---------- 4. Coast to coast ---------- */

.coast { position: relative; background: var(--paper); padding: clamp(72px, 12svh, 140px) 0 clamp(56px, 9svh, 110px); }
.coast-track {
  display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 44px);
  padding: 0 var(--gutter) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.coast-track::-webkit-scrollbar { display: none; }
/* Tiles carry a width, not a flex-basis: Safari leaves flex-basis out when it
   works out how wide the row is. */
.coast-intro { flex: none; width: min(84vw, 34rem); scroll-snap-align: start; align-self: center; }
.coast-title { font-weight: 900; font-size: clamp(2.6rem, 6.1vw, 5.9rem); line-height: 0.94; letter-spacing: -0.02em; }
.coast-title .b { display: block; text-wrap: balance; }
.nb { white-space: nowrap; }
.coast-intro p { margin-top: 1.2em; max-width: 24em; color: var(--muted); }

.shop { flex: none; width: min(76vw, 22rem); scroll-snap-align: center; container-type: inline-size; }
.shop-figure { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #c5d1e6; }
.shop-figure img { width: 100%; height: 100%; object-fit: cover; }
.shop-barrier {
  position: absolute; inset: 14% 8% 24% 8%;
  display: none; flex-direction: column;
  padding: 6cqi;
  --iy: 16%;
}
html.js .shop-barrier { display: flex; }
html.motion .shop-barrier { transition: --ir 1s cubic-bezier(0.3, 0.7, 0.1, 1); }
html.motion .shop-figure img { transition: transform 1.4s var(--ease-out); }
html.js .shop:not(.is-found) .shop-figure img { transform: scale(1.05); }
/* Until a shop is found its photo sits under a thin veil. */
html.js .shop-figure::after { content: ''; position: absolute; inset: 0; background: rgba(14, 19, 34, 0.2); pointer-events: none; }
html.motion .shop-figure::after { transition: opacity 0.9s ease; }
html.js .shop.is-found .shop-figure::after { opacity: 0; }
.shop.is-found .shop-barrier { --ir: 130%; pointer-events: none; }
.shop-line { margin-top: auto; font-weight: 900; font-size: 9.4cqi; line-height: 0.98; letter-spacing: -0.02em; }
.shop-line--long { font-size: 7.9cqi; }
.shop-line--xlong { font-size: 6.9cqi; }

.shop-city { margin-top: 16px; font-weight: 900; font-size: 1.625rem; line-height: 1; letter-spacing: -0.015em; }
.shop-kind { margin-top: 4px; font-weight: 700; line-height: 1.25; }
.shop-fact { margin-top: 6px; font-size: 1rem; line-height: 1.35; color: var(--muted); }
html.js .shop-fact { opacity: 0; transform: translateY(8px); }
html.js .shop.is-found .shop-fact { opacity: 1; transform: none; }
html.motion .shop-fact { transition: opacity 0.5s ease 0.25s, transform 0.7s var(--ease-out) 0.25s; }

.coast-outro { flex: none; width: min(76vw, 26rem); scroll-snap-align: center; align-self: center; }
.coast-outro-big { font-weight: 900; font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 0.98; letter-spacing: -0.02em; }
.coast-outro p + p { margin-top: 1.1em; color: var(--muted); }
.coast-scale { display: none; }

/* Wide screens with motion: the section pins and the page's vertical scroll
   carries the row from the Pacific to the Atlantic. */
html.pin-coast .coast { height: 460svh; padding: 0; }
html.pin-coast .coast-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(26px, 5svh, 52px);
  padding-top: 56px;
}
html.pin-coast .coast-track { overflow: visible; scroll-snap-type: none; width: max-content; padding-inline: 6vw; will-change: transform; }
html.pin-coast .coast-intro { width: 40vw; }
/* Five lines now, so the headline also answers to the window's height. */
html.pin-coast .coast-title { font-size: min(6.1vw, 10.4svh); }
html.pin-coast .shop { width: calc(55svh * 0.75); }
html.pin-coast .coast-outro { width: 30vw; }

html.pin-coast .coast-scale {
  display: flex; align-items: center; gap: 18px;
  padding-inline: 6vw;
  font-size: 0.75rem; font-weight: 700;
  color: var(--muted);
}
.coast-line { position: relative; flex: 1; height: 2px; margin-inline: 44px 8px; background: rgba(14, 19, 34, 0.2); }
.tick { position: absolute; left: var(--at); top: -5px; width: 2px; height: 12px; background: rgba(14, 19, 34, 0.5); transition: background-color 0.3s; }
.tick { font-style: normal; }
.tick b { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 800; transition: color 0.3s; }
.tick--left b { left: auto; right: -1px; transform: none; }
.tick--right b { left: -1px; transform: none; }
.tick--quiet { opacity: 0.7; }
.tick.is-on { background: var(--blue); }
.tick.is-on b { color: var(--blue); }
.coast-marker {
  position: absolute; left: var(--mk, 2.1%); top: 7px;
  --cpx: 2px; margin-left: calc(-5.5 * var(--cpx) + 1px);
  opacity: 0;
  transition: left 0.8s var(--ease-out), opacity 0.3s;
}
.coast-scale.has-mark .coast-marker { opacity: 1; }

/* ---------- 5. The balance ---------- */

.balance { background: var(--paper); padding: clamp(40px, 7svh, 88px) 0 clamp(96px, 16svh, 190px); }
.balance-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(24px, 4svh, 44px); padding-top: clamp(28px, 5svh, 56px); border-top: 3px solid var(--ink); }
.balance-title { grid-column: 1 / span 6; font-weight: 900; font-size: clamp(2.3rem, 5.6vw, 5.4rem); line-height: 0.94; letter-spacing: -0.02em; text-wrap: balance; }
.balance-title .b { display: block; }
.balance-body { grid-column: 8 / -1; display: grid; gap: 1.1em; align-content: start; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.45; }
.balance-body p:first-child { font-weight: 500; }
.balance-body p + p { color: var(--muted); }
@media (max-width: 900px) {
  .balance-title, .balance-body { grid-column: 1 / -1; }
}

/* ---------- 6. The stakes ---------- */

.stakes { background: var(--ink); color: var(--white); padding: clamp(96px, 16svh, 190px) 0 clamp(72px, 12svh, 150px); }
.stakes-title { display: inline; font-weight: 900; font-size: clamp(2.3rem, 7.2vw, 6.7rem); line-height: 0.96; letter-spacing: -0.02em; }
.stakes-title span { color: var(--blue-on-dark); }
/* Sits on the blue line's baseline, to its right, in two lines that together
   stand as tall as the blue capitals: its size is 0.39 of the headline's, so
   the two track each other at every width. Where there is no room it drops below. */
.stakes-sub { display: inline-block; vertical-align: baseline; margin: 0 0 0 clamp(12px, 2vw, 28px); font-size: clamp(0.9rem, 2.81vw, 2.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.012em; white-space: nowrap; color: rgba(255, 255, 255, 0.86); }
@media (max-width: 600px) {
  .stakes-sub { display: block; margin: 16px 0 0; font-size: 1.125rem; line-height: 1.25; letter-spacing: 0; white-space: normal; }
  .stakes-sub br { display: none; }
}

.figs { list-style: none; margin: clamp(40px, 8svh, 96px) 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.fig {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: end; column-gap: clamp(18px, 3.4vw, 56px);
  padding: clamp(20px, 3.4svh, 40px) 0 clamp(22px, 3.8svh, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
/* The numerals are the screen seen up close: lit red, green and blue columns. */
.fig-num {
  --t: clamp(5px, 0.72vw, 10px);
  display: block;
  font-weight: 900; font-size: clamp(4.6rem, 21vw, 15.75rem); line-height: 1; letter-spacing: -0.035em;
  margin-block: -0.13em -0.11em;
  font-variant-numeric: lining-nums;
  color: #b9c9ee;
  /* Each cell of the tile is one pixel of the screen: three lit columns and a dark gap. */
  background: url('../img/lcd-macro.png') 0 0 / calc(var(--t) * 8) calc(var(--t) * 8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fig-pre { display: block; margin-bottom: 0.5em; font-weight: 900; font-size: clamp(1.3rem, 2.5vw, 2.25rem); line-height: 1; letter-spacing: -0.015em; }
.fig-num--range { --t: clamp(3px, 0.4vw, 6px); font-size: clamp(2.9rem, 11.1vw, 8.3rem); line-height: 0.92; margin-block: -0.08em -0.06em; }
.fig-row { display: block; }
.fig-to { font-size: max(0.24em, 1.125rem); letter-spacing: 0; color: var(--white); -webkit-text-fill-color: var(--white); }
.fig-label { padding-bottom: 0.55em; max-width: 17em; font-size: clamp(1rem, 1.55vw, 1.4rem); line-height: 1.3; color: rgba(255, 255, 255, 0.82); }
.fig-label strong { display: block; font-weight: 900; font-size: 1.6em; line-height: 1; letter-spacing: -0.015em; color: var(--white); margin-bottom: 0.15em; }
html.reveal-ready .fig-num { clip-path: inset(0 0 100% 0); }
html.reveal-ready .fig.is-in .fig-num { clip-path: inset(-12% -6% -12% -6%); transition: clip-path 0.95s steps(16, end); }
html.reveal-ready .fig-pre,
html.reveal-ready .fig-label { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease 0.55s, transform 0.7s var(--ease-out) 0.55s; }
html.reveal-ready .fig.is-in .fig-pre,
html.reveal-ready .fig.is-in .fig-label { opacity: 1; transform: none; }
.stakes-note { margin-top: 22px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.66); }
@media (max-width: 720px) {
  .fig { grid-template-columns: 1fr; row-gap: 14px; }
  .fig-label { padding-bottom: 0; }
}

/* ---------- 7. Our ideas and the bill ---------- */

.ideas { background: var(--paper); padding: clamp(96px, 16svh, 190px) 0 clamp(80px, 13svh, 160px); }
.ideas-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 20px; align-items: end; }
.ideas-title { grid-column: 1 / -1; font-weight: 900; font-size: clamp(3rem, 12.4vw, 11.4rem); line-height: 0.9; letter-spacing: -0.025em; }
.ideas-title .b { display: block; }
.ideas-intro { grid-column: 9 / -1; grid-row: 2; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.35; font-weight: 500; margin-top: clamp(8px, 2svh, 24px); }
/* The one-pager button sits under the headline, level with the foot of the intro. */
.ideas-get { grid-column: 1 / span 7; grid-row: 2; }

.ideas-list { list-style: none; margin: clamp(40px, 7svh, 88px) 0 0; padding: 0; border-top: 3px solid var(--ink); }
.idea { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 12px; padding: clamp(24px, 4.4svh, 48px) 0; border-bottom: 1px solid var(--rule); }
.idea h3 { grid-column: 1 / span 7; font-weight: 900; font-size: clamp(1.6rem, 3.3vw, 3rem); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; transition: color 0.25s; }
.idea p { grid-column: 9 / -1; color: var(--muted); }
.idea:hover h3 { color: var(--blue); }
@media (max-width: 900px) {
  .ideas-title, .ideas-intro, .ideas-get, .idea h3, .idea p { grid-column: 1 / -1; }
  .ideas-intro, .ideas-get { grid-row: auto; }
}

.bill { margin-top: clamp(72px, 12svh, 150px); padding: clamp(24px, 4.4vw, 60px); background: var(--white); border-radius: 12px; box-shadow: 0 40px 80px -50px rgba(14, 19, 60, 0.45); }
.bill-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; }
.bill-title { font-weight: 900; font-size: clamp(1.8rem, 3.8vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.bill-date { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.bill-steps { list-style: none; margin: clamp(32px, 6svh, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bill-step { position: relative; padding: 70px 22px 0 0; }
.bill-step::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 3px; background: var(--rule); }
.bill-step:last-child::before { right: 22px; }
.bill-step--done::before { background: var(--blue); }
.bill-node { position: absolute; left: 0; top: 0; width: 23px; height: 23px; background: var(--white); border: 3px solid rgba(14, 19, 34, 0.32); }
.bill-step--done .bill-node { background: var(--blue); border-color: var(--blue); color: var(--white); }
.bill-step--current .bill-node { background: var(--blue); border-color: var(--blue); }
.bill-step--current .bill-node::after { content: ''; position: absolute; inset: -3px; border: 3px solid var(--blue); }
html.motion .bill-step--current .bill-node::after { animation: ping 2s ease-out infinite; }
@keyframes ping { to { transform: scale(2.3); opacity: 0; } }
.bill-node svg { width: 100%; height: 100%; }
.bill-cur { position: absolute; left: -5px; top: 15px; --cpx: 2px; filter: drop-shadow(1px 2px 0 rgba(14, 19, 34, 0.25)); }
html.motion .bill-cur { animation: tap 1.5s var(--ease-io) infinite; }
@keyframes tap { 0%, 100% { transform: translateY(6px); } 45% { transform: translateY(0); } }
.bill-name { font-weight: 800; font-size: 1.0625rem; line-height: 1.2; text-wrap: balance; }
.bill-step:not(.bill-step--done):not(.bill-step--current) .bill-name { color: var(--muted); }
.bill-note { margin-top: 6px; font-size: 0.875rem; line-height: 1.3; color: var(--muted); }
.bill-note--here { color: var(--blue); font-weight: 700; }
@media (max-width: 1040px) {
  .bill-steps { grid-template-columns: 1fr; }
  .bill-step { padding: 0 0 30px 46px; min-height: 58px; }
  .bill-step--current { min-height: 92px; }
  .bill-step::before { left: 10px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .bill-step:last-child::before { display: none; }
  .bill-step:last-child { padding-bottom: 0; }
  .bill-cur { top: 22px; }
}

/* ---------- 8. Close ---------- */

.close { padding: clamp(96px, 16svh, 190px) 0; color: var(--ink); }
.close-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: clamp(32px, 6vw, 96px); }
.close-main { container-type: inline-size; }
.close-title { font-weight: 900; font-size: 18.6cqi; line-height: 0.92; letter-spacing: -0.02em; }
.close-title .l { display: block; }
.close-copy { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.3; font-weight: 600; }
.close-get { margin-top: 22px; }
.close-note { margin-top: 10px; font-size: 0.875rem; font-weight: 600; }
.close-alt { margin-top: 22px; font-weight: 700; }
.close-alt a { color: var(--blue-on-screen); text-underline-offset: 3px; }
@media (max-width: 900px) {
  .close-grid { grid-template-columns: 1fr; }
}

/* ---------- Sources and footer ---------- */

.sources { background: var(--paper); padding: 28px 0; font-size: 0.875rem; }
.sources summary { font-weight: 700; font-size: 0.875rem; padding: 8px 0; width: fit-content; }
.sources ol { margin: 12px 0 8px; padding-left: 1.3em; max-width: 60em; color: var(--muted); display: grid; gap: 8px; }
.sources a { text-underline-offset: 3px; }

.footer { background: var(--ink); color: var(--white); padding: clamp(40px, 7svh, 72px) 0; }
.footer-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 32px; }
.footer-logo { display: block; }
.footer-line { font-weight: 700; }
.footer-legal { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.footer-privacy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 16px; }
.footer-privacy button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-privacy a { text-underline-offset: 3px; }
.footer-privacy button:hover,
.footer-privacy a:hover { color: var(--white); }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Analytics consent ----------
   A plain bar along the foot of the window, in the footer's colours so it
   reads as the site's furniture and not as part of the creative. The two
   answers are the same button: neither is made easier to press. */

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 14px var(--gutter) max(14px, env(safe-area-inset-bottom));
  background: var(--ink); color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.875rem; line-height: 1.4;
}
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent-text { max-width: 78ch; }
.consent-text a { text-underline-offset: 3px; white-space: nowrap; }
.consent-buttons { display: flex; gap: 10px; flex: none; }
.consent .btn { min-width: 6.2em; }
@media (max-width: 720px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent .btn { flex: 1; }
}

/* ---------- French ----------
   French runs longer than English. These sizes keep each headline on the lines
   it was set for. The French page is site/fr/, written by tools/build-fr.py. */

.br-tall { display: none; }
:lang(fr) .hero-title { font-size: min(12cqi, 7.3svh); }
:lang(fr) .hero-found-word { font-size: calc((100vw - 2 * var(--gutter) - 25rem - 3vw) / 3.92); }
:lang(fr) .flip-ad-title { font-size: clamp(2.4rem, min(16.4cqi, 17svh - 76px), 5.6rem); }
:lang(fr) .coast-title { font-size: clamp(2.2rem, 5vw, 4.8rem); }
html.pin-coast:lang(fr) .coast-title { font-size: min(5vw, 10.4svh); }
:lang(fr) .stakes-title { font-size: clamp(2.3rem, 5.2vw, 4.7rem); }
:lang(fr) .stakes-sub { font-size: clamp(0.95rem, 2.03vw, 1.83rem); }
:lang(fr) .ideas-title { font-size: clamp(2.4rem, 9.4vw, 8.8rem); }
:lang(fr) .close-title { font-size: 14.8cqi; }
:lang(fr) .close-title .l { white-space: nowrap; }
@media (max-height: 760px) and (min-width: 721px) {
  :lang(fr) .hero-title { font-size: min(12cqi, 6.6svh); }
}
@media (max-width: 820px) {
  :lang(fr) .stakes-sub { display: block; margin: 16px 0 0; font-size: 1.125rem; line-height: 1.25; letter-spacing: 0; white-space: normal; }
  :lang(fr) .stakes-sub br { display: none; }
}
@media (max-width: 720px) {
  .br-tall { display: inline; }
  .br-wide { display: none; }
  :lang(fr) .hero-title { font-size: min(15.4cqi, 5.4svh); }
  :lang(fr) .hero-found-word { font-size: 23.6vw; }
}

/* ---------- Scroll reveals ---------- */

html.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
