/* ==========================================================================
   VZN — Vision Studio Co.
   Brand tokens live in :root. Swap colours and fonts here to rebrand.
   ========================================================================== */

/* Gamiya Retro by Nirmana Visual: the display face, self-hosted from assets/fonts
   (a web subset of assets/fonts/source/GamiyaRetro-Regular.otf). One weight and no
   italic, so the face covers every weight and the browser never fakes one. */
@font-face {
  font-family: "Gamiya Retro";
  src: url("../fonts/GamiyaRetro-Regular.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Inter Tight (SIL Open Font License): the body and interface face, self-hosted as a
   Latin subset of the regular weight, with the arrows the labels use. No request
   leaves the site for fonts. */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-Regular.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Coldag Serif by Delipensil: the previous display face, kept as an alternate (edit
   mode offers it; a face that isn't used is never downloaded). It has no . , : - /
   characters, so pair it with a fallback that does. */
@font-face {
  font-family: "ColdagSerif";
  src: url("../fonts/ColdagSerif-Bold.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ColdagSerif";
  src: url("../fonts/ColdagSerif-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "ColdagSerif Outline";
  src: url("../fonts/ColdagSerif-Outline.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Patchcode (by Igor Ovsyannykov): the boot sequence's terminal font. "block" so the
   boot never types in a stand-in font first; boot.js also waits for it briefly. */
@font-face {
  font-family: "Patchcode";
  src: url("../fonts/Patchcode.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  /* Colour: a four-tone grey ramp measured from the eye logo artwork
     (assets/brand/source): #1c1b1b near-black, #474646 the logo's charcoal,
     #acabab the logo's grey, #e8e7e3 bone. Each role below is one of those tones
     (plus one in-between grey for control outlines, which need 3:1 against the page). */
  --bg: #1c1b1b;              /* page */
  --surface: #474646;         /* covers, photo backdrops */
  --line: #474646;            /* rules between sections */
  --line-strong: #7a7979;     /* outlines of controls: fields, pills, swatches */
  --text: #e8e7e3;            /* primary text */
  --muted: #acabab;           /* secondary text */
  --paper: #e8e7e3;           /* Visual side of Work: bone background */
  --ink: #1c1b1b;             /* Visual side of Work: text */
  --ink-muted: #474646;       /* Visual side of Work: secondary text */
  --on-blend: #ffffff;        /* text in the header and Work bar, which invert over
                                 whatever is behind them (mix-blend-mode: difference) */
  color-scheme: dark;

  /* Space: a 4px-based scale, plus fluid steps for gutters and blocks */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --gap-fluid: clamp(16px, 2.4vw, 36px);   /* between cards, columns, header items */
  --gap-wide: clamp(20px, 3.2vw, 56px);    /* between menu links */
  --space-block: clamp(40px, 6vw, 88px);   /* between a section's heading and its content */

  /* Stacking order, bottom to top */
  --z-below: -1;              /* scratch texture, behind the content */
  --z-raised: 2;              /* controls that sit over media */
  --z-player: 40;             /* the player bar; the open phone menu covers it */
  --z-header: 50;
  --z-boot: 90;
  --z-skip: 200;              /* skip link */

  --radius-pill: 999px;
  --tap: 44px;                /* smallest comfortable touch target */
  --label-tracking: 0.06em;   /* small uppercase labels */
  --measure-caption: 38ch;    /* widest line of a short caption */
  --measure-text: 60ch;       /* widest line of running text */

  /* Type: Gamiya Retro for display, a clean sans for everything else */
  --font-display: "Gamiya Retro", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --text-size: 1.2rem;        /* body / UI text: the base of the scale */

  /* One scale: each step is 1.25 times the one below it */
  --text-xs: calc(var(--text-m) * 0.64);       /* 12.3px  smallest labels */
  --text-s: calc(var(--text-m) * 0.8);         /* 15.4px  labels, captions, pills */
  /* Body: the base size up to a 960px screen, then growing gently (about 21px at 1920)
     so small text keeps pace with the headlines on large screens */
  --text-m: max(var(--text-size), calc(var(--text-size) * 0.9 + 0.2vw));
  --text-l: calc(var(--text-m) * 1.25);        /* 24px    card titles */
  --text-xl: calc(var(--text-m) * 1.5625);     /* 30px    product names, menu */
  --text-2xl: calc(var(--text-m) * 1.953);     /* 37.5px */
  --text-3xl: calc(var(--text-m) * 2.441);     /* 47px    slogan, email */
  /* Two headline sizes, also 1.25 apart. Largest: the studio name and the Contact
     line. Next: section titles. Both grow with the screen and always fit a phone. */
  --display-xl: clamp(3.4rem, 10.4vw, 12rem);
  --display-l: clamp(2.72rem, 8.32vw, 9.6rem);
  --display-scale: 1;         /* multiplies both headline sizes */
  --display-leading: 1;       /* multiplies headline line spacing */
  --display-tracking: -0.01em;
  --display-weight: 400;
  --display-case: none;       /* none | uppercase | lowercase */

  /* Layout */
  --pad: clamp(16px, 3.5vw, 50px);
  --header-h: 88px;           /* room the fixed header needs at the top of a screen */
  --bar-h: 56px;              /* room Work's bottom bar needs */
  --player-h: 60px;           /* height of the player bar */
  --section-pad: clamp(64px, 7vw, 100px);

  /* Motion: slow, weighty ease-outs. Two curves and four speeds cover everything. */
  --ease-out: cubic-bezier(.2, .7, .1, 1);    /* things arriving or settling (the default) */
  --ease-in-out: cubic-bezier(.6, 0, .2, 1);  /* things that swap in place (photo front / back) */
  --dur-1: 150ms;             /* state changes: colour, outline, opacity on hover or press */
  --dur-2: 300ms;             /* small interface moves: menu, header, photo flip */
  --dur-3: 600ms;             /* media and logo moves */
  --dur-4: 1000ms;            /* entrances */
  --stagger: 60ms;            /* gap between things that enter one after another */
  --mark-scale: 1.06;         /* hero logo size */
  --mark-ratio: 1214 / 1262;  /* the eye mark's proportions (width / height) */

  /* Hero logo scroll reveal: the logo rests faint and blurred behind the
     headline; scrolling fades the headline out and brings the logo into focus.
     1 = on, 0 = off (the logo then sits above the headline, as before). */
  --logo-fx: 1;
  --fx-rest: 0.16;            /* logo visibility behind the headline */
  --fx-blur: 24px;            /* blur while behind the headline */
  --fx-distort: 0;            /* ink warp while behind the headline (suited the old line-drawn logo) */
  --fx-ghost: 0.06;           /* double-exposure ghost strength */
  --fx-offset: 3px;           /* ghost spread */
  --fx-edge: 0px;             /* softness of the revealed logo's edge (0: crisp; the artwork's is about 1.4px) */
  --fx-halo: 0;               /* glow left around the revealed logo, 0 (none) to 1 */
  --fx-scroll: 50svh;         /* scroll distance over which the reveal happens */
  --fx-hold: 30svh;           /* extra scrolling with the logo held in place before the page moves on */
  --fx-mark-x: 0vw;           /* logo position from screen centre: + right, - left */
  --fx-mark-y: -2svh;         /* logo position from screen centre: + down, - up */
  --scratch: 0;               /* vintage scratch texture behind the content, 0 (off) to 1 */
  --focus-fx: 1;              /* 1: headlines and artwork come into view out of focus, then
                                 sharp, like the hero logo. 0: they rise into place */
  --wave-player: 1;           /* 1: a beat's cover waveform fills as it plays and can be pressed or
                                 dragged to move through it. 0: a still waveform with a line under it */

  /* Boot sequence (assets/js/boot.js). 0 = off, 1 = on. Try it in edit mode first. */
  --boot: 0;
  --boot-speed: 75ms;         /* time per letter */
  --boot-delay: 400ms;        /* cursor blinking on an empty screen before typing */
  --boot-hold: 700ms;         /* "access granted" on screen before the logo */
  --boot-load: 1150ms;        /* loading bar fill time */
  --boot-logo-time: 1400ms;   /* eye logo flicker and glitch */
  --boot-glitch: 0.7;         /* glitch strength, 0 (clean) to 1 (wild) */
  --boot-password: show;      /* show | hide (types *****) */
  --boot-fade: 650ms;         /* fade from the boot screen to the page */
  --boot-size: 2rem;          /* text size (capped so it always fits a phone) */
  --boot-align: center;       /* center | top-left */
  --font-terminal: "Patchcode", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-m);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }                 /* images carry their pixel size; this keeps their proportions */
picture { display: contents; }        /* a picture's image is laid out as if the wrapper weren't there */
a { color: inherit; text-decoration: none; }
/* Headings break into even lines; paragraphs avoid leaving a word or two alone */
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
/* Emphasis: the display face has no italic, and an emphasised word ("vision") is set
   like the words around it. */
em { font-style: normal; }
::selection { background: var(--text); color: var(--bg); }
/* Keyboard focus: one ring everywhere, in the colour of the text it surrounds, so it
   shows on the dark page, on bone, and in the inverting header alike */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.noscript { position: relative; z-index: var(--z-raised); margin: 0; padding: calc(var(--header-h) + var(--space-5)) var(--pad) var(--space-5); color: var(--muted); }
.noscript a { color: var(--text); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: var(--space-2); z-index: var(--z-skip); background: var(--text); color: var(--bg); padding: var(--space-2) var(--space-4); }
.skip-link:focus { left: var(--space-2); }

/* Labels: the small uppercase "system" text in the corners, bars and buttons */
.hero-links a, .hero-foot, .footer-row, .nav-toggle, .btn, .rail-group, .work-bar, .pill, .product-buy, .player-close {
  font-size: var(--text-s);
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
}

/* Pills: every small rounded button. Dark by default; .is-light for bone or photo
   backgrounds; .is-small for tags that aren't buttons (sizes). Hover inverts. */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  /* Nearly solid rather than a blurred backdrop: pills ride on moving covers, and
     blurring what is behind them would be redone on every frame of scrolling */
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--text);
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.pill:hover:not(:disabled), .pill.is-on, .card-sound.is-playing .card-play { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill:disabled { cursor: default; opacity: .6; }
/* Pressed: controls give slightly under the finger or cursor */
.pill:active:not(:disabled):not(.is-small), .product-swatch:active { transform: scale(.96); }
.site-nav a:active, .hero-links a:active, .footer-row a:active, .btn:active, a.product-buy:active, .contact-email:active, .work-tabs a:active, .nav-toggle:active { opacity: .6; }
.card-open:active img, .card-open:active .cover { transform: scale(.99); }
.pill.is-light { border-color: color-mix(in srgb, var(--ink) 35%, transparent); background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); }
.pill.is-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.is-small { padding: var(--space-1) var(--space-3); background: none; color: var(--muted); cursor: default; }
.pill.is-small:hover { background: none; color: var(--muted); border-color: var(--line-strong); }

/* Touch targets: small controls keep their size on screen, but the area that responds
   to a finger is at least --tap tall (and, for the round swatches, wide). */
/* (:where keeps this rule weak, so controls that are positioned elsewhere, like the
   Play pill on a cover, keep their own position) */
:where(.pill:not(.is-small), .nav-toggle, .work-tabs a, .hero-links a, .btn, .footer-row a, .site-nav a, .product-swatch, .player-close) { position: relative; }
.player-close::before, .pill:not(.is-small)::before, .nav-toggle::before, .work-tabs a::before, .hero-links a::before, .btn::before, .footer-row a::before, .site-nav a::before, .product-swatch::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: max(100%, var(--tap));
  translate: 0 -50%;
}
.product-swatch::before { left: 50%; right: auto; width: var(--tap); translate: -50% -50%; }
/* Play is the main control on a phone, so there it is a full-size target in its own right */
@media (pointer: coarse) { .card-play { min-height: var(--tap); padding-inline: var(--space-5); } }

/* Text links: one hover everywhere, an underline that wipes in from the left.
   (Buy and the big email keep a faint resting underline; the wipe draws over it.) */
.site-nav a, .hero-links a, .footer-row a, .btn, a.product-buy, .contact-email { position: relative; }
.site-nav a::after, .hero-links a::after, .footer-row a::after, .btn::after, a.product-buy::after, .contact-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.site-nav a:hover::after, .hero-links a:hover::after, .footer-row a:hover::after, .btn:hover::after, a.product-buy:hover::after, .contact-email:hover::after,
.site-nav a:focus-visible::after, .hero-links a:focus-visible::after, .footer-row a:focus-visible::after, .btn:focus-visible::after, a.product-buy:focus-visible::after, .contact-email:focus-visible::after { transform: scaleX(1); }
a.product-buy::after, .contact-email::after { bottom: -1px; }

/* Small line above a heading ("Shop", "01 / 02") */
.kicker { font: 400 var(--text-m)/1.5 var(--font-ui); margin: 0; }
.section { padding: var(--section-pad) var(--pad); border-top: 1px solid var(--line); }
.section-label { margin-bottom: var(--space-block); }

/* Key / value tables (contact socials) */
/* (used by the social links block that is commented out in index.html) */
.details { display: grid; gap: var(--space-3); }
.details > div { display: grid; grid-template-columns: 12ch 1fr; gap: var(--space-4); }
.details dt { color: var(--muted); }

/* Vintage scratches: dust and scratch marks taken from a film texture (greyscale), as
   a still texture behind all content. It shows wherever nothing paints its own
   background (the hero, Sound, Shop, Contact); the boot screen, the bone Visual side
   and the viewer cover it. --scratch sets its opacity; at 0 it's off and the image
   isn't downloaded (main.js adds .scratch-on above 0). */
.scratches { display: none; }
.scratch-on .scratches {
  display: block;
  position: fixed;
  inset: 0;
  z-index: var(--z-below);
  pointer-events: none;
  opacity: var(--scratch);
  background: url("../media/texture/scratches.webp") center / cover no-repeat;
}

/* Boot sequence ---------------------------------------------------------- */
/* An empty screen where a terminal types out, then the eye logo flickers on and the
   screen fades to the page. Sits over everything else. */
.boot { display: none; }
.boot-on .boot {
  position: fixed;
  inset: 0;
  z-index: var(--z-boot);
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: var(--bg);
  color: var(--text);
}
.boot-on .boot.is-top-left { place-items: start; }
/* Terminal: every line is laid out from the start (hidden) so nothing shifts */
.boot-term {
  font-family: var(--font-terminal);
  font-weight: 400;
  font-size: var(--boot-size);
  line-height: 1.4;
  white-space: pre;
  transition: opacity var(--dur-2) var(--ease-out);
}
.boot-l { margin: 0; visibility: hidden; }
.boot-l.is-shown { visibility: visible; }
.boot-rest { visibility: hidden; }
/* Loading bar: block cells like a terminal, faint track behind the fill */
.boot-bar { position: relative; display: inline-block; height: 0.62em; vertical-align: 0.02em; }
.boot-bar::before, .boot-bar-fill {
  background: repeating-linear-gradient(90deg, currentColor 0 0.78ch, transparent 0.78ch 1ch);
}
.boot-bar::before { content: ""; position: absolute; inset: 0; opacity: .18; }
.boot-bar-fill { position: relative; display: block; width: 0; height: 100%; }

/* Eye logo: placed over the hero logo by boot.js (it measures this box) */
.boot-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(60vmin, 520px);
  aspect-ratio: var(--mark-ratio);
  translate: -50% -50%;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-3) var(--ease-out);
}
.boot-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot.is-logo .boot-term { opacity: 0; }
.boot.is-logo .boot-logo { opacity: 1; }
.boot.is-ending .boot-logo, .boot.is-ending .boot-canvas { transform: scale(1.05); }   /* settles to the hero logo's size */
/* The glitch is drawn on a full-screen canvas by boot.js; the plain logo underneath
   is only a fallback (it flickers on) for browsers that can't draw the canvas */
.boot-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: transform var(--dur-3) var(--ease-out); }
.boot.is-logo.has-canvas .boot-canvas { opacity: 1; }
.boot.has-canvas .boot-logo { visibility: hidden; }
.boot.is-logo:not(.has-canvas) .boot-logo-img { animation: boot-flicker var(--logo-time, 1.4s) linear both; }
@keyframes boot-flicker {
  0% { opacity: 0; }
  5% { opacity: .75; }
  8% { opacity: .1; }
  12% { opacity: .9; }
  15% { opacity: .35; }
  20%, 47% { opacity: 1; }
  49% { opacity: .55; }
  51%, 77% { opacity: 1; }
  79% { opacity: .7; }
  81%, 100% { opacity: 1; }
}
/* When the boot logo hands over to the hero logo, the hero logo is already in place */
.boot-handoff .hero-mark { animation: none; }
/* While the boot runs, the hero's own intro waits, then plays as the page appears */
.booting .hero-mark,
.booting .hero-title .line > span,
.booting .hero-slogan .line > span,
.booting .hero-links { animation-play-state: paused; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--gap-fluid);
  padding: var(--pad);
  color: var(--on-blend);
  mix-blend-mode: difference;   /* stays legible over any image */
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand img { width: clamp(48px, 4.6vw, 68px); height: auto; transition: transform var(--dur-3) var(--ease-out); }
.brand:hover img { transform: rotate(-8deg); }

.site-nav { grid-column: 3; display: flex; gap: var(--gap-wide); }
.site-nav a { font: 400 clamp(var(--text-xl), 2.6vw, var(--text-2xl))/1 var(--font-display); letter-spacing: var(--display-tracking); }

.nav-toggle {
  display: none;
  grid-column: 3;
  background: none; border: 0; padding: var(--space-2) 0;
  color: inherit; font-family: inherit; cursor: pointer;
}
/* On the first page the header is only the logo: the centred links under the headline
   do the navigating. The menu comes in once the hero has been scrolled past. (.on-hero
   is on <html>: set in the head for the first paint, then kept up to date by main.js.) */
.site-nav, .nav-toggle { transition: opacity var(--dur-2) var(--ease-out), visibility var(--dur-2); }
.on-hero .nav-toggle { opacity: 0; visibility: hidden; }
@media (min-width: 761px) {
  .on-hero .site-nav { opacity: 0; visibility: hidden; }
}

@media (max-width: 760px) {
  .site-header { mix-blend-mode: normal; transition: background var(--dur-2) var(--ease-out); }
  .site-header.is-scrolled, body.nav-open .site-header { background: var(--bg); }
  .nav-toggle { display: block; position: relative; z-index: var(--z-raised); }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--pad);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-2) var(--ease-out), visibility var(--dur-2);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-size: calc(var(--display-l) * var(--display-scale)); line-height: 1; }
  .brand { position: relative; z-index: var(--z-raised); }
  body.nav-open { overflow: hidden; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; }
