/* ==========================================================================
   Noble Build Creations - site.css
   Design direction: "SPEC SHEET" (editorial-industrial trade dossier).
   Light theme only. One committed look. No dark-mode toggle.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Ground + ink ------------------------------------------------------- */
  --paper:        #f7f4ee;   /* warm paper off-white, page ground */
  --paper-2:      #efeae1;   /* recessed band / tinted section */
  --paper-3:      #e6e0d4;   /* card hover ground, input fill */
  --ink:          #1d2626;   /* warm teal-charcoal, all body + headings */
  --ink-muted:    #4a5555;   /* secondary body copy (7.0:1 on paper) */

  /* ACCENT: extracted from the NBC logo (deep pine teal, dominant colour).
     10.2:1 on --paper. White text on accent = 11.2:1. Safe for body links,
     primary buttons, active nav and the capability number fill. */
  --accent:       #204040;
  --accent-deep:  #16302f;   /* pressed / hover state of the accent */
  --accent-tint:  #e4e9e6;   /* faint accent wash for active nav ground */

  /* Secondary accent: logo's muted brass. Stamps, index numbers, rules. */
  --brass:        #807050;   /* 4.4:1 on paper - LARGE text + borders only */
  --brass-deep:   #6b5c3f;   /* 5.9:1 on paper - small mono label text */

  /* Footer ground (page terminus, cream logo variant sits here) --------- */
  --foot-bg:      #1a2b2b;
  --foot-ink:     #f2eee5;
  --foot-muted:   #b3aea2;   /* 6.7:1 on --foot-bg */
  --foot-rule:    rgba(242, 238, 229, 0.18);

  /* Rules (hairlines) --------------------------------------------------- */
  --hair:         1px;                        /* the only px unit allowed */
  --rule:         rgba(29, 38, 38, 0.16);
  --rule-mid:     rgba(29, 38, 38, 0.28);
  --rule-strong:  rgba(29, 38, 38, 0.55);

  /* Spacing scale ------------------------------------------------------- */
  --s1: 0.375rem;
  --s2: 0.625rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4rem;
  --s8: 6rem;
  --s9: 8rem;

  /* Type ramp (root font-size is fluid, so most steps are plain rem) ----- */
  --t-mono:    0.6875rem;   /* mono labels, stamps, captions */
  --t-mono-lg: 0.8125rem;
  --t-sm:      0.875rem;
  --t-base:    1rem;
  --t-md:      1.125rem;
  --t-lg:      1.3125rem;
  --t-display: clamp(2.25rem, 1.45rem + 2.4vw, 3.4rem);   /* h1 */
  --t-h2:      clamp(1.65rem, 1.25rem + 1.25vw, 2.4rem);
  --t-h3:      clamp(1.125rem, 1.02rem + 0.35vw, 1.375rem);
  --t-index:   clamp(2.25rem, 1.6rem + 2vw, 3.25rem);     /* capability 01-04 */

  /* Measures ------------------------------------------------------------ */
  --measure: 62ch;
  --wrap:    84rem;

  /* Motion -------------------------------------------------------------- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 140ms;
  --dur-ui:   220ms;
  --dur-rv:   400ms;

  /* Layers -------------------------------------------------------------- */
  --z-head:    100;
  --z-menu:    110;
  --z-overlay: 120;
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  /* The single fluid root. Every other size is rem/em off this. */
  font-size: clamp(13px, 0.3vw + 11.7px, 20px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--t-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 96;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: var(--hair);
}

a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--accent); color: var(--paper); }

/* Skip link ---------------------------------------------------------------- */
.skip {
  position: absolute;
  left: var(--s3);
  top: var(--s3);
  z-index: var(--z-overlay);
  padding: var(--s2) var(--s3);
  background: var(--accent);
  color: var(--paper);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform var(--dur-ui) var(--ease-out);
}

.skip:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s4);
}

@media (min-width: 48em) {
  .wrap { padding-inline: var(--s6); }
}

