/* ===========================================================================
   theFourteen. — COLOUR LAYER
   Loaded after app.css. app.css keeps colour for interaction only; this layer
   lifts that rule and lets colour live in the page at rest.

   Remove the <link> to this file and the site returns to full monochrome —
   nothing here is depended on by the markup or the JS.
   =========================================================================== */

:root {
  /* The rotation every component draws from, in order. */
  --c1: var(--acid);   /* #00ff87 */
  --c2: var(--volt);   /* #3b6bff */
  --c3: var(--hot);    /* #ff2d6f */
  --c4: var(--sun);    /* #ffe500 */

  --sweep: linear-gradient(100deg,
    var(--c1) 0%, var(--c2) 34%, var(--c3) 68%, var(--c4) 100%);
}

body {
  background:
    radial-gradient(1100px 700px at 12% -8%,  rgba(0,255,135,0.10), transparent 60%),
    radial-gradient(900px 640px at 88% 8%,    rgba(59,107,255,0.12), transparent 62%),
    radial-gradient(900px 700px at 50% 108%,  rgba(255,45,111,0.10), transparent 60%),
    #000000;
  background-attachment: fixed;
}

/* --- the wordmark carries the full sweep ---------------------------------
   NOT .hero__mark: app.js splits it into per-character spans, and
   background-clip:text paints on the h1 while each .char paints its own glyph
   with a transparent fill — the word disappears. Split headings get the ramp
   below instead; only unsplit ones can take a real gradient. */
