/* ==========================================================================
   STARLINE METAL ROOFING: Shared Stylesheet
   Style: Bold / Brutalist · Premium construction-sector
   Brand: #a01e22
   ========================================================================== */

/* ---------- Self-hosted fonts (no render-blocking, swap) ----------------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/Archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/Archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/Archivo-800.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/Archivo-900.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/IBMPlexSans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/IBMPlexSans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/IBMPlexSans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/IBMPlexSans-700.woff2") format("woff2"); }

/* ---------- 1. Design tokens ---------------------------------------------- */
:root {
  /* Brand reds */
  --primary: #a01e22;
  --primary-600: #871a1d;
  --primary-700: #6e1518;
  --primary-900: #3d0c0d;

  /* Accent (bright signal red, pops on dark, used sparingly) */
  --accent: #f0454a;
  --accent-600: #d63a3f;

  /* Neutrals */
  --ink: #141414;
  --ink-muted: #4a4a4a;
  --steel: #585e63;
  --bg: #f5f4f2;
  --surface: #ffffff;
  --charcoal: #161616;
  --charcoal-800: #1f1f1f;
  --charcoal-700: #2a2a2a;

  /* Borders */
  --border: #dcdad6;
  --border-strong: #141414;
  --border-dark: #333333;

  /* On-dark text */
  --on-dark: #f4f2ef;
  --on-dark-muted: #a6a39e;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container: 1240px;
  --radius: 0px;            /* sharp / brutalist */
  --radius-sm: 2px;

  /* Z-index scale */
  --z-base: 1;
  --z-dropdown: 20;
  --z-header: 50;
  --z-skip: 100;

  /* Shadows */
  --shadow-card: 0 18px 40px -24px rgba(20, 20, 20, 0.5);
  --shadow-lift: 0 28px 60px -28px rgba(20, 20, 20, 0.55);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- 3. Typography ------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.02em; }
p { max-width: 68ch; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}
.eyebrow--light { color: var(--accent); }
.eyebrow--light::before { background: var(--accent); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-muted); }
.accent-text { color: var(--primary); }
.accent-amber { color: var(--accent); }

