/* =========================================================
   VRgD — visual research & direction
   Paper and dark themes off one pair of tokens (--paper / --ink),
   occasional inverted block, red used sparingly.
   ========================================================= */

/* Opts every same-origin navigation into a cross-document view
   transition. Unsupported browsers just ignore this and navigate as
   normal — nothing here depends on it. The WORK grid and the project
   page share one view-transition-name (project-hero, set on the
   clicked card in main.js and always on .project__hero) so clicking a
   project grows its thumbnail into the page's hero, the same box-grow
   language the boot loader opens the site with. */
@view-transition { navigation: auto; }
::view-transition-group(project-hero) {
  animation-duration: .65s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

:root {
  /* "paper" is always the page ground, "ink" always the mark. Dark mode simply
     swaps their values, so every rule below keeps working unchanged. */
  --paper:  #f4f4f2;
  --plate:  #e9e9e6;   /* toned ground for panels */
  --plate2: #e4e2dd;   /* card / tile ground */
  --ink:    #0a0a0a;
  --red:    #ff2b29;

  --muted:  #3d3d3b;                /* soft body copy */
  --dotink: rgba(10, 10, 10, .70);  /* halftone dots */
  --shadow: rgba(10, 10, 10, .14);
  --blend:  multiply;               /* how ink lands on paper */

  /* Themed channels — flipped by .is-invert */
  --bg:   var(--paper);
  --fg:   var(--ink);
  --dim:  #8a8a86;
  --line: rgba(10, 10, 10, .16);
  --hair: rgba(10, 10, 10, .055);

  --f-sans:   'Instrument Sans', -apple-system, Helvetica, Arial, sans-serif;
  --f-inter:  'Inter', -apple-system, Helvetica, Arial, sans-serif;
  --f-script: 'Mea Culpa', cursive;
  --f-hand:   'Annie Use Your Telescope', cursive;
  --f-mono:   ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

  --pad: clamp(1rem, 2.6vw, 2.25rem);
  --nav-h: 4.5rem;
  --gutter: clamp(8rem, 12vw, 13rem);
}

/* Dark mode — the same two values, swapped. */
:root[data-theme="dark"] {
  --paper:  #0b0b0b;
  --plate:  #171716;
  --plate2: #1d1d1b;
  --ink:    #f2f2ef;

  --muted:  #b2b2ae;
  --dotink: rgba(242, 242, 239, .52);
  --shadow: rgba(0, 0, 0, .55);
  --blend:  screen;

  --dim:  #78787a;
  --line: rgba(242, 242, 239, .18);
  --hair: rgba(242, 242, 239, .07);
}

/* The invert moment: a block that flips every themed channel relative to the
   page — so it reads as dark on the light theme and light on the dark one. */
.is-invert {
  --bg:   var(--ink);
  --fg:   var(--paper);
  --dim:  color-mix(in srgb, var(--paper) 48%, transparent);
  --line: color-mix(in srgb, var(--paper) 18%, transparent);
  --hair: color-mix(in srgb, var(--paper) 7%, transparent);
  background: var(--bg);
  color: var(--fg);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.45;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[data-loading="true"] { overflow: hidden; }

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- utility type ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
}
.is-dim { color: var(--dim); }

.display {
  font-family: var(--f-inter);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 7rem);
  line-height: .92;
  letter-spacing: -.035em;
}
.display em {
  font-family: var(--f-script);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  /* Mea Culpa sits small on the body — compensate optically */
  font-size: 1.5em;
  line-height: .6;
}

/* =========================================================
   Halftone plate — the stand-in wherever a photo is missing.
   SHARED: used by work cards, events, shop and the book pages.
   Keep it here, not inside a page block — it was once nested in
   the gallery section and got deleted along with it.
   ========================================================= */
