/* ==========================================================================
   TRIPCON MANUFACTURING — DESIGN SYSTEM
   Tokens, base, primitives, components, motion.

   Principle: precision, not rigidity. The old system equated "industrial"
   with "square" and hard-coded a 2px radius everywhere — which read as a
   dated UI control rather than an engineered object. Geometry here is
   softly resolved: radii are small but real, borders are used sparingly,
   depth comes from tonal surfaces rather than boxes, and one accent
   carries all attention.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* --- Ground: graphite through to mill paper -------------------------- */
  --c-void:        #060709;
  --c-graphite-900:#0C0F12;
  --c-graphite-850:#11151A;
  --c-graphite-800:#161B21;
  --c-graphite-750:#1B2128;
  --c-graphite-700:#222932;
  --c-graphite-600:#2C343E;

  /* --- Steel: the neutral working range -------------------------------- */
  --c-steel-600:   #39434D;
  --c-steel-500:   #515C67;
  --c-steel-400:   #77828D;
  --c-steel-300:   #9AA4AD;
  --c-steel-200:   #C4CBD1;
  --c-steel-100:   #DFE3E5;

  /* --- Paper: off-white, warm-neutral, never pure ---------------------- */
  --c-paper:       #F4F5F3;
  --c-paper-2:     #EAECE8;
  --c-paper-3:     #DDE0DB;
  --c-white:       #FFFFFF;

  /* --- Accent: one colour, taken from the Tripcon mark ------------------ */
  --c-amber:       #F5B62A;
  --c-amber-lift:  #FFC64A;
  --c-amber-deep:  #7E5405;   /* bronze: ≥4.5:1 on every paper token */
  --c-amber-dim:   rgba(245, 182, 42, 0.14);
  --c-amber-glow:  rgba(245, 182, 42, 0.28);

  /* --- Semantic surfaces ----------------------------------------------- */
  --s-dark:        var(--c-graphite-900);
  --s-dark-raised: var(--c-graphite-800);
  --s-dark-sunk:   var(--c-void);
  --s-light:       var(--c-paper);
  --s-light-raised:var(--c-white);

  /* The two "soft" tones carry real content — eyebrows, stat captions, spec
     lists — so they are set to clear 4.5:1 against the *darkest* paper and the
     lightest graphite respectively, not just against the primary surface. */
  --t-on-dark:      #EDF0F1;
  --t-on-dark-mute: rgba(237, 240, 241, 0.66);
  --t-on-dark-soft: rgba(237, 240, 241, 0.56);
  --t-on-light:     var(--c-graphite-900);
  --t-on-light-mute:#4A555F;
  --t-on-light-soft:#5F6972;

  /* --- Linework: used sparingly, never as a default box ---------------- */
  --l-dark:        rgba(12, 15, 18, 0.11);
  --l-dark-firm:   rgba(12, 15, 18, 0.22);
  --l-light:       rgba(237, 240, 241, 0.12);
  --l-light-firm:  rgba(237, 240, 241, 0.26);
  --l-amber:       rgba(245, 182, 42, 0.42);

  /* --- Type ------------------------------------------------------------- */
  --f-display: "Archivo", "Archivo Expanded", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --f-tech:    "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;

  /* Display scale — engineered, tight, set in the condensed width axis */
  --fs-hero:   clamp(2.75rem, 6.6vw, 6.1rem);
  --fs-d1:     clamp(2.2rem, 4.8vw, 4.3rem);
  --fs-d2:     clamp(1.85rem, 3.4vw, 2.95rem);
  --fs-d3:     clamp(1.3rem, 1.9vw, 1.7rem);
  --fs-d4:     clamp(1.08rem, 1.3vw, 1.22rem);
  --fs-lead:   clamp(1.03rem, 1.1vw, 1.18rem);
  --fs-body:   1rem;
  --fs-sm:     0.9375rem;

  /* Metadata scale — the technical voice. Floors at 12px: the old 11px
     uppercase mono at 0.16em tracking was used for real content and was
     genuinely hard to read. */
  --fs-meta:    0.75rem;
  --fs-meta-lg: 0.8125rem;

  /* --- Space: 4px base, industrial rhythm ------------------------------ */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 2.75rem;  --sp-8: 3.5rem;
  --sp-9: 5rem;     --sp-10: 7rem;    --sp-11: 9.5rem;

  /* Section rhythm has three gears, so the page does not breathe at one
     constant rate from top to bottom. */
  --sp-section:       clamp(4.5rem, 9vw, 8.5rem);
  --sp-section-tight: clamp(3rem, 5.5vw, 5rem);
  --sp-section-loose: clamp(6rem, 12vw, 11rem);

  /* --- Containers ------------------------------------------------------- */
  --w-max:   1320px;
  --w-wide:  1560px;
  --w-text:  62ch;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --header-h: 78px;

  /* --- Geometry --------------------------------------------------------- */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-btn:  10px;   /* softly resolved: at a 52px control this is nowhere near a pill */
  --r-full: 999px;

  /* --- Elevation: directional and restrained --------------------------- */
  --e-1: 0 1px 2px rgba(6, 7, 9, 0.06), 0 4px 12px rgba(6, 7, 9, 0.05);
  --e-2: 0 2px 6px rgba(6, 7, 9, 0.07), 0 14px 34px rgba(6, 7, 9, 0.09);
  --e-3: 0 6px 16px rgba(6, 7, 9, 0.10), 0 34px 70px rgba(6, 7, 9, 0.18);
  --e-amber: 0 8px 26px -8px var(--c-amber-glow);

  /* --- Motion ----------------------------------------------------------- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --d-fast:   180ms;
  --d-base:   320ms;
  --d-slow:   620ms;
  --d-draw:   1100ms;

  /* --- Repeating drawing textures --------------------------------------- */
  --grid-dark:
    linear-gradient(90deg, rgba(12, 15, 18, 0.05) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(12, 15, 18, 0.04) 1px, transparent 1px);
  --grid-light:
    linear-gradient(90deg, rgba(237, 240, 241, 0.05) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(237, 240, 241, 0.04) 1px, transparent 1px);
  --grid-size: 88px 88px;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--s-light);
  color: var(--t-on-light);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 92%;
  line-height: 1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-d1); }