.hero-stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + var(--space-5)) var(--pad) var(--space-8);
  overflow: hidden;
  text-align: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.45;
}
.hero-content { position: relative; }
.hero-mark {
  position: relative;
  width: calc(min(300px, 40vw, 30svh) * var(--mark-scale));
  aspect-ratio: var(--mark-ratio);
  max-width: 100%;
  margin: 0 auto clamp(-24px, -2vw, -8px);
  animation: mark-in var(--dur-3) var(--ease-out) backwards;
  will-change: transform;
}
.mark-main { position: relative; display: block; width: 100%; height: auto; }
/* Layers added by logo-fx.js for the scroll reveal: soft (blurred, with ghosts) and
   mid (half-sharp) sit under the sharp logo. Hidden unless the effect is on. */
.mark-stack { position: relative; }
.mark-soft, .mark-mid { position: absolute; inset: 0; opacity: 0; pointer-events: none; display: none; }
.mark-soft img, .mark-mid img { position: relative; display: block; width: 100%; height: auto; }
/* Ghosts (the same grey as the logo, no colour) */
.mark-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: var(--muted);
  -webkit-mask: url("../brand/eye-white.svg") center / contain no-repeat;
  mask: url("../brand/eye-white.svg") center / contain no-repeat;
}
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
@keyframes mark-in { from { opacity: 0; transform: scale(1.04); } }
.hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  font-size: calc(var(--display-xl) * var(--display-scale));
  line-height: calc(0.95 * var(--display-leading));
}
.hero-title .line, .hero-slogan .line { display: block; overflow: hidden; padding: 0 0.04em 0.16em; margin-bottom: -0.16em; }
/* Entrance: the logo settles, then the name, slogan and links follow one --stagger
   apart. Everything is in place 1.2 seconds after the page appears. */