[data-placeholder] { position: relative; }
[data-placeholder]::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, var(--dotink) 1.1px, transparent 1.3px);
  background-size: var(--dot, 7px) var(--dot, 7px);
  -webkit-mask-image: radial-gradient(var(--shape, 96% 88% at 50% 46%), #000 12%, transparent 100%);
          mask-image: radial-gradient(var(--shape, 96% 88% at 50% 46%), #000 12%, transparent 100%);
}
[data-placeholder="1"] { --dot: 6px;  --shape: 92% 80% at 44% 40%; }
[data-placeholder="2"] { --dot: 9px;  --shape: 100% 92% at 58% 54%; }
[data-placeholder="3"] { --dot: 5px;  --shape: 86% 100% at 40% 58%; }
[data-placeholder="4"] { --dot: 8px;  --shape: 96% 84% at 54% 36%; }
[data-placeholder="5"] { --dot: 7px;  --shape: 90% 96% at 50% 52%; }
[data-placeholder="6"] { --dot: 11px; --shape: 104% 78% at 42% 46%; }

/* =========================================================
   Cursor
   ========================================================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9100;
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: difference;   /* the mark takes the inverse of whatever is under it */
}
/* The star IS the cursor: its centre is the click point. Added by shared.js on the first mouse move. */
html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
/* The spark again, this time following the pointer. */
.cursor__dot {
  position: absolute;
  top: -9px; left: -9px;
  width: 18px; height: 18px;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
/* Deliberately theme-independent: pure white under difference blending inverts
   whatever ground is behind it, so it stays visible on any theme or photo. */
.cursor__dot svg { width: 100%; height: 100%; fill: #fff; }
.cursor__text {
  position: absolute;
  top: 8px; left: 12px;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  color: #fff;
  white-space: nowrap;
}
.cursor[data-cursor="active"] .cursor__dot { transform: scale(2.1) rotate(90deg); }
.cursor[data-cursor="active-edge"] .cursor__text { left: auto; right: 12px; text-align: right; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   Overlays — paper grain + faint rules
   ========================================================= */
.grain {
  position: fixed; inset: -50%;
  z-index: 8000;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: var(--blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, 3%); }
  50%  { transform: translate(3%, -4%); }
  75%  { transform: translate(-3%, -3%); }
  100% { transform: translate(4%, 4%); }
}

.rule-grid {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 var(--pad);
}
.rule-grid i { border-left: 1px solid var(--hair); }
.rule-grid i:first-child { border-left: 0; }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0;
  z-index: 7000;
  pointer-events: none;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.loader__row { display: flex; justify-content: space-between; align-items: baseline; }
.loader__item {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* Hidden pre-roll states apply only when the motion layer can run. */
.js .loader__item { opacity: 0; }
html:not(.js) .loader { display: none; }

.loader__row--top .loader__item:first-child {
  font-family: var(--f-hand);
  font-size: 1.4rem;
  letter-spacing: .02em;
  text-transform: none;
}
.loader__pct { font-variant-numeric: tabular-nums; }
.loader__bar {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: calc(var(--pad) + 2.2rem);
  height: 1px;
  background: var(--line);
}
/* One of the few places red is allowed to speak. */
.loader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
}

/* =========================================================
   Nav mode — exactly one navigation renders at a time.
   The mode lives on <html data-nav>, set before first paint.
   ========================================================= */
[data-nav="topnav"]  .sidenav,
[data-nav="jumpbar"] .sidenav { display: none; }
[data-nav="sidenav"] .topnav,
[data-nav="jumpbar"] .topnav  { display: none; }
[data-nav="sidenav"] .jumpbar,
[data-nav="topnav"]  .jumpbar { display: none; }

/* BETA switcher — collapsed behind a spark toggle so it does not clutter.
   Delete along with the block in index.html. */
.navswitch {
  position: relative;
  display: flex;
  align-items: center;
}
.navswitch__toggle {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .3;
  transition: opacity .3s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.navswitch__toggle svg { width: 100%; height: 100%; fill: var(--nav-fg); }
.navswitch__toggle:hover { opacity: .85; }
.navswitch[data-open="true"] .navswitch__toggle { opacity: .95; transform: rotate(90deg); }

/* Drops down out of the navbar so it never sits on top of content. */
.navswitch__panel {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  display: flex;
  align-items: center;
  gap: .1rem;
  padding: .3rem .35rem;
  background: var(--ink);
  color: var(--paper);
  transform-origin: top right;
  transform: scale(.9);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}
.navswitch[data-open="true"] .navswitch__panel {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.navswitch__tag { padding: 0 .45rem 0 .25rem; color: color-mix(in srgb, var(--paper) 45%, transparent); letter-spacing: .14em; }
.navswitch__panel button {
  padding: .28rem .5rem;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: color-mix(in srgb, var(--paper) 50%, transparent);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.navswitch__panel button:hover { color: var(--paper); background: color-mix(in srgb, var(--paper) 10%, transparent); }
.navswitch__panel button[data-active="true"] { color: var(--paper); background: color-mix(in srgb, var(--paper) 18%, transparent); }

/* =========================================================
   The spine — a hairline with the spark riding your scroll.
   One motif, used again on the cursor and at section heads.
   ========================================================= */
/* Sits in the left margin, clear of every text column. */
.spine {
  position: fixed;
  left: max(13px, calc(var(--pad) * .42));
  top: calc(var(--nav-h) + 1.2rem);
  bottom: calc(var(--pad) + .6rem);
  z-index: 520;
  width: 1px;
  pointer-events: none;
  color: var(--ink);
  transition: color .45s ease;
}
.spine.on-invert { color: var(--paper); }
.js .spine { opacity: 0; }

.spine__rail {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, currentColor 16%, transparent);
}
.spine__fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: currentColor;
  transform: scaleY(0);
  transform-origin: top;
}

/* Section nodes, placed by JS at each section's share of the document. */
.spine__nodes { position: absolute; inset: 0; }
.spine__nodes li {
  position: absolute;
  left: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.spine__nodes i {
  width: 4px; height: 4px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: .3;
  transform: rotate(45deg);
  transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.spine__nodes li[data-passed="true"] i { opacity: 1; }
.spine__nodes li[data-active="true"] i { transform: rotate(45deg) scale(1.9); background: var(--red); }

.spine__spark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  will-change: transform;
}
.spine__spark svg { width: 100%; height: 100%; fill: currentColor; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 600;
  min-height: var(--nav-h);
  padding: .8rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
  --nav-fg: var(--ink);
  color: var(--nav-fg);
  transition: color .45s ease;
}
/* No backdrop — over an inverted section the chrome just flips its own colours
   (see initChromeTheme in main.js). */
.navbar.on-invert { --nav-fg: var(--paper); }
.navbar .is-dim { color: color-mix(in srgb, var(--nav-fg) 55%, transparent); }

/* ---------- theme toggle ---------- */
.themetoggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  color: color-mix(in srgb, var(--nav-fg) 55%, transparent);
  transition: color .3s ease;
}
.themetoggle:hover { color: var(--nav-fg); }
/* Half-filled square: the two grounds, side by side. */
.themetoggle i {
  width: 9px; height: 9px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  background: linear-gradient(to right, currentColor 50%, transparent 50%);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="dark"] .themetoggle i { transform: rotate(180deg); }
/* Hidden only while the index loader is running. Subpages have no loader, so
   without scoping this the navbar stayed invisible there — and the corner
   logotype is the only way back. */
.js body[data-loading="true"] .navbar { opacity: 0; transform: translateY(-1em); }
/* The old glyph only filled ~30% of its square viewBox's height, so the
   full-bleed union mark needs a container roughly half as wide to read at
   the same physical size — matched to the old rendered glyph height. */
.navbar__mark { width: clamp(27px, 2.6vw, 38px); flex: 0 0 auto; }
/* Same contrast source as the rest of the chrome (registerDarkSurface /
   .on-invert) rather than the light/dark theme — the mark sits over
   whatever section is scrolled under the fixed navbar right now, which
   doesn't always match the theme (the hero is a dark surface in both). */
.navbar__mark-img { display: block; width: 100%; height: auto; }
.navbar__mark-img--dark { display: none; }
.navbar.on-invert .navbar__mark-img--light { display: none; }
.navbar.on-invert .navbar__mark-img--dark { display: block; }
.navbar__meta { display: flex; gap: .9rem; align-items: baseline; }
.navbar__meta [data-local-time] { font-variant-numeric: tabular-nums; }
.navbar .is-dim { color: var(--dim); }

/* ---------- always-on link grid (top right) ---------- */
.topnav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.topnav ul {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: .35rem clamp(1rem, 2.4vw, 2.5rem);
}
.topnav a {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--nav-fg) 55%, transparent);
  transition: color .3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.topnav a i {
  width: 5px; height: 5px;
  flex: 0 0 auto;
  background: currentColor;
  transition: background-color .3s ease;
}
.topnav a:hover { color: var(--nav-fg); }
.topnav a[data-active="true"] { color: var(--nav-fg); }
.topnav a[data-active="true"] i { background: var(--red); }

/* ---------- jumpbar — pops in on scroll ---------- */
.jumpbar {
  position: fixed;
  left: 50%; bottom: calc(var(--pad) + .2rem);
  z-index: 620;
  transform: translate(-50%, 150%);
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .4rem .5rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 30px var(--shadow);
}
.jumpbar__now {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem .35rem .55rem;
  border-right: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  margin-right: .3rem;
  white-space: nowrap;
}
.jumpbar__now i { width: 5px; height: 5px; background: var(--red); flex: 0 0 auto; }
.jumpbar__list { display: flex; gap: .1rem; }
.jumpbar__list a {
  display: block;
  padding: .35rem .6rem;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  transition: color .25s ease, background-color .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.jumpbar__list a:hover { color: var(--paper); background: color-mix(in srgb, var(--paper) 10%, transparent); }
.jumpbar__list a[data-active="true"] { color: var(--paper); }

.menu-button {
  display: none;
  align-items: center;
  gap: .55rem;
  cursor: pointer;
}
.menu-button__lines { display: grid; gap: 4px; width: 18px; }
.menu-button__lines i { height: 1px; background: currentColor; display: block; }

/* =========================================================
   Side nav
   ========================================================= */
.sidenav {
  --nav-fg: var(--ink);
  position: fixed;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 600;
  color: var(--nav-fg);
  transition: color .45s ease;
}
.js .sidenav { opacity: 0; }
.sidenav.on-invert { --nav-fg: var(--paper); }

/* --- the jumpbar's "where am I" readout, borrowed --- */
.sidenav__now {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  padding: 0 .55rem .7rem 0;
  white-space: nowrap;
  opacity: 0;
}
.sidenav__now i {
  order: -1;
  width: 5px; height: 5px;
  flex: 0 0 auto;
  background: var(--red);
}

.sidenav ul { display: grid; }
.sidenav li + li {
  border-top: 1px solid;
  border-top-color: color-mix(in srgb, var(--nav-fg) 28%, transparent);
}

.sidenav a {
  display: block;
  position: relative;
  /* Vertical padding tracks viewport height — with seven entries the list has
     to stay inside short windows instead of running off the bottom. */
  padding: clamp(.5rem, 1.35vh, 1.15rem) .55rem clamp(.5rem, 1.35vh, 1.15rem) 3rem;
  text-align: right;
  font-family: var(--f-inter);
  font-size: clamp(.88rem, 1.05vw, 1.1rem);
  font-weight: 500;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--nav-fg) 50%, transparent);
  transition: color .35s ease, padding-right .45s cubic-bezier(.16, 1, .3, 1);
  cursor: pointer;
}
/* Hover fill, straight off the jumpbar. */
.sidenav a::before {
  content: "";
  position: absolute;
  inset: .35rem 0;
  background: color-mix(in srgb, var(--nav-fg) 10%, transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.sidenav a > span { position: relative; }
.sidenav a:hover::before { transform: scaleX(1); }
.sidenav a:hover { color: var(--nav-fg); padding-right: .9rem; }
.sidenav a[data-active="true"] { color: var(--nav-fg); }
/* EVENTS / SHOP / ASSETS are out of the persistent navs entirely — they are
   reached from the footer, or from the fullscreen menu where the full index
   still makes sense. There they read one step quieter. */
.menu__list a[data-tier="2"] {
  font-size: clamp(1rem, 3vw, 1.7rem);
  font-weight: 500;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
}
.menu__list a[data-tier="2"]:hover { color: var(--fg); }

.sidenav a[data-active="true"]::after {
  content: "";
  display: inline-block;
  position: relative;
  width: 5px; height: 5px;
  margin-left: .6rem;
  background: var(--red);
  vertical-align: middle;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--paper);
}

.hero__stage {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Keeps the logotype's difference blend looking at the footage behind it
     and nothing further up the page. */
  isolation: isolate;
}

.hero__media {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 100vh;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: 1;
}
.js .hero__media { width: 0; height: 0; opacity: 0; }
.hero__media-inner {
  position: absolute;
  top: -10%; left: 0;
  width: 100%; height: 120%;
}
.hero__canvas,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__canvas { image-rendering: pixelated; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video[data-ready="true"] { opacity: 1; }
/* Fades the halftone plate back into clean paper at the edges. The centre wash
   exists so the logotype reads over the dots. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(105% 78% at 50% 46%, color-mix(in srgb, var(--paper) 72%, transparent) 6%, transparent 52%),
    linear-gradient(to bottom, var(--paper), transparent 22%, transparent 52%, var(--paper));
}

/* With footage there is nothing to wash out — the centre wash just put a pale
   blob over the picture. Darken the edges instead and treat the hero as an
   inverted surface: light logotype, light copy, whatever the theme. */
.hero.has-video .hero__scrim {
  /* the showreel swings between near-black and bright daylight, so a flat veil
     keeps the white logotype readable on the bright shots */
  background:
    linear-gradient(rgba(6, 6, 6, .38), rgba(6, 6, 6, .38)),
    radial-gradient(115% 85% at 50% 45%, transparent 30%, rgba(6, 6, 6, .5) 88%),
    linear-gradient(to bottom, rgba(6, 6, 6, .45), transparent 24%, transparent 58%, rgba(6, 6, 6, .8));
}
.hero.has-video .hero__logo { --logo-fill: #f4f4f2; }
.hero.has-video .hero__lede { --lede-fg: rgba(244, 244, 242, .88); }
.hero.has-video .hero__bottom,
.hero.has-video .hero__markers { color: #f4f4f2; }
.hero.has-video .mk::before,
.hero.has-video .mk::after { background: #f4f4f2; }
.hero.has-video .hero__scroll-line {
  background: linear-gradient(to right, #f4f4f2, transparent);
}

/* --- logo + red misregistration --- */
.hero__logo {
  --logo-fill: var(--ink);
  position: relative;
  z-index: 3;
  width: clamp(280px, 46vw, 900px);
  pointer-events: none;
}
.hero__logo .split {
  display: block;
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__logo .split--w { position: relative; }
.hero__logo svg { width: 100%; height: auto; }
.hero__logo .split--w svg { fill: var(--logo-fill); }
.hero__logo .split--r svg { fill: var(--red); }
.hero__logo .split--r { mix-blend-mode: var(--blend); opacity: .18; transition: opacity .35s ease; }

/* Press I: the logotype either sits on the footage or inverts it.
   Blending is on the wrapper, not the inner span — .hero__logo is its own
   stacking context, so a blend set inside it would only see its own children.
   Placed after the .has-video rule so it wins the specificity tie. */
.hero .hero__logo[data-logo-blend="difference"] {
  --logo-fill: #fff;
  mix-blend-mode: difference;
}
.hero .hero__logo[data-logo-blend="difference"] .split--r { opacity: 0; }

/* Brief readout of the current mode, right under the logotype. */
.hero__mode {
  position: absolute;
  top: calc(50% + clamp(90px, 15vw, 260px));
  left: 0; right: 0;
  z-index: 4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  color: var(--logo-fill, var(--ink));
}

/* --- corner markers --- */
.hero__markers { position: absolute; inset: calc(var(--pad) * .4); z-index: 4; pointer-events: none; }   /* outside the content so the brackets never touch the nav mark / spark / SCROLL */
.js .hero__markers { opacity: 0; }
.mk { position: absolute; width: 11px; height: 11px; }
.mk::before, .mk::after { content: ""; position: absolute; background: var(--ink); }
.mk::before { width: 100%; height: 1px; top: 0; }
.mk::after  { width: 1px; height: 100%; left: 0; }
.mk--tl { top: 0; left: 0; }
.mk--tr { top: 0; right: 0; }
.mk--tr::after { left: auto; right: 0; }
.mk--bl { bottom: 0; left: 0; }
.mk--bl::before { top: auto; bottom: 0; }
.mk--br { bottom: 0; right: 0; }
.mk--br::before { top: auto; bottom: 0; }
.mk--br::after  { left: auto; right: 0; }

/* --- hero bottom --- */
.hero__bottom {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: var(--pad);
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.js .hero__bottom { opacity: 0; transform: translateY(1.5em); }
.hero__lede {
  --lede-fg: var(--muted);
  max-width: 34ch;
  font-size: clamp(.82rem, .95vw, .98rem);
  line-height: 1.5;
  color: var(--lede-fg);
}
.hero__scroll { display: flex; align-items: center; gap: .7rem; }
.hero__scroll-line {
  display: block;
  width: 3.5rem; height: 1px;
  background: linear-gradient(to right, var(--ink), transparent);
  transform-origin: left;
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleX(.35); opacity: .35; }
  50%      { transform: scaleX(1);   opacity: 1; }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}
.section__head {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section__head .mono:nth-child(2) { color: var(--fg); }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.about__body {
  display: grid;
  gap: 1.1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(.9rem, 1.05vw, 1.05rem);
  line-height: 1.62;
}
/* ---------- Work — big photo on the page ground, optional chrome swirl ----------
   Follows the page theme (white by default, nothing but the photo and type).
   While a swirl is switched on in TUNE the block turns into a dark stage
   (.has-swirl). Layers: swirl (background) → photo frame → HUD.
   See initSpotlight in main.js. */
.spotlight {
  --sp-fg: var(--ink);
  --sp-bg: var(--paper);
  position: relative;
  width: calc(100% + var(--pad) * 2);
  margin: 0 calc(var(--pad) * -1) 0;
  padding: 0;
  overflow: hidden;
  background: var(--sp-bg);
  color: var(--sp-fg);
}
.spotlight.has-swirl { --sp-fg: #f4f4f2; --sp-bg: #0b0b0b; }
@media (min-width: 768px) {
  [data-nav="sidenav"] .spotlight {
    width: calc(100% + var(--pad) * 2 + var(--gutter));
    margin-right: calc((var(--pad) + var(--gutter)) * -1);
  }
}
.spotlight__source { position: absolute; width: 2px; height: 2px; top: 0; left: 0; opacity: 0; pointer-events: none; }
.spotlight__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spotlight__fly { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
/* keeps the swirl from fighting the type at the edges */
.spotlight.has-swirl::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(11,11,11,.55) 100%);
}
.spotlight__frame {
  position: relative; z-index: 1;
  left: calc(var(--fx, 0) * 1%); translate: 0 calc((var(--fy, -2) + 2) * 1%);
  margin: 0 auto;
  width: calc(var(--fw, 60) * 1%);
  aspect-ratio: var(--far, 1.6);
  overflow: hidden;
  cursor: pointer; touch-action: pan-y;
  background: var(--plate2);
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
}
.spotlight.has-swirl .spotlight__frame { box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.spotlight__photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spotlight__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }
@media (max-width: 767px) {
  .spotlight__frame { left: 0; width: 88%; aspect-ratio: 4 / 5; max-height: 62svh; }
}

.spotlight__hud {
  position: relative; z-index: 2;     /* in flow: sits right under the photo, whatever the width */
  padding: clamp(1rem, 2.5vh, 1.5rem) var(--pad) clamp(1.1rem, 3vh, 2rem);
  pointer-events: none;
}
[data-nav="sidenav"] .spotlight__hud { padding-right: calc(var(--pad) + var(--gutter) * .55); }
.spotlight__hud button { pointer-events: auto; }
.spotlight__count { color: var(--dim); }
.spotlight.has-swirl .spotlight__count { color: var(--sp-fg); }

/* The title lives inside the photo, in white, over a soft shade — never black on grey. */
.spotlight__title {
  margin: 0;
  color: #f4f4f2;
  font-family: var(--f-inter);
  font-weight: 800;
  font-size: clamp(1.8rem, 9cqw, 6.5rem);
  line-height: .88;
  letter-spacing: -.04em;
  text-transform: uppercase;
  pointer-events: none;
}
.spotlight__frame { container-type: inline-size; }
.spotlight__cap {
  position: absolute; z-index: 3; left: 4%; bottom: 5%; max-width: 88%;
  display: flex; flex-direction: column; gap: .7em; pointer-events: none;
}
.spotlight__meta { color: rgba(244,244,242,.85); }
.spotlight__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0) 55%);
}
.spotlight__word { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .06em 0; margin-bottom: -.06em; }
.spotlight__char { display: inline-block; will-change: transform; }

.spotlight__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem);
  flex-wrap: wrap;
}
.spotlight__index { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.6rem, 1.6vw, 1.6rem); flex-wrap: wrap; }
.spotlight__index button {
  position: relative;
  display: flex; gap: .7em; align-items: baseline;
  padding: .7rem 0 .55rem;
  min-width: clamp(6.5rem, 12vw, 13rem);
  font-size: clamp(.72rem, .9vw, .9rem);
  letter-spacing: .02em;
  opacity: .5;
  text-align: left;
  transition: opacity .3s;
}
.spotlight__index button:hover, .spotlight__index button[aria-current="true"] { opacity: 1; }
.spotlight__index button i {
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: color-mix(in srgb, var(--sp-fg) 30%, transparent);
}
.spotlight__index button i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--sp-fg);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.spotlight__index button[aria-current="true"] i::after { transform: scaleX(1); }

.spotlight__ctrl { display: flex; align-items: center; gap: .6rem; }
.spotlight__btn {
  width: clamp(42px, 4vw, 54px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sp-fg) 40%, transparent);
  display: grid; place-items: center;
  transition: background .25s, color .25s, transform .25s;
}
.spotlight__btn svg { width: 40%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spotlight__btn:hover { background: var(--sp-fg); color: var(--sp-bg); transform: scale(1.06); }
.spotlight__open {
  margin-left: .6rem; padding: .95rem 1.3rem; border-radius: 999px;
  background: var(--sp-fg); color: var(--sp-bg);
}

@media (max-width: 767px) {
  .spotlight__title { font-size: 12cqw; }
  .spotlight__index button { min-width: 0; }
  .spotlight__index-name { display: none; }
}

/* ---------- Events — vertical carousel, three synced columns ---------- */
.events {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* left + right meta columns */
.events__names,
.events__dates {
  display: grid;
  gap: .1rem;
  align-content: center;
}
.events__names li,
.events__dates li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .5rem 0;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 38%, transparent);
  transition: color .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
  cursor: pointer;
}
.events__dates li { justify-content: flex-end; cursor: default; }
.events__names li:hover { color: color-mix(in srgb, var(--fg) 75%, transparent); }
.events__names li[data-active="true"],
.events__dates li[data-active="true"] { color: var(--fg); }
.events__names li[data-active="true"] { transform: translateX(.5rem); }
.events__dates li[data-active="true"] { transform: translateX(-.5rem); }
.events__names li[data-active="true"] .events__bullet { background: var(--red); }
.events__bullet {
  width: 5px; height: 5px;
  flex: 0 0 auto;
  align-self: center;
  background: currentColor;
  transition: background-color .4s ease;
}

/* centre stage */
.events__stage {
  position: relative;
  height: clamp(320px, 46vh, 460px);
  overflow: hidden;
  touch-action: pan-y;
}
.events__card {
  position: absolute;
  top: 50%; left: 50%;
  width: min(100%, 26rem);
  margin-left: calc(min(100%, 26rem) / -2);
  display: grid;
  gap: .6rem;
  padding-bottom: .5rem;
  /* Opaque so the stacked neighbours cannot show through behind the title —
     same colour as the section, so it reads as no panel at all. */
  background: var(--bg);
  will-change: transform;
}
.events__art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--plate2);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.events__card h3 {
  font-family: var(--f-inter);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

@media (min-width: 768px) {
  .events { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .9fr); }
}

