/* =====================================================================
   SCANDEX GROUP — public stylesheet
   Design direction: "the gold thread".
   A quiet charcoal ground, warm ivory paper, and a single gold line that
   runs through the whole site — headings, rules, hovers, section marks.
   Serif display (Philosopher) over a neutral Roboto text face, the
   typographic pairing the client approved on panamgroupbd.com, tuned
   here with deeper contrast and a lot more motion.
   ===================================================================== */

/* ---------- 1. Tokens ------------------------------------------------ */
:root {
  /* Charcoal ground */
  --ink:        #16181B;
  --ink-2:      #1E2126;
  --ink-3:      #2A2E34;
  --ink-4:      #3A3F46;

  /* Warm paper */
  --paper:      #FFFFFF;
  --sand:       #F8F5EF;
  --sand-2:     #EFE9DD;

  /* Gold family — the one accent, used at three temperatures */
  --gold:       #C9A227;   /* bright: on charcoal */
  --gold-deep:  #9A7B12;   /* deep: headings on paper */
  --bronze:     #B69763;   /* button fill */
  --bronze-dk:  #8C7040;   /* button frame */
  --gold-soft:  rgba(201, 162, 39, .16);

  /* A single warm signal, used sparingly (the factory's own red) */
  --clay:       #B4432F;

  /* Scandex's own corporate blue, lifted from scandexbd.com and from the
     blue-glass facade on the Gouripur building. Secondary to the gold —
     it carries the facility section and interactive highlights. */
  --blue:       #086ABD;
  --blue-deep:  #0A3E6C;
  --blue-lift:  #A8D8FF;
  --blue-soft:  rgba(8, 106, 189, .14);

  --text:       #23262A;
  --text-muted: #6B6F76;
  --rule:       rgba(22, 24, 27, .12);
  --rule-soft:  rgba(22, 24, 27, .07);
  --on-ink:     rgba(255, 255, 255, .74);
  --rule-ink:   rgba(255, 255, 255, .13);

  /* Type — Philosopher for display, Roboto for text and labels */
  --font-display: "Philosopher", "Times New Roman", Georgia, serif;
  --font-body:    "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label:   "Roboto", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    var(--font-label);   /* legacy alias — label face */

  --fs-eyebrow: .74rem;
  --fs-small:   .875rem;
  --fs-body:    1.02rem;
  --fs-lead:    clamp(1.06rem, .97rem + .42vw, 1.3rem);
  --fs-h3:      clamp(1.18rem, 1.05rem + .5vw, 1.45rem);
  --fs-h2:      clamp(1.95rem, 1.4rem + 2.2vw, 3.15rem);
  --fs-h1:      clamp(2.4rem, 1.45rem + 4.2vw, 4.9rem);

  /* Space + shape */
  --gutter:     clamp(1.15rem, .6rem + 2.2vw, 3rem);
  --wrap:       1280px;
  --wrap-narrow: 940px;
  --section-y:  clamp(4rem, 2.2rem + 6.2vw, 8rem);
  --radius:     2px;
  --radius-lg:  4px;

  --shadow-sm:  0 1px 2px rgba(22, 24, 27, .05), 0 6px 20px rgba(22, 24, 27, .07);
  --shadow-md:  0 2px 6px rgba(22, 24, 27, .06), 0 22px 50px rgba(22, 24, 27, .14);
  --shadow-gold: 0 18px 40px rgba(154, 123, 18, .22);

  --ease:       cubic-bezier(.22, .61, .36, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  /* softer landing for entrances — decelerates for longer, so a card
     settles instead of arriving and stopping dead */
  --ease-enter: cubic-bezier(.19, .84, .28, 1);

  /* Aliases kept from the previous palette so older templates and any
     saved rich-text content keep resolving to sensible colours. */
  --signal: var(--gold-deep);
  --safety: var(--gold-deep);
  --steel:  var(--text-muted);
  --tile:   var(--sand);
  --navy:   var(--ink);
  --ok:     #2E8B57;
}

/* ---------- 2. Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  font: 600 .9rem/1 var(--font-body);
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout primitives ------------------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }

.bg-tile  { background: var(--sand); }
.bg-paper { background: var(--paper); }
.bg-ink   { background: var(--ink); color: #fff; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: #fff; }
.bg-ink p, .bg-ink li { color: var(--on-ink); }

/* A charcoal panel with a faint gold weave — used for the overview band */
.bg-weave {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(201,162,39,.14), transparent 58%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #fff;
}
.bg-weave h1, .bg-weave h2, .bg-weave h3, .bg-weave h4 { color: #fff; }
.bg-weave p, .bg-weave li { color: var(--on-ink); }

.grid { display: grid; gap: clamp(1.1rem, .6rem + 1.6vw, 2.1rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: 1.15rem; }
.text-center { text-align: center; }
.mono { font-family: var(--font-label); letter-spacing: .1em; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.68; }
.bg-ink .lead, .bg-weave .lead { color: var(--on-ink); }

/* ---------- 4. Signature: the gold thread --------------------------- */
/* A hairline of gold runs down the page edge and tracks scroll depth. */
.walkway {
  position: fixed;
  left: max(.6rem, calc((100vw - var(--wrap)) / 2 - 2.2rem));
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent 0 5vh, rgba(201,162,39,.42) 5vh 100%);
  z-index: 3;
  pointer-events: none;
}
.walkway::after {
  content: "";
  position: absolute; left: 50%; top: var(--walk, 12%);
  width: 9px; height: 9px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, .18);
  transition: top .35s var(--ease-out);
}
@media (max-width: 1140px) { .walkway { display: none; } }

/* Scroll progress hairline across the very top of the viewport */
.progress {
  position: fixed; inset: 0 auto auto 0; z-index: 200;
  height: 2px; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--bronze), var(--gold) 55%, #F0D77A);
  pointer-events: none;
}

/* Ornamental gold rule — the section separator */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin: 1rem 0 0;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: clamp(38px, 8vw, 74px);
  background: linear-gradient(90deg, transparent, var(--gold-deep));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.ornament i {
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--gold-deep); display: block;
}
.bg-ink .ornament i, .bg-weave .ornament i { background: var(--gold); }
.bg-ink .ornament::before, .bg-weave .ornament::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.bg-ink .ornament::after,  .bg-weave .ornament::after  { background: linear-gradient(90deg, var(--gold), transparent); }

.painted-rule {
  height: 2px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--bronze) 50%, var(--gold) 78%, transparent);
  opacity: .8;
}

/* ---------- 5. Section headers -------------------------------------- */
.sec-head { max-width: 64ch; margin-bottom: clamp(2rem, 1.2rem + 2vw, 3.4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-label);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; flex: none;
  background: currentColor; opacity: .7;
}
.bg-ink .eyebrow, .bg-weave .eyebrow { color: var(--gold); }

.sec-head h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold-deep);
  line-height: 1.15;
}
.bg-ink .sec-head h2, .bg-weave .sec-head h2 { color: var(--gold); }
.sec-head h2 em { font-style: normal; color: var(--ink); }
.bg-ink .sec-head h2 em, .bg-weave .sec-head h2 em { color: #fff; }
.sec-head h2 strong { font-weight: 700; }
.sec-head .lead { margin-top: 1.1rem; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .ornament { margin-bottom: .4rem; }

/* Heading with the gold line that draws itself in on reveal.
   Every .sec-head h2 gets it automatically; .rule-in opts any other
   heading into the same treatment. */
.rule-in, .sec-head h2 { position: relative; padding-bottom: .9rem; }
.rule-in::after, .sec-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 84px;
  background: linear-gradient(90deg, var(--gold), var(--bronze));
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out) .15s;
}
.sec-head--center .rule-in::after,
.sec-head--center h2::after { left: 50%; margin-left: -42px; transform-origin: center; }
.is-in .rule-in::after, .rule-in.is-in::after,
.is-in .sec-head h2::after, .sec-head h2.is-in::after { transform: scaleX(1); }