.section { padding-block: var(--s8); }

.section + .section { border-top: var(--hair) solid var(--rule); }

.section--tint { background: var(--paper-2); }

/* Bare page-head (h1 + stamp row, no hero media): opens at hero rhythm
   (--s7, matches .hero's top pad) and closes tight like .hero--intro,
   instead of the full section's --s8/--s8 void on both sides. */
.section--head { padding-block: var(--s7) var(--s5); }

.measure { max-width: var(--measure); }

.lede {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink);
}

.body-muted { color: var(--ink-muted); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. SECTION HEADERS (mono index number + serif title)
   -------------------------------------------------------------------------- */

.sec-head {
  display: grid;
  gap: var(--s3);
  padding-bottom: var(--s5);
  margin-bottom: var(--s6);
  border-bottom: var(--hair) solid var(--rule-mid);
}

.sec-head__row {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
}

.sec-num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brass-deep);
  flex: 0 0 auto;
  padding-top: 0.35em;
}

.sec-head h2 { font-size: var(--t-h2); }

.sec-head__note {
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.85em 1.6em;
  border: var(--hair) solid transparent;
  border-radius: 0;                       /* shape lock: everything is square */
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur-ui) var(--ease-out),
              color var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--paper);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}

.btn--quiet {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn--quiet:hover { color: var(--accent-deep); text-decoration: underline; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

/* --------------------------------------------------------------------------
   6. STAMP CHIPS
   -------------------------------------------------------------------------- */

.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.stamp {
  display: inline-block;
  padding: 0.45em 0.85em;
  border: var(--hair) solid var(--brass);
  color: var(--brass-deep);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   7. IMAGE PLACEHOLDERS (.ph) - art-directed, never "broken"
   -------------------------------------------------------------------------- */

.ph {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: var(--hair) solid var(--rule-mid);
  background-color: var(--paper-2);
  background-image:
    linear-gradient(to top right,
      transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right,
      transparent calc(50% - 0.5px), var(--rule) 50%, transparent calc(50% + 0.5px));
  overflow: hidden;
}

.ph--wide  { aspect-ratio: 21 / 9; }
.ph--tall  { aspect-ratio: 4 / 5; }
.ph--square{ aspect-ratio: 1 / 1; }

.ph__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: calc(100% - var(--s4));
  padding: 0.5em 0.75em;
  background: var(--paper);
  border-top: var(--hair) solid var(--rule-mid);
  border-right: var(--hair) solid var(--rule-mid);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7b. FIGURES (.fig) - real images, same frame language as .ph
   -------------------------------------------------------------------------- */

.fig {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: var(--hair) solid var(--rule-mid);
  background-color: var(--paper-2);
  overflow: hidden;
}

.fig--wide   { aspect-ratio: 21 / 9; }
.fig--tall   { aspect-ratio: 4 / 5; }
.fig--square { aspect-ratio: 1 / 1; }

.fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. HEADER + NAVIGATION
   -------------------------------------------------------------------------- */

.head-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--hair);
  height: var(--hair);
  pointer-events: none;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-head);
  background: var(--paper);
  border-bottom: var(--hair) solid var(--rule);
  transition: border-color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}

.site-head.is-stuck {
  border-bottom-color: var(--rule-mid);
  box-shadow: 0 0.25rem 1.25rem rgba(29, 38, 38, 0.07);
}

.head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 4.25rem;
}

.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand img { height: 2rem; width: auto; }

/* Desktop nav -------------------------------------------------------------- */

.nav-desk { display: none; }

@media (min-width: 64em) {
  .nav-desk { display: block; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav-link {
  display: inline-block;
  padding: 0.35em 0;
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out);
}

.nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--brass);
}

/* Capabilities dropdown ---------------------------------------------------- */

.nav-drop { position: relative; }

.nav-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur-ui) var(--ease-out),
              border-color var(--dur-ui) var(--ease-out);
}