.hero-title .line > span, .hero-slogan .line > span { display: block; text-wrap: balance; animation: rise var(--dur-4) var(--ease-out) var(--stagger) both; }
/* Slogan: the display face again, set smaller so the studio name leads */
.hero-slogan {
  margin: clamp(var(--space-2), 1.6vw, var(--space-5)) 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(var(--text-l), 3.2vw, var(--text-3xl));
  line-height: 1.05;
  letter-spacing: 0;
}
.hero-slogan .line > span { animation-delay: calc(var(--stagger) * 2); }
@keyframes rise { from { transform: translateY(100%); } }

.hero-links { display: flex; justify-content: center; gap: var(--gap-wide); margin-top: clamp(var(--space-6), 6vh, var(--space-8)); animation: fade var(--dur-4) var(--ease-out) calc(var(--stagger) * 3) backwards; }
.hero-links a { display: inline-block; }   /* one straight row, all on the same line */
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) {
  /* Phones: headlines scale faster with the narrower screen */
  :root { --display-xl: clamp(3.4rem, 14.5vw, 7rem); --display-l: clamp(2.72rem, 11.6vw, 5.6rem); }
  .hero-mark { width: calc(min(62vw, 34svh) * var(--mark-scale)); }
}

/* Scroll reveal (logo-fx.js adds .fx-on to <html> when --logo-fx is 1): the hero
   holds in place while the headline fades and the logo behind it sharpens. */