h2 { font-size: var(--fs-d2); }
h3 { font-size: var(--fs-d3); line-height: 1.12; letter-spacing: -0.012em; }
h4 { font-size: var(--fs-d4); line-height: 1.2; letter-spacing: -0.008em; }

p { margin: 0; }

::selection { background: var(--c-amber); color: var(--c-graphite-900); }

:focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-btn);
  background: var(--c-amber);
  color: var(--c-graphite-900);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: top var(--d-fast) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide { max-width: var(--w-wide); }
.shell--text { max-width: 78ch; }

.band { padding-block: var(--sp-section); }
.band--tight { padding-block: var(--sp-section-tight); }
.band--loose { padding-block: var(--sp-section-loose); }

.band--dark {
  position: relative;
  background: var(--s-dark);
  color: var(--t-on-dark);
}
.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4 { color: var(--t-on-dark); }
.band--dark p { color: var(--t-on-dark-mute); }

.band--paper { background: var(--s-light); }
.band--paper-2 { background: var(--c-paper-2); }
.band--white { background: var(--c-white); }

/* Drawing grid, laid over any band. Masked so it fades rather than tiles. */
.tgrid { position: relative; overflow: hidden; }
.tgrid > * { position: relative; z-index: 1; }
.tgrid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grid-dark);
  background-size: var(--grid-size);
  -webkit-mask-image: radial-gradient(120% 90% at 12% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 12% 0%, #000 0%, transparent 72%);
}
.band--dark.tgrid::before { background-image: var(--grid-light); }