.nav-drop__btn:hover,
.nav-drop__btn[aria-expanded="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-drop__caret {
  width: 0.45em;
  height: 0.45em;
  border-right: var(--hair) solid currentColor;
  border-bottom: var(--hair) solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform var(--dur-ui) var(--ease-out);
}

.nav-drop__btn[aria-expanded="true"] .nav-drop__caret {
  transform: translateY(0.05em) rotate(225deg);
}

.nav-drop__menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -1rem;
  z-index: var(--z-menu);
  min-width: 22rem;
  padding: var(--s2) 0;
  background: var(--paper);
  border: var(--hair) solid var(--rule-strong);
  box-shadow: 0 1.5rem 3.5rem rgba(29, 38, 38, 0.18), 0 0.25rem 0.75rem rgba(29, 38, 38, 0.12);
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.99);
  transform-origin: top left;
  visibility: hidden;
  transition: opacity var(--dur-ui) var(--ease-out),
              transform var(--dur-ui) var(--ease-out),
              visibility 0s linear var(--dur-ui);
}

.nav-drop__btn[aria-expanded="true"] + .nav-drop__menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}

.nav-drop__menu a {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: 0.7em 1.15em;
  color: var(--ink);
  font-size: var(--t-sm);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.nav-drop__menu a:hover {
  background: var(--paper-2);
  color: var(--accent);
  text-decoration: none;
}

.nav-drop__menu .num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  color: var(--brass-deep);
}

/* Scrim: dims page content below the header while the capabilities dropdown
   is open, so the panel reads as a deliberate top layer, not a floating
   overlap. Sits under the header/menu stack (--z-head 100, --z-menu 110). */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(29, 38, 38, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms var(--ease-out), visibility 0s linear 150ms;
}

.nav-scrim.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .nav-scrim { transition: none; }
}

/* Hamburger ---------------------------------------------------------------- */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  background: none;
  border: var(--hair) solid var(--rule-mid);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: var(--hair);
  width: 100%;
  background: var(--ink);
  transition: transform var(--dur-ui) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.335rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.335rem) rotate(-45deg); }

/* Declared after .nav-toggle so it wins on equal specificity. */
@media (min-width: 64em) {
  .nav-toggle { display: none; }
}

/* Mobile overlay menu ------------------------------------------------------ */

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity var(--dur-ui) var(--ease-out),
              transform var(--dur-ui) var(--ease-out),
              visibility 0s linear var(--dur-ui);
  overflow-y: auto;
}

.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 4.25rem;
  border-bottom: var(--hair) solid var(--rule);
}

.nav-panel__body { padding-block: var(--s5) var(--s7); }

.nav-panel__list > li { border-bottom: var(--hair) solid var(--rule); }
.nav-panel__list > li:last-child { border-bottom: 0; }

.nav-panel__list > li > a {
  display: block;
  padding: 0.9em 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 40;
  font-size: var(--t-lg);
  font-weight: 500;
}

.nav-panel__sub { padding: 0 0 var(--s4) var(--s3); }

.nav-panel__sub li a {
  display: flex;
  gap: var(--s3);
  padding: 0.42em 0;
  color: var(--ink-muted);
  font-size: var(--t-sm);
}

.nav-panel__sub li a:hover { color: var(--accent); }

.nav-panel__sub .num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  color: var(--brass-deep);
}

.nav-panel__foot {
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: var(--hair) solid var(--rule-mid);
  display: grid;
  gap: var(--s3);
}

body.menu-open { overflow: hidden; }

@media (min-width: 64em) {
  .nav-panel { display: none; }
}

/* --------------------------------------------------------------------------
   9. HERO
   -------------------------------------------------------------------------- */

.hero { padding-block: var(--s7) var(--s8); }

.hero h1 {
  font-size: var(--t-display);
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  max-width: 27ch;
  margin-bottom: var(--s5);
}

.hero__copy {
  display: grid;
  gap: var(--s3);
  max-width: var(--measure);
  margin-bottom: var(--s5);
}