/* ---------- 6. Buttons ---------------------------------------------- */
/* The double-frame button the client liked: bronze fill inside a darker ring. */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-ring: var(--ink-3);
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .92rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 0; border-radius: var(--radius);
  box-shadow: 0 0 0 4px var(--btn-ring);
  margin: 4px;
  font-family: var(--font-label);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
}
/* gold sheen that wipes across on hover */
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px var(--btn-ring), var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; position: relative; }
.btn span, .btn > * { position: relative; }

.btn--accent  { --btn-bg: var(--bronze);  --btn-fg: #fff; --btn-ring: var(--bronze-dk); }
.btn--safety  { --btn-bg: var(--gold);    --btn-fg: #1B1503; --btn-ring: var(--gold-deep); }
.btn--gold    { --btn-bg: var(--bronze);  --btn-fg: #fff; --btn-ring: var(--bronze-dk); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--ink); --btn-ring: var(--rule); }
.btn--ghost:hover { background: var(--ink); color: #fff; --btn-ring: var(--ink-3); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-ring: rgba(255,255,255,.34); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); --btn-ring: rgba(255,255,255,.6); }
.btn--sm { padding: .66rem 1.2rem; font-size: .72rem; box-shadow: 0 0 0 3px var(--btn-ring); }
.btn--sm:hover { box-shadow: 0 0 0 3px var(--btn-ring), var(--shadow-sm); }
.btn--full { width: 100%; justify-content: center; }

/* Text link with a gold underline that wipes in */
.tlink {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-label); font-weight: 600;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: .35rem;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .45s var(--ease-out), color .25s;
}
.bg-ink .tlink, .bg-weave .tlink { color: var(--gold); }
.tlink:hover { background-size: 100% 1px; }
.tlink span[aria-hidden] { transition: transform .35s var(--ease-out); }
.tlink:hover span[aria-hidden] { transform: translateX(5px); }

/* ---------- 7. Top utility bar -------------------------------------- */
.topbar {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-label);
  font-size: .74rem;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(201, 162, 39, .2);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar__left { display: flex; align-items: center; gap: 1.5rem; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 13px; height: 13px; opacity: .75; }
.topbar__badge { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
@media (max-width: 860px) { .topbar__left .is-optional { display: none; } .topbar__right { display: none; } }

/* ---------- 8. Header / nav ----------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease), min-height .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 8px 30px rgba(22, 24, 27, .1); }
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; transition: min-height .3s var(--ease); }
.header.is-stuck .header__in { min-height: 68px; }

.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand__mark { width: 40px; height: 40px; flex: none; transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: .04em; color: var(--ink);
}
.brand__sub {
  font-family: var(--font-label); font-size: .56rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-deep); margin-top: .4rem; font-weight: 500;
}

/* Uploaded wordmark: the logo already carries the name, so it stands alone
   with the descriptor tucked underneath. */
.brand--logo { flex-direction: column; align-items: flex-start; gap: 0; }
.brand__logo {
  width: auto; height: clamp(26px, 2.4vw, 34px);
  transition: transform .5s var(--ease-out), opacity .3s;
}
.brand--logo:hover .brand__logo { transform: translateY(-1px); opacity: .88; }
.brand--logo .brand__sub { margin-top: .34rem; margin-left: 1px; }
.header.is-stuck .brand__logo { height: clamp(24px, 2.1vw, 29px); }
.footer .brand__logo { height: 32px; }
@media (max-width: 520px) {
  .brand__logo { height: 24px; }
  .brand--logo .brand__sub { font-size: .5rem; letter-spacing: .22em; }
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .1rem; }
.nav__link {
  position: relative;
  padding: .75rem .85rem;
  font-family: var(--font-label); font-weight: 500;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .5rem;
  height: 1px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease-out);
}
.nav__link:hover { color: var(--gold-deep); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link.is-current { color: var(--gold-deep); }
.header__cta { margin-left: .9rem; }

.burger {
  display: none; margin-left: auto;
  width: 48px; height: 48px; padding: 0;
  background: var(--ink); border: 0; border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--ink-3);
  cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 1.5px; margin: 4.5px auto;
  background: var(--gold); transition: transform .3s var(--ease), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background:
    radial-gradient(90% 60% at 90% 0%, rgba(201,162,39,.16), transparent 60%),
    var(--ink);
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
  display: flex; flex-direction: column;
  padding: 1.1rem var(--gutter) 2rem;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.drawer__close {
  width: 46px; height: 46px; background: transparent; color: var(--gold);
  border: 1px solid var(--rule-ink); border-radius: var(--radius); font-size: 1.3rem; cursor: pointer;
}
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule-ink);
  color: #fff;
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.45rem; letter-spacing: .02em;
  opacity: 0; transform: translateX(18px);
}
.drawer.is-open .drawer__link { animation: drawerIn .45s var(--ease-out) forwards; }
.drawer__link:hover { color: var(--gold); }
.drawer__link .n { font-family: var(--font-label); font-size: .66rem; letter-spacing: .2em; color: var(--gold); }
.drawer__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .9rem; }
@keyframes drawerIn { to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
}

/* ---------- 9. Hero slider ------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  background: var(--ink);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__slides { position: absolute; inset: 0; }
/* Slides wipe in behind a soft diagonal edge rather than cross-fading */
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  clip-path: inset(0 0 0 100%);
  transition: opacity 1s var(--ease), visibility 1s, clip-path 1.15s var(--ease-out);
}
.hero__slide.is-active { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); }
.hero__media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 34%;
  transform: scale(1.06);
}
/* the whole stack eases back as the hero scrolls away (JS writes --hero) */
.hero__slides { transform: scale(calc(1 - var(--hero, 0) * .06)) translate3d(0, calc(var(--hero, 0) * 3vh), 0); }
.hero__body { opacity: calc(1 - var(--hero, 0) * .9); }
.hero__slide.is-active .hero__media { animation: kenburns 11s ease-out forwards; }
/* nothing to see once the hero has scrolled away — let the GPU rest */
.hero:not(.is-onscreen) .hero__media { animation-play-state: paused; }
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.17) translate3d(-1.2%, -1.2%, 0); }
}

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,16,18,.95) 0%, rgba(14,16,18,.82) 40%, rgba(14,16,18,.42) 74%, rgba(14,16,18,.62) 100%),
    linear-gradient(0deg, rgba(14,16,18,.94) 0%, transparent 48%);
}
/* soft gold bloom from the top-left, echoing the brand line */
.hero__grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 6% 8%, rgba(201,162,39,.22), transparent 62%),
    radial-gradient(40% 40% at 96% 92%, rgba(182,151,99,.16), transparent 60%);
  mix-blend-mode: screen;
}

.hero__body { position: relative; z-index: 2; padding-block: clamp(4rem, 9vh, 7rem) clamp(1.5rem, 3vh, 2.5rem); }
.hero__inner { max-width: 940px; }

.hero__copywrap { display: grid; }
.hero__copy {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s var(--ease), visibility .6s;
}
.hero__copy.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-label); font-size: .72rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  color: #fff; letter-spacing: 0;
  line-height: 1.06;
}
.hero h1 .accent { color: var(--gold); display: block; }
/* word-by-word rise, wired up in site.js */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%);
  transition: transform .85s var(--ease-out);
}
.hero__copy.is-active h1 .w > i { transform: translateY(0); }

.hero__sub {
  margin-top: 1.6rem; max-width: 58ch;
  font-size: var(--fs-lead); color: rgba(255,255,255,.82);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }

