/* ============================================================================
   DEFENDER SECURITY — "THE STANDARD OF VIGILANCE"
   Premium dark theme · brand navy + gold
   Big Shoulders / Archivo / IBM Plex Mono
   ----------------------------------------------------------------------------
   Loaded site-wide. Page <head> only needs the font <link> + this stylesheet.
   Token names are kept stable so inline var() references keep working.
   ========================================================================== */

/* ----------------------------------------------------------------- TOKENS */
:root {
  /* surfaces (dark) */
  --paper:      #0a0e1a;   /* body base — brand navy                */
  --paper-2:    #0d1322;   /* lifted / alternating section          */
  --card:       #121a2c;   /* card / input field                    */
  --panel:      #080b14;   /* deepest panels (hero, footer, asides) */
  --panel-2:    #0f1727;   /* elevated panel                        */

  /* text scale (light) — names retained from prior build */
  --ink:        #f5f4ee;   /* primary text + headings               */
  --ink-2:      #e7e8ec;
  --ink-soft:   #cdd2db;   /* body copy                             */
  --muted:      #97a0b2;   /* secondary copy                        */
  --muted-2:    #6a7488;   /* faint labels                          */
  --line:       rgba(201,168,76,0.18);  /* gold hairline            */
  --line-soft:  rgba(245,244,238,0.08); /* neutral hairline         */

  /* gold accent (primary). pine* names retained → now gold */
  --gold:       #c9a84c;
  --gold-light: #e8c96b;
  --gold-deep:  #9c7e34;
  --gold-pale:  #f5e6b0;
  --pine:       #c9a84c;   /* primary accent (alias → gold)         */
  --pine-2:     #e8c96b;   /* links / hover (alias → gold-light)    */
  --pine-ink:   #080b14;
  --brass:      #c9a84c;   /* hairline accents / numerals           */
  --brass-2:    #e8c96b;
  --alert:      #e0563f;   /* emergency red — used sparingly         */

  /* on-dark aliases (everything is dark now) */
  --on-dark:        #f5f4ee;
  --on-dark-muted:  rgba(245,244,238,0.62);
  --on-dark-line:   rgba(245,244,238,0.12);

  /* type */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body:    "Archivo", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* metrics */
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --nav-h: 76px;
  --radius: 3px;
  --section-y: clamp(2.25rem, 4vw, 4rem);

  --shadow-sm: 0 1px 0 rgba(255,255,255,0.02), 0 10px 30px -18px rgba(0,0,0,0.7);
  --shadow-lg: 0 30px 70px -32px rgba(0,0,0,0.85);
  --glow-gold: 0 0 0 1px rgba(201,168,76,0.25), 0 18px 50px -24px rgba(201,168,76,0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------------------------------------------------- RESET/BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--body);
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(201,168,76,0.07), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(28,37,55,0.5), transparent 60%);
  background-attachment: fixed;
}

/* fine grain — subtle premium texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
nav, main, footer, .wa-float { position: relative; z-index: 2; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

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

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

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { background: #2a344c; border: 3px solid var(--panel); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* -------------------------------------------------------------- TYPOGRAPHY */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}

h1 { font-size: clamp(3.2rem, 9vw, 7rem); }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; }

p { color: var(--ink-soft); }

/* mono "field label" — the dossier eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
}
.eyebrow.is-light { color: var(--gold-light); }
.eyebrow.is-light::before { background: var(--gold-light); }
.eyebrow.is-center { justify-content: center; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  font-weight: 400;
}

.coord {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ----------------------------------------------------------------- LAYOUT */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section, .band { position: relative; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }

/* tighten the seam between hero and the first content section */
.hero + .section,
.page-hero + .section { padding-top: clamp(2.25rem, 4vw, 3.5rem); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 1rem; }
.section-head .lede { margin-top: 1.1rem; }
.section-head.is-center .lede { margin-inline: auto; }

.rule { height: 1px; width: 100%; background: var(--line); transform-origin: left; }

/* section surfaces */
.band--ink { background: var(--panel); }
.band--pine { background: var(--panel-2); }
.band--alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line-soft);
}

/* reticle corner ticks */
.ticks { position: relative; }
.ticks::before, .ticks::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1.5px solid var(--gold);
  pointer-events: none;
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}
.ticks::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.ticks::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ---------------------------------------------------------------- BUTTONS */
.btn {
  --bg: var(--gold);
  --fg: var(--panel);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.75rem;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.4s var(--ease);
  isolation: isolate;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-light);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); }