.hero__media { margin-top: var(--s7); }

@media (min-width: 62em) {
  .hero { padding-block: var(--s7) var(--s8); }
  .hero__copy { max-width: 58ch; }
}

/* --------------------------------------------------------------------------
   10. MARQUEE (industries strip)
   -------------------------------------------------------------------------- */

.marquee {
  border-top: var(--hair) solid var(--rule-mid);
  border-bottom: var(--hair) solid var(--rule-mid);
  background: var(--paper-2);
  overflow: hidden;
  padding-block: var(--s3);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-run 46s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  padding-inline: var(--s4);
  border-left: var(--hair) solid var(--rule-mid);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  line-height: 1.4;
}

@keyframes marquee-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   11. CAPABILITY CARDS (01-04)
   -------------------------------------------------------------------------- */

.cap-grid {
  display: grid;
  gap: var(--hair);
  background: var(--rule);
  border: var(--hair) solid var(--rule);
}

@media (min-width: 46em) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cap-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5);
  background: var(--paper);
  transition: background-color var(--dur-ui) var(--ease-out),
              box-shadow var(--dur-ui) var(--ease-out);
}

.cap-card__num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-index);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brass);            /* fallback: solid brass number */
  transition: color var(--dur-ui) var(--ease-out),
              -webkit-text-stroke-color var(--dur-ui) var(--ease-out);
}

/* Outlined number where text-stroke is supported; it fills accent on hover. */
@supports (-webkit-text-stroke: 1px currentColor) {
  .cap-card__num {
    color: transparent;
    -webkit-text-stroke: var(--hair) var(--brass);
  }
}

.cap-card h3 { font-size: var(--t-h3); }

.cap-card p {
  color: var(--ink-muted);
  max-width: 44ch;
  flex: 1 1 auto;
}

.cap-card__link { margin-top: var(--s2); }

@media (hover: hover) and (pointer: fine) {
  .cap-card:hover {
    background: var(--paper-2);
    box-shadow: inset 0 0 0 var(--hair) var(--rule-strong);
  }
  .cap-card:hover .cap-card__num {
    color: var(--accent);
    -webkit-text-stroke-color: var(--accent);
  }
}

.cap-card:focus-within {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 var(--hair) var(--rule-strong);
}

.cap-card:focus-within .cap-card__num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}

/* --------------------------------------------------------------------------
   12. SPEC-SHEET TABLE
   -------------------------------------------------------------------------- */

.spec-wrap { overflow-x: auto; }

.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  text-align: left;
}

.spec caption {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  text-align: left;
  padding-bottom: var(--s3);
}

.spec th,
.spec td {
  padding: var(--s3) var(--s4) var(--s3) 0;
  vertical-align: top;
}

.spec thead th {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: var(--hair) solid var(--rule-strong);
  white-space: nowrap;
}

.spec tbody tr + tr th,
.spec tbody tr + tr td { border-top: var(--hair) solid var(--rule); }

.spec tbody th {
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--ink);
}

.spec tbody td { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   13. HAIRLINE FACT GRID (Why NBC style 2x2)
   -------------------------------------------------------------------------- */

.fact-grid {
  display: grid;
  gap: var(--s5) var(--s7);
}

@media (min-width: 46em) {
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fact {
  display: grid;
  gap: var(--s2);
  padding-top: var(--s4);
  border-top: var(--hair) solid var(--rule-strong);
}

.fact h3 { font-size: var(--t-h3); }
.fact p  { color: var(--ink-muted); max-width: 46ch; }

/* --------------------------------------------------------------------------
   14. PROCESS ROW (numbered steps)
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--s5);
}

@media (min-width: 34em) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
}

@media (min-width: 62em) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
}

.step {
  display: grid;
  gap: var(--s2);
  align-content: start;
  padding-top: var(--s4);
  border-top: var(--hair) solid var(--rule-mid);
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: calc(var(--hair) * -1);
  left: 0;
  width: 2.5rem;
  height: var(--hair);
  background: var(--brass);
}

.step__num {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brass-deep);
}

.step h3 { font-size: var(--t-h3); }
.step p  { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   15. WORK GRID (asymmetric, exactly 3 cells)
   -------------------------------------------------------------------------- */

.work-grid { display: grid; gap: var(--s5); }

@media (min-width: 48em) {
  .work-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--s5) var(--s6);
  }
  .work-item--lead { grid-row: span 2; }
}

