/* ==========================================================================
   California Technical Media — style.css
   Single stylesheet. Built to DESIGN-SPEC v1.0 (2026-05-24).
   Desktop-first. Breakpoints: 1100 / 820 / 480.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color — ink + grey ramp */
  --ink: #1A1A1A;
  --text: #2A2A2A;
  --text-secondary: #5C5C5C;
  --text-muted: #767676;
  --text-on-dark: #FFFFFF;
  --text-on-dark-2: #C2C2C2;
  --border: #E0E0E0;

  /* Color — surfaces */
  --surface: #FFFFFF;
  --surface-grey: #EDEDED;
  --surface-dark: #1A1A1A;

  /* Color — red system */
  --red: #9B1B1B;
  --red-hover: #7E1616;
  --red-bright: #E24A3A;
  --red-tint: #F6ECEC;

  /* Motion */
  --transition: 180ms ease;

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
  --header-h: 72px;

  /* Spacing scale: 4 8 16 24 32 48 64 80 96 120 160 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 96px;
  --space-10: 120px;
  --space-11: 160px;

  /* Section vertical padding (steps down at breakpoints) */
  --section-pad: 120px;

  /* Type families */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
iframe { display: block; max-width: 100%; }

a { color: var(--red); }

ul { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

::selection {
  background: var(--red);
  color: #FFFFFF;
}

/* Focus — accessibility requirement (7.7) */
:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 2px;
}
/* On red backgrounds, switch to white outline */
.bg-red :focus-visible,
.hero :focus-visible {
  outline-color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
}

h1 {                              /* Interior page title */
  font-size: 3rem;                /* 48px */
  font-weight: 800;
  line-height: 1.10;
  letter-spacing: -0.015em;
}

h2 {                              /* Section header */
  font-size: 2rem;                /* 32px */
  font-weight: 700;
  line-height: 1.20;
  letter-spacing: -0.01em;
}

h3 {                              /* Card titles, sub-sections */
  font-size: 1.375rem;            /* 22px */
  font-weight: 700;
  line-height: 1.30;
}

p { margin: 0; }

p + p { margin-top: var(--space-3); }

strong { font-weight: 600; }

.lead {
  font-size: 1.25rem;             /* 20px */
  line-height: 1.60;
  font-weight: 400;
  color: var(--text-secondary);
}

.small,
.caption {
  font-size: 1rem;                /* 16px */
  line-height: 1.50;
}

/* Eyebrow / kicker (7.11) */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;           /* 13px */
  font-weight: 700;
  line-height: 1.40;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-3);
}

/* In-body links */
.prose a,
p a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.prose a:hover,
p a:hover { color: var(--red-hover); }

/* Dark-context typography overrides */
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-red h1,
.bg-red h2,
.bg-red h3 { color: var(--text-on-dark); }

.bg-dark .eyebrow,
.bg-red .eyebrow { color: var(--red-bright); }