.btn:hover::after { transform: translateY(0); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost {
  --bg: transparent; --fg: var(--gold);
  border-color: rgba(201,168,76,0.45);
}
.btn--ghost::after { background: var(--gold); }
.btn--ghost:hover { color: var(--panel); border-color: var(--gold); }

/* light / ghost-light kept as aliases for dark bands */
.btn--light { --bg: var(--gold); --fg: var(--panel); border-color: var(--gold); }
.btn--light::after { background: var(--gold-light); }
.btn--light:hover { color: var(--panel); }

.btn--ghost-light {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--on-dark-line);
}
.btn--ghost-light::after { background: var(--gold); }
.btn--ghost-light:hover { color: var(--panel); border-color: var(--gold); }

.btn--alert { --bg: var(--alert); --fg: #fff; border-color: var(--alert); }
.btn--alert::after { background: #f06a54; }
.btn--block { width: 100%; justify-content: center; }

/* --------------------------------------------------------------------- NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  background: rgba(8,11,20,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(8,11,20,0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px -26px rgba(0,0,0,0.9);
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; margin-right: auto; }
.nav-logo img { width: auto; height: 46px; object-fit: contain; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark strong {
  font-family: var(--display); font-weight: 800; font-size: 1.45rem;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink);
}
.brand-wordmark span {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-top: 3px; white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative; white-space: nowrap;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding-block: 0.35rem;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.45rem;
  white-space: nowrap;
}
.nav-phone .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--alert);
  box-shadow: 0 0 0 0 rgba(224,86,63,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(224,86,63,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(224,86,63,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,86,63,0); }
}
.btn-contact {
  padding: 0.7rem 1.2rem;
  background: var(--gold); color: var(--panel);
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--gold); border-radius: var(--radius);
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.4s;
}
.btn-contact:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--glow-gold); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: 0; padding: 0.5rem; cursor: pointer;
}
.nav-hamburger span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: var(--panel);
  display: flex; flex-direction: column;
  padding: 1rem var(--gutter) 2rem;
  transform: translateY(-130%);
  transition: transform 0.45s var(--ease);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
  padding: 1rem 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-child { border-bottom: 0; color: var(--gold-light); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; top: 0; left: 0; z-index: 9999;
  padding: 0.85rem 1.5rem; background: var(--gold); color: var(--panel);
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* --------------------------------------------------------------------- HERO */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(3.5rem, 9vw, 6rem) clamp(2rem, 4vw, 3rem);
  background: var(--panel);
  color: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  filter: contrast(1.02) saturate(1.04) brightness(1.04);
}
/* premium directional navy wash + gold glow */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(10,14,26,0.82) 0%, rgba(10,14,26,0.55) 36%, rgba(10,14,26,0.18) 66%, rgba(10,14,26,0.05) 100%),
    linear-gradient(0deg, rgba(7,10,18,0.48) 0%, rgba(7,10,18,0) 45%),
    radial-gradient(120% 80% at 88% 4%, rgba(201,168,76,0.18), transparent 50%);
}
.hero-inner { width: 100%; max-width: var(--container); margin-inline: 0 auto; padding-inline: var(--gutter); }
.page-hero .container { margin-inline: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }

.hero h1 { color: var(--ink); margin: 1.4rem 0; text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.hero h1 .accent { color: var(--gold); display: block; }
.hero-lede { color: var(--on-dark-muted); max-width: 50ch; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }
.hero-rule { margin: 2.25rem 0 0; height: 1px; background: var(--on-dark-line); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--on-dark-line);
}
.hero-stat { padding: 1.5rem 1.25rem 0; border-left: 1px solid var(--on-dark-line); }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat .num {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1; color: var(--ink);
}
.hero-stat .num .plus { color: var(--gold); }
.hero-stat .label {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--on-dark-muted); margin-top: 0.6rem;
}

.hero-frame { position: absolute; inset: 18px; z-index: -1; pointer-events: none; }
.hero-frame span { position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(201,168,76,0.4); }
.hero-frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hero-frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hero-frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ----------------------------------------------------- SUBPAGE PAGE HEADER */
.page-hero {
  position: relative; isolation: isolate;
  background: var(--panel); color: var(--ink);
  padding-block: clamp(6.5rem, 12vw, 9.5rem) clamp(2.75rem, 5vw, 4.5rem);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.02) saturate(1.04) brightness(0.92); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,14,26,0.80) 0%, rgba(10,14,26,0.50) 48%, rgba(10,14,26,0.24) 100%),
    linear-gradient(0deg, rgba(7,10,18,0.42), rgba(7,10,18,0) 55%),
    radial-gradient(100% 80% at 90% 0%, rgba(201,168,76,0.14), transparent 55%);
}
.page-hero h1 { color: var(--ink); margin-top: 1.25rem; font-size: clamp(2.8rem, 7vw, 5.5rem); }
.page-hero .lede { color: var(--on-dark-muted); margin-top: 1.4rem; }
.breadcrumb { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: var(--gold); margin-inline: 0.5rem; }

