/* Layout: one poster run, built to the Tyler Odell Creative brand pack.
   Every section shares the same header (roughened display title left, "/ 0n" right),
   the same panels, Archivo throughout.
   Dark is the default; a device set to light mode flips the role tokens, as in the brand pack. */
:root {
  /* Fixed palette (brand pack) */
  --night: #0e0d0c;
  --bone: #efe9dc;
  --wasabi: #e9f056;   /* lead accent */
  --sky: #8fcaff;      /* signature, one touch per layout */
  --cassis: #351e28;
  --sauge: #aeb8a0;

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Archivo", var(--sans);
  --grit: "TO Grit", "Archivo", var(--sans);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 18px;
}

/* Role tokens: dark by default */
:root {
  --bg: #0e0d0c; --panel: #181614; --line: #2b2824;
  --fg: #efe9dc; --fg-dim: #9c958a;
  --hl: #e9f056; --mark: transparent; --mark-pad: 0;
  --pill-bg: #e9f056; --pill-fg: #0e0d0c;
  --acc: #e9f056; --err: #ff7a5c;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
:root {
  --bg: #efe9dc; --panel: #e5dece; --line: #d2c9b8;
  --fg: #0e0d0c; --fg-dim: #5e584f;
  --hl: #0e0d0c; --mark: #e9f056; --mark-pad: 0 .08em;
  --pill-bg: #0e0d0c; --pill-fg: #e9f056;
  --acc: #0e0d0c; --err: #a8321a;
  color-scheme: light;
}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  /* subtle film grain painted behind the content, so it never sits over the clips */
  margin: 0; background: url("assets/grain-soft.png") 0 0 / 180px 180px repeat, var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--wasabi); color: var(--night); }