/* --------------------------------------------------------------------------
   4. TECHNICAL TYPOGRAPHY
   The mono voice is now reserved for genuine metadata — eyebrows, spec keys,
   indices, drawing annotation. It used to run through buttons, links, nav,
   tags, table headers and stat captions, which flattened the whole page into
   one shouting register.
   -------------------------------------------------------------------------- */

.tlabel {
  display: inline-flex;
  align-items: flex-start;   /* the tick stays on the first line when the label wraps */
  gap: 0.65em;
  font-family: var(--f-tech);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--t-on-light-soft);
}
.band--dark .tlabel { color: var(--t-on-dark-soft); }

.tlabel::before {
  content: "";
  width: 16px;
  height: 1px;
  margin-top: 0.62em;
  flex: 0 0 auto;
  background: var(--c-amber);
}
.tlabel--bare::before { display: none; }
.tlabel--accent { color: var(--c-amber-deep); }
.band--dark .tlabel--accent { color: var(--c-amber); }

/* Numbered section index — 01, 02, 03 */
.tindex {
  font-family: var(--f-tech);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--c-amber-deep);
}
.band--dark .tindex { color: var(--c-amber); }

/* Oversized index numeral, used as a compositional element rather than a label */
.tnum {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900;
  font-stretch: 84%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--l-dark-firm);
  transition: color var(--d-base) var(--ease);
}
.band--dark .tnum { color: var(--l-light-firm); }

/* Key/value pair, as read off a drawing title block */
.tspec {
  display: grid;
  gap: 0.35rem;
}
.tspec dt {
  font-family: var(--f-tech);
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-on-light-soft);
}
.tspec dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--fs-d4);
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -0.01em;
  color: var(--t-on-light);
}
.band--dark .tspec dt { color: var(--t-on-dark-soft); }
.band--dark .tspec dd { color: var(--t-on-dark); }

.lead {
  max-width: var(--w-text);
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--t-on-light-mute);
}
.band--dark .lead { color: var(--t-on-dark-mute); }

/* Small print / captions — sans, not mono. */
.caption {
  font-size: var(--fs-meta-lg);
  line-height: 1.5;
  color: var(--t-on-light-soft);
}
.band--dark .caption { color: var(--t-on-dark-soft); }

.hero-scale {
  font-size: var(--fs-hero);
  font-weight: 900;
  font-stretch: 86%;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   5. RULES & DIVIDERS
   -------------------------------------------------------------------------- */

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--l-dark);
}
.band--dark .rule { background: var(--l-light); }

/* Measurement rule — ticks like a steel tape */
.rule--ticked {
  height: 9px;
  background:
    linear-gradient(var(--l-dark), var(--l-dark)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--l-dark) 0 1px, transparent 1px 24px);
}
.band--dark .rule--ticked {
  background:
    linear-gradient(var(--l-light), var(--l-light)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--l-light) 0 1px, transparent 1px 24px);
}

.rule--draw { transform-origin: left center; }

/* --------------------------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------------------------
   Four roles, one geometry. Type is Inter 600 in sentence case: the old
   11px mono / uppercase / 0.14em treatment is the single strongest "dated
   corporate control" signal a button can carry, and it fought the display
   face everywhere it appeared.
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 52px;
  max-width: 100%;
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-btn);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: color var(--d-base) var(--ease),
              background-color var(--d-base) var(--ease),
              border-color var(--d-base) var(--ease),
              box-shadow var(--d-base) var(--ease),
              transform var(--d-fast) var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn__arrow {
  width: 15px; height: 10px;
  flex: 0 0 auto;
  transition: transform var(--d-base) var(--ease-out);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: translateX(4px); }

/* Primary — amber. One per view wherever possible. */
.btn--primary {
  background: var(--c-amber);
  color: var(--c-graphite-900);
  box-shadow: var(--e-1);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-amber-lift);
  box-shadow: var(--e-amber);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

