/* ravelkel — monochrome reel identity
   One fixed centre, hard cuts, construction lines, small captions, pills. */

:root {
  --paper: #f3f3f3;
  --ink: #000;
  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 1.125rem;
  --header-h: 3.5rem;
  --dock-space: 0px;
  --max: 86rem;
  --frame-h: max(100svh, 35rem);
  /* frame textures are 1600 x 1600, shown with object-fit: cover; --u is one texture pixel */
  --u: calc(max(100vw, var(--frame-h)) / 1600);
  --side-gap: clamp(.75rem, 3vw, 3rem);
  --vf-s: .75rem;
  --bg: var(--paper);
  --fg: var(--ink);
  --mute: #666;
  --hair: rgba(0, 0, 0, .22);
  /* the read-out line of a scan, the one colour outside the pictures; it only shows while something is acquired */
  --scan: #ffa847;
}

[data-tone="light"] { --bg: var(--paper); --fg: #000; --mute: #666; --hair: rgba(0, 0, 0, .22); }
[data-tone="dark"] { --bg: #000; --fg: #fff; --mute: #a3a3a3; --hair: rgba(255, 255, 255, .26); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

::selection { background: #000; color: #fff; }
[data-tone="dark"] ::selection { background: #fff; color: #000; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--gutter); top: -4rem; z-index: 100;
  background: #000; color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
  text-decoration: none; font-size: .9375rem;
}
.skip:focus { top: .6rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.i { width: .85em; height: .85em; flex: none; }

/* ------------------------------------------------------------------ pills */

.pill {
  --h: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 1.05em;
  border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit;
  font: inherit; font-size: .9375rem; line-height: 1; letter-spacing: -.005em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pill-xs { --h: 1.625rem; font-size: .75rem; padding: 0 .65em; }
.pill-sm { --h: 2.125rem; font-size: .875rem; padding: 0 .95em; }
.pill-lg { --h: 3.25rem; font-size: 1rem; padding: 0 1.45em; }
.pill-xl { --h: 4rem; font-size: clamp(1.0625rem, .95rem + .6vw, 1.375rem); padding: 0 1.5em; }
.pill-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill-fill { background: var(--bg); }
.pill-block { display: flex; width: 100%; }
.pill-static { cursor: default; }
.pill-meta { display: inline-flex; align-items: center; gap: .6em; }
.pill-meta::before { content: ""; width: 1px; height: 1.05em; background: currentColor; opacity: .4; }

a.pill:hover, button.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
a.pill-solid:hover, button.pill-solid:hover { background: var(--bg); color: var(--fg); }
button.pill:disabled { opacity: .5; cursor: progress; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding: 0 var(--gutter);
  color: var(--fg);
}
html[data-ui-top="light"] .site-header { --bg: var(--paper); --fg: #000; --mute: #666; }
html[data-ui-top="dark"] .site-header { --bg: #000; --fg: #fff; --mute: #a3a3a3; }
html.past-reel .site-header { background: var(--bg); }

.brand {
  justify-self: start;
  font-size: 1.125rem; font-weight: 500; letter-spacing: -.035em;
  text-decoration: none; color: inherit;
}

.header-nav, .header-cta { display: none; }
/* the two calls to action keep the hero's colours over every frame of the reel */
.header-cta { color: var(--fg); }
.header-cta .pill:not(.pill-solid) { background: var(--bg); }
html:not(.past-reel) .header-cta { --bg: var(--paper); --fg: #000; }
html:not(.past-reel) .header-cta .pill-solid { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.header-nav a { text-decoration: none; font-size: .9375rem; }
.header-nav a:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

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

.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) calc(var(--gutter) + env(safe-area-inset-bottom));
  background: var(--bg); color: var(--fg);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-top { height: var(--header-h); flex: none; display: flex; align-items: center; justify-content: space-between; }
.menu-links { display: flex; flex-direction: column; padding: 2.5rem 0 2rem; }
.menu-links a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--hair);
  font-size: clamp(1.875rem, 1.2rem + 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 500;
  text-decoration: none;
}
.menu-links small { font-size: .875rem; letter-spacing: 0; font-weight: 400; color: var(--mute); white-space: nowrap; }
.menu-links a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.menu-foot { margin-top: auto; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9375rem; }
.menu-foot a { text-decoration: none; }
.menu-foot a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ reel */

.reel { position: relative; }
.reel-stage { position: relative; color: var(--fg); }
.reel-bar, .reel-gl, .vf { display: none; }

.frame {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: var(--frame-h);
  background: var(--bg); color: var(--fg);
}
.frame-img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 50% 50%;
  scale: var(--z, 1);
}
/* hero: the name sits in the viewfinder, flanked like the reel's "label | mark | tag" */
.hero-row {
  position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%;
  display: grid; justify-items: center; row-gap: 2rem;
  padding-inline: var(--gutter);
}
.hero-side { display: none; font-size: clamp(1rem, .9rem + .45vw, 1.375rem); line-height: 1.12; letter-spacing: -.02em; }
.hero-name {
  position: relative; --vfp: .875rem;
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 6.25rem); line-height: .9; letter-spacing: -.05em; font-weight: 500;
  white-space: nowrap;
}

/* the viewfinder's target on image frames: an area of the texture, in texture pixels */
.vf-zone {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u));
  translate: -50% -50%;
  scale: var(--z, 1);
  pointer-events: none;
}

/* static viewfinder: four squares around each target (main.js replaces it with one moving viewfinder) */
[data-vf-target] { --vfs: var(--vf-s); --vfp: .625rem; }
[data-vf-target]::before {
  content: ""; position: absolute; inset: calc(-1 * (var(--vfp) + var(--vfs)));
  background:
    linear-gradient(currentColor, currentColor) 0 0 / var(--vfs) var(--vfs) no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / var(--vfs) var(--vfs) no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / var(--vfs) var(--vfs) no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / var(--vfs) var(--vfs) no-repeat;
  pointer-events: none;
}
html.vf-on [data-vf-target]::before { content: none; }

.note { font-size: .84375rem; line-height: 1.32; max-width: 23ch; }
.note-lead { display: block; font-weight: 500; }
.note-tl { position: absolute; top: calc(var(--header-h) + 1.75rem); left: var(--gutter); }
/* a statement followed by the way to act on it */
.note-act { display: grid; justify-items: start; gap: .9rem; }
.note-bl { position: absolute; left: var(--gutter); bottom: calc(var(--dock-space) + 1.25rem); }
.note-br { position: absolute; right: var(--gutter); bottom: calc(var(--dock-space) + 1.25rem); }
.caption { font-size: .75rem; max-width: 30ch; color: var(--mute); }

.frame .note, .frame .quote, .frame .hero-side {
  text-shadow: 0 0 .5em var(--bg), 0 0 .18em var(--bg);
}

.socials { list-style: none; display: flex; gap: .4rem 1rem; flex-wrap: wrap; justify-content: flex-end; max-width: none; }
.socials a { text-decoration: none; }
.socials a:hover { text-decoration: underline; text-underline-offset: .2em; }

.frame-cta { display: none; }

.quote {
  position: absolute; top: calc(var(--header-h) + 3rem); left: var(--gutter);
  max-width: 14ch;
  font-size: clamp(1.625rem, 1.05rem + 2.7vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 500;
}

/* construction grid: two line pairs each way, nodes in the corners */
.cg { pointer-events: none; }
.cg > i, .cg > b { position: absolute; background: currentColor; }
.cg > .cg-h { left: -200vw; right: -200vw; height: 1px; }
.cg > .cg-v { top: -200vh; bottom: -200vh; width: 1px; }
.cg > :nth-child(1) { top: calc(-1 * var(--n)); }
.cg > :nth-child(2) { top: 0; }
.cg > :nth-child(3) { bottom: 0; }
.cg > :nth-child(4) { bottom: calc(-1 * var(--n)); }
.cg > :nth-child(5) { left: calc(-1 * var(--n)); }
.cg > :nth-child(6) { left: 0; }
.cg > :nth-child(7) { right: 0; }
.cg > :nth-child(8) { right: calc(-1 * var(--n)); }
.cg > b { width: var(--n); height: var(--n); }
.cg > :nth-child(9) { left: calc(-1 * var(--n)); top: calc(-1 * var(--n)); }
.cg > :nth-child(10) { right: calc(-1 * var(--n)); top: calc(-1 * var(--n)); }
.cg > :nth-child(11) { left: calc(-1 * var(--n)); bottom: calc(-1 * var(--n)); }
.cg > :nth-child(12) { right: calc(-1 * var(--n)); bottom: calc(-1 * var(--n)); }

/* pinned montage: frames stack in a sticky stage and cut on scroll */
@media (min-height: 560px) {
  .motion { --frame-h: 100svh; }
  .motion .reel { height: calc(var(--frames) * 40svh + 100svh); }
  .motion .reel-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .motion .frame { position: absolute; inset: 0; min-height: 0; opacity: 0; pointer-events: none; }
  .motion .frame.is-active { opacity: 1; pointer-events: auto; }
  .motion .reel-bar {
    display: flex; gap: 4px;
    position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter);
    top: calc(var(--header-h) + .25rem);
  }
  .motion .reel-bar i { flex: 1; height: 2px; position: relative; overflow: hidden; background: var(--hair); }
  .motion .reel-bar i::after {
    content: ""; position: absolute; inset: 0; background: currentColor;
    transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  }
  .motion .note-tl { top: calc(var(--header-h) + 2.25rem); }

  .motion .reel-gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .motion .frame.gl-live { background: transparent; }
  .motion .frame.gl-live .frame-img { visibility: hidden; }
  .motion .vf { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
  .motion .vf i { position: absolute; left: 0; top: 0; width: var(--vf-s); height: var(--vf-s); background: currentColor; opacity: 0; }
  html.vf-on .vf i { opacity: 1; }
}

/* first paint of the hero waits for the intro (main.js lifts this, the head script is the failsafe) */
html.motion:not(.intro-done) .frame-hero :is(.hero-side, .hero-name, .hero-pill, .note, .frame-cta) { clip-path: inset(0 0 100% 0); }

/* ------------------------------------------------------------------ 1:1 */

.echange { background: var(--bg); color: var(--fg); }

.sel-run { position: relative; }
.sel-stage {
  position: relative; overflow: hidden;
  min-height: var(--frame-h);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: calc(var(--header-h) + 1.75rem) var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
}
.sel-title {
  align-self: flex-start;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2.25rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 500;
}
.one-one {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .07em;
  font-size: clamp(7.5rem, min(44vw, 38svh), 25rem); line-height: .78; letter-spacing: -.04em; font-weight: 500;
}
.one-one .colon { display: flex; flex-direction: column; gap: .2em; }
.one-one .colon i { display: block; width: .11em; height: .11em; background: currentColor; }

.sel-marks { display: none; }

.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; position: relative; z-index: 1; }
.sel-cta { position: relative; z-index: 1; align-self: stretch; }

@media (min-height: 560px) {
  .motion .sel-stage { height: 100svh; min-height: 0; }
  .motion .sel-marks { display: block; position: absolute; inset: 0; pointer-events: none; }
  .motion .sel-marks .sm { position: absolute; left: 0; top: 0; width: .875rem; height: .875rem; background: currentColor; }
  .motion .sel-marks .sl { position: absolute; background: currentColor; }
  .motion .sel-marks .sl-h { left: 0; right: 0; height: 1px; top: 0; }
  .motion .sel-marks .sl-v { top: 0; bottom: 0; width: 1px; left: 0; }
}

.echange-body { display: grid; gap: 3rem; padding-top: 3rem; padding-bottom: 4.5rem; }

.lede {
  font-size: clamp(1.375rem, 1.05rem + 1.5vw, 2.375rem); line-height: 1.14; letter-spacing: -.025em;
  max-width: 24ch;
}
.label { font-size: .8125rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }

.proof { display: grid; grid-template-columns: 1fr 1fr; position: relative; border-top: 1px solid var(--fg); }
.proof > div { position: relative; padding-top: 1.25rem; }
.proof > div + div { padding-left: 1.25rem; border-left: 1px solid var(--fg); }
.proof > div::before, .proof::after {
  content: ""; position: absolute; top: 0; width: .5rem; height: .5rem; background: var(--fg);
  translate: -50% -50%;
}
.proof > div::before { left: 0; }
.proof > div:first-child::before { translate: 0 -50%; }
.proof::after { right: 0; translate: 0 -50%; }
.proof dt { font-size: clamp(2.25rem, 1.6rem + 3vw, 4.25rem); line-height: .92; letter-spacing: -.04em; font-weight: 500; }
.proof dd { margin-top: .55rem; font-size: .9375rem; color: var(--mute); max-width: 16ch; }

.topics { display: grid; gap: 2.25rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.chips .pill { --h: 2.125rem; font-size: .875rem; padding: 0 .9em; }

.steps { list-style: none; margin: .9rem 0 1.75rem; border-top: 1px solid var(--fg); }
.steps li {
  display: grid; grid-template-columns: 2.5rem 1fr; column-gap: .5rem; row-gap: .15rem;
  padding: 1rem 0; border-bottom: 1px solid var(--hair);
}
.step-n {
  grid-row: span 2; align-self: start;
  width: 1.75rem; height: 1.75rem; display: grid; place-items: center;
  border: 1px solid currentColor; font-size: .8125rem;
}
.steps strong { font-weight: 500; font-size: 1.0625rem; line-height: 1.3; }
.steps li > span:last-child { font-size: .9375rem; color: var(--mute); }

/* ------------------------------------------------------------------ videos + shorts */

.videos, .shorts { background: var(--bg); color: var(--fg); }
.videos { padding: 4.5rem 0 2.5rem; }
.shorts { padding: 2rem 0 4.5rem; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.h2 {
  font-size: clamp(2.25rem, 1.3rem + 4.4vw, 5.5rem); line-height: .94; letter-spacing: -.045em; font-weight: 500;
  max-width: 11ch;
}

.shot { position: relative; display: block; overflow: hidden; background: #161616; }
/* video thumbnails are in colour; with motion they are acquired as they come up the screen: a read-out line
   sweeps down and leaves colour behind it (--g, set by main.js: 1 still grey, 0 acquired) */
.shot img {
  width: 100%; height: auto; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: calc(var(--g, 0) * 100%);
  -webkit-backdrop-filter: grayscale(1) contrast(1.12) brightness(.94);
  backdrop-filter: grayscale(1) contrast(1.12) brightness(.94);
  transition: opacity .3s ease;
  pointer-events: none;
}
.shot::before {
  content: ""; position: absolute; left: 0; right: 0; z-index: 2;
  top: calc((1 - var(--g, 0)) * 100%); height: 1px;
  background: var(--scan);
  opacity: calc(clamp(0, var(--g, 0) * 25, 1) * clamp(0, (1 - var(--g, 0)) * 25, 1));
  pointer-events: none;
}
.motion .vcard, .motion .scard { --g: 1; }
.crop { position: absolute; inset: .55rem; pointer-events: none; }
.crop i { position: absolute; width: .4375rem; height: .4375rem; background: #fff; opacity: 0; transition: opacity .2s steps(2); }
.crop i:nth-child(1) { left: 0; top: 0; }
.crop i:nth-child(2) { right: 0; top: 0; }
.crop i:nth-child(3) { left: 0; bottom: 0; }
.crop i:nth-child(4) { right: 0; bottom: 0; }
a:hover > .shot img, a:focus-visible > .shot img { transform: scale(1.035); }
a:hover > .shot::before, a:focus-visible > .shot::before, a:hover > .shot::after, a:focus-visible > .shot::after { opacity: 0; }
a:hover > .shot .crop i, a:focus-visible > .shot .crop i { opacity: 1; }

.vgrid { list-style: none; display: grid; gap: 2.5rem; }
/* home: the latest long videos side by side, swiped on phones */
.videos .vgrid {
  grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(84%, 26rem); gap: .75rem;
  margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) .5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.videos .vgrid::-webkit-scrollbar { display: none; }
.videos .vcard { scroll-snap-align: start; }
.vcard a { display: block; text-decoration: none; }
.vcard .shot img { aspect-ratio: 16 / 9; }
.vcard h3 { margin-top: .9rem; font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.22; letter-spacing: -.015em; font-weight: 500; max-width: 30ch; }
.vmeta { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; font-size: .8125rem; color: var(--mute); }
.vmeta .pill { color: var(--fg); }

.srow {
  list-style: none; margin: 0; padding: 0 var(--gutter) .5rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62%, 15rem); gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.srow::-webkit-scrollbar { display: none; }
.scard { scroll-snap-align: start; }
.scard a { display: block; text-decoration: none; }
.scard .shot img { aspect-ratio: 9 / 16; }
.scard h3 { margin-top: .75rem; font-size: .9375rem; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ collab */

.collab { background: var(--bg); color: var(--fg); padding-bottom: 5rem; }
.collab-head { overflow: clip; padding: 5rem var(--gutter) 4rem; text-align: center; }
.collab-title {
  font-size: clamp(2.75rem, .9rem + 9.2vw, 9.5rem); line-height: .9; letter-spacing: -.05em; font-weight: 500;
}
.cgbox { position: relative; display: inline-block; --n: .14em; }
.cgbox > .cg { position: absolute; inset: 0; }

.collab-grid { display: grid; gap: 3.5rem; }
.collab-intro { display: grid; gap: 1.1rem; align-content: start; justify-items: start; }
.collab-intro p:not(.lede) { max-width: 40ch; }
.collab-intro .label { margin-top: .75rem; }

.form { display: grid; gap: 1.6rem; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.seg-opt { position: relative; display: inline-flex; }
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt input:checked + .pill { background: var(--fg); color: var(--bg); }
.seg-opt input:focus-visible + .pill { outline: 2px solid var(--fg); outline-offset: 3px; }
.seg-opt:hover .pill { box-shadow: inset 0 0 0 1px currentColor; }

.field-row { display: grid; gap: 1.6rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .875rem; }
.opt { color: var(--mute); font-size: .8125rem; margin-left: .35em; }
.input {
  width: 100%; padding: .6rem 0;
  font: inherit; font-size: 1.0625rem; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0;
  appearance: none;
}
.input:focus { outline: none; box-shadow: 0 1px 0 0 var(--fg); }
textarea.input { min-height: 8.5rem; resize: vertical; padding: .75rem; border: 1px solid var(--fg); }
textarea.input:focus { box-shadow: inset 0 0 0 1px var(--fg); }
.input[aria-invalid="true"] { border-bottom-width: 2px; }
.field-error { display: flex; align-items: center; gap: .5em; font-size: .8125rem; font-weight: 500; }
.field-error::before { content: ""; width: .5rem; height: .5rem; background: currentColor; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: grid; gap: 1rem; justify-items: start; }
.form-note { font-size: .8125rem; color: var(--mute); max-width: 48ch; }
.form-note a, .form-status a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.form-status { font-size: .9375rem; padding: .9rem 1rem; border: 1px solid var(--fg); max-width: 48ch; }
.form-status:empty { padding: 0; border: 0; }

@media (forced-colors: active) {
  .seg-opt input:checked + .pill { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* ------------------------------------------------------------------ essais */

.essais { background: var(--bg); color: var(--fg); padding: 4.5rem 0 5.5rem; }
.essay-list { list-style: none; border-top: 1px solid var(--fg); }
.essay {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date thumb" "title thumb";
  column-gap: 1rem; row-gap: .3rem; align-items: center;
  isolation: isolate;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
}
.essay::before { content: ""; position: absolute; inset: -1px -.75rem 0; z-index: -1; background: var(--fg); opacity: 0; }
.essay time { grid-area: date; font-size: .8125rem; color: var(--mute); }
.essay-title { grid-area: title; font-size: clamp(1.0625rem, .98rem + .6vw, 1.625rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; max-width: 38ch; }
.essay-thumb { grid-area: thumb; width: 4rem; height: 4rem; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .35s ease; }
/* essay pictures are black and white at rest, in colour under the pointer */
.essay:hover .essay-thumb, .essay:focus-visible .essay-thumb,
.essay-lead:hover .shot img, .essay-lead:focus-visible .shot img { filter: none; }

/* the latest essay leads the section; its cover stays black and white, like every essay picture */
.essay-lead { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; text-decoration: none; }
.essay-lead .shot img { aspect-ratio: 3 / 2; filter: grayscale(1) contrast(1.1); transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .35s ease; }
.essay-lead-text { display: grid; gap: .8rem; justify-items: start; align-content: end; }
.essay-lead time { font-size: .8125rem; color: var(--mute); }
.essay-lead-title { font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.75rem); line-height: .98; letter-spacing: -.04em; font-weight: 500; max-width: 14ch; }
.essay-lead .pill { margin-top: .5rem; }
.essay-lead:hover .pill, .essay-lead:focus-visible .pill { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.essay-arrow { display: none; }
.essay:hover, .essay:focus-visible { color: var(--bg); }
.essay:hover::before, .essay:focus-visible::before { opacity: 1; }
.essay:hover time, .essay:focus-visible time { color: inherit; opacity: .7; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--bg); color: var(--fg); padding-top: 4rem; overflow: clip; }
.footer-cta { display: grid; gap: .6rem; }
.footer-cta .pill { justify-content: space-between; white-space: normal; text-align: left; line-height: 1.15; padding-block: .6em; }
.footer-cta .pill-meta { white-space: nowrap; }
.footer-bio { margin-top: 2rem; max-width: 40ch; font-size: 1.0625rem; color: var(--mute); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; margin-top: 2.5rem; }
.footer-cols ul { list-style: none; display: grid; gap: .4rem; margin-top: .75rem; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: .2em; }

.footer-lockup { margin-top: 3rem; padding: 2.5rem var(--gutter); overflow: clip; display: flex; justify-content: center; }
.fl-inner { display: inline-block; font-size: 17vw; line-height: 1; padding: .14em; }
.fl-word { font-weight: 500; letter-spacing: -.055em; line-height: .78; }
.footer-lockup .fl-word { --n: .1em; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  padding-top: 1.5rem; padding-bottom: calc(1.5rem + var(--dock-space));
  border-top: 1px solid var(--hair);
  font-size: .8125rem; color: var(--mute);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ section change: a veil in the destination's tone */

.veil {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: var(--bg); color: var(--fg);
}
.veil-label {
  position: relative; padding: 0 var(--gutter);
  font-size: clamp(2.25rem, 1.2rem + 5vw, 6rem); line-height: .9; letter-spacing: -.045em; font-weight: 500;
  text-align: center;
}
.veil-vf { position: absolute; inset: 0; pointer-events: none; }
/* the veil's moving edge carries the read-out line (main.js keeps it on the edge) */
.veil-scan {
  position: fixed; left: 0; right: 0; top: 0; z-index: 91; height: 1px;
  background: var(--scan); box-shadow: 0 0 12px rgba(255, 168, 71, .6);
  visibility: hidden; pointer-events: none;
}
.veil-vf i { position: absolute; left: 0; top: 0; width: var(--vf-s); height: var(--vf-s); background: currentColor; opacity: 0; visibility: hidden; }

/* arriving from another page: the veil is up from the first paint (head script), main.js lifts it */
html.veil-in .veil[hidden] { display: grid !important; }
html[data-veil-tone="dark"] .veil { --bg: #000; --fg: #fff; }
html[data-veil-tone="light"] .veil { --bg: var(--paper); --fg: #000; }
.veil-label:empty::before { content: var(--veil-label, ""); }

/* ------------------------------------------------------------------ dock (phones) */

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: .5rem;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  color: var(--fg);
  transform: translateY(115%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.dock.is-visible { transform: none; }
.dock .pill { flex: 1 1 0; min-height: 3rem; padding: 0 .8em; }
.dock .pill-solid { flex-grow: 1.5; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
html[data-ui-bottom="light"] .dock { --bg: var(--paper); --fg: #000; }
html[data-ui-bottom="dark"] .dock { --bg: #000; --fg: #fff; }

@media (max-width: 899px) {
  :root { --dock-space: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 350px) {
  .dock .pill-meta { display: none; }
}
@media (max-width: 520px) {
  .footer-cta .pill { font-size: 1rem; padding-inline: 1.2em; }
}

/* ------------------------------------------------------------------ larger screens */

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  :root { --gutter: 2rem; --header-h: 4.5rem; }

  .site-header { grid-template-columns: 1fr auto 1fr; }
  .header-nav { display: flex; gap: 1.75rem; }
  .header-cta { display: flex; gap: .5rem; justify-self: end; }
  .menu-btn { display: none; }

  :root { --vf-s: .875rem; }
  .hero-row { grid-template-columns: 1fr auto 1fr; column-gap: var(--side-gap); align-items: center; }
  .hero-side { display: block; justify-self: end; }
  .hero-pill { justify-self: start; }
  .br-m { display: none; }

  .note { font-size: .9375rem; max-width: 26ch; }
  .caption { font-size: .8125rem; }
  .frame-cta { display: flex; gap: .5rem; position: absolute; left: var(--gutter); bottom: 2rem; }
  .note-bl { bottom: 2rem; }
  .note-br { bottom: 2.4rem; }

  .sel-stage { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; }
  .sel-title { grid-area: 1 / 1; align-self: start; justify-self: start; }
  .one-one { grid-area: 2 / 2; }
  .facts { grid-area: 3 / 1; justify-self: start; }
  .sel-cta { grid-area: 3 / 3; justify-self: end; align-self: end; }

  .echange-body { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; row-gap: 3.5rem; padding-top: 4rem; padding-bottom: 5rem; }
  .echange-body .lede { grid-column: 1 / 8; }
  .echange-body .proof { grid-column: 8 / 13; align-self: end; }
  .topics { grid-column: 1 / 8; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .steps-block { grid-column: 8 / 13; }

  .vgrid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .videos .vgrid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-inline: 0; padding: 0; overflow: visible; }
  .srow {
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 14rem)); gap: 1.25rem;
    overflow: visible; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  }

  .collab-grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; }

  .essay {
    grid-template-columns: 9rem 1fr 5.5rem 1.5rem; grid-template-areas: "date title thumb arrow";
    column-gap: 1.5rem; padding-block: 1.35rem;
  }
  .essay-thumb { width: 5.5rem; height: 3.5rem; }
  .essay-lead { grid-template-columns: 7fr 5fr; column-gap: 2rem; margin-bottom: 3.5rem; }
  .essay-arrow { display: block; grid-area: arrow; width: 1.1rem; height: 1.1rem; justify-self: end; }

  .footer-cta { grid-template-columns: 1fr 1fr; }
  .footer-cta .pill { min-height: 5rem; }

  .dock { display: none; }
}

/* no JS: the header sits on the page instead of floating over the reel */
html:not(.js) .site-header { position: absolute; }

/* ------------------------------------------------------------------ inner pages */

.header-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

.page-hero {
  background: var(--bg); color: var(--fg);
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  overflow: clip;
}
.crumbs {
  list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .6rem;
  margin-bottom: 2.75rem; font-size: .8125rem; color: var(--mute);
}
.crumbs li { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: .2em; }
.page-title {
  font-size: clamp(3rem, 1.4rem + 7.6vw, 9rem); line-height: .9; letter-spacing: -.05em; font-weight: 500;
  margin-left: calc(var(--vf-s) + .625rem);
}
.page-title > span { position: relative; display: inline-block; }
.page-title.is-long { font-size: clamp(2rem, 1.1rem + 3.4vw, 4.5rem); line-height: 1; letter-spacing: -.035em; max-width: 24ch; }
.page-lede {
  margin-top: 2.5rem; max-width: 34ch;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.875rem); line-height: 1.18; letter-spacing: -.02em;
}
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.page-section { background: var(--bg); color: var(--fg); padding: 2.5rem 0 5.5rem; }
.count { font-size: .9375rem; color: var(--mute); }

/* à propos */
.about-grid { display: grid; gap: 3rem; }
.about-body { display: grid; gap: 2.5rem; align-content: start; }
.about-quote { font-size: clamp(2rem, 1.2rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; max-width: 15ch; }
.pair { display: grid; gap: 1.5rem; border-top: 1px solid var(--fg); padding-top: 1.25rem; }
.pair p { margin-top: .5rem; font-size: 1.125rem; line-height: 1.35; max-width: 30ch; }
.about-text { max-width: 40rem; }

/* rendez-vous */
.booking-grid { display: grid; gap: 3.5rem; }
.booking-intro { display: grid; gap: 1.75rem; align-content: start; justify-items: start; }
.price { display: flex; align-items: flex-end; gap: 1.1rem; }
.price strong { font-size: clamp(3.25rem, 2rem + 4vw, 5.5rem); line-height: .82; letter-spacing: -.05em; font-weight: 500; }
.price span { font-size: .9375rem; line-height: 1.3; color: var(--mute); }
.booking-help { max-width: 38ch; }

.booking { border: 1px solid var(--fg); padding: 1.25rem; align-self: start; scroll-margin-top: calc(var(--header-h) + 1rem); }
.bk-steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--hair);
  font-size: .8125rem; color: var(--mute);
}
.bk-steps li { display: flex; align-items: center; gap: .5rem; }
.bk-steps .n { display: inline-grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border: 1px solid currentColor; font-size: .75rem; }
.bk-steps li[aria-current="step"] { color: var(--fg); font-weight: 500; }
.bk-steps li[aria-current="step"] .n { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bk-steps li.is-done { color: var(--fg); }
.bk-pane { display: grid; gap: 1.25rem; }
.bk-title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 500; }
.bk-title:focus { outline: none; }
.bk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.bk-zone { display: flex; align-items: center; gap: .6rem; font-size: .875rem; }
.bk-zone select {
  font: inherit; font-size: .875rem; color: inherit; background: var(--bg);
  border: 1px solid var(--fg); border-radius: 999px; padding: .45rem .9rem; cursor: pointer;
}
.bk-week { display: flex; align-items: center; gap: .5rem; }
.bk-week .pill { width: 2.125rem; padding: 0; }
.bk-week .pill:disabled { opacity: .3; cursor: default; }
.bk-range { min-width: 8.5rem; text-align: center; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.bk-day {
  display: grid; justify-items: center; gap: .15rem; padding: .55rem 0;
  font: inherit; color: inherit; background: transparent; border: 1px solid var(--hair); cursor: pointer;
}
.bk-day small { font-size: .6875rem; color: var(--mute); }
.bk-day strong { font-size: 1.125rem; font-weight: 500; line-height: 1; }
.bk-day:hover:not(:disabled) { border-color: var(--fg); }
.bk-day[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.bk-day[aria-pressed="true"] small { color: inherit; opacity: .7; }
.bk-day:disabled { opacity: .3; cursor: default; }
.bk-slots { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 2.75rem; align-content: flex-start; }
.bk-slots .pill { font-variant-numeric: tabular-nums; }
.bk-slots .pill[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.bk-empty { font-size: .9375rem; color: var(--mute); }
.bk-note { font-size: .8125rem; color: var(--mute); }
.bk-chosen { font-size: .9375rem; }
.bk-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
.bk-actions .pill:disabled { opacity: .35; cursor: not-allowed; }
.bk-summary { border-top: 1px solid var(--fg); }
.bk-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--hair); }
.bk-summary dt { color: var(--mute); font-size: .9375rem; }
.bk-summary dd { text-align: right; font-weight: 500; }
.bk-status:empty { display: none; }
.bk-status { font-size: .9375rem; padding: .9rem 1rem; border: 1px solid var(--fg); }

/* vidéos */
.vgrid-all { row-gap: 2.75rem; }
.sgrid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem .75rem; }
.sgrid .scard h3 { font-size: .875rem; }

/* essais */
.year-group { display: grid; grid-template-columns: 1fr; gap: 1rem; padding-top: 2.5rem; }
.year-group + .year-group { margin-top: 1.5rem; }
.year { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 4rem); line-height: .9; letter-spacing: -.04em; font-weight: 500; }
.essay-thumb-empty { display: block; background: var(--hair); }

.essay-cover { background: var(--bg); }
.essay-cover img { width: 100%; height: auto; max-height: 72svh; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.essay-wrap { display: grid; gap: 2.5rem; }
.toc { font-size: .875rem; align-self: start; }
.toc ol { list-style: none; display: grid; gap: .5rem; margin-top: .75rem; }
.toc a { text-decoration: none; color: var(--mute); }
.toc a:hover, .toc a.is-active { color: var(--fg); }
.prose { font-size: 1.125rem; line-height: 1.62; max-width: 40rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 500; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; line-height: 1.2; font-weight: 500; margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 1px solid var(--fg); font-size: 1.25rem; line-height: 1.4; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; }
.placeholder { border: 1px dashed var(--fg); padding: 1.5rem; font-size: 1rem; line-height: 1.5; }
.placeholder > * + * { margin-top: .6em; }
.essay-nav-section { padding-top: 0; }
.essay-nav { display: grid; border-top: 1px solid var(--fg); margin-bottom: 2rem; }
.essay-step { display: grid; gap: .45rem; padding: 1.5rem 0; text-decoration: none; border-bottom: 1px solid var(--hair); }
.essay-step small { font-size: .8125rem; color: var(--mute); }
.essay-step strong { font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.essay-step:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* contact */
.contact-aside { display: grid; gap: .75rem; justify-items: start; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.contact-socials { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; font-size: .9375rem; }
.contact-socials a { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; }
.contact-socials a:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (min-width: 640px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .booking { padding: 2rem; }
  .sgrid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .page-hero { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 4rem; }
  .about-body { max-width: 58rem; }
  .booking-grid { grid-template-columns: 5fr 7fr; column-gap: 4rem; align-items: start; }
  .sgrid { grid-template-columns: repeat(4, 1fr); gap: 2rem 1rem; }
  .year-group { grid-template-columns: 9rem 1fr; column-gap: 2rem; align-items: start; }
  .year { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .essay-wrap { grid-template-columns: 13rem minmax(0, 40rem); justify-content: center; column-gap: 4.5rem; }
  .essay-wrap .toc { position: sticky; top: calc(var(--header-h) + 2rem); }
  .essay-nav { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .essay-step.is-older { text-align: right; }
}

@media (min-width: 1200px) {
  .sgrid { grid-template-columns: repeat(6, 1fr); }
}

/* the essay pages without a sommaire keep the text centred */
.essay-wrap:has(> .toc[hidden]) { grid-template-columns: minmax(0, 40rem); }

/* booking on phones: the calendar comes straight after the title, the steps stack, the actions share a row */
@media (max-width: 999px) {
  .booking-grid > .booking { order: -1; }
}
@media (max-width: 520px) {
  .bk-steps li { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .bk-actions { flex-wrap: nowrap; }
  .bk-actions .pill-lg { padding: 0 1.1em; }
  .bk-actions .pill-meta { display: none; }
}