.work-item { display: grid; gap: var(--s3); align-content: start; }

.work-item h3 { font-size: var(--t-h3); }
.work-item p  { color: var(--ink-muted); }

.work-item__meta {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

/* --------------------------------------------------------------------------
   16. MARKETS / ROUTE ARC
   -------------------------------------------------------------------------- */

.markets { display: grid; gap: var(--s6); align-items: center; }

@media (min-width: 62em) {
  .markets { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s8); }
}

.route {
  width: 100%;
  height: auto;
  border: var(--hair) solid var(--rule);
  background: var(--paper-2);
  padding: var(--s4);
}

.route__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-linecap: round;
}

.route__node {
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 1.25;
}

.route__node--origin { fill: var(--accent); }

.route__label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;                 /* SVG user units, scaled by viewBox */
  letter-spacing: 1.4px;
  text-transform: uppercase;
  fill: var(--ink);
}

.route__sub {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 1px;
  fill: var(--ink-muted);
}

.route__grid { stroke: var(--rule); stroke-width: 1; }

/* Below 34em the SVG scales down hard, so the labels are enlarged in user
   units and re-anchored inward to stay legible and inside the viewBox. */
@media (max-width: 34em) {
  .route__label { font-size: 26px; letter-spacing: 1.5px; }
  .route__sub   { font-size: 20px; letter-spacing: 1px; }
  .route__label--start { text-anchor: start; }
  .route__label--end,
  .route__sub--end     { text-anchor: end; }
}

/* --------------------------------------------------------------------------
   17. CLOSING ENQUIRY BLOCK
   -------------------------------------------------------------------------- */

.enquiry {
  display: grid;
  gap: var(--s5);
  padding: var(--s7) var(--s5);
  border: var(--hair) solid var(--rule-strong);
  background: var(--paper);
}

@media (min-width: 62em) {
  .enquiry {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: var(--s8);
    padding: var(--s8) var(--s7);
  }
}

.enquiry h2 { font-size: var(--t-h2); max-width: 18ch; }
.enquiry p  { color: var(--ink-muted); max-width: 52ch; margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */

.site-foot {
  background: var(--foot-bg);
  color: var(--foot-ink);
  padding-block: var(--s8) var(--s5);
}

.site-foot a { color: var(--foot-ink); }
.site-foot a:hover { color: var(--paper); text-decoration: underline; }
.site-foot :focus-visible { outline-color: var(--foot-ink); }

.foot-top {
  padding-bottom: var(--s6);
  border-bottom: var(--hair) solid var(--foot-rule);
}

.foot-brand img { height: 2.25rem; width: auto; margin-bottom: var(--s4); }

.foot-brand p {
  color: var(--foot-muted);
  max-width: 60ch;
  font-size: var(--t-sm);
}

.foot-cols {
  display: grid;
  gap: var(--s6) var(--s5);
  padding-top: var(--s6);
}

@media (min-width: 34em) {
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 62em) {
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.foot-col h2 {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foot-muted);
  margin-bottom: var(--s3);
}

.foot-col li + li { margin-top: 0.5em; }

.foot-col li a,
.foot-col address {
  font-size: var(--t-sm);
  font-style: normal;
  line-height: 1.7;
  color: var(--foot-ink);
}

.foot-col address a { display: block; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: var(--hair) solid var(--foot-rule);
}

.foot-base p,
.foot-base a {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foot-muted);
}

.foot-base a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--foot-muted);
}