.fx-on .hero { height: calc(100svh + var(--fx-scroll) + var(--fx-hold)); }
.fx-on .hero-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.fx-on .hero-content { position: static; }   /* so the logo centres on the screen, not the text block */
.fx-on .hero-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: calc(-50% + var(--fx-mark-x)) calc(-50% + var(--fx-mark-y));
  width: calc(min(640px, 68vw, 64svh) * var(--mark-scale));
  max-width: none;
  margin: 0;
}
.fx-on .hero-title, .fx-on .hero-slogan, .fx-on .hero-links { position: relative; z-index: var(--z-raised); will-change: opacity, transform; }
.fx-on .mark-soft, .fx-on .mark-mid { display: block; }
/* The resting state, in the stylesheet so it is right at first paint: the logo faint and
   blurred behind the headline. logo-fx.js then takes over these values as you scroll. */
.fx-on .mark-stack { opacity: var(--fx-rest); }
.fx-on .mark-soft { opacity: 1; }
.fx-on .mark-soft > img { filter: blur(var(--fx-blur)); }
.fx-on .mark-main { opacity: 0; }
/* Own graphics layers, so scrolling only changes opacity and transform (no redraw) */
.fx-on .mark-stack, .fx-on .mark-soft, .fx-on .mark-mid, .fx-on .mark-main { will-change: opacity, transform; }