.hero__copy > *:not(h1) { opacity: 0; transform: translateY(24px); }
.hero__copy.is-active > *:not(h1) { animation: heroUp .9s var(--ease-out) forwards; }
.hero__copy.is-active > *:nth-child(1) { animation-delay: .08s; }
.hero__copy.is-active > *:nth-child(3) { animation-delay: .46s; }
.hero__copy.is-active > *:nth-child(4) { animation-delay: .58s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* Slider controls */
.hero__controls {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 1.3rem;
  padding-bottom: clamp(1.2rem, 3vh, 2rem);
}
.hero__dots { display: flex; gap: .6rem; }
.hero__dot {
  width: 52px; height: 2px; padding: 0;
  background: rgba(255,255,255,.26); border: 0; cursor: pointer;
  position: relative; overflow: hidden;
}
.hero__dot::after {
  content: ""; position: absolute; inset: 0; width: 0;
  background: var(--gold);
}
.hero__dot.is-active::after { animation: dotFill var(--slide-dur, 7s) linear forwards; }
.hero__dot.is-paused::after { animation-play-state: paused; }
@keyframes dotFill { to { width: 100%; } }
.hero__count { font-family: var(--font-label); font-size: .72rem; color: rgba(255,255,255,.55); letter-spacing: .18em; }
.hero__arrows { margin-left: auto; display: flex; gap: .5rem; }
.hero__arrow {
  width: 50px; height: 50px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  cursor: pointer; transition: background .25s, border-color .25s, transform .25s, color .25s;
}
.hero__arrow:hover { background: var(--gold); color: #1B1503; border-color: var(--gold); transform: translateY(-2px); }
@media (max-width: 620px) { .hero__arrows { display: none; } }

/* Scroll cue */
.hero__cue {
  position: absolute; left: 50%; bottom: 8.5rem; z-index: 3;
  transform: translateX(-50%);
  display: grid; place-items: center; gap: .5rem;
  font-family: var(--font-label); font-size: .6rem; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.hero__cue i { display: block; width: 1px; height: 40px; background: linear-gradient(180deg, var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 1100px) { .hero__cue { display: none; } }

/* Capacity strip riding the bottom of the hero */
.spec-strip {
  position: relative; z-index: 3;
  border-top: 1px solid rgba(201, 162, 39, .5);
  background: rgba(14, 16, 18, .78);
  backdrop-filter: blur(8px);
}
.spec-strip__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec {
  padding: 1.25rem 1.4rem;
  border-left: 1px solid var(--rule-ink);
  transition: background .3s var(--ease);
}
.spec:first-child { border-left: 0; }
.spec:hover { background: rgba(201, 162, 39, .1); }
.spec__k { font-family: var(--font-label); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.spec__v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, .9rem + 1vw, 1.85rem); color: #fff; margin-top: .35rem; }
.spec__u { font-family: var(--font-label); font-size: .68rem; color: rgba(255,255,255,.5); letter-spacing: .08em; }
@media (max-width: 780px) {
  .spec-strip__in { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(3), .spec:nth-child(4) { border-top: 1px solid var(--rule-ink); }
  .spec:nth-child(odd) { border-left: 0; }
}

/* ---------- 10. Page banner (inner pages) --------------------------- */
.banner {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding-block: clamp(3.6rem, 2.2rem + 6vw, 7rem);
}
.banner__media {
  position: absolute; inset: -8% 0; background-size: cover; background-position: center 36%;
  opacity: .38; transform: scale(1.04);
}
.banner__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 8% 10%, rgba(201,162,39,.2), transparent 60%),
    linear-gradient(100deg, rgba(14,16,18,.95), rgba(14,16,18,.58));
}
.banner__in { position: relative; z-index: 2; }
.banner h1 {
  font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.9rem);
  font-weight: 400; color: #fff; letter-spacing: 0;
}
.banner .lead { margin-top: 1rem; max-width: 62ch; color: rgba(255,255,255,.8); }
.crumbs {
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap;
  font-family: var(--font-label); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1.2rem;
}
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }

/* ---------- 11. Cards ----------------------------------------------- */
.card {
  position: relative; background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 1.1vw, 2.2rem);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  height: 100%;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--bronze));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.4); }
.card:hover::after { transform: scaleX(1); }
.card h3 { font-size: var(--fs-h3); margin-bottom: .6rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: .95rem; }
.bg-tile .card { background: var(--paper); }
.bg-ink .card, .bg-weave .card { background: rgba(255,255,255,.04); border-color: var(--rule-ink); }

.card__num {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--gold-deep); display: block; margin-bottom: .7rem; line-height: 1;
}
.bg-ink .card__num, .bg-weave .card__num { color: var(--gold); }

/* ---------- 12. About / split layout -------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.8rem, 1rem + 4vw, 4.8rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { position: relative; }
.split__media img {
  width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3;
  filter: saturate(1.03);
}
/* gold frame offset behind the photograph */
.split__media::before {
  content: ""; position: absolute; left: -18px; top: -18px; right: 42%; bottom: 42%;
  border-left: 1px solid var(--gold-deep); border-top: 1px solid var(--gold-deep);
  pointer-events: none;
}
.split__media::after {
  content: ""; position: absolute; right: -18px; bottom: -18px; left: 42%; top: 42%;
  border-right: 1px solid var(--gold-deep); border-bottom: 1px solid var(--gold-deep);
  pointer-events: none;
}
.bg-ink .split__media::before, .bg-ink .split__media::after,
.bg-weave .split__media::before, .bg-weave .split__media::after { border-color: var(--gold); }

.split__badge {
  position: absolute; right: -14px; bottom: -26px;
  background: var(--ink); color: #fff;
  padding: 1.1rem 1.45rem; border-radius: var(--radius);
  box-shadow: 0 0 0 4px var(--bronze-dk), var(--shadow-md); max-width: 240px;
}
.split__badge b { font-family: var(--font-display); font-size: 1.9rem; display: block; line-height: 1; color: var(--gold); }
.split__badge span { font-family: var(--font-label); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Image that unmasks upward when it scrolls into view */
[data-reveal="mask"] { overflow: hidden; }
[data-reveal="mask"] > img, [data-reveal="mask"] > .m {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.12);
  transition: clip-path 1.1s var(--ease-out), transform 1.4s var(--ease-out);
}
[data-reveal="mask"].is-in > img, [data-reveal="mask"].is-in > .m {
  clip-path: inset(0 0 0 0); transform: scale(1);
}

/* ---------- 13. Capacity board (day / month) ------------------------ */
.cap-toggle {
  display: inline-flex; padding: 4px; gap: 4px;
  background: rgba(255,255,255,.06); border: 1px solid var(--rule-ink); border-radius: var(--radius);
}
.bg-tile .cap-toggle, .bg-paper .cap-toggle { background: var(--sand-2); border-color: var(--rule); }
.cap-toggle button {
  padding: .55rem 1.15rem; background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-label); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: inherit; opacity: .65; border-radius: 2px; transition: background .3s, color .3s, opacity .3s;
}
.cap-toggle button.is-active { background: var(--gold); color: #1B1503; opacity: 1; }

.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule-ink); border: 1px solid var(--rule-ink); }
.bg-tile .cap-grid, .bg-paper .cap-grid { background: var(--rule); border-color: var(--rule); }
.cap {
  background: var(--ink); padding: clamp(1.6rem, 1rem + 1.6vw, 2.5rem);
  position: relative; overflow: hidden;
  transition: background .35s var(--ease);
}
.bg-weave .cap { background: rgba(255,255,255,.03); }
.bg-tile .cap, .bg-paper .cap { background: var(--paper); }
.cap:hover { background: rgba(201, 162, 39, .08); }
.cap__icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 1.2rem; }
.bg-tile .cap__icon, .bg-paper .cap__icon { color: var(--gold-deep); }
.cap__label { font-family: var(--font-label); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.bg-tile .cap__label, .bg-paper .cap__label { color: var(--text-muted); }
.cap__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.85rem, 1.2rem + 2.1vw, 3rem);
  letter-spacing: 0; line-height: 1.05; margin-top: .6rem;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.cap__unit { font-family: var(--font-label); font-size: .74rem; color: rgba(255,255,255,.45); margin-top: .5rem; letter-spacing: .08em; }