/* ---------- Shop — lookbook grid, no cart ---------- */
.shop__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.shop__filter { display: flex; flex-wrap: wrap; gap: .35rem; align-items: baseline; }
.shop__filter button {
  padding: .3rem .55rem;
  color: var(--dim);
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}
.shop__filter button:hover { color: var(--fg); }
.shop__filter button[data-active="true"] {
  color: var(--bg);
  background: var(--fg);
}

.shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem) clamp(.8rem, 1.6vw, 1.4rem);
}
.prod { display: grid; gap: .7rem; align-content: start; }
.prod__thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--plate2);
  outline: 1px solid var(--line);
  outline-offset: -1px;
}
.prod__thumb i {
  position: absolute;
  inset: 0;
  display: block;
  transition: opacity .5s ease;
}
/* Second plate sits underneath and swaps in on hover, like the reference shop. */
.prod__alt { opacity: 0; }
.prod:hover .prod__alt { opacity: 1; }
.prod:hover .prod__thumb i:first-child { opacity: 0; }

.prod__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  font-family: var(--f-inter);
  font-size: clamp(.9rem, 1.1vw, 1.02rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.prod__meta .mono { font-weight: 400; }
.prod__sizes { display: block; margin-top: -.35rem; }

/* Filtered-out items collapse out of the grid entirely. */
.prod[hidden] { display: none; }
.shop__empty { padding-top: 2rem; }
.shop__empty[hidden] { display: none; }

@media (min-width: 768px) { .shop__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .shop__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Assets ---------- */
.assets__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 1.6vw, 1.6rem);
}
.asset { display: grid; gap: .85rem; }
.asset__stage {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--plate);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}
/* The invert moment — logotype reversed out of ink.
   Needs the explicit background: .asset__stage sets --plate directly and
   would otherwise win on source order against .is-invert. */