.hero-foot {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; justify-content: space-between;
  margin: 0;
  color: var(--muted);
}

/* Menu links land each section exactly at the top of the screen (main.js), so the end
   of the previous section never shows under the header. The sections keep their content
   clear of the header themselves: Work's panels have their own top padding, Shop and
   Contact get the header height added to theirs.
   Shop and Contact each take at least a whole screen, with their content centred in it,
   so the page reads one section at a time. 100vh is the full screen: on phones, the
   screen with the browser's toolbar tucked away, so no sliver of the next section shows. */
.shop, .contact {
  padding-top: calc(var(--section-pad) + var(--header-h));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* A section focused after a menu jump (for keyboard users) shows no ring itself */
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }

/* Work: Sound and Visual panels side by side; main.js pins the section and
   turns vertical scrolling into the sideways move. ------------------------- */
.work { position: relative; border-top: 1px solid var(--line); }
.work-pin {
  position: relative;
  height: 100svh;
  overflow-x: auto;              /* without JavaScript the panels simply scroll sideways */
  overflow-y: hidden;
}
.work.is-pinned .work-pin { position: sticky; top: 0; overflow: hidden; }
/* The bar and pinned panel scroll away together once the sideways move ends */
.work.is-pinned .work-bar { position: absolute; }
.work-track { display: flex; width: max-content; height: 100%; }
.work.is-pinned .work-track { position: absolute; inset: 0 auto 0 0; will-change: transform; }

.work-panel {
  --rail-h: min(48svh, 560px);    /* height of the row of cards; grows with the screen */
  display: flex;
  align-items: center;
  gap: var(--gap-fluid);
  height: 100%;
  /* Clear of the header above and the bar below; the wide right padding is the pause
     between the Sound and Visual panels */
  padding: calc(var(--pad) + var(--header-h) + var(--space-2)) clamp(var(--space-8), 9vw, 160px) calc(var(--pad) + var(--bar-h)) var(--pad);
}
/* The Visual side turns the page: black ink on bone, like the original logo artwork */
.panel-visual { background: var(--paper); color: var(--ink); }
.panel-visual .card-meta, .panel-visual .card-sub, .panel-visual .panel-lede,
.panel-visual .rail-count, .panel-visual .panel-intro .kicker { color: var(--ink-muted); }
.panel-visual .rail-group { border-color: color-mix(in srgb, var(--ink) 25%, transparent); }

.panel-intro { flex: none; width: clamp(240px, 28vw, 440px); align-self: center; }
.panel-intro .kicker { color: var(--muted); }
.panel-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  font-size: calc(var(--display-l) * var(--display-scale));
  line-height: calc(0.95 * var(--display-leading));
  margin: var(--space-2) 0 var(--space-5) -0.04em;
}
.panel-lede { color: var(--muted); max-width: var(--measure-caption); margin: 0; text-wrap: balance; }

.rail { display: flex; align-items: flex-start; gap: var(--gap-fluid); }
.rail-group {
  flex: none;
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  writing-mode: vertical-rl;
  rotate: 180deg;
  max-height: var(--rail-h);
  padding-left: var(--space-2);
  border-left: 1px solid var(--line-strong);
}
.rail-count { color: var(--muted); }

.card { flex: none; }
.card-media { position: relative; display: block; overflow: hidden; background: var(--surface); }
.card-meta { margin: var(--space-3) 0 var(--space-1); color: var(--muted); font-size: var(--text-s); }
.card-title { font: 400 var(--text-l)/1.1 var(--font-display); }
.card-sub { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--text-s); }

