/* Base — reset, type, layout primitives, global components. BRIEF.md §4, §6.
   Rules: no rounded corners, no shadows, no blurs. Coral is for actions only. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- type ---------- */
/* Display face is the voice (headings, UI, meta); body face is for reading text only. */
.display, h1, h2, h3, .ui, .meta, nav, button, label, .btn { font-family: var(--font-display); }

.display { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.015em; font-weight: 700; }
h1, .h1  { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.01em; font-weight: 700; }
h2, .h2  { font-size: var(--fs-h2); line-height: 1.25; font-weight: 700; }
h3, .h3  { font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; }
p, .body { font-family: var(--font-body); max-width: var(--measure); }
.quote   { font-family: var(--font-body); font-style: italic; font-size: var(--fs-quote); line-height: 1.5; }
.ui      { font-size: var(--fs-ui); letter-spacing: 0.02em; font-weight: 400; }
.meta    { font-family: var(--font-display); font-size: var(--fs-meta); letter-spacing: 0.04em; font-weight: 400; color: var(--concrete-700); }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--ink-900); color: var(--void); padding: var(--s-1) var(--s-2);
  font-family: var(--font-display); font-size: var(--fs-ui);
}
.skip-link:focus { top: var(--s-1); }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { .wrap { padding-inline: var(--s-4); } }

.stack > * + * { margin-top: var(--s-3); }
.stack--lg > * + * { margin-top: var(--s-4); }

main { padding-top: var(--nav-h); }

/* ---------- band: the core layout primitive ---------- */
.band { position: relative; width: 100%; padding-block: var(--band-pad); }
.band--paper    { background: var(--paper); color: var(--ink-900); }
.band--void     { background: var(--void); color: var(--ink-900); }
.band--void .meta { color: var(--concrete-500); }
.band--concrete { background-color: var(--void); color: var(--ink-900); }
/* The concrete photo texture has one home: the landing page studios teaser. */
.band--texture {
  /* concrete-texture: the banner's two tag-free sides, joined (tools: see the crop in assets/photo). */
  /* Darkened to sit in the black theme; the texture still shows through. */
  background-image: linear-gradient(rgb(10 10 10 / 0.8), rgb(10 10 10 / 0.8)), url("../assets/photo/concrete-texture.jpg");
  background-image: linear-gradient(rgb(10 10 10 / 0.8), rgb(10 10 10 / 0.8)), image-set(url("../assets/photo/concrete-texture.webp") type("image/webp"), url("../assets/photo/concrete-texture.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
.band--bleed { padding-block: 0; }                         /* full-bleed photo/video */
.band--full  { min-height: 100svh; }
.band--tall  { min-height: 70svh; }

/* Pending media (video / audio not uploaded yet). BRIEF.md §3. */
.band--pending { display: grid; place-items: center; }

/* ---------- pixel motif 1: section divider ---------- */
/* Stepped strip, hard stops, peach at 40%. Two offset rows make the steps. */
.divider-px {
  height: 16px;
  opacity: 0.4;
  background-image:
    repeating-linear-gradient(90deg, var(--peach) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, transparent 0 8px, var(--peach) 8px 16px);
  background-size: 100% 8px, 100% 8px;
  background-position: 0 0, 0 8px;
  background-repeat: no-repeat;
}

/* ---------- pixel motif 2: image reveal ---------- */
/* Stepped clip-path wipe on scroll into view, 400ms, no fade. Only armed when
   JS is running, so images are never hidden without it. */
.js .reveal { clip-path: inset(0 100% 0 0); transition: clip-path 400ms steps(8, end); }
.js .reveal.is-in { clip-path: inset(0 0 0 0); }

/* ---------- pixel motif 3: hover on cover tiles and photo cards ---------- */
.px-hover { position: relative; overflow: hidden; }
.px-hover::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(90deg, var(--ink-900) 50%, transparent 50%),
    linear-gradient(0deg,  var(--ink-900) 50%, transparent 50%);
  background-size: 16px 16px;
  mix-blend-mode: difference;
}
.px-hover:hover::after,
.px-hover:focus-visible::after { animation: px-step 240ms steps(3, end) 1; }
@keyframes px-step {
  0%   { opacity: 0.35; background-size: 32px 32px; }
  50%  { opacity: 0.2;  background-size: 16px 16px; }
  100% { opacity: 0;    background-size: 8px 8px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 48px; padding: 0 var(--s-3);
  font-size: var(--fs-ui); letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid var(--ink-900);
  background: transparent; color: var(--ink-900);
}
.btn:hover { color: var(--ink-900); background: var(--concrete-300); }
/* Primary CTA — one of the few coral uses. */
.btn--primary { background: var(--coral); border-color: var(--coral); color: var(--void); }
.btn--primary:hover { background: var(--coral-press); border-color: var(--coral-press); color: var(--void); }
.btn[disabled] { cursor: not-allowed; background: transparent; border-color: var(--concrete-300); color: var(--concrete-500); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--concrete-300);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__mark { display: block; }
.nav__mark img { height: 40px; width: auto; }
.nav__links { display: flex; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: var(--fs-ui); letter-spacing: 0.02em; text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--coral); }
.nav__toggle { display: none; font-size: var(--fs-ui); letter-spacing: 0.02em; min-height: 44px; }

@media (max-width: 767px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; justify-content: center; gap: var(--s-4);
    padding: var(--gutter);
    background: var(--paper);
    visibility: hidden;
  }
  .nav__links a { font-size: var(--fs-h1); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
  .nav.is-open .nav__links { visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- marquee ---------- */
/* Duplicated track, pure CSS, pauses on hover, off under reduced motion. */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- footer ---------- */
.footer { background: var(--paper); border-top: 1px solid var(--concrete-300); padding-block: var(--s-5); }
.footer__inner { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 768px) { .footer__inner { grid-template-columns: auto 1fr auto; } }
.footer__mark { width: 96px; height: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.footer__links a { font-family: var(--font-display); font-size: var(--fs-ui); letter-spacing: 0.02em; text-decoration: none; }

/* ---------- pixel mark: the main logo ---------- */
/* Always pixelated when scaled, never vectorised (§3). */
.mark-pixel { image-rendering: pixelated; }
.hero-mark { margin: 0; line-height: 0; }
.hero-mark img { width: min(100%, 880px); height: auto; }

/* ---------- placeholder slot (scaffold only — replaced as each page is built) ---------- */
.slot {
  display: grid; place-items: center;
  width: 100%;
  background: var(--concrete-300);
  color: var(--concrete-700);
}
.scaffold-grid {
  display: grid; gap: var(--s-4); list-style: none; padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
.scaffold-list { display: grid; gap: var(--s-5); list-style: none; padding: 0; }
.scaffold-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* Hero scroll cue */
.band--full { display: flex; flex-direction: column; justify-content: center; }
.scroll-cue { position: absolute; left: 0; right: 0; bottom: var(--s-3); text-align: center; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { clip-path: none; }
  .marquee__track { transform: none; }
}

/* ---------- brand name ---------- */
/* Every typed "LUCOSIS" takes the logo's orange (user decision, 2026-09-25).
   On a coral button it would vanish, so there it follows the button text. */
.brand { color: var(--coral); }
.btn--primary .brand { color: inherit; }