/* ------------------------------------------------------------- MISSION/SPLIT */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }

.media-frame { position: relative; }
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); filter: contrast(1.03) saturate(1.03); }
.media-frame .stamp {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--gold); color: var(--panel);
  font-family: var(--display); font-weight: 800; line-height: 0.85;
  text-transform: uppercase; text-align: center;
  padding: 1.1rem 1.3rem; border: 4px solid var(--paper);
  font-size: 1.6rem; box-shadow: var(--shadow-lg);
}
.media-frame .stamp small { display: block; font-family: var(--mono); font-size: 0.55rem; font-weight: 500; letter-spacing: 0.18em; margin-bottom: 0.25rem; opacity: 0.85; }

.feature-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.25rem; }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
}
.feature:first-child { border-top: 0; padding-top: 0; }
.feature .f-no { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--gold); letter-spacing: 0.1em; padding-top: 0.3rem; }
.feature h4 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.feature p { font-size: 0.95rem; margin-top: 0.35rem; color: var(--muted); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

/* ----------------------------------------------------------- SERVICE CARDS */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.service-card {
  position: relative; display: block; background: var(--card);
  overflow: hidden; isolation: isolate;
  transition: background 0.4s var(--ease);
}
.service-card-media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.service-card-media .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: contrast(1.05) saturate(1.02) brightness(0.82);
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.service-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.1), rgba(10,14,26,0.78));
}
.service-no { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--ink); }
.service-card-body { padding: 1.75rem 1.6rem 2rem; position: relative; }
.service-kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.service-card-body h3 { margin: 0.7rem 0 0.6rem; color: var(--ink); }
.service-card-body p { font-size: 0.92rem; color: var(--muted); }
.service-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 500;
}
.service-arrow::after { content: "→"; transition: transform 0.35s var(--ease); }
.service-card:hover { background: var(--panel-2); }
.service-card:hover .service-card-media .img { transform: scale(1.06); filter: contrast(1.05) saturate(1.1) brightness(0.92); }
.service-card:hover .service-arrow::after { transform: translateX(5px); }
.service-card::before, .service-card::after {
  content: ""; position: absolute; width: 0; height: 0; z-index: 3; pointer-events: none;
  border-color: var(--gold); transition: width 0.35s var(--ease), height 0.35s var(--ease);
}
.service-card::before { top: 0.7rem; right: 0.7rem; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); }
.service-card::after { bottom: 0.7rem; left: 0.7rem; border-bottom: 1.5px solid var(--gold); border-left: 1.5px solid var(--gold); }
.service-card:hover::before, .service-card:hover::after { width: 16px; height: 16px; }

/* detailed service rows (services.html) */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(2.5rem,5vw,4rem); border-top: 1px solid var(--line-soft); }
.svc-detail:first-child { border-top: 0; padding-top: clamp(1rem,2vw,2rem); }
.svc-detail:nth-child(even) .svc-detail-media { order: 2; }
.svc-detail-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.svc-detail-text h2 { color: var(--ink); }
.svc-points { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.svc-points li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); font-size: 0.97rem; }
.svc-points li::before { content: "▸"; color: var(--gold); font-size: 0.9rem; line-height: 1.5; }

/* --------------------------------------------------------------- STATS BAND */
.stats-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(201,168,76,0.12), transparent 60%),
    var(--panel-2);
  border-block: 1px solid var(--line);
}
.stats-band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: linear-gradient(rgba(201,168,76,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.14) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stat-block { text-align: center; padding: 1rem; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1; color: var(--ink); }
.stat-num .plus { color: var(--gold); }
.stat-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 0.75rem; }

/* ----------------------------------------------------------------- CLIENTS */
.clients { overflow: hidden; }
.marquee-wrap {
  position: relative; margin-top: 3rem; background: var(--panel-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  border-block: 1px solid var(--line);
}
.marquee { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-item {
  flex: 0 0 auto; width: 210px; height: 132px;
  display: grid; place-items: center; padding: 1.4rem 1.6rem;
  border-right: 1px solid var(--line-soft);
}
.client-item img {
  width: 160px; height: 76px; object-fit: contain;
  background: #f4f2ec; border-radius: var(--radius); padding: 0.7rem 0.95rem;
  filter: grayscale(1); opacity: 0.92;
  transition: filter 0.4s, opacity 0.4s, transform 0.4s var(--ease);
}
.client-item:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.04); }