.asset__stage.is-invert {
  background: var(--ink);
  border-color: var(--ink);
}
.asset__logo { width: min(60%, 420px); height: auto; fill: var(--fg); }
.asset__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: .88rem;
}
.asset__stage--type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .1em;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
}
.asset__stage--swatch { display: flex; padding: 0; gap: 0; }
.asset__stage--swatch i { flex: 1; height: 100%; background: var(--c); }

/* glyph families */
.glyph--v { font-family: var(--f-script); font-weight: 400; }
.glyph--r { font-family: var(--f-inter);  font-weight: 800; }
.glyph--g { font-family: var(--f-hand);   font-weight: 400; }
.glyph--d { font-family: var(--f-sans);   font-weight: 700; }

.typespec {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
}
.typespec li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.glyph-lg {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  width: 2.2em;
  flex: 0 0 auto;
}

/* ---------- Contacts — the closing inverted block ---------- */
.section--contacts { padding-bottom: var(--pad); border-top: 0; }
.contacts__big {
  font-family: var(--f-inter);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: .96;
  letter-spacing: -.035em;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: clamp(3rem, 10vh, 7rem);
}
.contacts__col { display: grid; gap: .55rem; align-content: start; }
.contacts__col a {
  font-family: var(--f-inter);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.02em;
  width: fit-content;
  cursor: pointer;
  transition: color .3s ease;
}
.contacts__col a:hover { color: var(--dim); }
.contacts__col span:not(.mono) { font-size: clamp(1.1rem, 1.8vw, 1.6rem); }

