/* ============================================================
   FES | Fabrication & Engineering Services | FESFab.com
   Design system derived from the approved FES visual identity.
   Colors, type, and graphic language follow the identity files.
   ============================================================ */

/* ---------- Custom properties ---------- */
:root {
  /* Color */
  --c-red: #EE3124;
  --c-red-dark: #C9231A;
  --c-ink: #16140F;
  --c-ink-soft: #23201A;
  --c-paper: #F4F1EA;
  --c-paper-bright: #FBF9F4;
  --c-gray: #6E6A61;
  --c-gray-light: #D9D4C9;
  --c-line: rgba(22, 20, 15, 0.16);
  --c-line-dark: rgba(244, 241, 234, 0.18);

  /* Type */
  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --fs-hero: clamp(2.6rem, 6.5vw, 5rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 1.8rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.78rem;

  /* Layout */
  --w-container: 76rem;
  --w-narrow: 46rem;
  --sp-section: clamp(4rem, 9vw, 7.5rem);
  --sp-block: clamp(2rem, 4vw, 3.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Border + motion */
  --bd: 1px solid var(--c-line);
  --t-fast: 160ms ease;
  --t-med: 320ms cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--c-red);
  outline-offset: 2px;
}
.on-dark :focus-visible,
.site-footer :focus-visible,
.hcwsy-strip :focus-visible {
  outline-color: var(--c-paper);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: var(--w-narrow); }
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 0.75rem 1.25rem;
  font-family: var(--f-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; }
p { max-width: 68ch; }
.lede {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  font-weight: 400;
}
.plate {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray);
}
.plate::before {
  content: "";
  width: 1.6rem; height: 3px;
  background: var(--c-red);
  flex: none;
}
.on-dark .plate { color: var(--c-gray-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  background: var(--c-red);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { background: var(--c-red-dark); }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: currentColor;
}
.btn--ghost:hover { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.on-dark .btn--ghost { color: var(--c-paper); }
.on-dark .btn--ghost:hover { background: var(--c-paper); color: var(--c-ink); border-color: var(--c-paper); }
.text-link {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--c-red);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--c-red); }
.on-dark .text-link { color: var(--c-paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-paper);
  border-bottom: var(--bd);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--c-line), 0 8px 24px rgba(22, 20, 15, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 104px; height: 46px; overflow: visible; transition: transform 300ms cubic-bezier(0.33, 1, 0.68, 1); transform-origin: left center; }
.brand-mark .bm-frame { fill: var(--c-ink); }
.brand-mark .bm-letters {
  fill: var(--c-red);
  stroke: var(--c-red);
  stroke-width: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.brand-link:hover .bm-letters,
.brand-link:focus-visible .bm-letters,
.site-header.logo-etch .bm-letters {
  stroke-width: 2;
  animation: logoEtch 750ms ease;
}
@keyframes logoEtch {
  0% { fill-opacity: 0; stroke-dashoffset: 1; }
  55% { fill-opacity: 0; }
  100% { fill-opacity: 1; stroke-dashoffset: 0; }
}
.site-header.is-scrolled .brand-mark { transform: scale(0.86); }
.header-inner { transition: min-height 300ms cubic-bezier(0.33, 1, 0.68, 1); }
.site-header.is-scrolled .header-inner { min-height: 3.9rem; }
@media (prefers-reduced-motion: reduce) {
  .brand-link:hover .bm-letters, .brand-link:focus-visible .bm-letters, .site-header.logo-etch .bm-letters { animation: none; stroke-width: 0; }
  .brand-mark, .header-inner { transition: none; }
  .site-header.is-scrolled .brand-mark { transform: none; }
}
.brand-link .brand-sub {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-gray);
  line-height: 1.4;
  border-left: var(--bd);
  padding-left: 0.9rem;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1vw, 1.25rem);
  list-style: none;
  padding: 0;
}
.site-nav a {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--c-red); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--c-red); }
@media (min-width: 64em) {
  .site-nav li { display: flex; align-items: center; }
  .site-nav a { display: inline-block; }
}
.has-sub { position: relative; }
.nav-sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  margin: 0;
  cursor: pointer;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-sub-toggle:hover { color: var(--c-red); }