/* ----------------------------------------------------------------- GALLERY */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.gallery-head .lede { margin: 0; }
.gallery-head h2 { color: var(--ink); }
.gallery-shell { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gallery-stage { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); }
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-control {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(8,11,20,0.7); color: var(--ink);
  border: 1px solid var(--line); cursor: pointer; font-size: 1.5rem;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background 0.3s, color 0.3s;
}
.gallery-control:hover { background: var(--gold); color: var(--panel); }
.gallery-prev { left: 1rem; } .gallery-next { right: 1rem; }
.gallery-meta {
  position: absolute; bottom: 1rem; left: 1rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--ink); background: rgba(8,11,20,0.7);
  padding: 0.4rem 0.75rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid var(--line-soft);
}
.gallery-thumbs { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.5rem; }
.gallery-thumb {
  flex: 0 0 auto; width: 90px; height: 64px; padding: 0; border: 1px solid var(--line-soft);
  background: var(--card); cursor: pointer; overflow: hidden; opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.gallery-thumb.active { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

/* --------------------------------------------------------------------- FAQ */
.faq-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: transparent; border: 0; cursor: pointer; text-align: left;
  padding: 1.4rem 0; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--gold-light); }
.faq-q .arrow { font-family: var(--body); font-size: 0.8rem; color: var(--gold); transition: transform 0.35s var(--ease); flex: 0 0 auto; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a-inner { padding: 0 0 1.5rem; color: var(--muted); font-size: 0.97rem; max-width: 60ch; }
.faq-item.open .faq-a { max-height: 320px; }

.faq-aside {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201,168,76,0.12), transparent 55%),
    var(--card);
  border: 1px solid var(--line);
  color: var(--ink); padding: clamp(2rem,4vw,2.75rem); border-radius: var(--radius); position: relative; overflow: hidden;
}
.faq-aside h3 { color: var(--ink); }
.faq-aside p { color: var(--muted); margin: 1rem 0 1.75rem; }
.gain-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); }
.gain-list li { display: flex; gap: 0.75rem; align-items: center; color: var(--ink-soft); font-size: 0.92rem; }
.gain-list li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* --------------------------------------------------------------- CONTACT BAND */
.contact-band {
  background:
    radial-gradient(80% 130% at 12% 0%, rgba(201,168,76,0.1), transparent 55%),
    var(--panel);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.contact-band .inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem,5vw,4rem); align-items: center; }
.contact-band h2 { color: var(--ink); margin: 1rem 0 1.25rem; }
.contact-band p { color: var(--on-dark-muted); margin-bottom: 2rem; }
.contact-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.contact-block { background: var(--card); padding: 1.5rem; }
.contact-block .ico { font-size: 1.1rem; color: var(--gold-light); }
.contact-block h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0.75rem 0 0.5rem; }
.contact-block p, .contact-block a { color: var(--ink); font-size: 0.92rem; }
.contact-block a:hover { color: var(--gold-light); }

/* ------------------------------------------------------------------- FORMS */
.form-card { background: var(--card); border: 1px solid var(--line); padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field label .req { color: var(--alert); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 0.97rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 0.85rem 1rem; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--panel-2);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field select option { background: var(--panel); color: var(--ink); }
.form-note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted-2); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; }
.form-status.success { color: var(--gold-light); }
.form-status.error { color: var(--alert); }

.detail-list { display: flex; flex-direction: column; }
.detail-row { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: 1.5rem 0; border-top: 1px solid var(--line-soft); align-items: start; }
.detail-row:first-child { border-top: 0; }
.detail-row .ico { font-size: 1.2rem; color: var(--gold-light); padding-top: 0.15rem; }
.detail-row h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.4rem; }
.detail-row a, .detail-row p { color: var(--ink); font-size: 0.97rem; }
.detail-row a:hover { color: var(--gold-light); }

.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05) brightness(0.9); }

/* --------------------------------------------------------------------- PROSE */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.5rem 0 1rem; color: var(--ink); }
.prose h3 { font-size: 1.2rem; margin: 1.75rem 0 0.75rem; color: var(--ink); }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose ul { margin: 0 0 1.25rem 1.25rem; list-style: none; }
.prose ul li { position: relative; padding-left: 1.25rem; margin-bottom: 0.5rem; color: var(--ink-soft); }
.prose ul li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }
.prose a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* ------------------------------------------------- TILES / VALUE / INFO */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tile { background: var(--card); border: 1px solid var(--line-soft); padding: 2rem 1.75rem; border-radius: var(--radius); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.tile .t-no { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--gold); }
.tile h3 { font-size: 1.3rem; margin: 0.85rem 0 0.6rem; color: var(--ink); }
.tile p { font-size: 0.93rem; color: var(--muted); }
.tile .ico { font-size: 1.6rem; margin-bottom: 0.85rem; display: block; color: var(--gold-light); }
.tile .ico svg { width: 2.1rem; height: 2.1rem; display: block; }