.slate__title,
.footer__giant {
  background: var(--sweep);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* The giant footer mark was an outline; a gradient needs a fill to show. */
.footer__giant { -webkit-text-stroke: 0; opacity: 0.9; }
.footer__giant:hover { opacity: 1; }

/* The nav mark keeps its dot, but picks up the first accent. */
.mark i { color: var(--c1); }

/* The hero wordmark: the same sweep, stepped across its twelve characters so
   it survives the character split. Reads as a gradient at a glance. */
.hero__mark { color: var(--white); }
.hero__mark .char:nth-child(1)  { color: #00ff87; }
.hero__mark .char:nth-child(2)  { color: #10d7a7; }
.hero__mark .char:nth-child(3)  { color: #20b0c7; }
.hero__mark .char:nth-child(4)  { color: #2f88e7; }
.hero__mark .char:nth-child(5)  { color: #4967f5; }
.hero__mark .char:nth-child(6)  { color: #7d56cf; }
.hero__mark .char:nth-child(7)  { color: #b146a8; }
.hero__mark .char:nth-child(8)  { color: #e6357e; }
.hero__mark .char:nth-child(9)  { color: #ff485f; }
.hero__mark .char:nth-child(10) { color: #ff7c3f; }
.hero__mark .char:nth-child(11) { color: #ffb120; }
.hero__mark .char:nth-child(12) { color: #ffe500; }

/* --- labels stop being grey ---------------------------------------------- */
.mono { color: var(--c1); opacity: 0.85; }
.row__no, .tilt__no, .frame__id { color: var(--c2); }
.ticks li span:first-child { color: var(--c3); }
.card__tag { background: var(--c1); color: #000; }

/* --- the corridor is lit ------------------------------------------------- */
.frame { border-color: rgba(0,255,135,0.30); }
.frame::before, .frame::after {
  background-image: linear-gradient(rgba(0,255,135,0.35) 55%, transparent 0);
}
.frame:nth-child(4n+2) { border-color: rgba(59,107,255,0.32); }
.frame:nth-child(4n+2)::before, .frame:nth-child(4n+2)::after {
  background-image: linear-gradient(rgba(59,107,255,0.38) 55%, transparent 0);
}
.frame:nth-child(4n+3) { border-color: rgba(255,45,111,0.30); }
.frame:nth-child(4n+3)::before, .frame:nth-child(4n+3)::after {
  background-image: linear-gradient(rgba(255,45,111,0.36) 55%, transparent 0);
}
.frame:nth-child(4n+4) { border-color: rgba(255,229,0,0.28); }
.frame:nth-child(4n+4)::before, .frame:nth-child(4n+4)::after {
  background-image: linear-gradient(rgba(255,229,0,0.34) 55%, transparent 0);
}

/* --- marquee: every other word takes the next colour --------------------- */
.marquee { border-color: rgba(255,255,255,0.18); }
.marquee__track span:nth-child(8n+1) { color: var(--c1); -webkit-text-stroke: 0; }
.marquee__track span:nth-child(8n+3) { color: var(--c2); -webkit-text-stroke: 0; }
.marquee__track span:nth-child(8n+5) { color: var(--c3); -webkit-text-stroke: 0; }
.marquee__track span:nth-child(8n+7) { color: var(--c4); -webkit-text-stroke: 0; }
.marquee__track span:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.5);
}

/* --- discipline cards wear their colour at rest -------------------------- */
.deck { background: rgba(255,255,255,0.10); }
.tilt {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 60%), #05050a;
  border-top: 2px solid var(--accent);
}
.tilt__title { color: var(--white); }
.tilt__no { color: var(--accent); opacity: 1; }
/* A permanent, quiet wash — the pointer still brightens it. */
.tilt__glow { opacity: 0.13; left: 50%; top: 22%; }
.tilt:hover .tilt__glow { opacity: 0.4; }

/* --- rows ---------------------------------------------------------------- */
.row__no { color: var(--accent); }
.rows .row:nth-child(4n+1) { --accent: var(--c1); }
.rows .row:nth-child(4n+2) { --accent: var(--c2); }
.rows .row:nth-child(4n+3) { --accent: var(--c3); }
.rows .row:nth-child(4n+4) { --accent: var(--c4); }
.row { border-bottom-color: rgba(255,255,255,0.16); }

/* --- buttons ------------------------------------------------------------- */
.btn { border-color: var(--accent); color: var(--white); }
.btn--solid {
  background: var(--sweep);
  color: #000;
  border-color: transparent;
  font-weight: 500;
}
.btn--solid:hover { color: #000; filter: brightness(1.12); }

/* --- work cards ---------------------------------------------------------- */
.card__media { border-color: rgba(255,255,255,0.16); }
.card__media > .art { filter: none; }
.card:hover .card__title { color: var(--c1); }

/* --- the slate ----------------------------------------------------------- */
.slate { border-color: rgba(255,255,255,0.18); }
.slate::before {
  background: repeating-linear-gradient(115deg,
    var(--c1) 0 34px, #000 34px 68px);
}
.slate::after {
  background: repeating-linear-gradient(115deg,
    var(--c3) 0 34px, #000 34px 68px);
}

/* --- studio ------------------------------------------------------------- */
/* The portrait is the one real photograph on the site — let it be in colour. */
.portrait img { filter: saturate(1.05) contrast(1.02); }
.portrait:hover img { filter: saturate(1.15) contrast(1.04); }
.portrait { border-color: rgba(255,255,255,0.18); }
.portrait__tag { background: var(--sweep); color: #000; }
.team-card__role { color: var(--c1); }

/* --- form ---------------------------------------------------------------- */
.field label { color: var(--c2); }
.field:focus-within label { color: var(--c1); }
.field input, .field textarea, .field select { border-bottom-color: rgba(255,255,255,0.22); }

/* --- footer -------------------------------------------------------------- */
.footer { border-top-color: rgba(255,255,255,0.16); }
.footer h4 { color: var(--c4); }
.footer li a:hover { color: var(--c1); }
.footer__base { border-top-color: rgba(255,255,255,0.14); }

/* --- chrome -------------------------------------------------------------- */
.progress { background: var(--sweep); }
.rule { background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4)); opacity: 0.5; }
::selection { background: var(--c2); color: #fff; }

/* The nav inverts oddly against a coloured page, so drop the blend. */
.nav { mix-blend-mode: normal; }
.nav__links a { color: rgba(255,255,255,0.72); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after { background: var(--c1); }

@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}