.foot-base a:hover {
  color: var(--foot-ink);
  text-decoration-color: var(--foot-ink);
}

/* --------------------------------------------------------------------------
   19. SCROLL REVEAL
   -------------------------------------------------------------------------- */

.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-rv) var(--ease-out),
              transform var(--dur-rv) var(--ease-out);
}

.rv.is-in { opacity: 1; transform: translateY(0); }

/* Staggered children: the parent carries .rv-stagger, children carry .rv */
.rv-stagger > .rv:nth-child(1) { transition-delay: 0ms; }
.rv-stagger > .rv:nth-child(2) { transition-delay: 60ms; }
.rv-stagger > .rv:nth-child(3) { transition-delay: 120ms; }
.rv-stagger > .rv:nth-child(4) { transition-delay: 180ms; }
.rv-stagger > .rv:nth-child(5) { transition-delay: 240ms; }
.rv-stagger > .rv:nth-child(6) { transition-delay: 300ms; }

/* No-JS fallback: never hide content if the observer never runs. */
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .route__line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}

/* --------------------------------------------------------------------------
   20. FAQ ACCORDION + CAPABILITY-NAV ACTIVE STATE
   (merged from garment-manufacturing / hospitality-supplies / trade-sourcing /
   branding-services — identical block in all 4, deduped to one copy)
   -------------------------------------------------------------------------- */

.nav-drop__btn[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--brass);
}
.nav-drop__menu a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-tint);
}
.nav-panel__list > li > a[aria-current="page"],
.nav-panel__sub li a[aria-current="page"] {
  color: var(--accent);
}
.faq { display: grid; }
.faq-item { border-top: var(--hair) solid var(--rule-mid); }
.faq-item:last-child { border-bottom: var(--hair) solid var(--rule-mid); }
.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) 0;
  cursor: pointer;
  list-style: none;
  font-family: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-variation-settings: "opsz" 40;
  font-size: var(--t-h3);
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-md);
  color: var(--brass-deep);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item__a {
  margin: 0 0 var(--s4);
  max-width: var(--measure);
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   21. LIST-DASH, TIMELINE & DIRECTOR CARDS
   (merged from about + why-nbc — .list-dash appeared in both; kept about's
   version, the superset, which adds the `li strong` rule why-nbc lacked)
   -------------------------------------------------------------------------- */

.list-dash { display: grid; gap: var(--s3); }
.list-dash li {
  position: relative;
  padding-left: 1.5em;
  color: var(--ink-muted);
  max-width: var(--measure);
}
.list-dash li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--brass-deep);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.list-dash li strong { color: var(--ink); }

.timeline {
  position: relative;
  display: grid;
  gap: var(--s6);
  padding-left: var(--s5);
  border-left: var(--hair) solid var(--rule-mid);
  max-width: var(--measure);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.3em;
  left: calc(var(--s5) * -1 - 4px);
  width: 7px;
  height: 7px;
  background: var(--paper);
  border: var(--hair) solid var(--accent);
}
.timeline__num {
  display: block;
  margin-bottom: var(--s2);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  color: var(--brass-deep);
}
.timeline__item p { color: var(--ink-muted); }