.bg-red .eyebrow { color: #FFFFFF; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}
.section--tight { padding-block: var(--space-7); }

.bg-grey   { background: var(--surface-grey); }
.bg-dark   { background: var(--surface-dark); color: var(--text-on-dark); }
.bg-red    { background: var(--red); color: var(--text-on-dark); }

.bg-dark p,
.bg-dark .lead,
.bg-dark li { color: var(--text-on-dark-2); }
.bg-red p,
.bg-red .lead,
.bg-red li { color: #FFFFFF; }

/* Red dividers (7.10) */
.divider {
  height: 3px;
  background: var(--red);
  border: 0;
  width: 100%;
}
.bg-dark .divider,
.divider--dark { background: var(--red-bright); }

.rule {                            /* short rule under eyebrow/heading */
  width: 48px;
  height: 3px;
  background: var(--red);
  border: 0;
  margin-bottom: var(--space-4);
}
.bg-dark .rule,
.bg-red .rule { background: var(--red-bright); }
.bg-red .rule { background: #FFFFFF; }

/* Section heading block */
.section-head {
  max-width: 760px;
  margin-bottom: var(--space-7);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .rule { margin-inline: auto; }
.section-head h2 { margin-bottom: var(--space-3); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #FFFFFF;
  padding: var(--space-2) var(--space-4);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   5. Buttons (7.3)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 16px 34px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;            /* 15px */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn--primary {
  background: var(--red);
  color: #FFFFFF;
}
.btn--primary:hover { background: var(--red-hover); }
.btn--primary:active { background: #6A1212; }

.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: #FFFFFF; }

.btn--secondary-dark {
  background: transparent;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
}
.btn--secondary-dark:hover { background: #FFFFFF; color: var(--ink); }

.btn--block { width: 100%; }

/* Tertiary / text link with trailing arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}
.link-arrow:hover { color: var(--red-hover); text-decoration: underline; }
.link-arrow .arrow { transition: transform var(--transition); }
.link-arrow:hover .arrow { transform: translateX(3px); }

.bg-dark .link-arrow,
.bg-red .link-arrow { color: var(--red-bright); }
.bg-red .link-arrow { color: #FFFFFF; }

/* --------------------------------------------------------------------------
   6. Image placeholders
   -------------------------------------------------------------------------- */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-1);
  background: #F0F0F0;
  border: 2px dashed #BDBDBD;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: var(--space-4);
  width: 100%;
  height: 100%;
  min-height: 160px;
}
.img-placeholder .ph-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.img-placeholder .ph-dims {
  font-size: 0.75rem;
  font-family: monospace;
}
/* Placeholder on dark surfaces stays legible */
.bg-dark .img-placeholder,
.hero .img-placeholder {
  background: #242424;
  border-color: #444;
  color: #888;
}
.bg-dark .img-placeholder .ph-label,
.hero .img-placeholder .ph-label { color: #B0B0B0; }

/* --------------------------------------------------------------------------
   7. Division bar  (top, scrolls away — 7.8)
   -------------------------------------------------------------------------- */
.division-bar {
  background: var(--ink);
  border-bottom: 1px solid #2E2E2E;
}
.division-bar__list {
  display: flex;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.division-bar__item {
  flex: 1;
}
.division-bar__link {
  display: block;
  text-align: center;
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-2);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border-bottom: 3px solid transparent;
}
.division-bar__link:hover { color: #FFFFFF; }
.division-bar__link[aria-current="true"] {
  color: #FFFFFF;
  border-bottom-color: var(--red-bright);
}

/* --------------------------------------------------------------------------
   8. Main header / nav  (sticky — 7.8)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Text logo (CSS until image asset provided) */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-head);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.logo__mark {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
  letter-spacing: -0.02em;
}
.logo__word {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.logo--footer .logo__mark { color: var(--red-bright); }
.logo--footer .logo__word { color: #FFFFFF; }

/* Primary nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.main-nav__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.main-nav__link:hover { color: var(--red); }
.main-nav__link[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}
.main-nav__phone {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav__phone:hover { color: var(--red); }

.main-nav__cta { white-space: nowrap; }
.main-nav__cta.btn { min-height: 44px; padding: 12px 22px; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   9. Hero (5.1)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 86vh;
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media .img-placeholder {
  min-height: 100%;
  border: none;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg,
    rgba(20,20,20,0.92) 0%,
    rgba(20,20,20,0.70) 45%,
    rgba(155,27,27,0.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__content {
  max-width: 680px;
}
.hero h1 {
  font-size: 3.75rem;             /* 60px Hero H1 */
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: var(--space-4);
}
.hero__lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #E6E6E6;
  margin-bottom: var(--space-6);
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Interior page-header band (5.1) */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media .img-placeholder { min-height: 100%; border: none; }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg,
    rgba(20,20,20,0.92) 0%,
    rgba(20,20,20,0.70) 45%,
    rgba(155,27,27,0.55) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-7);
}
.page-hero__content { max-width: 760px; }
.page-hero h1 { color: #FFFFFF; margin-bottom: var(--space-3); }
.page-hero__lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #E6E6E6;
  max-width: 600px;
}
.page-hero .eyebrow { color: var(--red-bright); }

/* --------------------------------------------------------------------------
   10. Showreel / screening room (5.3)
   -------------------------------------------------------------------------- */
.showreel { position: relative; }
.showreel .container { position: relative; }
.video-frame {
  max-width: 1120px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #2E2E2E;
  background: #000;
  position: relative;
}
.video-frame iframe,
.video-frame .img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Lazy Vimeo facade */
.video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: #0E0E0E;
  cursor: pointer;
  color: #FFFFFF;
}
.video-facade__play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.video-facade:hover .video-facade__play {
  background: var(--red-hover);
  transform: scale(1.06);
}
.video-facade__play svg { fill: #FFFFFF; margin-left: 4px; }
.video-facade__text {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-2);
}

/* --------------------------------------------------------------------------
   11. Stats bar (7.13)
   -------------------------------------------------------------------------- */
.stats {
  background: var(--surface-dark);
  padding-block: 56px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  padding-inline: var(--space-4);
}
.stat + .stat { border-left: 1px solid #333; }
.stat__num {
  font-family: var(--font-head);
  font-size: 3.5rem;              /* 56px */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--red-bright);
}
.stat__label {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-2);
}

/* --------------------------------------------------------------------------
   12. Client logo bar (5.2)
   -------------------------------------------------------------------------- */
.logos__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.logo-cell {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: var(--space-4);
}
.logo-cell img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.logo-cell .img-placeholder {
  min-height: 40px;
  max-height: 56px;
  border-width: 1px;
}
/* Logo on grey section */
.bg-grey .logo-cell { background: var(--surface-grey); }
.bg-grey .logos__grid { background: #D8D8D8; border-color: #D8D8D8; }

/* --------------------------------------------------------------------------
   13. Industry cards (3.2)
   -------------------------------------------------------------------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.industry-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
  text-decoration: none;
  color: #FFFFFF;
}
.industry-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.industry-card__media .img-placeholder {
  height: 100%;
  border: none;
  background: #242424;
}
.industry-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.industry-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(20,20,20,0) 35%,
    rgba(20,20,20,0.85) 100%);
}
.industry-card__rule {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 3px;
  width: 64px;
  background: var(--red-bright);
  transition: width 300ms ease;
}
.industry-card__body {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  padding: var(--space-5);
}
.industry-card__body h3 { color: #FFFFFF; margin-bottom: var(--space-1); }
.industry-card__desc {
  color: var(--text-on-dark-2);
  font-size: 0.9375rem;
  margin-bottom: var(--space-3);
}
.industry-card__cue {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.industry-card:hover .industry-card__img { transform: scale(1.04); }
.industry-card:hover .industry-card__rule { width: 100%; }

/* --------------------------------------------------------------------------
   14. Litigation crosslink (3.3)
   -------------------------------------------------------------------------- */
.crosslink {
  background: var(--red);
  color: #FFFFFF;
}
.crosslink__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.crosslink__media { aspect-ratio: 3 / 2; }
.crosslink__media .img-placeholder {
  height: 100%;
  background: #7E1616;
  border-color: rgba(255,255,255,0.4);
  color: #F0D9D9;
}
.crosslink__media .img-placeholder .ph-label { color: #FFFFFF; }
.crosslink h2 { color: #FFFFFF; margin-bottom: var(--space-3); }
.crosslink p { color: #FFFFFF; margin-bottom: var(--space-5); }
.crosslink .eyebrow { color: #FFFFFF; opacity: 0.85; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--surface-dark);
  text-align: center;
}
.cta-band__inner { max-width: 640px; margin-inline: auto; }
.cta-band h2 { color: #FFFFFF; margin-bottom: var(--space-3); }
.cta-band p { color: var(--text-on-dark-2); margin-bottom: var(--space-6); }
.cta-band .hero__actions,
.cta-band .actions { justify-content: center; }

/* --------------------------------------------------------------------------
   16. Generic content blocks
   -------------------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Two-column feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.feature-row--reverse .feature-row__media { order: 2; }
.feature-row__media { aspect-ratio: 3 / 2; }
.feature-row__media .img-placeholder { height: 100%; }
.feature-row h2 { margin-bottom: var(--space-3); }

/* Value / icon-free list grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.value-card {
  border: 1px solid var(--border);
  padding: var(--space-5);
  background: var(--surface);
}
.bg-grey .value-card { background: var(--surface); }
.value-card h3 { margin-bottom: var(--space-2); }
.value-card p { color: var(--text-secondary); font-size: 1rem; }
.value-card__num {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: var(--space-2);
}

/* Work thumbnail grid (industry pages + work page) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.work-item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  text-decoration: none;
}
.work-item__media { position: absolute; inset: 0; overflow: hidden; }
.work-item__media .img-placeholder { height: 100%; border: none; background: #242424; }
.work-item__media img,
.work-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}
.work-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(to bottom, rgba(20,20,20,0) 45%, rgba(20,20,20,0.88) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
}
.work-item__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #FFFFFF;
}
.work-item__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 2px;
}
.work-item:hover .work-item__media img { transform: scale(1.04); }
.work-item:hover .work-item__overlay { opacity: 1; }
.work-item:focus-visible .work-item__overlay { opacity: 1; }

/* --------------------------------------------------------------------------
   17. Team section (5.4)
   -------------------------------------------------------------------------- */
.team-row {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: var(--space-8);
  align-items: start;
}
.team-row + .team-row { margin-top: var(--space-9); }
.team-photo { width: 100%; }
.team-photo__frame { }
.team-photo__frame .img-placeholder { height: 100%; }
.team-photo__frame img { display: block; width: 100%; height: auto; }
.team-photo__rule { height: 3px; background: var(--red); width: 100%; }
.team-bio__name { margin-bottom: var(--space-1); }
.team-bio__role {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-4);
}
.team-bio p { color: var(--text-secondary); }
.team-bio p + p { margin-top: var(--space-3); }

/* --------------------------------------------------------------------------
   18. About-page project index (3.4)
   -------------------------------------------------------------------------- */
.catalog-block + .catalog-block {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.catalog-block__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.catalog-block__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.catalog-block__title {
  font-size: 2rem;
  font-weight: 700;
}
.catalog-block__rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: var(--space-5);
}
.catalog-list {
  column-count: 4;
  column-gap: 40px;
}
.catalog-list li {
  font-size: 1rem;                /* 16px */
  line-height: 1.5;
  color: var(--text);
  padding-block: 6px;
  border-bottom: 1px solid #ECECEC;
  break-inside: avoid;
}

/* --------------------------------------------------------------------------
   19. Contact page (7.14)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
}
.contact-detail {
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
}
.contact-detail:first-of-type { border-top: 0; }
.contact-detail__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-1);
}
.contact-detail a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.contact-detail a:hover { color: var(--red); }
.contact-detail p { color: var(--text-secondary); }

/* Form */
.form-field { margin-bottom: var(--space-4); }
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  transition: border-color var(--transition);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--red);
  outline: 3px solid var(--red-bright);
  outline-offset: 2px;
}
.form-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-required { color: var(--red); }

/* --------------------------------------------------------------------------
   20. Footer (5.5)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark-2);
  border-top: 4px solid var(--red);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-block: 80px var(--space-7);
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-on-dark-2);
  margin-bottom: var(--space-4);
}
.footer-about__desc {
  font-size: 0.9375rem;
  color: var(--text-on-dark-2);
  margin-block: var(--space-3) var(--space-5);
  max-width: 320px;
}
.footer-badges {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}
.footer-badge {
  max-height: 70px;
  width: auto;
  display: block;
}
.footer-badges .img-placeholder {
  width: 110px;
  height: 64px;
  min-height: 64px;
  background: #242424;
  border-color: #444;
  color: #999;
  font-size: 0.7rem;
}
.footer-links li + li { margin-top: var(--space-2); }
.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-on-dark-2);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: #FFFFFF; }
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  color: var(--text-on-dark-2);
  transition: color var(--transition), border-color var(--transition);
}
.footer-social a:hover {
  color: var(--red-bright);
  border-color: var(--red-bright);
}
.footer-social svg { width: 20px; height: 20px; }

.site-footer__bottom {
  border-top: 1px solid #333;
  padding-block: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.site-footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.site-footer__legal {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.site-footer__legal a {
  font-size: 0.875rem;
  color: var(--text-on-dark-2);
  text-decoration: none;
}
.site-footer__legal a:hover { color: #FFFFFF; }

/* --------------------------------------------------------------------------
   21. Legal stub pages
   -------------------------------------------------------------------------- */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-block: var(--space-6) var(--space-3); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-secondary); }
.legal-notice {
  background: var(--red-tint);
  border-left: 3px solid var(--red);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.legal-notice p { color: var(--text); }

/* --------------------------------------------------------------------------
   22. Scroll-in animation (7.15)
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* In-page anchor offset (7.9) */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* --------------------------------------------------------------------------
   23. Responsive — ≤1100px (laptop)
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root {
    --section-pad: 88px;
    --gutter: 24px;
  }
  .hero h1 { font-size: 3.25rem; }
  .industry-grid { gap: 20px; }
  .catalog-list { column-count: 3; }
  .team-row { grid-template-columns: 380px 1fr; gap: var(--space-7); }
  .site-footer__top { gap: 40px; }
}

/* --------------------------------------------------------------------------
   24. Responsive — ≤820px (tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 820px) {
  :root { --section-pad: 64px; }

  /* Nav → hamburger */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-5) var(--gutter) var(--space-8);
    border-top: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav__link {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
  }
  .main-nav__link[aria-current="page"] { border-bottom-color: var(--red); }
  .main-nav__phone {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
  }
  .main-nav__cta.btn {
    margin-top: var(--space-4);
    width: 100%;
    min-height: 48px;
  }

  /* Heroes */
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2.75rem; }

  /* Grids collapse */
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { aspect-ratio: 16 / 10; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .feature-row,
  .feature-row--reverse,
  .crosslink__grid,
  .contact-grid,
  .team-row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .feature-row--reverse .feature-row__media { order: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { margin-top: var(--space-6); }
  .logos__grid { grid-template-columns: repeat(4, 1fr); }
  .catalog-list { column-count: 2; }
  .team-row { max-width: 520px; }

  /* Footer */
  .site-footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7);
  }
}