.bg-tile .cap__unit, .bg-paper .cap__unit { color: var(--text-muted); }
.cap.is-swapping .cap__value, .cap.is-swapping .cap__unit { opacity: 0; transform: translateY(-8px); }
.cap::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.cap.is-in::after { transform: scaleX(1); }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- 14. Counters -------------------------------------------- */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 3rem); }
.counter { text-align: center; position: relative; }
.counter + .counter::before {
  content: ""; position: absolute; left: calc(-1 * clamp(.7rem, 1.5vw, 1.5rem)); top: 12%; bottom: 12%;
  width: 1px; background: linear-gradient(180deg, transparent, var(--rule-ink), transparent);
}
.counter__v {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.6rem);
  letter-spacing: -.01em; line-height: 1; color: #fff;
}
.counter__v .pre, .counter__v .suf { color: var(--gold); }
.counter__l {
  font-family: var(--font-label); font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 1rem;
}
.bg-tile .counter__v, .bg-paper .counter__v { color: var(--ink); }
.bg-tile .counter__v .pre, .bg-tile .counter__v .suf,
.bg-paper .counter__v .pre, .bg-paper .counter__v .suf { color: var(--gold-deep); }
.bg-tile .counter__l, .bg-paper .counter__l { color: var(--text-muted); }
@media (max-width: 700px) {
  .counters { grid-template-columns: 1fr; gap: 2.4rem; }
  .counter + .counter::before { display: none; }
}

/* ---------- 15. Vertical-integration flow --------------------------- */
.flowline { position: relative; padding-top: 2.4rem; }
.flowline__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr);
  gap: .5rem; position: relative;
  /* nine stages fit a full-width desktop row; anything narrower scrolls */
  overflow-x: auto; scrollbar-width: none; padding-bottom: .5rem;
}
.flowline__track::-webkit-scrollbar { display: none; }
.flowline__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px;
  background: var(--rule);
}
.bg-ink .flowline__track::before, .bg-weave .flowline__track::before { background: var(--rule-ink); }
/* the gold thread draws itself along the chain */
.flowline__track::after {
  content: ""; position: absolute; left: 0; top: 22px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--bronze));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.8s var(--ease-out);
}
.flowline.is-in .flowline__track::after { transform: scaleX(1); }

.step { position: relative; text-align: center; padding-top: 3.6rem; }
.step__dot {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--sand); border: 1px solid var(--gold-deep); border-radius: 50%;
  font-family: var(--font-label); font-size: .62rem; letter-spacing: .04em; color: var(--gold-deep);
  transition: background .35s, color .35s, transform .35s var(--ease-out), box-shadow .35s;
}
.bg-paper .step__dot { background: var(--paper); }
.bg-ink .step__dot, .bg-weave .step__dot { background: var(--ink); border-color: var(--gold); color: var(--gold); }
.step:hover .step__dot {
  background: var(--gold); color: #1B1503; border-color: var(--gold);
  transform: translateX(-50%) scale(1.18); box-shadow: 0 0 0 6px var(--gold-soft);
}
.step h4 { font-size: 1rem; font-weight: 700; letter-spacing: .01em; }
.step p { font-size: .84rem; color: var(--text-muted); margin-top: .45rem; line-height: 1.6; }
.bg-ink .step p, .bg-weave .step p { color: rgba(255,255,255,.58); }
@media (max-width: 900px) {
  .flowline__track { grid-auto-flow: row; grid-auto-columns: auto; gap: 1.8rem; overflow-x: visible; }
  .flowline__track::before, .flowline__track::after { left: 15px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flowline__track::after { transform: scaleY(0); transform-origin: top; }
  .flowline.is-in .flowline__track::after { transform: scaleY(1); }
  .step { text-align: left; padding: 0 0 0 3.4rem; }
  .step__dot { top: 0; left: 0; transform: none; }
  .step:hover .step__dot { transform: scale(1.12); }
}

/* ---------- 16. Product tiles --------------------------------------- */
.prod {
  position: relative; display: block; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.prod:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.45); }
.prod__fig {
  aspect-ratio: 4 / 3; background: var(--sand);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.prod__fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22,24,27,.32));
  opacity: 0; transition: opacity .4s var(--ease);
}
.prod:hover .prod__fig::after { opacity: 1; }
.prod__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod__fig svg { width: 62%; height: auto; transition: transform .6s var(--ease); }
.prod:hover .prod__fig img, .prod:hover .prod__fig svg { transform: scale(1.07); }
.prod__body { padding: 1.3rem 1.4rem 1.5rem; }
.prod__body h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: 0; transition: color .25s; }
.prod:hover .prod__body h3 { color: var(--gold-deep); }
.prod__body p { font-size: .88rem; color: var(--text-muted); margin-top: .45rem; line-height: 1.6; }
.prod__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(14,16,18,.86); color: var(--gold);
  font-family: var(--font-label); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .38rem .65rem; border-radius: 2px;
}

