
/* Palette taken from the hero film: black silhouettes, a blood-red sky, one burning moon. */
:root {
  --void: #0a0606;
  --night: #140909;
  --sky: #a02a21;
  --sky-deep: #5c130e;
  --moon: #de492f;
  --bone: #f3e7dc;
  --fg: 243 231 220; /* foreground and background as RGB triplets, for alpha mixes */
  --bg: 10 6 6;
  --ash: rgb(var(--fg) / 0.62);
  --text-dim: rgb(var(--fg) / 0.8); /* body copy: dimmer than headings, still easy to read */
  --line: rgb(var(--fg) / 0.14);
  --line-strong: rgb(var(--fg) / 0.35);
  /* light sources as RGB triplets: the moon's orange-red, deepening */
  --glow: 222 73 47; --glow-2: 196 54 31; --glow-3: 160 42 33; --glow-4: 92 19 14;
  --tile: linear-gradient(160deg, #1c0c0b, #0d0707);

  /* type from the paper experiment: condensed Archivo for display, JetBrains Mono for UI */
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ui: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --inter: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Ash version (default): the colours of the king art: charcoal, warm grey, parchment, pure blood red.
   The red sky of the hero melts into charcoal through a long gradient. */
html.ash {
  --void: #141210; --night: #24201c; --bone: #e6ddcf;
  --fg: 230 221 207; --bg: 20 18 16;
  --moon: #e01b22; --sky: #b5161d; --sky-deep: #5a0d10;
  --glow: 208 22 28; --glow-2: 180 20 26; --glow-3: 120 16 20; --glow-4: 60 10 12;
  --tile: linear-gradient(160deg, #2a2622, #171512);
}
/* One continuous page: <main> carries a single long gradient and the engraved hatching,
   the screens below the hero are transparent, and hairlines mark where one ends. */
main { position: relative; isolation: isolate; background: linear-gradient(to bottom, var(--void) 0%, var(--night) 45%, var(--void) 100%); }
html.ash main::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgb(201 191 175 / 0.035) 0 1px, transparent 1px 5px);
}
.hero { z-index: 0; }
html.ash .foot { isolation: isolate; }

/* the seam between screens: a hairline across the content width */
.seam { position: relative; }
.seam::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }


/* Light version (?theme=light): paper and ink from the portfolio; the film, moon and art keep their colour. */
html.light {
  --void: #efeee9; --night: #e5e3dc; --bone: #141414;
  --fg: 20 20 20; --bg: 239 238 233;
  color-scheme: light;
}
/* the bar over the film and the footer over the art stay dark in both versions */
html.light .bar.is-over, html.light .foot {
  --void: #0a0606; --night: #140909; --bone: #f3e7dc; --fg: 243 231 220; --bg: 10 6 6;
  color: var(--bone);
}
html.light .bar.is-over.is-open { --void: #efeee9; --night: #e5e3dc; --bone: #141414; --fg: 20 20 20; --bg: 239 238 233; }
html.light .bar.is-open .lockup-mark,
html.light .bar:not(.is-over) .lockup-mark { background: #141414; padding: 6px 5px; box-sizing: content-box; height: calc(var(--h) - 12px); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--void); color: var(--bone); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; padding: 0; }
::selection { background: var(--moon); color: var(--void); }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 4px; }

/* Type roles */
.head { font-family: var(--head); font-weight: 900; font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.86; }
.ui { font-family: var(--ui); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.8; }
.h1 { font-size: clamp(72px, 12vw, 200px); }
.h2 { font-size: clamp(64px, 9vw, 144px); }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; }
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--ash); margin-bottom: 24px; white-space: nowrap; }
.eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--line); }

/* Fine pixel dither, warm, like the film's grain seen up close. Only where the light falls. */
.dither { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(rgb(var(--fg) / 0.06) 1px, transparent 1.2px); background-size: 4px 4px;
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }

/* Buttons: one system everywhere. Square, JetBrains Mono 500, 14px caps. Solid buttons fill red
   from the bottom on hover, like the moon rising; outline buttons fill with bone. */
