/* =========================================================
   Prime Knitwear — stylesheet
   Design system: raw-fabric neutrals + heritage indigo + thread rust,
   a technical grotesk paired with a garment-label mono for spec tags.
   ========================================================= */

:root {
  /* ---- color: named for what they mean in the trade ---- */
  --ink:        #15130f;   /* loom black — dark surfaces, primary text */
  --ink-soft:   #221f1a;   /* raised dark surface */
  --greige:     #e6dfd0;   /* raw/undyed fabric — page background */
  --bone:       #f7f3ea;   /* bleached-paper — card surfaces */
  --charcoal:   #4c473c;   /* secondary text on light */
  --parchment:  #cfc6b0;   /* muted text on dark */
  --indigo:     #223a5e;   /* heritage dye — primary accent, links, CTA */
  --indigo-deep:#182a45;   /* indigo hover/active */
  --rust:       #b1472c;   /* thread rust — sparing highlight */
  --line-dark:  rgba(21, 19, 15, 0.14);
  --line-light: rgba(247, 243, 234, 0.16);
  --loader-bg:  #ece9e1;   /* mid-tone of the loader footage — see .loader */

  /* ---- type ---- */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --fs-hero: clamp(2.6rem, 3.4vw + 1.6rem, 5.6rem);
  --fs-h2:   clamp(2rem, 1.6vw + 1.4rem, 3.1rem);
  --fs-h3:   clamp(1.2rem, 0.5vw + 1rem, 1.5rem);
  --fs-body: clamp(1rem, 0.2vw + 0.94rem, 1.125rem);
  --fs-small:0.85rem;
  --fs-mono: 0.78rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 9rem;

  --container: 1240px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--greige);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-4); }
}

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--bone);
  color: var(--ink);
  padding: var(--space-2) var(--space-3);
  z-index: 1000;
  border-radius: var(--radius);
}
.skip-link:focus {
  left: var(--space-3);
  top: var(--space-3);
}

/* ---- focus ring ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

/* ---- eyebrow / mono labels (the "woven care-label" motif) ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: currentColor;
}
[data-surface="dark"] .eyebrow { color: var(--rust); }

/* ---- spec tags (mimic a sewn-in composition label) ---- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.tag {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 0.55em 0.85em;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  display: inline-flex;
  flex-direction: column;
  gap: 0.15em;
  background: var(--bone);
}
.tag strong {
  font-size: 0.95em;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.tag span {
  color: var(--charcoal);
  text-transform: uppercase;
  font-size: 0.78em;
  letter-spacing: 0.1em;
}
[data-surface="dark"] .tag {
  background: transparent;
  border-color: var(--line-light);
}
[data-surface="dark"] .tag strong { color: var(--bone); }
[data-surface="dark"] .tag span { color: var(--parchment); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.5em;
  background: var(--indigo);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--indigo);
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-light);
}
.btn--ghost:hover { background: rgba(247,243,234,0.08); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(230, 223, 208, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 0 0 rgba(21, 19, 15, 0);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
@media (min-width: 640px) { .site-header { padding: var(--space-2) var(--space-4); } }
/* padding-block change is a one-time snap, not transitioned: animating padding
   would force layout on every frame (transform/opacity only for animated props). */
.site-header.is-compact {
  padding-block: 0.6rem;
  box-shadow: 0 6px 24px rgba(21, 19, 15, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { height: 28px; width: auto; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-4);
}
.nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--rust);
  transition: right 0.25s var(--ease);
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

@media (min-width: 900px) {
  .nav { display: flex; }
}

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-actions .btn { padding: 0.7em 1.2em; }