/* ---------- 17. Company tiles --------------------------------------- */
.co {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--ink); min-height: 330px;
}
.co__media { position: absolute; inset: 0; background-size: cover; background-position: center 36%; opacity: .55; transition: transform 1s var(--ease), opacity .5s; }
.co:hover .co__media { transform: scale(1.08); opacity: .42; }
.co__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,18,.1) 25%, rgba(14,16,18,.95) 100%); }
/* gold hairline frame that draws in on hover */
.co::after {
  content: ""; position: absolute; inset: 12px; z-index: 3; pointer-events: none;
  border: 1px solid var(--gold); opacity: 0; transform: scale(1.03);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.co:hover::after { opacity: .65; transform: scale(1); }
.co__body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.7rem; min-height: 330px; }
.co__kicker { font-family: var(--font-label); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.co h3 { color: #fff; font-size: 1.28rem; font-weight: 400; letter-spacing: .01em; }
.co p { color: rgba(255,255,255,.7); font-size: .87rem; margin-top: .5rem; line-height: 1.6; }
.co__go {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-label); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  transform: translateY(8px); opacity: 0; transition: .4s var(--ease-out);
}
.co:hover .co__go { transform: none; opacity: 1; }

/* Horizontal company rail (the carousel the client liked) */
.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: clamp(.8rem, 1.5vw, 1.4rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: .4rem;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail__track { grid-auto-columns: minmax(320px, 1fr); } }
.rail__nav { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.4rem; }
.rail__btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; color: inherit;
  border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.bg-ink .rail__btn, .bg-weave .rail__btn { border-color: var(--rule-ink); }
.rail__btn:hover { background: var(--gold); color: #1B1503; border-color: var(--gold); transform: translateY(-2px); }
.rail__btn svg { width: 17px; height: 17px; }

/* ---------- 18. Timeline -------------------------------------------- */
.timeline { position: relative; }
.timeline__line { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--rule); }
.bg-ink .timeline__line, .bg-weave .timeline__line { background: var(--rule-ink); }
.timeline__line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--bronze)); transition: width 1.8s var(--ease-out); }
.timeline.is-in .timeline__line i { width: 100%; }
.timeline__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: thin;
}
.tl { scroll-snap-align: start; }
.tl__year {
  font-family: var(--font-display); font-weight: 700; font-size: 1.85rem;
  letter-spacing: .01em; color: var(--gold-deep); line-height: 1;
}
.bg-ink .tl__year, .bg-weave .tl__year { color: var(--gold); }
.tl__pin {
  width: 13px; height: 13px; border-radius: 50%; background: var(--paper);
  border: 1px solid var(--gold-deep); margin: 1.1rem 0 1.4rem;
  box-shadow: 0 0 0 4px rgba(154, 123, 18, .14);
}
.bg-ink .tl__pin, .bg-weave .tl__pin { background: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.tl h4 { font-size: 1.02rem; font-weight: 700; }
.tl p { font-size: .87rem; color: var(--text-muted); margin-top: .5rem; line-height: 1.6; }
.bg-ink .tl p, .bg-weave .tl p { color: rgba(255,255,255,.6); }
@media (max-width: 700px) {
  .timeline__line { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline__line i { width: 100%; height: 0; transition: height 1.8s var(--ease-out); }
  .timeline.is-in .timeline__line i { height: 100%; }
  .timeline__track { grid-auto-flow: row; overflow: visible; gap: 2.2rem; padding-left: 2.4rem; }
  .tl__pin { position: absolute; left: -2.4rem; margin: .5rem 0 0; }
  .tl { position: relative; }
}

/* ---------- 19. Certification chips --------------------------------- */
.certs { display: flex; flex-wrap: wrap; gap: .7rem; }
.cert {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .85rem 1.25rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  font-family: var(--font-label); font-weight: 500; font-size: .76rem;
  letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s, color .3s;
}
.cert:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
button.cert { font-family: var(--font-label); color: inherit; cursor: pointer; }
.cert.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cert.is-active::before { background: var(--gold); }
.cert::before { content: ""; width: 6px; height: 6px; background: var(--gold-deep); transform: rotate(45deg); flex: none; }
.cert img { height: 30px; width: auto; }
.bg-ink .cert, .bg-weave .cert { background: rgba(255,255,255,.04); border-color: var(--rule-ink); color: #fff; }
.bg-ink .cert::before, .bg-weave .cert::before { background: var(--gold); }

/* ---------- 20. Gallery + lightbox ---------------------------------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gal__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--sand-2); cursor: zoom-in; border: 0; padding: 0;
  display: block; width: 100%;
}
.gal__item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.gal__item::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold);
  opacity: 0; transform: scale(1.04); transition: .45s var(--ease-out); pointer-events: none; z-index: 2;
}
.gal__item:hover img { transform: scale(1.08); }
.gal__item:hover::after, .gal__item:focus-visible::after { opacity: .7; transform: scale(1); }
.gal__cap {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: left;
  padding: 2.4rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(14,16,18,.94), transparent);
  color: #fff; font-family: var(--font-label); font-size: .66rem;
  letter-spacing: .18em; text-transform: uppercase;
  transform: translateY(10px); opacity: 0; transition: .35s var(--ease-out); z-index: 3;
}
.gal__item:hover .gal__cap, .gal__item:focus-visible .gal__cap { transform: none; opacity: 1; }
@media (max-width: 720px) {
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal__item:nth-child(6n+1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 11, 13, .97);
  display: none; place-items: center; padding: 4vh 4vw;
}
.lightbox.is-open { display: grid; animation: fadeIn .3s var(--ease); }
.lightbox img { max-height: 84vh; max-width: 100%; width: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(201,162,39,.35); }
.lightbox__cap { color: rgba(255,255,255,.7); font-family: var(--font-label); font-size: .74rem; text-align: center; margin-top: 1.1rem; letter-spacing: .18em; text-transform: uppercase; }
.lightbox__x, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.07); color: #fff;
  border: 1px solid rgba(255,255,255,.22); width: 50px; height: 50px;
  border-radius: var(--radius); cursor: pointer; font-size: 1.2rem;
}
.lightbox__x { top: 3vh; right: 3vw; }
.lightbox__nav.prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__x:hover, .lightbox__nav:hover { background: var(--gold); color: #1B1503; border-color: var(--gold); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 21. Leadership quotes ----------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

.qcard {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(2rem, 1.4rem + 1.8vw, 3rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.bg-ink .qcard, .bg-weave .qcard { background: rgba(255,255,255,.035); border-color: var(--rule-ink); }
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.4); }
.qcard::before {
  content: "\201C";
  position: absolute; right: 1.2rem; top: -1.4rem;
  font-family: var(--font-display); font-size: 12rem; line-height: 1;
  color: var(--gold); opacity: .12; pointer-events: none;
}
.qcard blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.32rem); line-height: 1.62;
  color: var(--text);
}
.bg-ink .qcard blockquote, .bg-weave .qcard blockquote { color: rgba(255,255,255,.9); }
.qcard blockquote p + p { margin-top: .9rem; }
.qcard__by { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.bg-ink .qcard__by, .bg-weave .qcard__by { border-top-color: var(--rule-ink); }
.qcard__mono {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--gold-deep); border-radius: 50%;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-deep);
}
.bg-ink .qcard__mono, .bg-weave .qcard__mono { border-color: var(--gold); color: var(--gold); }
.qcard__n { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; display: block; }
.qcard__r { font-family: var(--font-label); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.bg-ink .qcard__r, .bg-weave .qcard__r { color: var(--gold); }

/* Values list — the four core values from the profile */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.bg-ink .values, .bg-weave .values { background: var(--rule-ink); border-color: var(--rule-ink); }
.value {
  background: var(--paper); padding: clamp(1.5rem, 1rem + 1.4vw, 2.3rem);
  position: relative; transition: background .35s var(--ease);
}
.bg-ink .value, .bg-weave .value { background: var(--ink); }
.bg-tile .value { background: var(--paper); }
.value:hover { background: var(--sand); }
.bg-ink .value:hover, .bg-weave .value:hover { background: rgba(201,162,39,.08); }
.value__i { width: 26px; height: 26px; color: var(--gold-deep); margin-bottom: 1rem; }
.bg-ink .value__i, .bg-weave .value__i { color: var(--gold); }
.value h4 { font-size: 1.08rem; font-weight: 700; }
.value p { font-size: .88rem; color: var(--text-muted); margin-top: .5rem; line-height: 1.62; }
.bg-ink .value p, .bg-weave .value p { color: rgba(255,255,255,.6); }
@media (max-width: 920px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- 21b. People ---------------------------------------------- */
.person {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-direction: column; height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.bg-ink .person, .bg-weave .person { background: rgba(255,255,255,.04); border-color: var(--rule-ink); }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.45); }
.person__fig {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--sand-2); display: grid; place-items: center;
}
.person__fig img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .8s var(--ease); }
.person:hover .person__fig img { transform: scale(1.05); }
.person__fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(22,24,27,.24));
  opacity: 0; transition: opacity .4s var(--ease);
}
.person:hover .person__fig::after { opacity: 1; }
/* Monogram shown when no photograph is on file */
.person__fig:has(.person__initial) {
  background:
    radial-gradient(70% 70% at 50% 35%, rgba(201,162,39,.18), transparent 70%),
    linear-gradient(160deg, var(--sand), var(--sand-2));
}
.person__initial {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.2rem);
  letter-spacing: .06em; color: var(--gold-deep);
  width: 96px; height: 96px; display: grid; place-items: center;
  border: 1px solid var(--gold-deep); border-radius: 50%;
}
.person__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.person__role {
  font-family: var(--font-label); font-size: .6rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-deep); display: block; margin-bottom: .5rem;
}
.bg-ink .person__role, .bg-weave .person__role { color: var(--gold); }
.person h3 { font-size: 1.16rem; font-weight: 700; }
.person p { font-size: .87rem; color: var(--text-muted); margin-top: .6rem; line-height: 1.65; }
.bg-ink .person p, .bg-weave .person p { color: rgba(255,255,255,.6); }
.person .tlink { margin-top: auto; align-self: flex-start; }