/* Secondary on light — a real surface, not an outline */
.btn--secondary {
  background: var(--c-white);
  color: var(--t-on-light);
  border: 1px solid var(--l-dark-firm);
  box-shadow: var(--e-1);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--c-graphite-900);
  border-color: var(--c-graphite-900);
  color: var(--c-paper);
  box-shadow: var(--e-2);
  transform: translateY(-2px);
}
.btn--secondary:active { transform: translateY(0); }

/* Secondary on dark */
.btn--secondary-dark {
  background: rgba(255, 255, 255, 0.07);
  color: var(--t-on-dark);
  border: 1px solid var(--l-light-firm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--secondary-dark:hover,
.btn--secondary-dark:focus-visible {
  background: var(--c-paper);
  border-color: var(--c-paper);
  color: var(--c-graphite-900);
  transform: translateY(-2px);
}
.btn--secondary-dark:active { transform: translateY(0); }

/* Ghost — lowest weight, still a real target */
.btn--ghost {
  background: transparent;
  color: var(--t-on-light);
  border: 1px solid transparent;
  padding-inline: 1.1rem;
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(12, 15, 18, 0.05);
  border-color: var(--l-dark);
}
.band--dark .btn--ghost { color: var(--t-on-dark); }
.band--dark .btn--ghost:hover,
.band--dark .btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--l-light);
}

/* Icon-only */
.btn--icon {
  width: 48px;
  min-height: 48px;
  padding: 0;
  gap: 0;
}

.btn--sm { min-height: 44px; padding: 0.5rem 1.25rem; font-size: var(--fs-meta-lg); }
.btn--lg { min-height: 58px; padding: 0.9rem 2.1rem; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* Text link with an accent underline that extends on hover.
   Sentence case, sans — the mono uppercase version read as a tiny button. */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  /* As a grid/flex child this would otherwise stretch to the full track, and
     the underline — which scales off the box, not the text — would read as a
     full-width rule at rest. */
  width: fit-content;
  justify-self: start;
  padding-bottom: 5px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--t-on-light);
}
.band--dark .tlink { color: var(--t-on-dark); }
.tlink::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  border-radius: var(--r-full);
  background: var(--c-amber);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform var(--d-base) var(--ease-out);
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }
.tlink svg { transition: transform var(--d-base) var(--ease-out); }
.tlink:hover svg, .tlink:focus-visible svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   7. SURFACES
   Used deliberately. Most content on this site should sit directly on the
   band — a card is a statement that something is a discrete object, not a
   default wrapper.
   -------------------------------------------------------------------------- */

.panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--s-light-raised);
  border-radius: var(--r-lg);
  box-shadow: var(--e-1);
}
.band--dark .panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--l-light);
  box-shadow: none;
}

/* Interactive card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--s-light-raised);
  box-shadow: var(--e-1);
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease),
              background-color var(--d-base) var(--ease);
}
.card:hover, .card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--e-2);
}
.band--dark .card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--l-light);
  box-shadow: none;
}
.band--dark .card:hover, .band--dark .card:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--l-light-firm);
}

/* --------------------------------------------------------------------------
   9. FORMS
   -------------------------------------------------------------------------- */

.field { display: grid; gap: var(--sp-2); }

.field > label {
  font-size: var(--fs-meta-lg);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--t-on-light-mute);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  background: var(--c-white);
  border: 1px solid var(--l-dark-firm);
  border-radius: var(--r-btn);
  outline: none;
  transition: border-color var(--d-fast) var(--ease),
              box-shadow var(--d-fast) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }

.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5l5-5' stroke='%234A555F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px var(--c-amber-dim);
}

.field input::placeholder, .field textarea::placeholder { color: var(--c-steel-400); }

/* --------------------------------------------------------------------------
   10. MOTION SYSTEM
   --------------------------------------------------------------------------
   Three levels only:
     L1  hero / major transitions
     L2  section entrances, scroll triggered
     L3  micro interactions (declared with the components above)
   -------------------------------------------------------------------------- */

/* Hiding is opt-in: the `js` class is set by an inline script in <head>, so if
   scripting fails the page renders fully visible instead of blank. */