/* Sound cards: square covers with a play button and a progress line */
/* A cover is 72% of the row's height, which leaves room for its two lines of text below */
.card-sound { width: min(var(--rail-h) * 0.72, 62vw); }
.card-sound .card-media { aspect-ratio: 1; }
.card-sound .card-media img, .card-sound .cover { width: 100%; height: 100%; object-fit: cover; }
.card-play {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
}
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--text) 15%, transparent); }
.card-progress i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; }

/* Visual cards: varied heights (set per card in main.js), widths follow the image */
.card-visual { inline-size: min-content; }
.card-open {
  all: unset;
  display: block;
  /* Never wider than the screen: a wide piece gets shorter instead (--r = width / height) */
  height: min(calc(var(--rail-h) * var(--h, 1)), calc((100vw - 2 * var(--pad)) / var(--r, 0.01)));
  cursor: zoom-in;
  overflow: hidden;
}
.card-open:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.card-open img, .card-open .cover { display: block; height: 100%; width: auto; max-width: none; transition: transform var(--dur-3) var(--ease-out); }
.card-open img { width: 100%; object-fit: cover; }   /* fills the space reserved for it */
.card-open:hover img, .card-open:hover .cover { transform: scale(1.03); }

/* Bottom bar: section name, Sound/Visual progress, now playing */
.work-bar {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) * 0.6);
  z-index: var(--z-raised);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--on-blend);
  mix-blend-mode: difference;    /* readable on both the black and the bone side */
}
.work-bar .kicker { font: inherit; letter-spacing: inherit; }
.work-tabs { display: flex; align-items: center; gap: var(--space-3); flex: 1; max-width: 520px; }
.work-tabs a { opacity: .65; transition: opacity var(--dur-1) var(--ease-out); }   /* dimmed, but still 4.5:1 on both sides */
.work-tabs a.is-active, .work-tabs a:hover { opacity: 1; }
.work-progress { flex: 1; height: 1px; background: color-mix(in srgb, var(--on-blend) 30%, transparent); }
.work-progress span { display: block; height: 100%; background: var(--on-blend); transform: scaleX(0); transform-origin: left; }

/* Player: a bar fixed to the bottom of the screen while a beat is loaded. Its top edge
   is the progress line. ------------------------------------------------------ */
.player[hidden] { display: none; }
.player {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-player);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-4);
  height: var(--player-h);
  padding: 0 var(--pad);
  background: var(--bg);
  color: var(--text);
  transform: translateY(100%);
  transition: transform var(--dur-2) var(--ease-out);
}
.player.is-open { transform: none; }
.player-toggle { min-width: 5.5em; }
.player-info { margin: 0; min-width: 0; display: flex; align-items: baseline; gap: var(--space-3); white-space: nowrap; }
.player-title { font: 400 var(--text-l)/1.1 var(--font-display); overflow: hidden; text-overflow: ellipsis; }
.player-meta, .player-time { color: var(--muted); font-size: var(--text-s); font-variant-numeric: tabular-nums; }
.player-close { background: none; border: 0; padding: 0; color: var(--muted); font-family: inherit; cursor: pointer; transition: color var(--dur-1) var(--ease-out); }
.player-close:hover { color: var(--text); }
/* The progress line: thin to look at, tall to grab, with a playhead to drag */
.player-scrub {
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 28px;
  cursor: pointer;
  touch-action: none;
}
.player-scrub::before, .player-scrub i { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; }
.player-scrub::before { background: var(--line); }
.player-scrub i { background: var(--text); transform: scaleX(0); transform-origin: left; }
.player-scrub:hover::before, .player-scrub:hover i, .player-scrub:focus-visible::before, .player-scrub:focus-visible i { top: 12px; height: 4px; }
.player-scrub b {
  position: absolute;
  top: 14px;                                   /* the middle of the line */
  left: clamp(7px, calc(var(--at, 0) * 100%), calc(100% - 7px));
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px var(--bg);
  transition: transform var(--dur-1) var(--ease-out);
}
.player-scrub:hover b, .player-scrub.is-dragging b, .player-scrub:focus-visible b { transform: scale(1.35); }
.player-scrub:focus-visible { outline: none; }
.player-scrub:focus-visible i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
@media (pointer: coarse) { .player-scrub { top: -22px; height: 36px; } .player-scrub::before, .player-scrub i { top: 21px; } .player-scrub b { top: 22px; width: 14px; height: 14px; margin: -7px 0 0 -7px; } }
/* While the player is open, things pinned to the bottom of the screen sit above it */
.has-player .work-bar { bottom: calc(var(--pad) * 0.6 + var(--player-h)); }
.has-player .hero-foot { bottom: calc(var(--pad) + var(--player-h)); }
.has-player .site-footer { padding-bottom: calc(var(--pad) + var(--player-h)); }
@media (max-width: 760px) {
  .player { gap: var(--space-3); }
  .player-meta, .player-close span { display: none; }
  .player-title { font-size: var(--text-m); }
}

/* Generated covers: a soft patch of light on the page colour, in neutral grey.
   main.js sets where the light falls (--cx, --cy) and how strong it is (--cl). */