/* job openings list */
.job-list { display: flex; flex-direction: column; gap: 1rem; }
.job-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--card); border: 1px solid var(--line-soft); padding: 1.5rem 1.75rem; border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.4s;
}
.job-row:hover { border-color: var(--gold); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.job-row .j-no { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }
.job-row h3 { font-size: 1.25rem; color: var(--ink); }
.job-row .j-meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); border: 1px solid var(--line); padding: 0.3rem 0.6rem; border-radius: 99px; margin-bottom: 0.6rem; }

/* ---------------------------------------------------------------- TIMELINE */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 2.5rem 2.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--paper); border: 3px solid var(--gold);
}
.timeline-item:hover::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.15); }
.timeline-year { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--gold); }
.timeline-item h3 { font-size: 1.3rem; margin: 0.45rem 0 0.5rem; color: var(--ink); }
.timeline-item p { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }

/* -------------------------------------------------------------------- TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.team-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2.25rem 1.5rem; text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.team-monogram {
  width: 66px; height: 66px; margin: 0 auto 1.4rem; display: grid; place-items: center;
  font-size: 1.7rem; background: rgba(201,168,76,0.12); color: var(--gold); border-radius: 50%;
  border: 1px solid var(--line);
}
.team-card h3 { font-size: 1.2rem; color: var(--ink); }
.team-card span { display: block; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.brochure-strip { margin-top: 2.5rem; display: flex; justify-content: center; }

/* ------------------------------------------------------------------ FOOTER */
footer { background: var(--panel); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand img { width: auto; height: 64px; object-fit: contain; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.25rem; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--muted); font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: clamp(2.5rem,5vw,3.5rem); padding-top: 1.75rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { color: var(--muted-2); font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.04em; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--muted-2); font-size: 0.78rem; font-family: var(--mono); letter-spacing: 0.06em; }
.footer-legal a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------- WA FLOAT */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--gold); color: var(--panel);
  box-shadow: var(--shadow-lg), var(--glow-gold);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.wa-float:hover { transform: scale(1.08) rotate(-4deg); background: var(--gold-light); }

/* --------------------------------------------------------------- ANIMATION */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

.hero [data-load] { opacity: 0; transform: translateY(24px); animation: load-up 0.9s var(--ease) forwards; }
.hero [data-load="1"] { animation-delay: 0.1s; }
.hero [data-load="2"] { animation-delay: 0.28s; }
.hero [data-load="3"] { animation-delay: 0.46s; }
.hero [data-load="4"] { animation-delay: 0.62s; }
.hero [data-load="5"] { animation-delay: 0.78s; }
.hero [data-load="6"] { animation-delay: 0.94s; }
@keyframes load-up { to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------- RESPONSIVE */
@media (max-width: 1140px) {
  .nav-phone { display: none; }
  .nav-links { gap: 1.4rem; }
}

@media (max-width: 1024px) {
  :root { --nav-h: 70px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .split, .faq-grid, .contact-band .inner, .svc-detail, .form-grid { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail-media { order: 0; }
  .media-frame { max-width: 520px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-stat { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--on-dark-line); }
  .hero-stat:nth-child(-n+2) { margin-top: 0; border-top: 0; }
}

@media (max-width: 680px) {
  :root { --nav-h: 62px; }
  .nav-logo { gap: 0.6rem; }
  .nav-logo img { height: 40px; }
  .brand-wordmark strong { font-size: 1.2rem; }
  .brand-wordmark span { font-size: 0.54rem; letter-spacing: 0.18em; }
  .cards-grid, .tile-grid, .team-grid { grid-template-columns: 1fr; }
  .stats-grid, .contact-blocks { grid-template-columns: 1fr 1fr; }
  .stat-block { padding: 1.5rem 0.5rem; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
  .media-frame .stamp { right: 0; bottom: -14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .job-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (max-width: 420px) {
  .hero-stats, .stats-grid, .contact-blocks { grid-template-columns: 1fr; }
  .hero-stat { border-left: 0; padding-left: 0; }
}

/* ----------------------------------------------------- REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero [data-load] { opacity: 1; transform: none; }
}