.nav-sub-toggle.is-current { border-bottom-color: var(--c-red); }
.nav-sub-toggle .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--t-fast);
}
.has-sub.is-open > .nav-sub-toggle .caret { transform: rotate(180deg); }
.site-nav .sub-menu {
  display: none;
  list-style: none;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  padding: 0.4rem 0;
  margin: 0;
}
@media (min-width: 64em) {
  .sub-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: -1.1rem;
    min-width: 13.5rem;
    background: var(--c-paper);
    border: var(--bd);
    border-top: 3px solid var(--c-red);
    box-shadow: 0 14px 30px rgba(22, 20, 15, 0.14);
    z-index: 50;
  }
  .site-nav .has-sub:focus-within > .sub-menu,
  .site-nav .has-sub.is-open > .sub-menu { display: flex; }
  /* invisible bridge across the gap so the pointer never leaves the menu */
  .site-nav .sub-menu::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -1.5rem;
    height: 1.5rem;
  }
  .sub-menu a {
    display: block;
    padding: 0.6rem 1.1rem;
    border-bottom: none;
    font-size: 0.95rem;
  }
  .sub-menu a:hover { background: rgba(238, 49, 36, 0.08); color: var(--c-red); }
  .sub-menu a[aria-current="page"] { color: var(--c-red); }
}
.site-nav .nav-cta a {
  background: var(--c-red);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-bottom: none;
}
.site-nav .nav-cta a:hover { background: var(--c-red-dark); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 10px;
  background: none;
  border: var(--bd);
  cursor: pointer;
}
.nav-toggle .bar {
  height: 2px;
  background: var(--c-ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 77.9em) {
  .brand-link .brand-sub { display: none; }
}
@media (max-width: 63.9em) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--c-paper);
    border-bottom: var(--bd);
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .site-nav li { border-bottom: var(--bd); }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.2rem;
    border-bottom: none;
  }
  .site-nav a[aria-current="page"] { color: var(--c-red); }
  .site-nav .nav-cta { margin-top: 1rem; }
  .site-nav .nav-cta a { text-align: center; }
  .nav-sub-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.2rem;
    border-bottom: none;
  }
  .nav-sub-toggle.is-current { color: var(--c-red); }
  .site-nav .has-sub.is-open > .sub-menu { display: flex; padding: 0 0 0.75rem; }
  .sub-menu li { border-bottom: none; }
  .sub-menu a {
    font-size: 1.05rem;
    padding: 0.6rem 0 0.6rem 1.25rem;
    border-left: 3px solid var(--c-red);
    margin-bottom: 0.35rem;
    color: var(--c-ink);
  }
  .sub-menu a[aria-current="page"] { color: var(--c-red); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--c-ink);
  color: var(--c-paper);
  overflow: hidden;
  min-height: clamp(480px, 86vh, 960px);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(12deg, rgba(13, 12, 9, 0.88) 0%, rgba(13, 12, 9, 0.55) 42%, rgba(13, 12, 9, 0.12) 78%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero-content .plate { color: var(--c-gray-light); }
.hero-content h1 { margin: 1rem 0 1.25rem; max-width: 16ch; }
.hero-content .lede { max-width: 46ch; color: rgba(244, 241, 234, 0.92); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.hero-endorse {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c-line-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray-light);
}
.hero--page { min-height: clamp(400px, 62vh, 680px); }
.hero--page .hero-content { padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2.25rem, 4vw, 3.5rem); }
.hero--plain {
  background: var(--c-ink);
  min-height: 0;
}
.hero--plain .hero-content { padding-block: clamp(3.5rem, 6vw, 5rem) clamp(2.25rem, 4vw, 3.5rem); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-section); }
.section--bright { background: var(--c-paper-bright); border-block: var(--bd); }
.section--dark, .on-dark {
  background: var(--c-ink);
  color: var(--c-paper);
}
.section-head { margin-bottom: var(--sp-block); }
.section-head h2 { margin: 0.9rem 0 1rem; max-width: 20ch; }
.section-head .lede { color: var(--c-gray); }
.section--dark .section-head .lede, .on-dark .section-head .lede { color: rgba(244, 241, 234, 0.8); }