.cover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at var(--cx, 30%) var(--cy, 30%), color-mix(in srgb, var(--surface) var(--cl, 70%), var(--bg)), transparent 70%),
    color-mix(in srgb, var(--surface) 22%, var(--bg));
}
.cover-wave { position: absolute; left: 14%; right: 14%; top: 35%; height: 30%; display: flex; align-items: center; gap: 2px; }
.cover-wave i { flex: 1; background: var(--text); opacity: .85; }
/* The waveform as the player (main.js, --wave-player): on the loaded beat the bars dim,
   then fill from the left as it plays. An invisible slider over the bars takes presses
   and drags: on the loaded beat it moves the playhead, on any other it starts that beat
   from that point. */
.card-sound.has-wave .card-progress { display: none; }           /* the bars are the progress */
.card-sound.has-wave .cover-wave i { transition: opacity var(--dur-1) var(--ease-out); }
.card-sound.has-wave.is-current .cover-wave i { opacity: .32; }
.card-sound.has-wave.is-current .cover-wave i.is-played { opacity: 1; }
.wave-scrub { position: absolute; left: 14%; right: 14%; top: 22%; height: 56%; cursor: pointer; touch-action: pan-y; }
.wave-scrub:focus-visible { outline-offset: 0; }
.cover-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; translate: -50% -50%; border: 1px solid color-mix(in srgb, var(--text) 60%, transparent); border-radius: 50%; }
.cover-play::after { content: ""; position: absolute; left: 55%; top: 50%; translate: -50% -50%; border-left: 12px solid var(--text); border-block: 8px solid transparent; }
.cover .cover-mark { position: absolute; left: 50%; top: 52%; width: 38%; height: auto; translate: -50% -50%; opacity: .45; }
.cover-label { position: absolute; left: var(--space-2); top: var(--space-2); right: var(--space-2); display: flex; justify-content: space-between; gap: var(--space-2); font-size: var(--text-xs); text-transform: uppercase; color: color-mix(in srgb, var(--text) 75%, transparent); }

@media (max-width: 760px) {
  .work-bar { gap: var(--space-3); }
  /* "Work" is already in the menu, so it is hidden from view here, but stays a heading
     for screen readers (the page's headings would otherwise skip a level) */
  .work-bar > .kicker { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Inside Work nothing scrolls under the phone header, so drop its black bar and
     let it adapt to the black and bone sides like the desktop header does */
  html.in-work body:not(.nav-open) .site-header { background: transparent; mix-blend-mode: difference; color: var(--on-blend); }
  .work-panel { --rail-h: min(40svh, 380px); padding-top: calc(var(--header-h) + var(--space-1)); padding-right: calc(var(--pad) * 2); }
  .panel-intro { width: 62vw; }   /* narrow enough that the first cover peeks in beside it */
  .work-tabs { gap: var(--space-2); }
}

/* Viewer ----------------------------------------------------------------- */
.viewer {
  width: min(1100px, calc(100% - 2 * var(--space-3)));
  max-height: calc(100svh - 2 * var(--space-3));
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}
.viewer::backdrop { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); }
.viewer-close {
  position: absolute; top: var(--space-3); right: var(--space-3); z-index: var(--z-raised);
}
.viewer-media { background: var(--bg); }
.viewer-media img { width: 100%; max-height: 72svh; object-fit: contain; }
.viewer-media iframe, .viewer-media video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.viewer-media iframe.is-audio { aspect-ratio: auto; height: 166px; }
.viewer-media iframe.is-spotify { aspect-ratio: auto; height: 352px; }
.viewer-body { padding: var(--gap-fluid); }
.viewer-meta { color: var(--muted); }
.viewer-title { font: 400 clamp(var(--text-xl), 4vw, var(--text-3xl))/1 var(--font-display); margin: var(--space-2) 0 var(--space-3); }
.viewer-desc { color: var(--muted); max-width: var(--measure-text); margin: 0; }

/* Shop ------------------------------------------------------------------- */
.shop-head { margin-bottom: var(--space-block); }
.shop-head .section-label { margin-bottom: var(--space-5); }
.shop-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  font-size: calc(var(--display-l) * var(--display-scale));
  line-height: calc(0.95 * var(--display-leading));
  margin-bottom: var(--space-5);
}
.shop-lede { color: var(--muted); max-width: var(--measure-caption); margin: 0; text-wrap: balance; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px)); gap: var(--gap-fluid); }
/* One product on a wide screen: a feature, with the photo beside its details, instead
   of a lone card at the left of an empty row. */