/* The #vrgd symbol's viewBox is a square 2048x2048 canvas, but the
   wordmark itself only occupies a wide band roughly a third of that
   height (bbox ~ x:351 y:739 w:1467 h:618) — at full width that empty
   square read as a big gap above/below a small logo. <use> always fits
   the symbol's WHOLE viewBox into the wrapper (no way to just change
   the wrapper's own viewBox to crop it — tried that, it only changes
   the letterboxing), so the crop happens here instead: scale the
   square svg up until the wordmark's own width fills the container,
   then translate it into place and clip the rest with overflow. Crop
   rect (260,650)-(1910,1450) is the bbox plus ~6% padding. */
.contacts__mark {
  padding-bottom: 1.5rem;
  overflow: hidden;
  aspect-ratio: 1650 / 800;
}
.contacts__mark svg {
  display: block;
  width: calc(100% * 2048 / 1650);
  height: auto;
  fill: var(--fg);
  transform: translate(calc(-260 / 2048 * 100%), calc(-650 / 2048 * 100%));
}
.contacts__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

/* =========================================================
   Fullscreen menu — also inverted
   ========================================================= */
.menu-wrapper {
  position: fixed; inset: 0;
  z-index: 800;
  display: none;
  opacity: 0;
}
.menu-wrapper.is-open { display: block; }
.menu {
  position: absolute; inset: 0;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(0);
  transform-origin: top right;
}
.menu__close { align-self: flex-end; cursor: pointer; }
.menu__list { display: grid; gap: .3rem; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: .35rem 0;
  font-family: var(--f-inter);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  cursor: pointer;
}
.menu__list a:hover { color: var(--dim); }
.menu__foot { display: flex; justify-content: space-between; }

/* =========================================================
   Flip / split reveal helper
   ========================================================= */
.word { display: inline-block; }

/* =========================================================
   Clip reveal — plates wipe in from the bottom
   ========================================================= */
.js [data-clip] { clip-path: inset(100% 0 0 0); }

/* =========================================================
   Subpages (events, shop, gallery)
   ========================================================= */
/* No persistent nav lives here, so the hamburger has to be reachable on
   desktop too — otherwise the only way back is the corner logotype. */
body[data-page] .menu-button { display: flex; }

/* Subpages start below the fixed navbar. */
body[data-page="events"] main,
body[data-page="shop"] main { padding-top: var(--nav-h); }

.pagefoot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .8rem clamp(1rem, 3vw, 2.5rem);
  padding: clamp(2rem, 6vh, 4rem) var(--pad) clamp(2.5rem, 7vh, 5rem);
  border-top: 1px solid var(--line);
}
.pagefoot__links { display: flex; flex-wrap: wrap; gap: .6rem clamp(1rem, 2.5vw, 2rem); }
.pagefoot__links a {
  font-family: var(--f-inter);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.02em;
  cursor: pointer;
  transition: color .3s ease;
}
.pagefoot__links a:hover { color: var(--dim); }
/* =========================================================
   Gallery — a shelf of books, each project one book
   ========================================================= */
.shelf { padding: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem)) var(--pad) clamp(3rem, 8vh, 6rem); }
.shelf__note { padding-bottom: clamp(2rem, 5vh, 3.5rem); }

.shelf__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 230px), 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem) clamp(1.2rem, 3vw, 2.6rem);
  align-items: end;
}