/* ---------- 4. Layout primitives ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.section--red { background: var(--primary-900); color: var(--on-dark); }
.section--red h2, .section--red h3 { color: #fff; }
.section--red p { color: rgba(255,255,255,0.78); }

.section-head { max-width: 60ch; margin-bottom: var(--space-12); }
.section-head h2 { margin-top: var(--space-3); }
.section-head p { margin-top: var(--space-4); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--space-6); }
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }

.rule { height: 6px; background: var(--primary); border: none; }
.rule--amber { background: var(--accent); }
.rule--thin { height: 2px; background: var(--border-strong); }

/* skip link */
.skip-link {
  position: absolute;
  left: 1rem; top: -120%;
  z-index: var(--z-skip);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- 5. Buttons ---------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05rem 1.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { background: var(--primary-700); border-color: var(--primary-700); transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost:active { background: var(--charcoal-700); }

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--amber {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
}
.btn--amber:hover { background: var(--accent-600); border-color: var(--accent-600); color: var(--ink); }
.btn--lg { padding: 1.25rem 2.2rem; font-size: 0.92rem; }
.btn--block { width: 100%; justify-content: center; }

/* focus visibility (global) */
:where(a, button, input, select, textarea, summary, label, [tabindex]):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.section--dark :focus-visible { outline-color: var(--accent); }

/* ---------- 6. Top bar ---------------------------------------------------- */
.topbar {
  background: var(--charcoal);
  color: var(--on-dark-muted);
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.78rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  padding-block: 0.4rem;
}
.topbar__msg { display: inline-flex; align-items: center; gap: 0.55rem; letter-spacing: 0.04em; max-width: none; }
.topbar__msg svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.topbar__phone { font-weight: 700; color: var(--on-dark); letter-spacing: 0.05em; white-space: nowrap; }
.topbar__phone:hover { color: var(--accent); }
@media (max-width: 620px) { .topbar__msg span.long { display: none; } }

/* ---------- 7. Header / nav ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--charcoal);
  border-bottom: 1px solid var(--border-dark);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 92px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__logo { height: 64px; width: auto; display: block; }
.footer__brand .brand__logo { height: 84px; }
@media (max-width: 600px) { .brand__logo { height: 52px; } }

/* mobile toggle (checkbox hack, keyboard accessible) */
.nav-toggle {
  position: absolute;
  width: 48px; height: 48px;
  margin: 0;
  top: 50%;
  right: clamp(1.1rem, 4vw, 2.5rem);
  transform: translateY(-50%);
  opacity: 0;
  z-index: 2;
  cursor: pointer;
}
.nav-burger {
  display: none;
  width: 48px; height: 48px;
  position: relative;
  border: 2px solid var(--border-dark);
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-burger span::before { transform: translate(-50%, -7px); }
.nav-burger span::after { transform: translate(-50%, 5px); }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--accent); outline-offset: 3px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(0.6rem, 1.8vw, 1.6rem); }
.nav__list > li > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}
.nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--primary);
  transition: width .25s var(--ease);
}
.nav__list > li > a:hover::after,
.nav__list > li > a[aria-current="page"]::after { width: 100%; }
.nav__list > li > a[aria-current="page"] { color: #fff; }
.nav__list svg { width: 13px; height: 13px; }

/* dropdown */
.nav__has-sub { position: relative; }
.nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: var(--z-dropdown);
}
.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sub a {
  display: block;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.nav__sub a:hover, .nav__sub a:focus-visible {
  background: var(--bg);
  border-left-color: var(--primary);
}

/* ---------- Mobile nav ---------------------------------------------------- */
@media (max-width: 960px) {
  .nav-burger { display: block; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--border-dark);
    padding: 0.5rem clamp(1.1rem, 4vw, 2.5rem) 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--border-dark); }
  .nav__list > li > a { padding: 0.95rem 0; font-size: 0.95rem; }
  .nav__list > li > a::after { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; background: transparent; padding: 0 0 0.5rem;
  }
  .nav__sub a { color: var(--on-dark-muted); padding: 0.6rem 0 0.6rem 1rem; }
  .nav__sub a:hover { background: transparent; color: var(--accent); border-left-color: var(--accent); }
  .nav__cta { margin-top: 1rem; justify-content: center; }
  .nav-toggle:checked ~ .nav { max-height: 620px; }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { transform: translate(-50%, 0) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after { transform: translate(-50%, 0) rotate(-45deg); }
}

/* ---------- 8. Hero ------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--charcoal);
  color: #fff;
  overflow: hidden;
  border-bottom: 6px solid var(--primary);
}
.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(90deg, rgba(15,15,15,0.92) 0%, rgba(15,15,15,0.78) 42%, rgba(15,15,15,0.4) 100%);
}
.hero__inner {
  position: relative;
  z-index: var(--z-base);
  padding-block: clamp(4rem, 12vw, 8.5rem);
  max-width: 56rem;
}
.hero h1 { color: #fff; margin-top: var(--space-4); }
.hero h1 .line2 { display: block; color: var(--primary); }
.hero__lead { color: rgba(255,255,255,0.82); margin-top: var(--space-6); max-width: 46ch; font-size: clamp(1rem,1.5vw,1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }

/* compact hero (interior pages) */
.hero--page .hero__inner { padding-block: clamp(3.5rem, 9vw, 6rem); max-width: 50rem; }
.hero--page h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }

.breadcrumb { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--on-dark-muted); text-transform: uppercase; font-family: var(--font-display); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* ---------- 10. Trust / positioning bar ---------------------------------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .trust__inner { grid-template-columns: 1.1fr 0.9fr; } }
.trust blockquote { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.12; text-transform: uppercase; letter-spacing: -0.01em; }
.trust blockquote span { color: var(--primary); }

/* badge row */
.badges { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; }
.badge { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.badge svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.section--dark .badge svg { color: var(--accent); }

/* ---------- 11. Cards: services ------------------------------------------ */
.cards { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 640px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--surface);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  transition: background-color .25s var(--ease);
}
.card__num { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.2em; color: var(--primary); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  margin-bottom: 0.3rem;
  transition: background-color .25s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-muted); font-size: 0.95rem; }