/* ---------- 21c. Fabric swatches ------------------------------------- */
.swatch {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--paper); display: block; height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.bg-ink .swatch, .bg-weave .swatch { border-color: var(--rule-ink); background: rgba(255,255,255,.04); }
.swatch:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.45); }
.swatch__fig { aspect-ratio: 1; overflow: hidden; }
.swatch__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.swatch:hover .swatch__fig img { transform: scale(1.09) rotate(1.5deg); }
.swatch__body { padding: 1.1rem 1.2rem 1.3rem; }
.swatch__body h4 { font-size: 1.02rem; font-weight: 700; }
.swatch__body p { font-size: .82rem; color: var(--text-muted); margin-top: .35rem; line-height: 1.6; }
.bg-ink .swatch__body p, .bg-weave .swatch__body p { color: rgba(255,255,255,.58); }

/* ---------- 21c2. Service cards with a photograph -------------------- */
.svc {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.bg-ink .svc, .bg-weave .svc { background: rgba(255,255,255,.04); border-color: var(--rule-ink); }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(201,162,39,.45); }
.svc__fig { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.svc__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc:hover .svc__fig img { transform: scale(1.06); }
.svc__fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22,24,27,.28));
}
/* the icon straddles the photo edge, tying picture to copy */
.svc__ico {
  position: absolute; left: 1.3rem; bottom: -22px; z-index: 2;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--gold); color: #1B1503;
  border-radius: 50%; box-shadow: 0 6px 18px rgba(22,24,27,.22);
  transition: transform .4s var(--ease-out);
}
.svc:hover .svc__ico { transform: scale(1.08) rotate(-6deg); }
.svc__ico svg { width: 20px; height: 20px; }
.svc__body { padding: 2.1rem 1.4rem 1.6rem; flex: 1; }
.svc__body h3 { font-size: 1.12rem; font-weight: 700; }
.svc__body p { font-size: .89rem; color: var(--text-muted); margin-top: .5rem; line-height: 1.65; }
.bg-ink .svc__body p, .bg-weave .svc__body p { color: rgba(255,255,255,.62); }

/* ---------- 21d. Capability tiles (print, embroidery, branding) ------ */
.cap-tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; color: #fff; background: var(--ink);
}
.cap-tile__media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .52; transition: transform 1s var(--ease), opacity .5s; }
.cap-tile:hover .cap-tile__media { transform: scale(1.07); opacity: .4; }
.cap-tile__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,18,.15) 30%, rgba(14,16,18,.94)); }
.cap-tile::after {
  content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold);
  opacity: 0; transform: scale(1.03); transition: .45s var(--ease-out); pointer-events: none;
}
.cap-tile:hover::after { opacity: .6; transform: scale(1); }
.cap-tile > * { position: relative; z-index: 2; }
.cap-tile h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.24rem; color: #fff; }
.cap-tile p { font-size: .86rem; color: rgba(255,255,255,.72); margin-top: .5rem; line-height: 1.6; }
.cap-tile__k { font-family: var(--font-label); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: .55rem; }

/* ---------- 21e1. Responsibility mosaic ------------------------------
   One wide lead frame, then a run of smaller ones. The caption sits over
   the photograph and only fully resolves on hover, so the grid reads as
   pictures first and copy second. */