/* --- a book on the shelf --- */
.tome {
  position: relative;
  display: grid;
  gap: .75rem;
  cursor: pointer;
  background: none;
  text-align: left;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.tome:hover { transform: translateY(-8px); }

.tome__cover {
  position: relative;
  /* Matches the book's own title screen (pageAspect) instead of a fixed
     mould — set per-book as --cover-ratio in gallery.js, so a square book
     gets a square shelf preview instead of a cropped portrait one. */
  aspect-ratio: var(--cover-ratio, 3 / 4);
  background: var(--plate2);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  overflow: hidden;
  /* The spine: a darker strip down the binding edge. */
  box-shadow: inset 10px 0 0 -6px color-mix(in srgb, var(--ink) 45%, transparent),
              inset 14px 0 0 -13px color-mix(in srgb, var(--ink) 30%, transparent);
  transition: box-shadow .5s ease;
}
.tome:hover .tome__cover {
  box-shadow: inset 10px 0 0 -6px color-mix(in srgb, var(--ink) 45%, transparent),
              inset 14px 0 0 -13px color-mix(in srgb, var(--ink) 30%, transparent),
              14px 14px 0 -4px var(--shadow);
}
.tome__cover img { width: 100%; height: 100%; object-fit: cover; }

/* A real cover photo gets a bottom scrim so the title label reads regardless
   of what is in the image. Placeholder covers (no <img>) are left alone —
   they already contrast fine against the plain plate tone. */
.tome__cover:has(img)::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 10, .75) 0%, rgba(10, 10, 10, .32) 34%, transparent 64%);
}
.tome__cover:has(img) .tome__label { color: #f4f4f2; }

.tome__label {
  position: absolute;
  inset: auto .8rem .9rem 1.5rem;
  z-index: 2;
}
.tome__label h3 {
  font-family: var(--f-inter);
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.tome__meta { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }

/* =========================================================
   Reader — the opened book
   ========================================================= */
.reader {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.reader[hidden] { display: none; }

.reader__bar {
  display: flex;
  align-items: baseline;
  gap: clamp(.8rem, 2vw, 2rem);
  padding: var(--pad) var(--pad) 0;
}
.reader__bar [data-reader-count] { margin-left: auto; font-variant-numeric: tabular-nums; }
.reader__close { cursor: pointer; }
.reader__close:hover { color: var(--red); }

/* The text that used to live on the book's title page (see gallery.js) —
   still shown, just above the spread instead of inside it. Collapses to
   nothing when a book has no blurb, no empty gap left behind. */
.reader__blurb {
  max-width: 56ch;
  padding: .6rem var(--pad) 0;
  font-size: clamp(.82rem, .95vw, .95rem);
  line-height: 1.5;
  color: var(--muted);
}
.reader__blurb:empty { display: none; }

.reader__stage {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2.5rem) var(--pad);
  min-height: 0;
}
/* Whole left / right halves are the page-turn hit areas. */
.reader__side {
  position: absolute;
  top: 0; bottom: 0;
  width: 42%;
  z-index: 5;
  cursor: pointer;
  background: none;
}
.reader__side--prev { left: 0; }
.reader__side--next { right: 0; }
.reader__side:disabled { cursor: default; }

.reader__hint { padding: 0 var(--pad) var(--pad); text-align: center; }

/* --- the book itself --- */
.book {
  position: relative;
  /* Spread ratio + a bare number version of it, set per book from gallery.js
     (buildBook reads book.pageAspect). Defaults reproduce a 3:4 page exactly.
     width = min(max width, max height * ratio) is the general "fit inside a
     box, keep the aspect ratio" formula — it works for ANY --book-ratio-num,
     not just the 1.5 default, so a book of square pages (ratio-num 2) fits
     its own frame instead of being forced into a portrait one and letterboxed. */
  --book-ratio-num: 1.5;
  aspect-ratio: var(--book-ratio, 3 / 2);
  width: min(93vw, calc(78vh * var(--book-ratio-num)));
  perspective: 2600px;
  transform-style: preserve-3d;
}

.book__page {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--plate);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  overflow: hidden;
}
.book__page--verso { left: 0; }
.book__page--recto-end { left: 50%; }

.book__leaves {
  position: absolute;
  top: 0; left: 50%;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
}

/* One leaf = two faces, hinged on the spine. */
.leaf {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
}
.leaf__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: var(--plate);
  outline: 1px solid var(--line);
  outline-offset: -1px;
  overflow: hidden;
}
.leaf__face--back { transform: rotateY(180deg); }
.leaf__face--blank { background: var(--plate); }

/* The page itself — full bleed, no caption, no page number. Used for every
   page including the verso (front cover) and end cap (back cover): opening
   the book should show pages, not UI. */
.leaf__art { position: absolute; inset: 0; overflow: hidden; }
.leaf__art img { width: 100%; height: 100%; object-fit: contain; }

/* The spread just scales down on narrow screens. An earlier single-page
   variant broke the mechanic: a leaf hinged on the spine swung clean off
   screen and its back face — half of every book — was never seen. */
@media (max-width: 767px) {
  .book { width: min(87vw, calc(58vh * var(--book-ratio-num, 1.5))); }
  .reader__side { width: 48%; }
}

/* =========================================================
   Project detail — one work item, its own page. Structure and
   pacing (full-bleed hero, sticky headline against running body
   copy, a media grid, a plain credits list, a next-project link
   at the foot) take cues from case-study sites like media.work,
   kept in this site's own type/halftone/cursor language.
   ========================================================= */
.project__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: calc(var(--nav-h) + clamp(1.2rem, 4vh, 2.2rem)) var(--pad) clamp(1.2rem, 3vh, 1.8rem);
}
/* Fixed, not just top-of-page — the whole point is a way back that
   doesn't need scrolling to the top first, wherever you are on a long
   project page. Sits under the navbar's own z-index so the fullscreen
   menu (600) still draws over both. */
.project__back {
  position: fixed;
  top: calc(var(--nav-h) + .4rem);
  left: var(--pad);
  z-index: 590;
  cursor: pointer;
  transition: color .3s ease;
}
.project__back:hover { color: var(--dim); }

.project__hero {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--plate);
  overflow: hidden;
  margin: 0 var(--pad);
  view-transition-name: project-hero;
}
.project__hero .project__frame { position: absolute; inset: 0; }
.project__hero .project__frame img,
.project__hero .project__frame video { width: 100%; height: 100%; object-fit: cover; }
.project__hero-bar {
  position: absolute; inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: linear-gradient(to top, rgba(10, 10, 10, .74) 0%, rgba(10, 10, 10, .3) 45%, transparent 82%);
}
.project__hero-bar .mono { color: #f4f4f2; }
.project__title {
  font-family: var(--f-inter);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: -.03em;
  line-height: 1;
  color: #f4f4f2;
}

.project__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.project__headline {
  font-family: var(--f-inter);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-decoration: underline;
  text-underline-offset: .14em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line);
}
.project__body {
  display: grid;
  gap: 1.1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(.9rem, 1.05vw, 1.05rem);
  line-height: 1.62;
}