/* --------------------------------------------------------------------------
   25. Responsive — ≤480px (phone)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --section-pad: 48px;
    --gutter: 20px;
  }
  body { font-size: 1rem; }

  .hero h1 { font-size: 2.5rem; }      /* 40px */
  .hero__lead { font-size: 1.125rem; }
  h1 { font-size: 2rem; }              /* 32px */
  h2 { font-size: 1.625rem; }          /* 26px */
  .lead { font-size: 1.125rem; }
  .catalog-block__title,
  .catalog-block__num { font-size: 1.625rem; }

  .stat__num { font-size: 2.5rem; }    /* 40px */
  .stat__label { font-size: 0.8125rem; }

  .work-grid { grid-template-columns: 1fr; }
  .logos__grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-list { column-count: 1; }

  /* Full-width CTAs */
  .hero__actions .btn,
  .actions .btn,
  .cta-band .btn { width: 100%; }

  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   26. Reduced motion (7.15)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   27. Work lightbox
   -------------------------------------------------------------------------- */
.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-lightbox[hidden] { display: none; }

.work-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  cursor: pointer;
}

.work-lightbox__card {
  position: relative;
  width: min(900px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
}

.work-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.work-lightbox__close:hover,
.work-lightbox__close:focus-visible {
  background: var(--c-primary, #9B1B1B);
}

.work-lightbox__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
}
.work-lightbox__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-lightbox__body {
  padding: 1.5rem 2rem 2rem;
}

.work-lightbox__title {
  font-family: var(--ff-display, 'Source Serif 4', serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 .35rem;
}

.work-lightbox__tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-primary, #9B1B1B);
  margin-bottom: .75rem;
}

.work-lightbox__desc {
  font-size: .95rem;
  line-height: 1.6;
  color: #444;
  margin: 0;
}

/* (Portfolio thumbnail img rules consolidated into section 16 above) */