.resp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.resp__item {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 2;
  aspect-ratio: 3 / 2;
  background: var(--ink);
}
.resp__item--wide { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.resp__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.resp__item:hover img { transform: scale(1.05); }
.resp__item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2.6rem 1.2rem 1.1rem;
  background: linear-gradient(0deg, rgba(14,16,18,.94) 12%, rgba(14,16,18,.55) 55%, transparent);
  color: #fff;
}
.resp__k {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(.98rem, .9rem + .3vw, 1.2rem);
  letter-spacing: .01em;
}
.resp__item p {
  font-size: .84rem; color: rgba(255,255,255,.76);
  margin-top: .4rem; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s var(--ease);
}
.resp__item--wide p { max-height: 6em; opacity: 1; }
.resp__item:hover p, .resp__item:focus-within p { max-height: 6em; opacity: 1; }
/* gold hairline on hover, matching the company tiles */
.resp__item::after {
  content: ""; position: absolute; inset: 10px; z-index: 3; pointer-events: none;
  border: 1px solid var(--gold); opacity: 0; transform: scale(1.03);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.resp__item:hover::after { opacity: .6; transform: scale(1); }

@media (max-width: 900px) {
  .resp { grid-template-columns: repeat(4, 1fr); }
  .resp__item--wide { grid-column: span 4; grid-row: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .resp { grid-template-columns: repeat(2, 1fr); }
  .resp__item, .resp__item--wide { grid-column: span 2; aspect-ratio: 3 / 2; }
  .resp__item p { max-height: 6em; opacity: 1; }
}

/* ---------- 21e2. Auto-scrolling logo rail ---------------------------
   Two copies of the same track sit side by side and the pair slides by
   exactly half its width, so the loop is seamless. Direction is set by
   --dir: 1 runs left-to-right, -1 runs right-to-left. */
.logorail {
  position: relative;
  overflow: hidden;
  padding-block: clamp(.6rem, 1.5vw, 1.2rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logorail__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(1.6rem, 4vw, 3.6rem);
  animation: logoslide var(--speed, 42s) linear infinite;
  animation-direction: var(--dir, reverse);   /* reverse = left-to-right */
  will-change: transform;
}
.logorail:hover .logorail__track,
.logorail:focus-within .logorail__track { animation-play-state: paused; }
@keyframes logoslide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.logorail__item {
  flex: none;
  width: clamp(140px, 15vw, 200px);
  height: clamp(66px, 7vw, 92px);
  display: grid; place-items: center;
  padding: .4rem .6rem;
  border-radius: var(--radius);
  transition: transform .4s var(--ease), filter .4s var(--ease), opacity .4s var(--ease);
}
/* Marks run in their own colours — these are real certification bodies and
   real buyers, and the colour is most of what makes them recognisable. */
.logorail__item img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.logorail__item:hover { transform: translateY(-4px); }
.logorail__item:hover img { transform: scale(1.04); }

/* If a rail is ever moved onto a dark band, dark wordmarks would vanish —
   so give them a soft light plate to sit on rather than dimming them. */
.bg-ink .logorail__item,
.bg-weave .logorail__item,
.facility .logorail__item {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

/* a name badge stands in wherever no mark has been uploaded yet */
.logorail__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.05rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-label); font-weight: 500;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
  transition: border-color .35s, color .35s;
}
.logorail__badge::before {
  content: ""; width: 5px; height: 5px; flex: none;
  background: var(--gold-deep); transform: rotate(45deg);
}
.logorail__item:hover .logorail__badge { border-color: var(--gold); color: var(--gold-deep); }
.bg-ink .logorail__badge, .bg-weave .logorail__badge { border-color: var(--rule-ink); color: rgba(255,255,255,.7); }
.bg-ink .logorail__badge::before, .bg-weave .logorail__badge::before { background: var(--gold); }

[data-motion="reduced"] .logorail { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
[data-motion="reduced"] .logorail__track { animation: none; }

/* ---------- 22. Quote / inquiry form -------------------------------- */
.quote { position: relative; overflow: hidden; }
.quote__in { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
@media (max-width: 940px) { .quote__in { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .45rem; }
.field > label {
  font-family: var(--font-label); font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 500;
}
.bg-ink .field > label, .bg-weave .field > label { color: rgba(255,255,255,.55); }
.field .req { color: var(--gold-deep); }
.bg-ink .field .req, .bg-weave .field .req { color: var(--gold); }

.input, .textarea, .select {
  width: 100%; padding: .92rem 1rem;
  background: var(--paper); color: var(--text);
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: .96rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.bg-ink .input, .bg-ink .textarea, .bg-ink .select,
.bg-weave .input, .bg-weave .textarea, .bg-weave .select {
  background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.18);
}
.bg-ink .input::placeholder, .bg-ink .textarea::placeholder,
.bg-weave .input::placeholder, .bg-weave .textarea::placeholder { color: rgba(255,255,255,.38); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.textarea { min-height: 132px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A7B12' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.4rem; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--clay); }
.field__err { font-size: .8rem; color: var(--clay); }
.bg-ink .field__err, .bg-weave .field__err { color: #E8927F; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

.form__note { font-size: .82rem; color: var(--text-muted); }
.bg-ink .form__note, .bg-weave .form__note { color: rgba(255,255,255,.5); }

.alert {
  padding: 1rem 1.15rem; border-radius: var(--radius);
  border-left: 2px solid var(--gold); background: var(--gold-soft);
  font-size: .93rem;
}
.alert--ok   { border-color: #2E8B57; background: rgba(46,139,87,.12); }
.alert--err  { border-color: var(--clay); background: rgba(180,67,47,.1); }
.bg-ink .alert, .bg-weave .alert { color: #fff; }

/* Contact method cards */
.reach { display: grid; gap: .8rem; }
.reach__item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.2rem 1.3rem; border: 1px solid var(--rule-ink); border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.reach__item:hover { border-color: rgba(201,162,39,.55); background: rgba(255,255,255,.06); transform: translateX(5px); }
.reach__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: var(--gold); color: #1B1503; border-radius: var(--radius); }
.reach__ico svg { width: 19px; height: 19px; }
.reach__k { font-family: var(--font-label); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.reach__v { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; margin-top: .3rem; word-break: break-word; }
.reach__note { font-size: .8rem; color: rgba(255,255,255,.5); }
.bg-tile .reach__item, .bg-paper .reach__item { background: var(--paper); border-color: var(--rule); }
.bg-tile .reach__v, .bg-paper .reach__v { color: var(--ink); }
.bg-tile .reach__k, .bg-paper .reach__k { color: var(--gold-deep); }
.bg-tile .reach__ico, .bg-paper .reach__ico { background: var(--gold-deep); color: #fff; }
.bg-tile .reach__note, .bg-paper .reach__note { color: var(--text-muted); }

/* ---------- 23. CTA band -------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(201,162,39,.22), transparent 60%),
    linear-gradient(100deg, var(--ink), var(--ink-2));
  color: #fff; padding-block: clamp(2.8rem, 1.8rem + 3vw, 4.4rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--bronze));
  height: 1px;
}
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; }
.cta-band h2 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.5rem); font-weight: 400; color: #fff; max-width: 24ch; }
.cta-band p { color: rgba(255,255,255,.72); margin-top: .7rem; max-width: 52ch; }
.cta-band .btn { --btn-bg: var(--gold); --btn-fg: #1B1503; --btn-ring: var(--gold-deep); }
.cta-band .btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-ring: rgba(255,255,255,.34); }

/* ---------- 24. Footer ---------------------------------------------- */
.footer {
  position: relative;
  background: var(--ink); color: var(--on-ink);
  padding-top: clamp(3.2rem, 2rem + 3vw, 5rem);
  border-top: 1px solid rgba(201, 162, 39, .28);
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(1.6rem, 1rem + 2.5vw, 3.2rem); }
.footer h4 {
  font-family: var(--font-label); font-weight: 500; font-size: .66rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.3rem;
}
.footer a { transition: color .25s, padding-left .25s; }
.footer a:hover { color: var(--gold); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-size: .92rem; }
/* Company profile download — the one thing a buyer takes away with them */
.profile-dl {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.4rem; margin-bottom: .4rem;
  border: 1px solid rgba(201, 162, 39, .42); border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(201,162,39,.10), transparent 70%);
  justify-self: start;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.profile-dl:hover { border-color: var(--gold); background: rgba(201,162,39,.16); transform: translateY(-2px); }
.profile-dl__ico {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  background: var(--gold); color: #1B1503; border-radius: 50%;
}
.profile-dl__ico svg { width: 19px; height: 19px; }
.profile-dl__k {
  display: block; font-family: var(--font-label); font-size: .58rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.profile-dl__v {
  display: block; font-family: var(--font-display); font-size: 1.06rem;
  color: #fff; margin-top: .18rem;
}
.profile-dl__n {
  display: block; font-family: var(--font-label); font-size: .66rem;
  color: rgba(255,255,255,.5); margin-top: .18rem; letter-spacing: .08em;
}

.footer__tag {
  display: block; font-family: var(--font-label); font-size: .58rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .25rem;
}
.footer__links a:hover { padding-left: 7px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--gold); }
.footer__brand p { font-size: .91rem; margin-top: 1.2rem; max-width: 40ch; line-height: 1.75; }
/* Map runs in Google's own colours — it reads as a real, current map that
   way, and the gold hairline is enough to tie it to the footer. */
.footer__map {
  border: 1px solid rgba(201, 162, 39, .38);
  border-radius: var(--radius);
  overflow: hidden; height: 190px;
  background: var(--ink-2);
}
.footer__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer__bottom {
  margin-top: clamp(2.4rem, 1.6rem + 2vw, 3.6rem);
  border-top: 1px solid var(--rule-ink);
  padding-block: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-label); font-size: .72rem; letter-spacing: .06em; color: rgba(255,255,255,.45);
}
.social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--rule-ink); border-radius: var(--radius);
  transition: background .25s, border-color .25s, transform .25s, color .25s;
}
.social a:hover { background: var(--gold); color: #1B1503; border-color: var(--gold); transform: translateY(-3px); }
.social svg { width: 16px; height: 16px; }
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 25. Floating contact dock ------------------------------- */
.dock {
  position: fixed; z-index: 70; right: 1rem; bottom: 1rem;
  display: grid; gap: .55rem;
}
.dock a {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.dock a:hover { transform: scale(1.1) translateY(-2px); }
.dock svg { width: 22px; height: 22px; }
.dock .d-wa   { background: #25D366; }
.dock .d-call { background: var(--bronze); }
.dock .d-mail { background: var(--ink); box-shadow: 0 0 0 1px var(--rule-ink), var(--shadow-md); }
.dock .d-top  { background: var(--gold); color: #1B1503; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.dock .d-top.is-on { opacity: 1; pointer-events: auto; }

@media (max-width: 720px) {
  .dock { right: 0; left: 0; bottom: 0; grid-auto-flow: column; gap: 0;
          background: var(--ink); border-top: 1px solid rgba(201,162,39,.4); }
  .dock a { width: auto; height: 58px; border-radius: 0; box-shadow: none; flex-direction: column; gap: 3px;
            font-family: var(--font-label); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; }
  .dock a:hover { transform: none; }
  .dock .d-top { display: none; }
  body { padding-bottom: 58px; }
}
.dock__label { display: none; }
@media (max-width: 720px) { .dock__label { display: block; } }

/* ---------- 25b. The facility: pinned image, scrolling narrative ----- */
.facility {
  position: relative;
  background:
    radial-gradient(80% 60% at 88% 8%, rgba(8,106,189,.20), transparent 62%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: #fff;
  overflow: clip;
}
.facility h2, .facility h3, .facility h4 { color: #fff; }
.facility .eyebrow { color: var(--blue-lift); }
.facility .sec-head h2 { color: var(--gold); }
.facility__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }

/* the image column pins while the copy scrolls past it */
.facility__stage {
  position: sticky; top: 96px;
  aspect-ratio: 3 / 2; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.facility__stage::after {
  content: ""; position: absolute; inset: 14px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(168, 216, 255, .5);
}
.facility__plate {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.facility__plate.is-on { opacity: 1; transform: scale(1); }
.facility__wash {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(10,20,32,.7));
}
.facility__count {
  position: absolute; left: 16px; bottom: 14px; z-index: 4;
  font-family: var(--font-label); font-size: .64rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--blue-lift);
}

.facility__steps { display: grid; gap: clamp(1.2rem, 3vh, 2.2rem); }
.fstep {
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.3rem);
  border: 1px solid var(--rule-ink); border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  transition: border-color .45s var(--ease), background .45s var(--ease), transform .45s var(--ease);
}
.fstep.is-current {
  border-color: rgba(8, 106, 189, .75);
  background: rgba(8, 106, 189, .1);
  transform: translateX(6px);
}
.fstep__k {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-label); font-size: .62rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--blue-lift); margin-bottom: .7rem;
}
.fstep__k i {
  width: 22px; height: 1px; background: currentColor; display: block;
  transition: width .45s var(--ease);
}
.fstep.is-current .fstep__k i { width: 40px; }
.fstep h3 { font-size: var(--fs-h3); font-weight: 400; letter-spacing: .01em; }
.fstep p { color: rgba(255,255,255,.66); font-size: .93rem; margin-top: .6rem; }
@media (max-width: 900px) {
  .facility__in { grid-template-columns: 1fr; }
  .facility__stage { position: relative; top: 0; }
}

/* ---------- 25c. Cursor spotlight on dark sections ------------------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%),
              rgba(201, 162, 39, .13), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.spot.is-lit::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }
@media (hover: none) { .spot::before { display: none; } }

/* ---------- 25d. 3D tilt ---------------------------------------------- */
/* will-change is applied by JS on pointer-enter and dropped on leave —
   promoting every card permanently costs GPU memory for no benefit. */
.tilt { transform-style: preserve-3d; }
.tilt-in { transform: translateZ(28px); }

/* ---------- 26. Scroll reveal + motion ------------------------------ */

/* Compositor hints, scoped so a layer is only held while it can be seen.
   JS toggles .is-onscreen on the hero and .is-near on the facility. */
.hero.is-onscreen .hero__slides { will-change: transform; }
.hero.is-onscreen .hero__media  { will-change: transform; }
.hero__media { backface-visibility: hidden; }
.facility.is-near .facility__plate { will-change: opacity, transform; }

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .78s var(--ease-enter), transform .92s var(--ease-enter);
}
[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
[data-reveal="scale"] { transform: scale3d(.965, .965, 1); }
[data-reveal="mask"]  { opacity: 1; transform: none; }
/* single settled state for every variant */
[data-reveal].is-in { opacity: 1; transform: translate3d(0, 0, 0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }
[data-reveal-delay="6"] { transition-delay: .6s; }

/* Word-by-word rise, shared by the hero and every section heading.
   JS wraps each word in .w > i and stamps the per-word delay. */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.w > i {
  display: inline-block; font-style: inherit;
  transform: translateY(104%);
  transition: transform .8s var(--ease-out);
}
.is-in .w > i, .w.is-in > i { transform: translateY(0); }

/* Parallax: JS writes --shift and manages will-change per element, so the
   compositor only holds a layer for blocks that are actually on screen. */
[data-parallax] > .m,
[data-parallax] > img { transform: translate3d(0, var(--shift, 0px), 0) scale(1.14); }

/* Marquee for the certification / partner strip */
.marquee {
  overflow: hidden; position: relative; padding-block: 1.6rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 3.4rem; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display); font-weight: 400; font-size: 1.35rem;
  letter-spacing: .1em; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 1rem; white-space: nowrap;
  transition: color .3s;
}
.marquee__item:hover { color: var(--gold-deep); }
.marquee__item::after { content: ""; width: 5px; height: 5px; background: var(--gold-deep); transform: rotate(45deg); flex: none; }
.bg-ink .marquee__item, .bg-weave .marquee__item { color: rgba(255,255,255,.6); }
.bg-ink .marquee__item::after, .bg-weave .marquee__item::after { background: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Big soft numeral behind a section header */
.ghost-n {
  position: absolute; right: 2%; top: -.2em; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-size: clamp(7rem, 20vw, 17rem);
  line-height: .8; color: var(--gold); opacity: .05; letter-spacing: -.04em;
}

/* ---------- 27. Utilities ------------------------------------------- */
.tag {
  display: inline-block; padding: .32rem .65rem; border-radius: 2px;
  background: var(--sand-2); color: var(--text-muted);
  font-family: var(--font-label); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
}
.empty {
  padding: 2.8rem 1.4rem; text-align: center; border: 1px dashed var(--rule);
  border-radius: var(--radius); color: var(--text-muted);
}
.bg-ink .empty, .bg-weave .empty { border-color: var(--rule-ink); }
.divider { height: 1px; background: var(--rule); border: 0; margin-block: 2rem; }
.bg-ink .divider, .bg-weave .divider { background: var(--rule-ink); }
.hide { display: none !important; }
.relative { position: relative; }

.headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 28. Motion preferences + print -------------------------- */
/* Reduced motion.
 *
 * The site ships with full motion on. This block applies only when a
 * visitor turns it down with the Motion toggle, which sets
 * [data-motion="reduced"] on <html>.
 *
 * It cuts the motion that actually causes trouble for vestibular
 * disorders: parallax, zoom, sliding, auto-playing movement and tilt.
 * Plain opacity fades are kept, because a page where nothing arrives at
 * all reads as broken rather than as calm.
 */
[data-motion="reduced"] {
  scroll-behavior: auto;
}
[data-motion="reduced"] [data-reveal] {
  opacity: 0;
  transform: none !important;
  transition: opacity .45s linear !important;
}
[data-motion="reduced"] [data-reveal].is-in { opacity: 1; }
[data-motion="reduced"] [data-reveal="mask"] > img,
[data-motion="reduced"] [data-reveal="mask"] > .m { clip-path: none !important; transform: none !important; }
[data-motion="reduced"] [data-parallax] > .m,
[data-motion="reduced"] [data-parallax] > img { transform: none !important; }
[data-motion="reduced"] .hero h1 .w > i,
[data-motion="reduced"] .w > i { transform: none !important; }
[data-motion="reduced"] .hero__slide { clip-path: none !important; transition: opacity .5s linear, visibility .5s; }
[data-motion="reduced"] .hero__media { animation: none !important; transform: none !important; }
[data-motion="reduced"] .hero__slides,
[data-motion="reduced"] .hero__body { transform: none !important; opacity: 1 !important; }
[data-motion="reduced"] .hero__cue i { animation: none !important; }
[data-motion="reduced"] .facility__plate { transform: none !important; transition: opacity .4s linear !important; }
[data-motion="reduced"] .spot::before { display: none !important; }
[data-motion="reduced"] .tilt { transform: none !important; }
[data-motion="reduced"] .hero__dot::after { animation: none !important; }
[data-motion="reduced"] .marquee__track { animation: none !important; }

/* Without JavaScript nothing would ever add .is-in, so never hide content
   on the strength of a class that may never arrive. */
html:not(.js) [data-reveal],
html:not(.js) [data-motion="reduced"] [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- Motion toggle -------------------------------------------- */
.motion-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .8rem;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--rule); border-radius: 100px;
  font-family: var(--font-label); font-size: .6rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: color .25s, border-color .25s, background .25s;
}
.motion-toggle:hover { color: var(--gold-deep); border-color: var(--gold); }
.motion-toggle__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--text-muted); transition: background .25s, box-shadow .25s;
}
[data-motion="full"] .motion-toggle__dot { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
[data-motion="full"] .motion-toggle__off { display: none; }
[data-motion="reduced"] .motion-toggle__on { display: none; }
.motion-toggle--light { color: rgba(255,255,255,.7); border-color: var(--rule-ink); justify-content: center; width: 100%; }
.motion-toggle--light:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 1180px) { .header .motion-toggle { display: none; } }

@media print {
  .header, .topbar, .dock, .walkway, .progress, .hero__controls, .cta-band, .footer__map { display: none !important; }
  body { color: #000; }
  .bg-ink, .bg-weave { background: #fff !important; color: #000 !important; }
}