.project__media {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(3rem, 8vh, 6rem) var(--pad);
}
.project__media-item {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--plate);
  overflow: hidden;
}
.project__media-item .project__frame { position: absolute; inset: 0; }
.project__media-item img,
.project__media-item video { width: 100%; height: 100%; object-fit: cover; }

.project__credits { padding: 0 var(--pad) clamp(3rem, 8vh, 6rem); }
.project__credits-label { display: block; padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.project__credits-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.project__credit {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  margin: 0;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.project__credit dd {
  font-family: var(--f-inter);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
}

.project__next {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: clamp(3rem, 8vh, 5rem) var(--pad);
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.project__next h3 {
  font-family: var(--f-inter);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  letter-spacing: -.035em;
  line-height: 1;
  transition: color .35s ease;
}
.project__next:hover h3 { color: var(--dim); }

.project__missing {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding: calc(var(--nav-h) + 6rem) var(--pad) 7rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .assets__grid { grid-template-columns: repeat(2, 1fr); }
  .asset--wide { grid-column: 1 / -1; }
  .contacts__grid { grid-template-columns: repeat(3, 1fr); }
  .project__intro { grid-template-columns: 1.05fr 1fr; }
  .project__headline { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .project__media { grid-template-columns: repeat(2, 1fr); }
  .project__media-item--full { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* Gutter exists only to clear the side nav, so it follows that mode. */
@media (min-width: 768px) {
  [data-nav="sidenav"] .section { padding-right: var(--gutter); }
  [data-nav="sidenav"] .contacts__mark,
  [data-nav="sidenav"] .contacts__legal { margin-right: calc(var(--pad) - var(--gutter)); }
}

/* Below tablet every mode falls back to the hamburger. */
@media (max-width: 767px) {
  .sidenav { display: none; }
  .topnav { display: none; }
  .navswitch { display: none; }
  .menu-button { display: flex; }
  [data-nav="jumpbar"] .jumpbar { left: var(--pad); right: var(--pad); transform: translateY(150%); }
  .jumpbar__list { overflow-x: auto; }
}

@media (max-width: 991px) {
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .topnav ul { gap: .3rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__scroll-line { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- TUNE panel (work swirl / photo) — dev tool, delete with initSpotlight's panel block ---------- */
.spotlight__tune {
  padding: .35rem .7rem; border: 1px solid color-mix(in srgb, var(--sp-fg) 40%, transparent); border-radius: 999px;
  font: inherit; letter-spacing: .08em; pointer-events: auto;
}
.spotlight__tune:hover { background: var(--sp-fg); color: var(--sp-bg); }
.tune {
  position: fixed; z-index: 9000; right: 12px; top: 12px; bottom: 12px; width: 300px;
  display: flex; flex-direction: column;
  background: rgba(11,11,11,.9); color: #f4f4f2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244,244,242,.18);
  font-size: 11px; line-height: 1.3;
}
.tune[hidden] { display: none; }
.tune header, .tune footer { display: flex; justify-content: space-between; padding: .7rem .9rem; border-color: rgba(244,244,242,.18); }
.tune header { border-bottom: 1px solid; letter-spacing: .1em; }
.tune footer { border-top: 1px solid; gap: .5rem; }
.tune button { color: inherit; font: inherit; cursor: pointer; }
.tune footer button { flex: 1; padding: .5rem; border: 1px solid rgba(244,244,242,.35); }
.tune footer button:hover { background: #f4f4f2; color: #0b0b0b; }
.tune__body { flex: 1; overflow: auto; padding: .4rem .9rem 1rem; }
.tune h4 { margin: 1.1rem 0 .3rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.tune__row { display: grid; grid-template-columns: 1fr 1fr 2.6em; gap: .5rem; align-items: center; padding: .28rem 0; cursor: default; }
.tune__row select, .tune__row input[type="file"] { grid-column: 2 / 4; min-width: 0; font: inherit; color: inherit; background: transparent; border: 1px solid rgba(244,244,242,.3); padding: .2rem; }
.tune__row select option { color: #000; }
.tune__row input[type="range"] { width: 100%; accent-color: #f4f4f2; }
.tune__row output { text-align: right; opacity: .7; }
.tune__note { margin: .2rem 0 0; opacity: .5; }
.tune details { border-bottom: 1px solid rgba(244,244,242,.12); padding: .2rem 0 .5rem; }
.tune summary { cursor: pointer; padding: .55rem 0; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.tune details > button { margin-top: .4rem; width: 100%; padding: .45rem; border: 1px solid rgba(244,244,242,.35); }
.tune details > button:hover { background: #f4f4f2; color: #0b0b0b; }

/* tighter top of the WORK section — the photo sits right under the heading */
.section--work { padding-top: clamp(2.5rem, 6vh, 4.5rem); padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.section--work .section__head { padding-bottom: clamp(.5rem, 1.5vh, 1rem); }

/* ---------- Team — a strip of portraits ----------
   B&W flash portraits with a fine dot screen that dissolves on hover (same idea as the
   WORK photos). Name sits inside the photo in white, like the WORK title. A card with
   data-video plays it on hover (initTeam in main.js). */
.team__title { margin: 0 0 clamp(2.5rem, 7vh, 5rem); }
.team__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(.6rem, 1.2vw, 1.1rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .team__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1360px) {
  .team__grid { grid-template-columns: repeat(6, 1fr); padding-bottom: clamp(1.5rem, 3vw, 2.75rem); }
  .team__card:nth-child(even) { margin-top: clamp(1.5rem, 3vw, 2.75rem); margin-bottom: calc(clamp(1.5rem, 3vw, 2.75rem) * -1); }
}
.team__card {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--plate2);
  color: #f4f4f2;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1), box-shadow .6s ease;
}
.team__media { position: absolute; inset: 0; margin: 0; z-index: 0; }
.team__media img, .team__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.08);
}
.team__media img { transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.team__card:hover .team__media img { transform: scale(1.04); }
.team__video { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.team__card.is-playing .team__video { opacity: 1; }
/* fine dot screen, themed (multiply on paper, screen on dark) — gone while hovered */
.team__card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(var(--dotink) 0 .8px, transparent 1.3px);
  background-size: 4px 4px;
  mix-blend-mode: var(--blend);
  opacity: .5;
  transition: opacity .5s ease;
}
.team__card:hover::before, .team__card.is-playing::before { opacity: 0; }
/* soft shade so the white type reads on any part of the photo */
.team__card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 52%);
}
.team__num { position: absolute; z-index: 3; top: .85rem; left: .9rem; opacity: .8; font-size: .66rem; letter-spacing: .1em; }
.team__info { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: .9rem; display: grid; gap: .45rem; }
.team__name {
  margin: 0;
  font-family: var(--f-inter); font-weight: 800;
  font-size: clamp(1.25rem, 1.9vw, 1.9rem);
  line-height: .9; letter-spacing: -.035em; text-transform: uppercase;
}
.team__role { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
/* Instagram: a small window that slides in from the top-right corner on hover / focus.
   Without hover (touch) it stays visible, since there is no hover to wait for. */
.team__ig {
  position: absolute; z-index: 4; top: .7rem; right: .7rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .6rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line);
  font-size: .62rem; letter-spacing: .04em; line-height: 1;
  opacity: 0; transform: translateY(-10px) scale(.94); transform-origin: top right;
  pointer-events: none;
  transition: opacity .3s ease, transform .5s cubic-bezier(.16, 1, .3, 1), background .2s, color .2s;
}
.team__ig svg { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.team__ig svg .dot { fill: currentColor; stroke: none; }
.team__card:hover .team__ig, .team__card:focus-within .team__ig, .team__card.is-playing .team__ig {
  opacity: 1; transform: none; pointer-events: auto;
}
.team__ig:hover { background: var(--ink); color: var(--paper); }
.team__ig:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
@media (hover: none) {
  .team__ig { opacity: 1; transform: none; pointer-events: auto; }
}
@media (hover: hover) {
  .team__card:hover { transform: scale(1.07); z-index: 6; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
}

/* centred: heading, head row and strip sit on the middle of the viewport. The side nav takes a
   gutter on the right, so the same gutter is mirrored on the left. */
.section--team { text-align: center; }
.section--team .section__head { justify-content: center; }
.team__title { text-align: center; }
@media (min-width: 768px) {
  [data-nav="sidenav"] .section--team { padding-left: var(--gutter); }   /* mirrors the section's right padding (= --gutter) */
}
.team__info { text-align: left; }

/* ---------- Glitch — short slice / channel-split burst ----------
   Loader text only. (The hero lede uses the normal scramble-hover instead.) */
@keyframes glitch-slice {
  0%   { clip-path: inset(0 0 85% 0);  transform: translate(-6px, 0);  text-shadow: 3px 0 rgba(255, 43, 41, .85), -3px 0 rgba(0, 225, 255, .8); }
  12%  { clip-path: inset(55% 0 10% 0); transform: translate(5px, 0); }
  24%  { clip-path: inset(20% 0 55% 0); transform: translate(-3px, 1px); text-shadow: -3px 0 rgba(255, 43, 41, .85), 3px 0 rgba(0, 225, 255, .8); }
  36%  { clip-path: inset(0 0 0 0);     transform: translate(2px, 0); }
  48%  { clip-path: inset(70% 0 5% 0);  transform: translate(-9px, 0); text-shadow: 4px 0 rgba(255, 43, 41, .85), -4px 0 rgba(0, 225, 255, .8); }
  60%  { clip-path: inset(10% 0 70% 0); transform: translate(4px, -1px); }
  72%  { clip-path: inset(0 0 0 0);     transform: translate(-1px, 0); }
  86%  { clip-path: inset(35% 0 40% 0); transform: translate(3px, 0); text-shadow: 2px 0 rgba(255, 43, 41, .85), -2px 0 rgba(0, 225, 255, .8); }
  100% { clip-path: inset(0 0 0 0);     transform: none; text-shadow: none; }
}
.is-glitch { animation: glitch-slice .7s steps(1, end) both; }
.loader__item.is-glitch { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .is-glitch { animation: none; } }

/* Hero lede: per-character scramble (initGlitch in main.js). The symbol is drawn over the real
   character, which keeps its own width — the paragraph never reflows. */
.hero__lede .lw { white-space: nowrap; }
.hero__lede .ch { position: relative; }
.hero__lede .ch.is-scr { color: transparent; }
.hero__lede .ch.is-scr::after {
  content: attr(data-g);
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  color: var(--lede-fg);
}
.hero__lede .ch.is-red::after { color: var(--red); }

/* Phones only (≤767 px, same breakpoint as the hamburger menu): the spine hugs the screen edge and the
   spark is smaller, so neither reaches the text, which starts at --pad (16 px). Tablets / desktop unchanged. */
@media (max-width: 767px) {
  .spine { left: 7px; }
  .spine__spark { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
}

/* ---------- Fonts a word can be switched to in the admin (Homepage texts). Same four families the site uses. ---------- */
.f-inter  { font-family: var(--f-inter);  font-weight: 800; letter-spacing: -.02em; }
.f-sans   { font-family: var(--f-sans);   font-weight: 500; letter-spacing: 0; }
.f-script { font-family: var(--f-script); font-weight: 400; font-style: normal; letter-spacing: 0; font-size: 1.35em; line-height: .7; }
.f-hand   { font-family: var(--f-hand);   font-weight: 400; font-style: normal; letter-spacing: 0; font-size: 1.1em; }

/* =========================================================
   Company line (footer) + cookie banner
   ========================================================= */
.legalbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 2rem;
  padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line);
  font-size: .62rem; line-height: 1.6; letter-spacing: .06em;
}
.legalbar > span:first-child, .legalbar__row > span:first-child { max-width: 62ch; text-transform: none; }
.legalbar__links { display: flex; gap: 1.2rem; }
.legalbar a, .legalbar button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; cursor: pointer; }
.legalbar a:hover, .legalbar button:hover { text-decoration: underline; text-underline-offset: 3px; }
.legalbar button[hidden] { display: none; }
.legalbar--page { margin: 4rem var(--pad) 0; padding-bottom: 2rem; display: block; border-top: 0; }
.legalbar--page .legalbar__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.consent {
  position: fixed; z-index: 9000; left: var(--pad, 1rem); right: var(--pad, 1rem); bottom: var(--pad, 1rem);
  max-width: 34rem; padding: 1.1rem 1.2rem; background: #0a0a0a; color: #f4f4f2;
  border: 1px solid rgba(244,244,242,.25); font-size: .8rem; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .9rem; }
.consent a { color: inherit; text-underline-offset: 3px; }
.consent__row { display: flex; gap: .6rem; }
.consent button {
  font: inherit; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  padding: .55rem 1rem; border: 1px solid #f4f4f2; background: transparent; color: #f4f4f2;
}
.consent button[data-consent="accept"] { background: #f4f4f2; color: #0a0a0a; }
.consent button:hover { opacity: .8; }
@media (min-width: 768px) { .consent { left: auto; right: var(--pad, 1.5rem); } }

/* Contact form (shown only when it is switched on in the admin) + links wrapper */
.contacts__links { display: contents; }
.cform { display: grid; gap: .7rem; max-width: 34rem; margin: 3rem 0 1rem; }
.cform input, .cform textarea {
  font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  padding: .7rem 0; outline: none; opacity: .9;
}
.cform input:focus, .cform textarea:focus { opacity: 1; border-bottom-width: 2px; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform button { justify-self: start; padding: .7rem 1.2rem; font: inherit; letter-spacing: .1em; background: transparent; color: inherit; border: 1px solid currentColor; cursor: pointer; }
.cform button:hover { background: currentColor; }
.cform button:hover { color: var(--bg, #0a0a0a); }
.cform__msg { min-height: 1.2em; margin: 0; font-size: .7rem; }
.cform__fine { margin: 0; font-size: .6rem; line-height: 1.5; }
.cform__fine a { color: inherit; }
