/* ENDÛRE: critical CSS (first paint). Tokens, base, scene, header, hero, intro.
   Everything below the fold lives in theme.css. */
:root {
  --ink: var(--color-night, #05070d);
  --paper: #f3f1ec;
  --paper-90: rgb(243 241 236 / .9);
  --paper-80: rgb(243 241 236 / .8);
  --paper-70: rgb(243 241 236 / .72);
  --red: var(--color-red, #e01e28);
  --violet: var(--color-violet, #8a2be2);
  --accent: var(--red);
  /* Frosted glass: low tint + heavy blur so the scene glows through, with a
     dark floor under the text so contrast holds at noon as well as midnight. */
  --glass: linear-gradient(155deg, rgb(255 255 255 / .10), rgb(255 255 255 / .03) 45%, rgb(10 12 20 / .10));
  --glass-tint: rgb(10 12 20 / .34);
  --glass-blur: blur(22px) saturate(1.5) brightness(.8);
  --glass-edge: rgb(255 255 255 / .16);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 24px 60px rgb(0 0 0 / .28);
  --line: rgb(255 255 255 / .09);
  --gutter: clamp(18px, 5vw, 64px);
  --header-h: 68px;
  --radius: 6px;
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-brand: 'Michroma', 'Eurostile', sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth in-page jumps (e.g. "What we make" on the homepage), only once the
   visitor has clicked or pressed a key (theme.js adds .smooth-scroll) and
   only if they allow motion. Arriving from another page at a #link jumps
   straight there instead of gliding across the whole page. */
@media (prefers-reduced-motion: no-preference) { html.smooth-scroll { scroll-behavior: smooth; } }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--paper); -webkit-font-smoothing: antialiased; }
body { font-family: var(--f-body); font-size: 16px; line-height: 1.5; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); translate: 0 -200%; }
.skip-link:focus { translate: none; }
main { position: relative; z-index: 1; }
main:focus { outline: none; }

/* ---------- living background ---------- */
/* Pinned wrapper: the scene element positions itself absolutely, so this fixed
   layer is what locks it to the viewport while content scrolls over it. */
.scene-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--ink); }
.scene-clock {
  position: fixed; left: clamp(18px, 4vw, 48px); bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-brand); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgb(255 255 255 / .88); text-shadow: 0 1px 10px rgb(0 0 0 / .7);
  pointer-events: none; transition: opacity 300ms ease;
}
.scene-clock.is-hidden { opacity: 0; }
.scene-clock__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.scene-clock__coords { opacity: .7; }
@media (max-width: 640px) { .scene-clock { bottom: 14px; white-space: nowrap; } .scene-clock__coords { display: none; } }
.scene-toggle {
  position: fixed; right: clamp(14px, 3vw, 40px); bottom: 12px; z-index: 30;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgb(255 255 255 / .28); background: rgb(5 7 13 / .35); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.scene-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.scene-toggle__play, .scene-toggle[aria-pressed="true"] .scene-toggle__pause { display: none; }
.scene-toggle[aria-pressed="true"] .scene-toggle__play { display: block; }

/* ---------- header ---------- */
.section-header { position: fixed; inset: 0 0 auto; z-index: 40; }
.site-header {
  position: relative; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 0 clamp(14px, 4vw, 48px);
  background: linear-gradient(180deg, rgb(5 7 13 / .72), rgb(5 7 13 / 0));
}
.site-header__logo { display: flex; align-items: center; color: #fff; --logo-accent: var(--red); }
.site-header__logo svg { height: 38px; width: auto; filter: drop-shadow(0 1px 8px rgb(0 0 0 / .45)); }
.site-header__nav { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.site-header__link {
  padding: 12px 10px; font-family: var(--f-brand); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / .6);
}
.site-header__link:hover { text-decoration: underline; text-underline-offset: 5px; }
/* Phones: no room beside the icons, so the link sits in the empty left cell (sections/header renders both). */
.site-header__start { display: flex; align-items: center; min-width: 0; }
.site-header__link--start { display: none; }
@media (max-width: 600px) {
  .site-header__link--nav { display: none; }
  .site-header__link--start { display: block; padding: 8px 6px 8px 0; font-size: 9px; line-height: 1.45; letter-spacing: .14em; white-space: normal; }
}
[id="what-we-make"] { scroll-margin-top: var(--header-h); }
.icon-link, .icon-button {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; cursor: pointer; color: inherit;
}
.icon-link svg, .icon-button svg { width: 21px; height: 21px; }
.cart-link__count {
  position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: grid; place-items: center; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
}

/* ---------- display type ---------- */
.h2 { margin: 0; font-family: var(--f-brand); font-weight: 400; font-size: clamp(22px, 2.9vw, 36px); line-height: 1.3; text-wrap: balance; }
/* Phones: balancing would rather split "26-02" at its hyphen than leave a short last line; pretty keeps codes whole. */
@media (max-width: 520px) { .h2 { text-wrap: pretty; } }
.display-quote { margin: 0; font-family: var(--f-display); font-weight: 600; text-transform: uppercase; line-height: 1.02; letter-spacing: .005em; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px rgb(0 0 0 / .5); }
.display-quote p { margin: 0; }
.attribution { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; text-shadow: 0 1px 14px rgb(0 0 0 / .6); }
.attribution__rule { width: 28px; height: 1px; background: rgb(255 255 255 / .75); }
.attribution__who { font-family: var(--f-brand); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.attribution__what { font-size: 15px; color: rgb(255 255 255 / .86); }

/* ---------- hero ---------- */
.section--hero { position: relative; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 120px clamp(20px, 5vw, 64px); }
.hero__shade { position: absolute; inset: 8% 0; background: radial-gradient(ellipse 58% 52% at 50% 50%, rgb(4 6 12 / .6), rgb(4 6 12 / 0) 72%); pointer-events: none; }
.hero__inner { position: relative; max-width: 1040px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.hero__quotes { display: grid; width: 100%; justify-items: center; }
.hero-quote { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero .display-quote { font-size: clamp(32px, 4.6vw, 68px); }
/* Until <fog-reveal> takes over (it sets data-state), keep the quote out of
   sight; if the module never runs, it fades in on its own at the reveal time. */
html.js fog-reveal:not([data-state]) > * { opacity: 0; animation: fog-fallback 1.2s ease-out var(--quote-reveal, 3s) forwards; }
@keyframes fog-fallback { to { opacity: 1; } }
.quote-nav { display: flex; align-items: center; gap: 14px; }
.quote-nav__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgb(255 255 255 / .35); background: rgb(5 7 13 / .35); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.quote-nav__btn:hover { background: rgb(5 7 13 / .55); }
.quote-nav__btn svg { width: 18px; height: 18px; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-brand); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: rgb(255 255 255 / .85); }
.scroll-cue::after { content: ''; width: 1px; height: 36px; background: linear-gradient(rgb(255 255 255 / .8), rgb(255 255 255 / 0)); }
.hero__end { display: block; height: 0; }

/* ---------- intro: the scene plays first ---------- */
/* <body class="is-intro"> (homepage only, never in the theme editor) holds back
   the header and everything but the hero quote; snippets/intro-gate removes
   the class after the configured delay or on the first interaction. Gated on
   html.js so a visitor without JavaScript always sees everything. */
.intro-hold, .shopify-section { transition: opacity 900ms ease, translate 900ms ease; }
html.js .is-intro .intro-hold,
html.js .is-intro .shopify-section:not(.section--hero) { opacity: 0; translate: 0 12px; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .intro-hold, .shopify-section { transition: none; }
  html.js fog-reveal:not([data-state]) > * { opacity: 1; animation: none; }
}