.card__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.card__link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.card:hover { background: var(--bg); }
.card:hover .card__icon { background: var(--primary); }
.card:hover .card__link { color: var(--primary); }
.card:hover .card__link svg { transform: translateX(4px); }
/* whole-card clickable */
.card--link::after { content: ""; position: absolute; inset: 0; }
.card--link { cursor: pointer; }

/* ---------- 12. Industries / image cards --------------------------------- */
.tiles { display: grid; gap: 1px; background: var(--border-dark); }
@media (min-width: 560px) { .tiles--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 760px) { .tiles--3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 980px) { .tiles--5 { grid-template-columns: repeat(5,1fr); } }
.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--charcoal-800);
  display: flex;
  align-items: flex-end;
}
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.78);
  transition: transform .5s var(--ease), filter .4s var(--ease);
}
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,15,15,0.92), rgba(15,15,15,0.05) 70%); }
.tile__body { position: relative; z-index: 1; padding: 1.3rem; color: #fff; }
.tile__body h3 { color: #fff; font-size: 1.15rem; }
.tile__body p { color: var(--on-dark-muted); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.2rem; }
.tile:hover img { transform: scale(1.06); filter: grayscale(0) brightness(0.88); }
.tile__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--primary); z-index: 2; transition: width .35s var(--ease); }
.tile:hover .tile__bar { width: 100%; }

/* ---------- 13. Process timeline ----------------------------------------- */
.process { display: grid; gap: 1px; background: var(--border); border-top: 2px solid var(--border-strong); }
@media (min-width: 760px) { .process--3 { grid-template-columns: repeat(3,1fr); } .process--4 { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 680px) { .process--5 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1080px) { .process--5 { grid-template-columns: repeat(5,1fr); } }
.step {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 3px solid transparent;
  transition: border-color .25s var(--ease);
}
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.18em; color: var(--steel); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.step__num b { color: var(--primary); }
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.92rem; color: var(--ink-muted); }
.step:hover { border-top-color: var(--primary); }
.section--dark .step { background: var(--charcoal-800); border-top-color: transparent; }
.section--dark .process { background: var(--border-dark); border-top-color: var(--accent); }
.section--dark .step__num { color: var(--on-dark-muted); }
.section--dark .step__num b { color: var(--accent); }
.section--dark .step:hover { border-top-color: var(--accent); }

/* ---------- 14. Stats ----------------------------------------------------- */
.stats { display: grid; gap: 1px; background: var(--border-dark); }
@media (min-width: 540px) { .stats--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 880px) { .stats--4 { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--charcoal-800); padding: clamp(1.6rem,3vw,2.4rem); }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: #fff; }
.stat__num span { color: var(--accent); }
.stat__label { margin-top: 0.7rem; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); font-family: var(--font-display); font-weight: 600; }