/* Split layout */
.split {
  display: grid;
  gap: var(--sp-block);
  align-items: center;
}
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .split--media-right .split-media { order: 2; }
}
.split-media img { width: 100%; border: var(--bd); }
.split-body h2 { margin: 0.9rem 0 1.1rem; }
.split-body p + p { margin-top: 1rem; }
.split-body .btn, .split-body .text-link { margin-top: 1.75rem; }
.split-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--c-red);
  background: rgba(22, 20, 15, 0.04);
  font-size: var(--fs-small);
  color: var(--c-gray);
}
.on-dark .split-note { background: rgba(244, 241, 234, 0.06); color: var(--c-gray-light); }

/* Full-bleed band image */
.photo-band { position: relative; }
.photo-band img {
  width: 100%;
  height: clamp(280px, 55vw, 560px);
  object-fit: cover;
}
.photo-band figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem var(--gutter) 1rem;
  background: linear-gradient(0deg, rgba(13, 12, 9, 0.7), transparent);
  color: var(--c-gray-light);
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 44em) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.cap-card {
  display: flex;
  flex-direction: column;
  background: var(--c-paper-bright);
  border: var(--bd);
}
.section--bright .cap-card { background: var(--c-paper); }
.cap-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--c-red);
}
.cap-card-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.cap-card h3 { margin-bottom: 0.75rem; font-size: 1.4rem; white-space: nowrap; }
.cap-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: var(--fs-small);
  color: var(--c-gray);
}
.cap-card li {
  padding: 0.4rem 0 0.4rem 1.1rem;
  position: relative;
  border-bottom: 1px solid var(--c-line);
}
.cap-card li:last-child { border-bottom: none; }
.cap-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 0.45rem; height: 0.45rem;
  background: var(--c-red);
}
.cap-card .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  gap: 1px;
  background: var(--c-line-dark);
  border: 1px solid var(--c-line-dark);
}
@media (min-width: 48em) { .process-grid { grid-template-columns: repeat(5, 1fr); } }
.process-step {
  background: var(--c-ink);
  padding: 1.75rem 1.5rem 2rem;
}
.process-step .num {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--c-red);
}
.process-step h3 { margin: 0.6rem 0 0.7rem; }
.process-step p { font-size: var(--fs-small); color: rgba(244, 241, 234, 0.78); }

/* ---------- Work gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: var(--bd);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.filter-btn:hover { border-color: var(--c-ink); }
.filter-btn[aria-pressed="true"] {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}
.work-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 44em) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-item { display: flex; flex-direction: column; background: var(--c-paper-bright); border: var(--bd); }
.work-item.is-hidden { display: none; }
.work-item figure { margin: 0; position: relative; }
.work-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.work-item .work-open {
  position: absolute; inset: 0;
  border: 0; background: transparent; cursor: zoom-in;
}
.work-item .work-open:hover { background: rgba(238, 49, 36, 0.12); }
.work-body { padding: 1.25rem 1.4rem 1.5rem; }
.work-body .tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-red);
}
.work-body h3 { font-size: 1.3rem; margin: 0.45rem 0 0.4rem; }
.work-body p { font-size: var(--fs-small); color: var(--c-gray); }

/* Lightbox */
.lightbox {
  border: none;
  padding: 0;
  background: rgba(13, 12, 9, 0.92);
  max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
}
.lightbox::backdrop { background: rgba(13, 12, 9, 0.92); }
.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 3.5rem 1rem 1.5rem;
  gap: 0.9rem;
}
.lightbox img {
  max-width: min(92vw, 70rem);
  max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox figcaption {
  color: var(--c-gray-light);
  font-size: var(--fs-small);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 3rem; height: 3rem;
  background: var(--c-red);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--c-red-dark); }