.director-grid { display: grid; gap: var(--s6) var(--s5); }
@media (min-width: 46em) {
  .director-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.director { display: grid; gap: var(--s3); }
.director__photo {
  aspect-ratio: 1 / 1;
  border: var(--hair) solid var(--rule-mid);
  overflow: hidden;
  background: var(--paper-2);
}
.director__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.director h3 { font-size: var(--t-h3); }
.director__title { color: var(--brass-deep); }
.director p:last-child { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   22. INDUSTRY CHIP LABEL (merged from industries-markets)
   -------------------------------------------------------------------------- */

/* Industry chip label above each .stamps row — reuses .mono token recipe. */
.chip-label { margin-top: var(--s4); margin-bottom: var(--s2); }

/* --------------------------------------------------------------------------
   23. CASE GRID (merged from our-work)
   -------------------------------------------------------------------------- */

.case-grid { display: grid; gap: var(--s7) var(--s6); }
@media (min-width: 46em) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.case { display: grid; gap: var(--s3); align-content: start; }
.case h3 { font-size: var(--t-h3); }
.case-fields { display: grid; gap: 0; }
.case-fields dt {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: var(--s3);
}
.case-fields dd { margin: 0.25em 0 0; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   24. ENQUIRY FORM + CONTACT DETAILS (merged from contact)
   Built on the existing tokens only; one new token (--err) declared below.
   -------------------------------------------------------------------------- */

:root { --err: #8c2f22; }   /* 6.6:1 on --paper — inline field errors */

/* Active state for the nav Contact button ---------------------------------- */
.btn--primary[aria-current="page"] {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* Intro: no hero media on this page, so the block closes tighter. */
.hero--intro { padding-block: var(--s7) var(--s5); }

/* Intro hero right column: compact contact card, fills the dead space beside
   the lede. Stacks under the copy below 64em (default block flow). */
@media (min-width: 64em) {
  .hero--intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr);
    gap: var(--s8);
    align-items: start;
  }
}

.hero-card {
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  margin-top: var(--s6);
  border: var(--hair) solid var(--rule-mid);
  background: var(--paper-2);
}

@media (min-width: 64em) {
  .hero-card { margin-top: 0; }
}

/* Notices ------------------------------------------------------------------ */
.form-notice {
  padding: var(--s4);
  margin-bottom: var(--s6);
  border: var(--hair) solid var(--rule-strong);
  background: var(--paper-2);
  font-size: var(--t-sm);
  color: var(--ink);
}
.form-notice__label {
  display: block;
  margin-bottom: var(--s1);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.form-notice--ok  { border-color: var(--accent); }
.form-notice--ok  .form-notice__label { color: var(--accent); }
.form-notice--err { border-color: var(--err); }
.form-notice--err .form-notice__label { color: var(--err); }

/* Field grid --------------------------------------------------------------- */
.form { display: grid; gap: var(--s6); }

.form-grid { display: grid; gap: var(--s4) var(--s5); }

@media (min-width: 46em) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: var(--s1); align-content: start; }

.field > label,
.cond > legend,
.checks > legend {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.field__req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  border: var(--hair) solid var(--rule-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  font-size: var(--t-sm);
  line-height: 1.5;
  transition: border-color var(--dur-ui) var(--ease-out);
}

.field textarea { min-height: 9rem; resize: vertical; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--rule-mid); }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

.field input[type="file"] {
  padding: 0.55em;
  background: var(--paper-2);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono-lg);
}

.field__hint {
  font-size: var(--t-mono-lg);
  line-height: 1.5;
  color: var(--ink-muted);
}

.field__err {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--t-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--err);
}
.field__err:empty { display: none; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--err); }

/* Conditional capability fieldsets ----------------------------------------- */
.cond {
  padding: var(--s5) var(--s4) var(--s4);
  margin: 0;
  border: var(--hair) solid var(--rule-mid);
  background: var(--paper-2);
}

.cond[hidden] { display: none; }

.cond > legend { padding-inline: var(--s2); background: var(--paper); border: var(--hair) solid var(--rule-mid); }

.cond .field input,
.cond .field select,
.cond .field textarea { background: var(--paper); }

/* Checkbox group ----------------------------------------------------------- */
.checks { display: grid; gap: var(--s2); padding: 0; margin: 0; border: 0; }
.checks > legend { padding: 0; margin-bottom: var(--s1); }

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: var(--t-sm);
  color: var(--ink);
}
.check input { width: auto; flex: 0 0 auto; margin-top: 0.25em; accent-color: var(--accent); }

/* Honeypot (never shown, never announced) ---------------------------------- */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact details ---------------------------------------------------------- */
.contact-foot { display: grid; gap: var(--s5); }
.contact-foot address { font-style: normal; }