.nav-toggle {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  background: transparent;
  border-radius: var(--radius);
  padding: 0.5em 0.7em;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--bone);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--line-light);
  color: var(--bone);
  border-radius: var(--radius);
  padding: 0.5em 0.9em;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.mobile-nav__links a {
  text-decoration: none;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* =========================================================
   Hero — scroll-scrubbed thread-to-shirt sequence
   ========================================================= */
.hero {
  position: relative;
  height: 340vh; /* scroll runway that drives the video + headline phases */
  background: var(--ink);
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  background: url("../assets/hero-poster.jpg") center / cover no-repeat;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21,19,15,0.55) 0%, rgba(21,19,15,0.35) 40%, rgba(21,19,15,0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
  color: var(--bone);
  text-align: center;
}
@media (min-width: 640px) { .hero__content { padding-inline: var(--space-4); text-align: left; } }

.hero__eyebrow {
  margin-bottom: var(--space-3);
  justify-content: center;
  color: var(--rust);
  text-shadow: 0 2px 16px rgba(21, 19, 15, 0.65);
}
@media (min-width: 640px) { .hero__eyebrow { justify-content: flex-start; } }

.hero__phase {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-hero);
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  position: absolute;
  left: 0; right: 0;
  padding-inline: inherit;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.hero__phase.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero__final {
  display: grid;
  gap: var(--space-3);
  max-width: 46rem;
}
.hero__final h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-hero);
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.hero__final p {
  font-size: 1.1rem;
  color: var(--parchment);
  max-width: 34rem;
}
.hero__final .tag-row { justify-content: center; }
@media (min-width: 640px) { .hero__final .tag-row { justify-content: flex-start; } }
.hero__final .btn { justify-self: center; }
@media (min-width: 640px) { .hero__final .btn { justify-self: start; } }

.hero__scrollcue {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  opacity: 0.8;
  transition: opacity 0.4s var(--ease);
}
.hero__scrollcue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--rust), transparent);
  animation: threadfall 1.8s ease-in-out infinite;
}
.hero.is-scrubbed .hero__scrollcue { opacity: 0; }
@keyframes threadfall {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.4; }
}

/* =========================================================
   Sections — shared rhythm
   ========================================================= */
.section {
  padding-block: var(--space-6);
}
.section[data-surface="dark"] {
  background: var(--ink);
  color: var(--bone);
}
.section-head {
  display: grid;
  gap: var(--space-2);
  max-width: 42rem;
  margin-bottom: var(--space-5);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  letter-spacing: 0.01em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- overview / positioning ---- */
.overview {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .overview { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.overview p {
  font-size: 1.15rem;
  color: var(--charcoal);
  max-width: 34rem;
}
.overview .tag-row { flex-direction: column; }
@media (min-width: 560px) { .overview .tag-row { flex-direction: row; flex-wrap: wrap; } }
.overview .tag { flex: 1 1 220px; }

/* ---- capabilities grid ---- */
.capabilities-grid {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (min-width: 720px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}
.capability-card {
  background: var(--bone);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.capability-card .index {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--rust);
  letter-spacing: 0.1em;
}
.capability-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.capability-card p { color: var(--charcoal); }

/* ---- process timeline ---- */
.process-list {
  position: relative;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.process-list::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 1px;
  background-image: linear-gradient(var(--line-dark) 60%, transparent 0%);
  background-size: 1px 10px;
  background-repeat: repeat-y;
}
@media (min-width: 720px) { .process-list::before { left: 2.1rem; } }

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 720px) { .process-step { grid-template-columns: 4.2rem 1fr; } }
.process-step:last-child { border-bottom: none; }
.process-step .num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--indigo);
  z-index: 1;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.35em;
}
.process-step p { color: var(--charcoal); max-width: 40rem; }

/* ---- clients ---- */
.client-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
@media (min-width: 640px) { .client-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .client-logos { grid-template-columns: repeat(5, 1fr); } }

.client-logo {
  background: var(--bone);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  position: relative;
}
.client-logo::before {
  content: attr(data-label);
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.55;
}
.client-logo img {
  max-height: 52px;
  width: auto;
  max-width: 88%;
  object-fit: contain;
}
.clients-note {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  color: var(--parchment);
}

/* ---- contact / location ---- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-details {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
}
.contact-details dd {
  margin: 0.3em 0 0;
  font-size: 1.1rem;
}
.contact-details a { text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 3px; }
/* <address> is the right element for the company's own postal details,
   but browsers default it to italic — reset to the body face. */
.contact-address {
  font-style: normal;
  line-height: 1.45;
  margin-bottom: 0.5em;
}
.contact-address strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.15em;
}