/* ---------- Feature list (two column bullets) ---------- */
.feature-cols {
  display: grid;
  gap: 1.5rem var(--sp-block);
  margin-top: var(--sp-block);
}
@media (min-width: 48em) { .feature-cols { grid-template-columns: 1fr 1fr; } }
.feature {
  border-top: 3px solid var(--c-ink);
  padding-top: 1.1rem;
}
.feature.accent { border-top-color: var(--c-red); }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { font-size: var(--fs-small); color: var(--c-gray); }
.on-dark .feature { border-top-color: var(--c-paper); }
.on-dark .feature.accent { border-top-color: var(--c-red); }
.on-dark .feature p { color: rgba(244, 241, 234, 0.78); }

/* ---------- Values / culture list ---------- */
.values-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  columns: 2;
  column-gap: var(--sp-block);
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 36em) { .values-list { columns: 1; } }
.values-list li {
  break-inside: avoid;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-bottom: var(--bd);
  position: relative;
}
.values-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.25rem;
  width: 0.55rem; height: 0.55rem;
  background: var(--c-red);
}
.on-dark .values-list li { border-bottom-color: var(--c-line-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--c-ink);
  color: var(--c-paper);
  padding-block: var(--sp-section);
  position: relative;
  overflow: hidden;
}
.cta-mark {
  position: absolute;
  top: 50%;
  right: max(-6rem, -8vw);
  transform: translateY(-50%);
  width: min(38rem, 60vw);
  height: auto;
  pointer-events: none;
}
.cta-mark .draw {
  fill: none;
  stroke: var(--c-red);
  stroke-width: 0.9;
  opacity: 0.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.cta-band .container.reveal.is-visible + .cta-mark .draw {
  animation: markDraw 2200ms cubic-bezier(0.65, 0, 0.35, 1) 200ms forwards;
}
@keyframes markDraw { to { stroke-dashoffset: 0; } }
.no-js .cta-mark .draw { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .cta-mark .draw { stroke-dashoffset: 0; animation: none; }
  .cta-band .container.reveal.is-visible + .cta-mark .draw { animation: none; }
}
@media (max-width: 48em) {
  .cta-mark { width: 80vw; right: -18vw; opacity: 0.75; }
}
.cta-band h2 { max-width: 18ch; margin: 0.9rem 0 1.1rem; }
.cta-band p { color: rgba(244, 241, 234, 0.85); }
.cta-band .hero-actions { margin-top: 2rem; }

/* ---------- Forms ---------- */
.form-shell {
  background: var(--c-paper-bright);
  border: var(--bd);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.form-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 44em) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.field .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--c-gray);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--c-gray);
  background: #fff;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--c-red);
  outline-offset: 0;
  border-color: var(--c-red);
}
.field .req { color: var(--c-red); }
.field-error {
  display: none;
  color: var(--c-red-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.35rem;
}
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--c-red-dark); }
.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  font-weight: 500;
  display: none;
  border-left: 4px solid var(--c-red);
  background: rgba(238, 49, 36, 0.07);
}
.form-status.is-visible { display: block; }
.form-status.is-success { border-left-color: #1a7f37; background: rgba(26, 127, 55, 0.08); }
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--c-gray);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact paths ---------- */
.path-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  margin-top: var(--sp-block);
}
.path-card {
  border: var(--bd);
  border-top: 3px solid var(--c-red);
  background: var(--c-paper-bright);
  padding: 1.25rem 1.25rem 1.4rem;
}
.path-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.path-card p { font-size: var(--fs-small); color: var(--c-gray); }

/* ---------- About / history ---------- */
.timeline {
  border-left: 3px solid var(--c-red);
  margin-top: var(--sp-block);
  display: grid;
  gap: 2rem;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
}
.timeline h3 { margin-bottom: 0.4rem; }
.timeline .plate { margin-bottom: 0.35rem; }

/* ---------- Sitemap page ---------- */
.sitemap-groups {
  display: grid;
  gap: var(--sp-block);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.sitemap-groups ul { list-style: none; padding: 0; margin-top: 1rem; }
.sitemap-groups li { border-bottom: var(--bd); }
.sitemap-groups a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.sitemap-groups a:hover { color: var(--c-red); }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: var(--w-narrow); }
.prose h2 { font-size: 1.6rem; margin: 2.5rem 0 0.9rem; }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 0.6rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; margin: 0.75rem 0; }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--c-red-dark); }
.legal-meta {
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray);
  margin: 1rem 0 2rem;
}