@media (min-width: 761px) {
  .products.is-single { grid-template-columns: minmax(0, 1fr); }
  .products.is-single .product {
    display: grid;
    grid-template-columns: minmax(0, min(46vw, 62svh, 620px)) minmax(0, 1fr);
    gap: var(--space-block);
    align-items: end;
  }
  .products.is-single .product-info { padding: 0 0 var(--space-2); max-width: var(--measure-caption); }
  .products.is-single .product-head { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .products.is-single .product-name { font-size: var(--text-3xl); }
}
/* Wider still: the whole section becomes two columns, the title and the product's
   details on the left, the photo large on the right. (The list and its one item step
   out of the way with display: contents so their parts can sit in the section's grid.) */
@media (min-width: 961px) {
  .shop.has-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(44vw, 68svh, 640px));
    grid-template-rows: auto 1fr;
    grid-template-areas: "head media" "info media";
    align-content: center;
    column-gap: var(--space-block);
  }
  .shop.has-single .shop-head { grid-area: head; }
  .shop.has-single .products, .shop.has-single .product { display: contents; }
  .shop.has-single .product-media { grid-area: media; align-self: start; }
  .shop.has-single .product-info { grid-area: info; align-self: end; }
}
.product-media { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.product-media picture img { width: 100%; height: 100%; object-fit: cover; }
/* Front / back photos: clicking the photo or its button sets .show-back (main.js) */
.product-media.has-back { cursor: pointer; }
.product-media picture img.is-back { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-2) var(--ease-in-out); }
.product-media.show-back picture img.is-back { opacity: 1; }
.product-flip {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
}
.mockup { position: absolute; inset: 0; display: grid; place-items: center; }
.mockup svg { width: 78%; height: 78%; }
.mockup svg path { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1; }
.mockup svg .seam { fill: none; }
.mockup svg .paper { fill: var(--paper); }
.mockup-mark { position: absolute; left: 50%; translate: -50% -50%; height: auto; }
.mockup-tee .mockup-mark { top: 42%; width: 24%; }
.mockup-hoodie .mockup-mark { top: 50%; width: 21%; }
.mockup-poster .mockup-mark { top: 46%; width: 36%; }
.product-info { padding-top: var(--space-4); }
.product-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.product-name { font: 400 var(--text-xl)/1.1 var(--font-display); }
.product-price { margin: 0; white-space: nowrap; }
.product-type { margin: var(--space-1) 0 0; color: var(--muted); }
/* Colour swatches */
.product-colors { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.product-swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--swatch);
  box-shadow: 0 0 0 3px var(--bg);
  cursor: pointer;
  transition: box-shadow var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.product-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--text); }
.product-swatch:hover:not([aria-pressed="true"]) { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--muted); }
.product-color-name { color: var(--muted); font-size: var(--text-s); }
.product-sizes { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.product-buy {
  display: inline-block;
  margin-top: var(--space-5);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.product-buy.is-soon { color: var(--muted); border-color: transparent; }

/* Contact ---------------------------------------------------------------- */
.contact { text-align: center; align-items: center; }   /* centred column; the grid below spans it */
.contact-headline {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-case);
  letter-spacing: var(--display-tracking);
  font-size: calc(var(--display-xl) * var(--display-scale));
  line-height: calc(0.95 * var(--display-leading));
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
.contact-email {
  display: inline-block;
  font: 400 clamp(var(--text-l), 4vw, var(--text-3xl))/1.1 var(--font-display);
  border-bottom: 1px solid var(--line-strong);
  word-break: break-word;
}
.contact-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-block);
  margin-top: var(--section-pad);
  text-align: left;
}
.contact-lede { max-width: var(--measure-caption); text-wrap: balance; color: var(--muted); margin-bottom: var(--space-6); }

.contact-form { display: grid; gap: var(--space-1); }
.field { display: grid; grid-template-columns: 12ch 1fr; gap: var(--space-4); align-items: baseline; border-bottom: 1px solid var(--line-strong); transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.field:focus-within { border-color: var(--text); }
.field label { color: var(--muted); transition: color var(--dur-1) var(--ease-out); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: var(--space-3) 0;
  color: var(--text);
  font: inherit;
}
/* A field shows focus on its whole row: the underline brightens and thickens */
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field:focus-within { box-shadow: 0 1px 0 var(--text); }
.field:focus-within label { color: var(--text); }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--surface); }
.field textarea { resize: vertical; }
.btn {
  justify-self: start;
  margin-top: var(--space-5);
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}
.form-status { margin: var(--space-2) 0 0; color: var(--muted); min-height: 1.5em; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--section-pad) var(--pad) var(--pad); }
.footer-mark { width: min(380px, 56vw); height: auto; margin: 0 auto var(--section-pad); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); color: var(--muted); }

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* One focus language (main.js, --focus-fx). Things arrive the way the hero logo does:
   a soft copy with a fixed blur sits over the real thing and fades out as the real thing
   fades in. Only opacity and a slight scale ever animate. */
.focus-on .reveal { transform: scale(1.02); }                    /* small text and blocks fade and settle */
.focus-on .reveal.is-visible { transform: none; }
.focus-on .focus { position: relative; }
/* (once it has settled, .is-settled, none of this applies and the element is as normal) */
.focus-on .focus:not(.is-settled) .focus-sharp { opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.focus-on .focus-soft { opacity: 1; transition: opacity var(--dur-4) var(--ease-out); pointer-events: none; user-select: none; }
.focus-on .focus.is-visible:not(.is-settled) .focus-sharp { opacity: 1; }
.focus-on .focus.is-visible .focus-soft { opacity: 0; }
/* Headlines: the soft copy lies exactly over the words */
.focus-on h2.focus, .focus-on h3.focus { transform: scale(1.03); transform-origin: left center; transition: transform var(--dur-4) var(--ease-out); }
.focus-on .contact-headline.focus { transform-origin: center; }
.focus-on h2.focus.is-visible, .focus-on h3.focus.is-visible { transform: none; }
.focus-on h2.focus > .focus-sharp, .focus-on h3.focus > .focus-sharp { display: block; }
.focus-on h2.focus > .focus-soft, .focus-on h3.focus > .focus-soft { position: absolute; inset: 0; filter: blur(0.1em); }
/* Artwork, covers, product photo: the soft copy fills the same frame */
.focus-on .card-open.focus, .focus-on .card-media.focus, .focus-on .product-media.focus { position: relative; }
.focus-on .card-media.focus > .focus-soft, .focus-on .card-open.focus > .focus-soft { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(14px); }
.focus-on .focus picture > img.focus-soft { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .focus-sharp { opacity: 1 !important; }
  .focus-soft { display: none !important; }
}