.js [data-reveal] {
  --rd: 0ms;
  opacity: 0;
  transition:
    opacity var(--d-slow) var(--ease-out) var(--rd),
    transform var(--d-slow) var(--ease-out) var(--rd);
  will-change: opacity, transform;
}

.js [data-reveal="up"]    { transform: translateY(22px); }
.js [data-reveal="right"] { transform: translateX(-22px); }
.js [data-reveal="scale"] { transform: scale(0.975); }
.js [data-reveal="rule"]  { opacity: 1; transform: scaleX(0); transform-origin: left center; }

/* Wipe reveal — a curtain retracting to the right, like a cutting pass.
   Deliberately NOT clip-path on the element itself: a fully clipped box has an
   empty intersection rect, so IntersectionObserver could never fire and the
   content would stay hidden forever. */
.js [data-reveal="clip"] {
  position: relative;
  opacity: 1;
}
.js [data-reveal="clip"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: var(--c-graphite-900);
  transform-origin: right center;
  transition: transform var(--d-slow) var(--ease-out) var(--rd);
}
.js .is-in[data-reveal="clip"]::after { transform: scaleX(0); }

.is-in[data-reveal] {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.is-in[data-reveal="rule"] { transform: scaleX(1); }

/* Oversized photographic plates settle from a slight overscale as they enter.
   Kept separate from [data-reveal] because the plate must never fade — it is
   the ground the section's type sits on. */
.js [data-plate] img {
  transform: scale(1.07);
  transition: transform 1500ms var(--ease-out);
}
.js [data-plate].is-in img { transform: scale(1); }

/* Line-draw for technical SVG artwork */
.js [data-draw] path,
.js [data-draw] line,
.js [data-draw] rect,
.js [data-draw] circle,
.js [data-draw] polyline {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset var(--d-draw) var(--ease-out) var(--rd, 0ms);
}
.is-in[data-draw] path,
.is-in[data-draw] line,
.is-in[data-draw] rect,
.is-in[data-draw] circle,
.is-in[data-draw] polyline { stroke-dashoffset: 0; }

/* Elements that fade in only once their parent draw has landed */
.js [data-draw] [data-late] {
  opacity: 0;
  transition: opacity var(--d-base) var(--ease) var(--d-draw);
}
.is-in[data-draw] [data-late] { opacity: 1; }

/* Shapes that should never be dashed even inside a [data-draw] group */
.js [data-draw] [data-nodraw],
.js [data-draw] [data-nodraw] path,
.js [data-draw] [data-nodraw] rect,
.js [data-draw] [data-nodraw] circle {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

/* --------------------------------------------------------------------------
   11. TOUCH & NARROW VIEWPORTS
   Desktop keeps its typographic density; touch gets targets you can hit.
   -------------------------------------------------------------------------- */

@media (max-width: 900px), (hover: none) {
  /* A long CTA label must wrap rather than push the layout wider than the
     viewport — nowrap is a desktop-only luxury. */
  .btn {
    white-space: normal;
    text-align: center;
    padding-inline: 1.25rem;
  }

  /* Standalone links become real targets (inline links inside body copy are
     deliberately left alone — WCAG exempts them, and padding would break the
     line box). */
  .tlink { padding-block: 0.55rem 0.6rem; }
  .foot__nav a,
  .foot__contact a,
  .ccard a { padding-block: 0.55rem; }
}

/* --------------------------------------------------------------------------
   12. REDUCED MOTION & PRINT
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal="clip"]::after { transform: scaleX(0) !important; }
  [data-draw] path, [data-draw] line, [data-draw] rect,
  [data-draw] circle, [data-draw] polyline { stroke-dashoffset: 0 !important; }
  [data-draw] [data-late] { opacity: 1 !important; }
  [data-plate] img { transform: none !important; }
  .btn:hover { transform: none !important; }
}

@media print {
  .site-head, .cta-band, .hero__geo, .foot__word { display: none !important; }
  body { background: #fff; color: #000; }
}