/* ---------- 404 ---------- */
.notfound {
  padding-block: var(--sp-section);
  text-align: left;
}
.notfound .code {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: 0.9;
  color: var(--c-red);
}

/* ---------- Chevron divider (apparatus striping) ---------- */
.footer-chevron {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--c-red) 0 14px,
    var(--c-ink) 14px 28px
  );
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: var(--c-paper);
  padding-top: var(--sp-section);
}
.footer-grid {
  display: grid;
  gap: var(--sp-block) 1.5rem;
  padding-bottom: var(--sp-block);
  grid-template-columns: 1fr 1fr;
}
.footer-brand, .footer-contact { grid-column: 1 / -1; }
@media (min-width: 56em) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: var(--sp-block); }
  .footer-brand, .footer-contact { grid-column: auto; }
}
.footer-brand img { width: 150px; height: auto; }
.footer-brand .footer-tag {
  margin-top: 1.25rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-brand .footer-standard {
  color: var(--c-red);
}
.footer-brand .footer-endorse {
  margin-top: 1.25rem;
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-gray-light);
}
.site-footer h2.footer-head {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--c-gray-light);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0.55rem 0; }
.site-footer a { text-decoration: none; color: var(--c-paper); }
.site-footer a:hover { color: var(--c-red); }
.footer-contact p { font-size: var(--fs-small); color: rgba(244, 241, 234, 0.85); }
.footer-contact p + p { margin-top: 0.6rem; }
.footer-legal {
  border-top: 1px solid var(--c-line-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--c-gray-light);
}
.footer-legal ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
}
.footer-legal a { color: var(--c-gray-light); text-decoration: none; }
.footer-legal a:hover { color: var(--c-paper); }