.btn, .pill, .bar__apply {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 24px; border-radius: 0; white-space: nowrap;
  font-family: var(--ui); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4;
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s, translate 0.3s var(--ease);
}
.btn-apply, .pill-solid, .bar__apply { background: var(--bone); color: var(--void); }
.btn-apply::before, .pill-solid::before, .bar__apply::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--moon);
  scale: 1 0; transform-origin: bottom; transition: scale 0.35s var(--ease);
}
.btn-apply:hover, .pill-solid:hover, .bar__nav .bar__apply:hover { color: #141210; translate: 0 -1px; box-shadow: 0 8px 28px -6px rgb(var(--glow) / 0.6); }
.btn-apply:hover::before, .pill-solid:hover::before, .bar__nav .bar__apply:hover::before { scale: 1 1; }
.btn-ghost, .pill-ghost { color: var(--bone); box-shadow: inset 0 0 0 1px rgb(var(--fg) / 0.35); }
.btn-ghost:hover, .pill-ghost:hover { background: var(--bone); color: var(--void); }
.btn-lg { padding: 17px 44px; }

/* a small red tag, for labels that sit on top of art */
.eyebrow--tag { display: inline-flex; width: fit-content; padding: 3px 9px 2px; background: var(--moon); color: #141210; }
.eyebrow--tag::after { display: none; }

.grain {
  /* a fine ordered-dither grain, 1 CSS pixel per dot, re-rolled about 12 times a second */
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-size: 192px 192px; image-rendering: pixelated;
  opacity: 0.1; mix-blend-mode: overlay;
}
/* worn film over the hero: hairline scratches and dust, jittering like an old print */
.hero-wear { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }

@font-face { font-family: "Stadium"; src: url("/fonts/Stadium.otf") format("opentype"); font-display: swap; }

/* ─────────── Bar ─────────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px var(--gutter);
  font-family: var(--ui); font-size: clamp(14px, 1vw, 16px); text-transform: uppercase; letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.3s, padding 0.3s;
}
.bar.is-over { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding-block: 24px; }
/* Lockup in the brand face: mark H, Stadium caps 0.48H, gap 0.22H, caps centred on the mark. */
.lockup { --h: 52px; display: inline-flex; align-items: center; gap: calc(var(--h) * 0.22); position: relative; z-index: 2; }
.lockup-mark { height: var(--h); width: auto; }
.lockup-word {
  font-family: "Stadium", Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
  font-size: calc(var(--h) * 0.48 / 0.7); line-height: 1; padding-top: calc(var(--h) * 0.48 / 0.7 * 0.2);
}
.bar__nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.bar__nav a:not(.bar__apply) { position: relative; padding-block: 6px; }
.bar__nav a:not(.bar__apply)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  scale: 0 1; transform-origin: right; transition: scale 0.35s var(--ease);
}
.bar__nav a:not(.bar__apply):hover::after { scale: 1 1; transform-origin: left; }
.bar__toggle { display: none; }

/* ─────────── Hero ─────────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: #2a0907; }
.hero-poster img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster img { animation: settle 2.4s var(--ease) both; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(10 6 6 / 0.5), transparent 20%),
    linear-gradient(to top, var(--void) 0%, rgb(var(--bg) / 0.88) 10%, rgb(var(--bg) / 0.5) 24%, rgb(var(--bg) / 0.15) 40%, transparent 55%);
}
@keyframes settle { from { scale: 1.06; opacity: 0; } }

/* ─────────── Collection ─────────── */
.collection { position: relative; padding-block: clamp(64px, 7vw, 112px) 0; overflow: hidden; }
.collection { isolation: isolate; }
.collection-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 64px; align-items: end; }
.collection-copy { display: grid; gap: 18px; max-width: 560px; justify-self: end; color: var(--text-dim); font-size: clamp(18px, 1.4vw, 20px); }
.collection-copy .lead { color: var(--bone); font: 500 clamp(22px, 1.9vw, 28px)/1.3 var(--text); letter-spacing: -0.01em; }
.collection .h2 { font-size: clamp(56px, 7vw, 112px); }

/* five sneak peeks, one size, no hero card */
.peeks {
  list-style: none; margin-block: clamp(48px, 6vw, 88px) 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px);
}
.peeks img {
  width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.85);
  transition: translate 0.5s var(--ease), border-color 0.3s;
}
.peeks li:hover img { translate: 0 -6px; border-color: var(--line-strong); }

/* why the order has no name */
.why {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 7vw, 120px);
  align-items: center; margin-top: clamp(72px, 8vw, 120px); padding-block: clamp(56px, 6vw, 96px);
}
.why__standard { display: grid; justify-items: center; gap: 20px; }
.why__standard img { height: clamp(220px, 26vw, 380px); width: auto; filter: drop-shadow(0 30px 60px rgb(0 0 0 / 0.6)); }
.why__standard figcaption { color: var(--ash); }
.why__title { font-size: clamp(48px, 5.4vw, 88px); margin-bottom: 28px; }
.why__copy { max-width: 640px; display: grid; gap: 16px; color: var(--text-dim); font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; }
.why__copy .eyebrow, .why__title { margin-bottom: 0; }
.why__copy .eyebrow { margin-bottom: 4px; }
.why__title { margin-bottom: 12px; color: var(--bone); }
.why__lead { color: var(--bone); font: 500 clamp(22px, 2vw, 30px)/1.3 var(--text); letter-spacing: -0.01em; }
.why__end { color: var(--bone); font-style: italic; }