.map-frame {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bone);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
  display: grid;
  gap: var(--space-2);
}
.field {
  display: grid;
  gap: 0.4em;
}
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.field input,
.field textarea {
  font: inherit;
  padding: 0.8em 0.9em;
  border: 1px solid var(--line-dark);
  background: var(--bone);
  border-radius: var(--radius);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:disabled,
.field textarea:disabled { opacity: 0.6; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
/* Honeypot — off-screen rather than display:none, since some bots skip
   fields they can tell are hidden. Never reached by keyboard or reader. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  font-size: var(--fs-small);
  color: var(--charcoal);
}
.form-status {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.5;
  min-height: 1.2em;
  color: var(--charcoal);
}
.form-status.is-success { color: var(--indigo); }
.form-status.is-error { color: var(--rust); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding-block: var(--space-5) var(--space-4);
}
.footer-top {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-light);
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand { display: grid; gap: var(--space-2); max-width: 24rem; }
.footer-brand .brand { color: var(--bone); }
.footer-brand p { color: var(--parchment); font-size: var(--fs-small); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6em; }
.footer-col a { text-decoration: none; color: var(--parchment); }
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--parchment);
}

/* =========================================================
   Intro loader
   The footage is real paper under real light, so it carries its own
   top-to-bottom falloff (~#f1ede5 down to ~#dfdcd4) — no flat colour
   can sit behind it without showing a seam. So the overlay is painted
   with that same falloff, and the video's own edges are feathered
   into it (see .loader__video), which leaves the mark drawing itself
   onto an unbroken sheet rather than onto a visible video plate.
   The sequence is centred with left/top + translate rather than
   flex/grid so it stays optically centred even when it's scaled
   wider than a narrow viewport and has to bleed off both sides.
   ========================================================= */
html.is-loading,
html.is-loading body { overflow: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: linear-gradient(
    180deg,
    #f4f0e8 0%,
    #f0ece4 26%,
    #e6e3db 68%,
    #dcd9d1 100%
  );
  overflow: hidden;
  /* Failsafe: if the script never runs, the overlay still clears
     itself rather than sealing the site behind an opaque plate.
     With JS working the node is removed long before this fires. */
  animation: loader-failsafe 0.6s var(--ease) 9s forwards;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes loader-failsafe {
  to { opacity: 0; visibility: hidden; }
}

.loader__video {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  /* vmin-based so the mark keeps its presence in portrait, where a
     %-of-width sequence would shrink to a smudge. */
  width: min(118vmin, 880px);
  height: auto;
  display: block;
  /* Some browsers paint an empty <video> black before the first
     frame decodes — on a cream plate that reads as a flash. */
  background: var(--loader-bg);
  /* Feather the plate into the overlay so there's no rectangle. The
     horizontal fade is generous (the mark only occupies the middle
     ~40%); the vertical one is tight, because the mark runs to 12%
     and 88% of the frame height and must not be caught by it. */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%,  #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right,  transparent 0%, #000 20%, #000 80%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%,  #000 92%, transparent 100%);
  mask-composite: intersect;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.loader.is-done .loader__video {
  transform: translate(-50%, -50%) scale(1.03);
  opacity: 0;
}

.loader__caption {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 9vh, 5rem);
  transform: translateX(-50%) translateY(0.5rem);
  display: grid;
  justify-items: center;
  gap: 1em;
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.loader__caption.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.loader__word {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.36em;
  text-indent: 0.36em;   /* offsets the trailing letter-space so it centres true */
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
}
.loader__rule {
  display: block;
  width: clamp(6rem, 20vw, 10rem);
  height: 1px;
  background: var(--line-dark);
  overflow: hidden;
}
.loader__rule-fill {
  display: block;
  height: 100%;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left center;
}

/* No title card for visitors who've asked for less motion — the
   script drops the node outright, this is the belt-and-braces. */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}