/* Only words can be selected: dragging across the page never paints images, panels or empty blocks */
body { -webkit-user-select: none; user-select: none; }
p, h1, h2, h3, li, dt, dd, blockquote, figcaption, label, .label, input, textarea, select { -webkit-user-select: text; user-select: text; }
img, svg, canvas, video, picture { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
img::selection, svg::selection, canvas::selection, video::selection { background: transparent; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.svg-defs { position: absolute; width: 0; height: 0; }

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

/* Display face: Archivo heavy with a worn edge (brand pack "grit").
   Headings use TO Grit, Archivo 850 with the worn edge baked into the font (fonts/make_grit_font.py),
   so nothing is roughened live. Pills and the logo still use the filter, which roughens their shape too. */
/* Archivo is served from this site (no Google Fonts request, so no visitor data goes to Google) */
@font-face { font-family: "Archivo"; src: url("assets/archivo-latin.woff2") format("woff2"); font-weight: 300 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "TO Grit"; src: url("assets/to-grit.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 200%; font-display: swap; }
.disp, .wm, .pill, .poster h3, .rates h3, .price {
  font-family: var(--display); font-weight: 850; font-stretch: 92%;
  letter-spacing: -0.035em;
}
.disp, .poster h3, .rates h3, .price { font-family: var(--grit); }
.wm, .pill { filter: url(#grit); }
.disp { line-height: .9; text-wrap: balance; margin: 0; }
.mk { color: var(--hl); background: var(--mark); padding: var(--mark-pad); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Motion blur on the last word, as if mid-swipe */
/* Smear: the sideways motion blur from the brand. --s is its strength (main.js pushes it up when the
   cursor moves fast nearby), --d its direction (it trails behind the cursor). .blur words keep a resting smear. */
.smear { --s: 0; --d: 1; display: inline-block;
  text-shadow: calc(.08em * var(--s) * var(--d)) 0 calc(.06em * var(--s)) currentColor,
    calc(.18em * var(--s) * var(--d)) 0 calc(.14em * var(--s)) color-mix(in srgb, currentColor 45%, transparent),
    calc(.3em * var(--s) * var(--d)) 0 calc(.24em * var(--s)) color-mix(in srgb, currentColor 18%, transparent); }
.blur { --s: 1; filter: blur(.5px); }
/* Hand-drawn accents on body text (brand extras used as masks, so each SVG loads once) */
.acc { position: relative; white-space: nowrap; color: var(--fg); }
.acc::after { content: ""; position: absolute; pointer-events: none; background: var(--acc); -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.acc.u::after { --m: url("assets/ex-underline.svg"); left: -2%; width: 104%; bottom: -.55em; height: .65em; }
.acc.sq::after { --m: url("assets/ex-squiggle.svg"); left: 0; width: 100%; bottom: -.55em; height: .5em; }
.acc.o { margin-inline: 1em .9em; }
.acc.o::after { --m: url("assets/ex-circle.svg"); left: -1.05em; right: -1em; top: -.85em; bottom: -.85em; }
.ex-svg { display: block; width: 100%; height: auto; color: var(--acc); overflow: visible; }

/* Logo: full name, "Creative" in a pill that is the opposite of the ground */
.wm { display: inline-flex; align-items: center; gap: .28em; line-height: 1; white-space: nowrap; color: var(--fg); text-decoration: none; }
.wm .tag { background: var(--pill-bg); color: var(--pill-fg); border-radius: 999px; padding: .12em .5em .16em; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; padding-block: 12px; }
.nav .wm { font-size: 18px; }
.nav-right { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2.5vw, 24px); margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 14px; color: var(--fg-dim); }
.nav ul a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav ul { display: none; } }
@media (max-width: 380px) { .nav .wm { font-size: 15px; } }

/* Hero: the headline scrolls through captions like a feed, then stops on the line */
.hero { padding-block: clamp(40px, 6.5vw, 84px) clamp(44px, 6.5vw, 84px); }
.hero h1 { margin: 0; font-size: clamp(48px, 11.5vw, 168px); }
.reel { display: block;
  position: relative; height: calc(2 * 0.9em + 0.1em); overflow: hidden; cursor: pointer;
  -webkit-mask: linear-gradient(transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(transparent, #000 6%, #000 94%, transparent);
}
.reel-track { display: block; will-change: transform; }
/* motion blur while the reel spins: steps down as it slows (main.js swaps the classes) */
.reel-track.fast { filter: blur(3px); }
.reel-track.slow { filter: blur(1.2px); }
.reel-item { height: calc(2 * 0.9em + 0.1em); display: flex; align-items: flex-end; padding-bottom: .05em; }
.reel-item > span { display: block; max-width: 13ch; }
/* Opening reel: covers the page on load, scrolls a feed of captions and pills, lands on the headline,
   then the headline glides into its place in the hero and the cover fades (main.js runIntro) */
.intro { display: none; }
html.intro-on { overscroll-behavior: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
html.intro-on .hero h1 { visibility: hidden; }
.intro-bg { position: absolute; inset: 0; background: url("assets/grain-soft.png") 0 0 / 180px 180px repeat, var(--bg); transition: opacity .8s ease; }
.intro-stage { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
          mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
/* one plain moving layer (no filters, no masks on it) keeps the scroll smooth; a still vignette on top
   softens the edges so the eye goes to the middle, where the headline lands */
.intro-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; backface-visibility: hidden; }
.intro-vig { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 80% 34% at 50% 50%, transparent 50%, color-mix(in srgb, var(--bg) 55%, transparent) 100%);
  transition: opacity .5s ease; }
.intro-line { display: block; color: var(--fg); margin-bottom: .32em; }
.intro-line > span { display: block; max-width: 13ch; }
.ipill { position: absolute; z-index: 1; white-space: nowrap; font: 850 clamp(20px, 3.2vw, 48px)/1 var(--display); font-stretch: 92%; letter-spacing: -0.02em;
  padding: .3em .8em .34em; border-radius: 999px; background: var(--c); color: var(--t, var(--night)); transform: rotate(var(--r)); }
html.intro-out .intro-bg { opacity: 0; }
html.intro-out .intro-stage { -webkit-mask: none; mask: none; }
html.intro-out .intro-vig { opacity: 0; }
/* once it lands, everything but the headline dims a touch */
.intro-line.cap, .ipill { transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
html.intro-landed .intro-line.cap, html.intro-landed .ipill { opacity: .32; }
html.intro-out .intro-line.cap, html.intro-out .ipill { opacity: 0; transition: opacity .35s ease; }
.intro-line.final > span { transform-origin: 0 0; transition: transform .95s cubic-bezier(.65, 0, .35, 1); }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; margin-top: clamp(18px, 2.6vw, 30px); }
.hero-foot { transition: opacity .6s ease; }
html.intro-on .hero-foot { opacity: 0; }
.hero-foot p { margin: 0; max-width: 44ch; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.45; color: var(--fg-dim); }
.hero-foot p strong { color: var(--fg); font-weight: 600; }
.underlined { position: relative; white-space: nowrap; color: var(--fg); }
.underlined .ex-svg { position: absolute; left: -2%; width: 104%; bottom: -0.55em; height: .6em; }

/* Shared section frame */
.section { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); }
.sh { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.sh h2 { font-size: clamp(40px, 6vw, 76px); }
.sh .idx { font-size: 15px; color: var(--fg-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.label { color: var(--fg-dim); font-size: 13px; }

/* Shared card */
.poster { display: flex; flex-direction: column; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.poster-info { display: grid; gap: 14px; padding: 18px 16px 16px; flex: 1; align-content: start; }
.poster h3 { margin: 0; font-size: 26px; line-height: 1; color: var(--fg); }
.credits { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin: 0; font-size: 12.5px; line-height: 1.4; }
.credits dt { color: var(--fg-dim); }
.credits dd { margin: 0; }
.poster-note { margin: 0; font-size: 13.5px; color: var(--fg-dim); }
.poster-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.bar { display: flex; height: 6px; width: 64px; }
.bar i { flex: 1; background: var(--fg); }
.bar i:nth-child(2) { background: var(--line); }
.bar i:nth-child(3) { background: var(--wasabi); }
.poster-foot .n { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }

/* Work */
/* The rail: one row of 9:16 posters that scrolls sideways, so the list can grow */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4);
  --gap: clamp(14px, 2vw, 22px); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > .poster { scroll-snap-align: start; transition: opacity .3s ease; }
/* Focus on the hovered clip: the rest dim and blur */
.rail .poster-media > video, .rail .poster-media > .glow { transition: opacity .3s ease; }
.rail .poster-media > video { transition: opacity .3s ease, filter .3s ease; }
.rail.dimmed .poster:not(.in-focus) .poster-media > video,
.rail.dimmed .poster:not(.in-focus) .poster-media > .glow { opacity: .4; filter: blur(4px); }
.rail.dimmed .poster:not(.in-focus) .poster-info { opacity: .5; }
.rail .poster-info { transition: opacity .3s ease; }
.rail .poster-info :is(h3, dt, dd, p) { transition: text-shadow .35s ease, color .35s ease; }
/* the same sideways smear as the blurred headline word */
.rail.dimmed .poster:not(.in-focus) .poster-info :is(h3, dt, dd, p) {
  text-shadow: .08em 0 .06em currentColor, .2em 0 .16em color-mix(in srgb, currentColor 45%, transparent), .34em 0 .26em color-mix(in srgb, currentColor 18%, transparent);
}
@media (max-width: 1080px) { .rail { grid-auto-columns: calc((100% - var(--gap)) / 2.15); } }
@media (max-width: 560px) { .rail { grid-auto-columns: 78%; } }
.rail-foot { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.track { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.thumb { position: absolute; top: -1px; left: 0; height: 4px; border-radius: 4px; background: var(--wasabi); }
@media (prefers-color-scheme: light) { .thumb { background: var(--night); } }
.count { font-size: 14px; color: var(--fg-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.arrows { display: flex; gap: 8px; }
.arrow { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; border: 1px solid var(--line); color: var(--fg); }
.arrow:hover:not(:disabled) { background: var(--pill-bg); color: var(--pill-fg); border-color: transparent; }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.rail-foot.static { display: none; }
.poster-media { position: relative; aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden; background: var(--night); }
.poster-media video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.poster-media .hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.poster-media .snd { filter: url(#grit); position: absolute; right: 12px; bottom: 12px; z-index: 3; border: 0; cursor: pointer; font: 600 12px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: rgb(14 13 12 / .72); color: var(--bone); }
.poster-media .snd[aria-pressed="true"] { background: var(--wasabi); color: var(--night); }
.poster-media .snd:focus-visible { outline: 2px solid var(--wasabi); outline-offset: 2px; }
.poster-media .glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(28% 12% at 62% 46%, rgb(255 255 255 / .8), transparent 70%),
    radial-gradient(60% 18% at 50% 48%, var(--g1), transparent 70%),
    radial-gradient(40% 40% at 78% 30%, color-mix(in srgb, var(--g2) 60%, transparent), transparent 70%);
  transform: rotate(var(--tilt, -24deg)); filter: blur(14px);
}
.poster-media .soon { position: absolute; left: 14px; bottom: 12px; font-size: 12px; color: rgb(255 255 255 / .6); z-index: 2; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-grid .poster { max-width: 420px; } }
.dots { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: var(--wasabi); overflow: hidden; }
.dots::before { content: ""; position: absolute; inset: 0; background: var(--night);
  -webkit-mask: url("assets/tyler-dots-900.png") center / cover no-repeat; mask: url("assets/tyler-dots-900.png") center / cover no-repeat; }
/* The real photo is drawn into a canvas through a patch of dots that follows the cursor (main.js) */
.dots { cursor: crosshair; touch-action: pan-y;
  /* stop a long press on phones selecting text or popping the magnifier before the drag starts */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.dots .reveal { display: none; }
.dots .reveal-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.about-grid .lead { margin: 0 0 clamp(22px, 3vw, 32px); font-weight: 500; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.28; letter-spacing: -0.02em; max-width: 32ch; text-wrap: pretty; }
.bio { display: grid; gap: 1em; max-width: 54ch; font-size: 17px; color: color-mix(in srgb, var(--fg) 84%, var(--bg)); }
.bio p { margin: 0; }
.bio strong { color: var(--fg); font-weight: 600; }
.clients { margin-top: clamp(36px, 5vw, 56px); padding-top: 18px; border-top: 1px solid var(--line); }
.clients ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-weight: 600; letter-spacing: -0.03em; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; }
.clients li::after { content: "/"; color: var(--fg-dim); margin-inline: .3em; font-weight: 400; }
.clients li:last-child::after { content: ""; }
.clients p { margin: 14px 0 0; }

/* What I cut: stacked, tilted, draggable pills */
.pills { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 860px; margin: 0 auto clamp(48px, 7vw, 80px); padding-block: 12px; }
.pill {
  display: inline-block; margin: -0.12em -0.1em;
  font-size: clamp(24px, 3.8vw, 44px); line-height: 1; white-space: nowrap;
  padding: .2em .62em .26em; border-radius: 999px;
  background: var(--c, var(--wasabi)); color: var(--t, var(--night));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--night) 12%, transparent), 0 10px 22px -12px rgb(0 0 0 / .7);
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg));
  cursor: grab; user-select: none; position: relative; touch-action: none; will-change: transform;
}
.pill.dragging { cursor: grabbing; z-index: 5; }
.rates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rates li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 6px 32px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--line); }
.rates h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1; }
.rates p { margin: 0; color: var(--fg-dim); font-size: 15px; }
.price { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.price small { display: block; font-family: var(--sans); font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--fg-dim); font-size: 13px; filter: none; }
@media (max-width: 720px) { .rates li { grid-template-columns: minmax(0, 1fr) auto; } .rates p { grid-column: 1 / -1; grid-row: 2; } }
.rates-note { margin: 18px 0 0; color: var(--fg-dim); font-size: 15px; }
.rates-note + .rates-note { margin-top: 6px; }
.rates-note a { color: var(--fg); text-underline-offset: 3px; }

/* Contact: enquiry form left, direct details right */
.contact h2.disp { font-size: clamp(54px, 9vw, 128px); }
/* the heading can be dragged but always springs back (main.js) */
.nope { display: inline-block; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; will-change: transform; transform-origin: 50% 60%; }
.nope.held { cursor: grabbing; }
/* on touch screens it grabs a swipe in any direction, so a swipe that starts on it never scrolls the page */
@media (hover: none) { .nope { touch-action: none; } }
.try { margin-top: 10px; color: var(--fg-dim); font-size: 14px; }
.contact-body { max-width: 900px; margin-top: clamp(36px, 5vw, 56px); }
.contact-main { display: grid; gap: clamp(24px, 3vw, 36px); }

/* Photo break: edges blur and break into dots (baked into the image by make_band.py) */
.band { position: relative; margin: 0 auto; max-width: 1800px; padding-block: clamp(12px, 2vw, 28px); }
.band img { display: block; width: 100%; height: auto; }
/* thought bubble over Tyler's head: a rough pill with two trailing dots (positions match the photo crops) */
.band-frame { position: relative; }
.thought { position: absolute; left: 58.5%; top: 11%; margin: 0; pointer-events: none; }
.thought span { display: block; white-space: nowrap; font: 850 clamp(14px, 1.5vw, 22px)/1 var(--display); font-stretch: 92%; letter-spacing: -0.02em;
  padding: .55em 1em .6em; border-radius: 999px; background: var(--wasabi); color: var(--night); filter: url(#grit); transform: rotate(-2deg);
  box-shadow: 0 10px 22px -12px rgb(0 0 0 / .7); }
.thought i { position: absolute; border-radius: 50%; background: var(--wasabi); filter: url(#grit); }
.thought i:nth-of-type(1) { width: clamp(10px, 1vw, 15px); aspect-ratio: 1; left: 0%; top: calc(100% + 6px); }
.thought i:nth-of-type(2) { width: clamp(6px, .55vw, 9px); aspect-ratio: 1; left: -5%; top: calc(100% + clamp(22px, 2.4vw, 34px)); }
@media (max-width: 640px) {
  .thought { left: 50%; top: 11%; transform: translateX(-50%); }
  /* sized in vw so the bubble scales with the photo, which is full width on phones */
  .thought span { font-size: 3.4vw; }
  .thought i:nth-of-type(1) { left: 52%; width: 2.6vw; top: calc(100% + 1.6vw); }
  .thought i:nth-of-type(2) { left: 49%; width: 1.5vw; top: calc(100% + 6vw); }
}
.enquiry { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); display: grid; gap: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-size: 13px; color: var(--fg-dim); padding: 0; margin-bottom: 6px; }
.field input, .field textarea {
  font: 400 17px/1.4 var(--sans); color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--fg); }
.field textarea::placeholder { color: color-mix(in srgb, var(--fg-dim) 70%, transparent); }
.field [aria-invalid="true"] { border-color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { filter: url(#grit); display: inline-block; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-dim); }
.chips input:checked + span { background: var(--pill-bg); color: var(--pill-fg); border-color: transparent; }
.chips input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.send {
  font-family: var(--display); font-weight: 850; font-stretch: 92%; letter-spacing: -0.02em; filter: url(#grit);
  font-size: 22px; background: var(--wasabi); color: var(--night); border: 0; border-radius: 999px; padding: 14px 26px 16px; cursor: pointer;
}
.send:hover { background: var(--sky); }
.send:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.form-status { margin: 0; font-size: 14px; color: var(--fg-dim); flex: 1; min-width: 200px; }
.form-status.error { color: var(--err); }
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.direct .label { flex-basis: 100%; }
.btn.dlink { font-size: 15px; padding: 10px 18px; min-width: 0; transition: background .2s ease, color .2s ease; }
#email { font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .btn.dlink { font-size: 14px; padding: 9px 13px; } .direct { gap: 8px; } }
.copy-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn { filter: url(#grit); font: 600 13px var(--sans); background: var(--pill-bg); color: var(--pill-fg); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--sky); color: var(--night); }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 22px; }
footer .wm { font-size: 15px; }
footer a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
}

/* Custom cursor (mouse only): a Wasabi dot that opens into a ring over links, and a disc with the brand waveform over clips (bars move while that clip has sound) */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor :is(input, textarea) { cursor: text !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s ease; will-change: transform; }
.cursor.on { opacity: 1; }
/* rough edge like the pills; a slightly chunkier grit so it still reads at dot size */
.cursor i { position: absolute; left: 50%; top: 50%; width: var(--sz, 12px); height: var(--sz, 12px); margin: calc(var(--sz, 12px) / -2) 0 0 calc(var(--sz, 12px) / -2);
  border-radius: 50%; background: var(--acc);
  transition: width .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1), margin .28s cubic-bezier(.2, .8, .2, 1), background .2s ease, box-shadow .2s ease; }
.cursor svg { position: relative; width: 26px; height: auto; color: var(--bg); opacity: 0; transform: scale(.5); transition: opacity .2s ease, transform .28s cubic-bezier(.2, .8, .2, 1); }
.cursor svg path { transform-box: fill-box; transform-origin: center; transform: scaleY(.4); transition: transform .3s ease; }
.cursor.playing svg path { animation: bar .7s ease-in-out infinite alternate; }
.cursor.playing svg path:nth-child(2n) { animation-duration: .55s; }
.cursor.playing svg path:nth-child(3n) { animation-duration: .85s; animation-delay: -.3s; }
@keyframes bar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.cursor.link i { --sz: 34px; background: transparent; box-shadow: inset 0 0 0 2px var(--acc); }
.cursor.wave i { --sz: 54px; }
.cursor.wave svg { opacity: 1; transform: scale(1); }
.cursor.wave.down i { --sz: 48px; }
.cursor.small i { --sz: 7px; }
.cursor.on.text { opacity: 0; }
.cursor.down i { --sz: 9px; }
.cursor.link.down i { --sz: 28px; }
@media (prefers-reduced-motion: reduce) { .cursor.playing svg path { animation: none; transform: none; } }