/* ─────────── Artist: photo and story ─────────── */
.artist {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: 0 clamp(72px, 8vw, 128px);
}
.artist .about { padding-top: clamp(56px, 6vw, 96px); }
.collection-head > * { min-width: 0; }
.artist .eyebrow { margin-bottom: 16px; }
.artist .h2 { font-size: clamp(56px, 6vw, 96px); margin-bottom: 24px; }
.artist-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* photo and story, as on the portfolio's About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
/* the photo is trimmed at the top (branches above the head) so the screen fits in one view */
.portrait { margin: 0; max-width: 420px; aspect-ratio: 941 / 1360; overflow: hidden; background: var(--night); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.about-copy { padding-block: 8px; }
.about-text { margin: 0 0 40px; max-width: 30ch; font: 500 clamp(24px, 2.7vw, 42px)/1.18 var(--text); letter-spacing: -0.01em; color: var(--bone); }


.x-icon { width: 14px; height: 14px; fill: currentColor; flex: none; }

/* ─────────── Footer: the field of torn banners; lockup, links and copyright in the middle ─────────── */
.foot {
  position: relative; isolation: isolate; overflow: hidden; background: var(--void);
  aspect-ratio: 10 / 3; min-height: 320px; display: grid; place-items: center;
  padding: 48px 0 max(32px, env(safe-area-inset-bottom));
}
.foot-art, .foot-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot-art { z-index: -3; }
.foot-art img { object-fit: cover; object-position: 50% 45%; }
.foot-wear { z-index: -2; }
.foot-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--void) 0%, rgb(var(--bg) / 0.3) 25%, rgb(var(--bg) / 0.3) 70%, rgb(var(--bg) / 0.85) 100%),
    radial-gradient(45% 55% at 50% 50%, rgb(var(--bg) / 0.55) 0%, transparent 100%);
}
.foot-inner { display: grid; justify-items: center; text-align: center; gap: 28px; }
.foot-lockup { --h: clamp(64px, 6.6vw, 104px); filter: drop-shadow(0 10px 30px rgb(0 0 0 / 0.6)); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(24px, 3vw, 44px); }
.foot-links a {
  position: relative; padding-block: 6px;
  font-family: var(--ui); font-weight: 500; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone);
}
.foot-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  scale: 0 1; transform-origin: right; transition: scale 0.35s var(--ease);
}
.foot-links a:hover::after { scale: 1 1; transform-origin: left; }
.foot-copy { font-family: var(--ui); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 32px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ─────────── Tablet ─────────── */
@media (max-width: 960px) {
  .collection-head { grid-template-columns: 1fr; }
  .collection-copy { justify-self: start; }
  .why { grid-template-columns: 1fr; }
}

/* ─────────── Phone ─────────── */
@media (max-width: 760px) {
  .lockup { --h: 44px; }
  /* three-line burger that folds into a cross */
  .bar__toggle { display: block; position: relative; width: 44px; height: 44px; margin: -6px -10px -6px 0; z-index: 2; }
  .bar__toggle i { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--bone); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s; }
  .bar__toggle i:nth-child(1) { top: 14px; }
  .bar__toggle i:nth-child(2) { top: 21px; }
  .bar__toggle i:nth-child(3) { top: 28px; }
  .bar__toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bar__toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .bar__toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bar__nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: stretch; gap: 4px;
    padding: 80px var(--gutter) 40px; background: var(--void);
    opacity: 0; visibility: hidden; transition: opacity 0.25s steps(4), visibility 0s 0.25s;
  }
  .bar.is-open .bar__nav { opacity: 1; visibility: visible; transition: opacity 0.25s steps(4); }
  .bar__nav a {
    display: flex; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line);
    font: 900 clamp(44px, 14vw, 72px)/1 var(--head); font-stretch: 62%; letter-spacing: -0.01em;
  }
  .bar__nav a::after { display: none; }
  .bar__nav a:not(.bar__apply) { padding-block: 6px; }
  .bar__nav .bar__apply { margin-top: 16px; padding: 12px 14px 10px; border-bottom: 0; }
  .bar.is-open { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .h2 { font-size: clamp(56px, 17vw, 88px); }
  .h1 { font-size: clamp(64px, 19vw, 104px); }
  .eyebrow { margin-bottom: 18px; }
  .eyebrow::after { width: 24px; }

  .collection { padding-block: 56px 16px; }
  .collection .h2 { white-space: normal; font-size: clamp(48px, 14vw, 72px); }
  .collection-head { gap: 24px; }
  .collection-copy .lead { font-size: 22px; }
  .peeks {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62vw;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-inline: var(--gutter); margin-inline: 0; scroll-padding-inline: var(--gutter);
  }
  .peeks::-webkit-scrollbar { display: none; }
  .peeks li { scroll-snap-align: start; }
  .why { grid-template-columns: 1fr; margin-top: 72px; }
  .why__standard img { height: 220px; }

  .artist { padding-block: 0 72px; }
  .artist .about { padding-top: 48px; }
  .about { grid-template-columns: 1fr; }
  .portrait { width: min(78%, 320px); }
  .artist .h2 { font-size: 64px; margin-bottom: 16px; }
  .about-text { font-size: 24px; margin-bottom: 28px; }
  .artist-actions .pill { flex: 1; padding-inline: 16px; }


  .foot { aspect-ratio: 4 / 5; min-height: 0; }
  .foot-art img { object-position: 50% 50%; }
  .foot-inner { gap: 22px; }
  .foot-lockup { --h: 64px; }
  .foot-links { gap: 10px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .hero-poster img { animation: none; }
}