/* ---------- 15. Feature / list ------------------------------------------- */
.feature-img { position: relative; }
.feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-img .tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--primary); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.7rem 1.1rem;
}
.checklist { display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 2px; }
.checklist b { font-family: var(--font-display); letter-spacing: 0.01em; }
.section--dark .checklist svg { color: var(--accent); }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill { border: 2px solid var(--border-strong); padding: 0.5rem 0.9rem; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.section--dark .pill { border-color: var(--border-dark); color: var(--on-dark); }

/* ---------- 16. Comparison table ----------------------------------------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--border-strong); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare caption { text-align: left; padding: 1rem 1.2rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--ink); color: #fff; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--bg); font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.compare tbody th { font-family: var(--font-display); font-weight: 700; }
.compare tbody tr:hover { background: var(--bg); }
.compare td svg { width: 18px; height: 18px; color: var(--primary); }

/* ---------- 17. FAQ accordion -------------------------------------------- */
.faq { display: grid; gap: 0; border-top: 2px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 26px; height: 26px; flex: none; position: relative; border: 2px solid var(--border-strong); transition: background-color .2s var(--ease); }
.faq summary .ic::before, .faq summary .ic::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.faq summary .ic::before { width: 12px; height: 2px; transform: translate(-50%,-50%); }
.faq summary .ic::after { width: 2px; height: 12px; transform: translate(-50%,-50%); }
.faq details[open] summary .ic { background: var(--primary); border-color: var(--primary); }
.faq details[open] summary .ic::before, .faq details[open] summary .ic::after { background: #fff; }
.faq details[open] summary .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq details > div { padding: 0 0.2rem 1.4rem; }
.faq details > div p { color: var(--ink-muted); }
.faq summary:hover { color: var(--primary); }
.section--dark .faq { border-top-color: var(--accent); }
.section--dark .faq details { border-bottom-color: var(--border-dark); }
.section--dark .faq summary .ic { border-color: var(--on-dark-muted); }
.section--dark .faq summary .ic::before, .section--dark .faq summary .ic::after { background: #fff; }
.section--dark .faq summary:hover { color: var(--accent); }

/* ---------- 18. Testimonials --------------------------------------------- */
.quotes { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 760px) { .quotes--3 { grid-template-columns: repeat(3,1fr); } }
.quote { background: var(--surface); padding: clamp(1.6rem,3vw,2.2rem); display: flex; flex-direction: column; gap: 1rem; }
.quote__stars { display: flex; gap: 3px; color: var(--accent); }
.quote__stars svg { width: 18px; height: 18px; }
.quote blockquote { font-size: 1.02rem; line-height: 1.55; }
.quote figcaption { margin-top: auto; font-size: 0.85rem; }
.quote figcaption b { font-family: var(--font-display); display: block; letter-spacing: 0.02em; text-transform: uppercase; }
.quote figcaption span { color: var(--steel); }

/* ---------- 19. Before / After ------------------------------------------- */
.beforeafter { display: grid; gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); }
@media (min-width: 700px) { .beforeafter { grid-template-columns: 1fr 1fr; } }
.ba { position: relative; }
.ba img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ba__label { position: absolute; top: 1rem; left: 1rem; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.45rem 0.8rem; }
.ba--after .ba__label { background: var(--primary); }

/* ---------- 20. Project grid --------------------------------------------- */
.projects { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .projects--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .projects--3 { grid-template-columns: repeat(3,1fr); } }
.project { position: relative; overflow: hidden; background: var(--charcoal); border: 1px solid var(--border); }
.project img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project__body { padding: 1.2rem 1.3rem 1.4rem; background: var(--surface); border-top: 3px solid var(--primary); }
.project__meta { font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.project__body h3 { font-size: 1.15rem; margin-top: 0.4rem; }
.project__body p { font-size: 0.9rem; color: var(--ink-muted); margin-top: 0.4rem; }

/* ---------- 21. Blog cards ----------------------------------------------- */
.posts { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .posts--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px) { .posts--3 { grid-template-columns: repeat(3,1fr); } }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.post:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.post__media { overflow: hidden; aspect-ratio: 16/10; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post__cat { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.post__body h3 { font-size: 1.18rem; line-height: 1.1; }
.post__body p { font-size: 0.92rem; color: var(--ink-muted); }
.post__more { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.4rem; }
.post__more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.post:hover .post__more svg { transform: translateX(4px); }

.post--featured { display: grid; gap: 0; border: 2px solid var(--border-strong); }
@media (min-width: 820px) { .post--featured { grid-template-columns: 1.1fr 0.9fr; } }
.post--featured .post__media { aspect-ratio: auto; min-height: 320px; }
.post--featured .post__body { padding: clamp(1.6rem,3vw,2.6rem); justify-content: center; }
.post--featured .post__body h3 { font-size: clamp(1.5rem,3vw,2.2rem); }

/* ---------- 22. Values grid ---------------------------------------------- */
.values { display: grid; gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); }
@media (min-width: 640px) { .values--2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 920px) { .values--3 { grid-template-columns: repeat(3,1fr); } }
.value { background: var(--charcoal-800); padding: clamp(1.6rem,3vw,2.2rem); }
.value__k { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--primary); line-height: 1; }
.value h3 { font-size: 1.15rem; margin: 0.9rem 0 0.5rem; color: #fff; }
.value p { font-size: 0.92rem; color: var(--on-dark-muted); }

/* ---------- 23. CTA band -------------------------------------------------- */
.cta-band { background: var(--charcoal); color: #fff; text-align: center; border-block: 6px solid var(--primary); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 5.5vw, 4rem); }
.cta-band h2 span { color: var(--accent); }
.cta-band p { color: var(--on-dark-muted); margin: 1rem auto 2rem; }
.cta-band .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 24. Forms ----------------------------------------------------- */
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; gap: 1.3rem; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.field label .req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(160,30,34,0.18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px; padding-right: 2.6rem; }
.form__note { font-size: 0.82rem; color: var(--steel); }

/* contact split */
.contact-grid { display: grid; gap: clamp(2rem,4vw,3.5rem); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-info { display: grid; gap: 1.6rem; align-content: start; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.info-item svg { width: 24px; height: 24px; color: var(--primary); flex: none; }
.info-item h3 { font-size: 1rem; }
.info-item a, .info-item p { color: var(--ink-muted); font-size: 0.95rem; }
.info-item a:hover { color: var(--primary); }
.form-card { background: var(--surface); border: 2px solid var(--border-strong); padding: clamp(1.6rem,3.5vw,2.6rem); box-shadow: var(--shadow-card); }

/* ---------- 25. Service area chips --------------------------------------- */
.areas { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.areas span { background: var(--charcoal-800); color: var(--on-dark); font-size: 0.82rem; padding: 0.55rem 0.9rem; border: 1px solid var(--border-dark); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; }

/* ---------- 26. Footer ---------------------------------------------------- */
.footer { background: var(--charcoal); color: var(--on-dark-muted); border-top: 6px solid var(--primary); }
.footer__top { display: grid; gap: 2.5rem; padding-block: clamp(3rem,6vw,4.5rem); }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__brand .brand { margin-bottom: 1.1rem; }
.footer__brand p { font-size: 0.92rem; max-width: 38ch; }
.footer__social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border-dark); color: var(--on-dark); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.footer__social a:hover { background: var(--primary); border-color: var(--primary); }
.footer__social svg { width: 18px; height: 18px; }
.footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; margin-bottom: 1.2rem; }
.footer ul { display: grid; gap: 0.7rem; }
.footer ul a { font-size: 0.92rem; transition: color .15s var(--ease), padding-left .15s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer__cta { display: grid; gap: 1rem; align-content: start; }
.footer__cta p { font-size: 0.92rem; }
.footer__bottom { border-top: 1px solid var(--border-dark); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer__bottom a:hover { color: #fff; }
.footer__bottom .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- 27. Scroll-reveal (progressive enhancement) ------------------ */
@media (prefers-reduced-motion: no-preference) {
  /* on-load hero stagger */
  .anim-up { animation: up .8s var(--ease) both; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; }
  .d3 { animation-delay: .25s; } .d4 { animation-delay: .35s; }
  @keyframes up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

  /* scroll-driven reveal where supported */
  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    @keyframes reveal-up { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- 28. Utilities ------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-6 { margin-bottom: var(--space-6); }
.flow > * + * { margin-top: var(--space-4); }
.flow-lg > * + * { margin-top: var(--space-6); }
.maxw-prose { max-width: 60ch; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 29. Image art direction (unified, commissioned feel) --------- */
.feature-img img, .project img, .post__media img, .ba img {
  filter: grayscale(0.55) contrast(1.06) brightness(0.97);
  transition: filter .45s var(--ease), transform .5s var(--ease);
}
.project:hover img, .post:hover .post__media img { filter: grayscale(0.05) contrast(1.03); }
.hero__media img { filter: grayscale(0.35) contrast(1.06); }

/* ---------- 30. Hero parallax (scroll-driven, no JS) --------------------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__media img {
      animation: hero-parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
      will-change: transform;
    }
    @keyframes hero-parallax {
      from { transform: scale(1.12) translateY(-2.5%); }
      to   { transform: scale(1.12) translateY(5%); }
    }
  }
}

/* ---------- 31. Form validation states ----------------------------------- */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(160,30,34,0.16);
}
.field input:user-valid, .field textarea:user-valid, .field select:user-valid {
  border-color: #2f7d3a;
}

/* ---------- 32. Mobile sticky CTA bar (designed for phone) ---------------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr; gap: 1px;
    background: var(--border-dark);
    box-shadow: 0 -10px 26px rgba(0,0,0,0.32);
  }
  .mobile-cta a {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1.05rem 0.6rem; min-height: 56px;
    font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
    letter-spacing: 0.06em; text-transform: uppercase;
  }
  .mobile-cta a svg { width: 18px; height: 18px; flex: none; }
  .mobile-cta .call { background: var(--charcoal); color: #fff; }
  .mobile-cta .quote { background: var(--primary); color: #fff; }
  body { padding-bottom: 60px; }
}

/* ---------- 33b. File input + optional label ----------------------------- */
.field input[type="file"] {
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 2px dashed var(--border-strong);
  cursor: pointer;
  font-size: 0.9rem;
}
.field input[type="file"]::file-selector-button {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff; border: 0;
  padding: 0.55rem 0.9rem; margin-right: 0.9rem; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.field input[type="file"]::file-selector-button:hover { background: var(--primary); }
.field__optional { color: var(--steel); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- 33c. Article / blog prose ------------------------------------ */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.4rem, 2.8vw, 2.05rem); margin-top: 2.7rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose p { color: var(--ink); }
.prose .lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-muted); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.5rem; }
.prose li::marker { color: var(--primary); }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.2rem 0 0.2rem 1.3rem; margin-block: 1.8rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.01em;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.article-meta .cat { color: var(--accent); }
.article-figure { margin-block: 2rem; }
.article-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--border); }
.article-figure figcaption { font-size: 0.82rem; color: var(--steel); margin-top: 0.6rem; }

/* ---------- 34. Footer CTA on one line ----------------------------------- */
.footer__cta .btn { white-space: nowrap; justify-self: start; }

/* ---------- 35. Choreographed scroll motion (staggered grids) ------------ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal-stagger > * {
      opacity: 0;
      animation: reveal-up linear both;
      animation-timeline: view();
    }
    .reveal-stagger > *:nth-child(1) { animation-range: entry 0% cover 22%; }
    .reveal-stagger > *:nth-child(2) { animation-range: entry 6% cover 28%; }
    .reveal-stagger > *:nth-child(3) { animation-range: entry 12% cover 34%; }
    .reveal-stagger > *:nth-child(4) { animation-range: entry 18% cover 40%; }
    .reveal-stagger > *:nth-child(5) { animation-range: entry 24% cover 46%; }
    .reveal-stagger > *:nth-child(6) { animation-range: entry 30% cover 52%; }
    .reveal-stagger > *:nth-child(n+7) { animation-range: entry 34% cover 58%; }
  }
}

/* ---------- 36. Mobile-native patterns (designed, not shrunk) ------------ */
@media (max-width: 680px) {
  /* process timeline becomes a swipeable, snapping row */
  .process { grid-template-columns: none; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-top: none; }
  .process::-webkit-scrollbar { display: none; }
  .process .step { flex: 0 0 82%; scroll-snap-align: start; border-top: 3px solid var(--primary); border-right: 1px solid var(--border); }
  .section--dark .process .step { border-top-color: var(--accent); border-right-color: var(--border-dark); }
  /* industry tiles swipe horizontally */
  .tiles { grid-template-columns: none; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles .tile { flex: 0 0 72%; scroll-snap-align: start; aspect-ratio: 3 / 4.2; border-right: 1px solid var(--border-dark); }
  /* stats sit as a tidy 2-up grid instead of a tall stack */
  .stats--4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- 33. Film-grain texture (premium tactile layer) ---------------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 37. Contrast fixes (readable text in dark sections) ----------- */
/* dark-section cards ("who we work with" / "who it's for") */
.section--dark .cards { background: var(--border-dark); border-color: var(--border-dark); }
.section--dark .card { background: var(--charcoal-800); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: var(--on-dark-muted); }
.section--dark .card__num { color: var(--accent); }
.section--dark .card__link { color: #fff; }
.section--dark .card:hover { background: var(--charcoal-700); }
.section--dark .card:hover .card__link { color: var(--accent); }
/* FAQ answers on dark sections were dark-on-dark */
.section--dark .faq details > div p { color: var(--on-dark-muted); }
/* process step copy on dark sections */
.section--dark .step p { color: var(--on-dark-muted); }
/* comparison table: always a readable light card, even inside a dark section */
table.compare { background: var(--surface); }
.compare th, .compare td { color: var(--ink); }
.section--dark .table-wrap { border-color: var(--border-dark); }

/* ---------- 38. Hero background video ------------------------------------- */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.08) brightness(0.92);
}
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