/* ---------- HCWSY strip ---------- */
.hcwsy-strip {
  background: var(--c-red);
  color: #fff;
}
.hcwsy-strip .wrap {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding: 0.55rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hcwsy-strip a {
  color: #fff;
  text-decoration: none;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hcwsy-strip a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hcwsy-right {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hcwsy-arrow {
  display: inline-block;
  transition: transform var(--t-fast);
  font-size: 0.95rem;
  line-height: 1;
}
.hcwsy-right:hover .hcwsy-arrow { transform: translateX(4px); }
.hcwsy-left .hcwsy-short { display: none; }
@media (max-width: 36em) {
  .hcwsy-strip .wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-block: 0.45rem;
  }
  .hcwsy-strip a { font-size: 0.75rem; white-space: nowrap; }
  .hcwsy-left .hcwsy-full { display: none; }
  .hcwsy-left .hcwsy-short { display: inline; }
  .hcwsy-arrow { font-size: 0.8rem; }
}

/* ---------- Spacing + component utilities (replaces inline styles) ---------- */
.mt-075 { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-25 { margin-top: 2.5rem; }
.m-block { margin: 1rem 0; }
.mb-section { margin-bottom: var(--sp-section); }
.h-sub { font-size: var(--fs-h3); }
.standard-line {
  color: var(--c-red);
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  letter-spacing: 0.03em;
}
.feature h3 .text-link, .no-underline { border-bottom: none; }
/* Brand mark presentation panels: never a photo border */
.split-media--logo img { border: none; }
.split-media--panel {
  background: var(--c-ink);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.split-media--panel img { border: none; }
.split-media--panel .hero-endorse { margin-top: 1.5rem; }
.split-media--logo.reveal img, .split-media--panel.reveal img { transform: none; }

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.33, 1, 0.68, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn .arrow, .hcwsy-arrow { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Subtle motion (all disabled under reduced motion) ---------- */
.split-media.reveal { overflow: hidden; }
.split-media.reveal img { transform: scale(1.05); transition: transform 1100ms cubic-bezier(0.33, 1, 0.68, 1); }
.split-media.reveal.is-visible img { transform: scale(1); }
.cap-card.reveal img, .work-item.reveal img { transform: scale(1.04); transition: transform 1100ms cubic-bezier(0.33, 1, 0.68, 1); }
.cap-card.reveal.is-visible img, .work-item.reveal.is-visible img { transform: scale(1); }
.card-grid .reveal:nth-child(2), .work-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.card-grid .reveal:nth-child(3), .work-grid .reveal:nth-child(3) { transition-delay: 180ms; }
.card-grid .reveal:nth-child(4) { transition-delay: 270ms; }
.reveal .plate::before { width: 0; transition: width 500ms ease 150ms; }
.reveal.is-visible .plate::before { width: 1.6rem; }
.cap-card, .work-item { transition: transform var(--t-med), box-shadow var(--t-med); }
.cap-card:hover, .work-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22, 20, 15, 0.12); }
html:not(.no-js) .hero-content .plate,
html:not(.no-js) .hero-content h1,
html:not(.no-js) .hero-content .lede,
html:not(.no-js) .hero-content .hero-actions,
html:not(.no-js) .hero-content .hero-endorse {
  animation: heroUp 700ms cubic-bezier(0.33, 1, 0.68, 1) both;
}
html:not(.no-js) .hero-content h1 { animation-delay: 90ms; }
html:not(.no-js) .hero-content .lede { animation-delay: 180ms; }
html:not(.no-js) .hero-content .hero-actions { animation-delay: 280ms; }
html:not(.no-js) .hero-content .hero-endorse { animation-delay: 380ms; }
html.show-intro .hero-content .plate,
html.show-intro .hero-content h1,
html.show-intro .hero-content .lede,
html.show-intro .hero-content .hero-actions,
html.show-intro .hero-content .hero-endorse { animation-delay: 2450ms; }
html.show-intro .hero-content h1 { animation-delay: 2540ms; }
html.show-intro .hero-content .lede { animation-delay: 2630ms; }
html.show-intro .hero-content .hero-actions { animation-delay: 2730ms; }
html.show-intro .hero-content .hero-endorse { animation-delay: 2830ms; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .split-media.reveal img, .cap-card.reveal img, .work-item.reveal img { transform: none; transition: none; }
  .reveal .plate::before { width: 1.6rem; transition: none; }
  .cap-card, .work-item { transition: none; }
  .cap-card:hover, .work-item:hover { transform: none; box-shadow: none; }
  html:not(.no-js) .hero-content .plate,
  html:not(.no-js) .hero-content h1,
  html:not(.no-js) .hero-content .lede,
  html:not(.no-js) .hero-content .hero-actions,
  html:not(.no-js) .hero-content .hero-endorse { animation: none; }
}

/* ---------- First-visit intro (homepage, once per session) ---------- */
.intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--c-ink);
  place-items: center;
  transition: transform 650ms cubic-bezier(0.65, 0, 0.35, 1), visibility 0s 650ms;
}
html.show-intro .intro { display: grid; }
html.show-intro.intro-exit .intro { transform: translateY(-100%); visibility: hidden; }
html.show-intro:not(.intro-exit) body { overflow: hidden; }
.intro-inner { text-align: center; padding: 2rem; }
.intro-logo { width: min(340px, 62vw); height: auto; margin-inline: auto; }
.intro-logo .draw {
  fill-opacity: 0;
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: introDraw 1500ms ease-in-out forwards, introFill 500ms ease 1450ms forwards;
}
.intro-logo .draw-frame { stroke: #F4F1EA; fill: #F4F1EA; }
.intro-logo .draw-letters { stroke: var(--c-red); fill: var(--c-red); animation-delay: 180ms, 1550ms; }
.intro-tag {
  margin-top: 1.4rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-paper);
  opacity: 0;
  animation: introTag 450ms ease 1850ms forwards;
}
.intro-tag .red { color: var(--c-red); }
.intro-skip {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid var(--c-line-dark);
  color: var(--c-gray-light);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.intro-skip:hover { color: var(--c-paper); border-color: var(--c-paper); }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFill { to { fill-opacity: 1; } }
@keyframes introTag { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .hcwsy-strip, .nav-toggle, .hero-actions { display: none; }
  body { background: #fff; color: #000; }
}
