/* ============================================================
   IN-LINE Fence & Railing — Design System
   Brand: red / black / white (from logo)
   ============================================================ */

:root {
  --red: #c1272d;
  --red-dark: #9e1e23;
  --ink: #16191c;        /* near-black */
  --charcoal: #23272b;
  --slate: #4a5259;
  --steel: #6b7580;
  --line: #e2e5e8;
  --mist: #f4f6f8;
  --white: #ffffff;
  --gold: #b8912f;       /* used sparingly for "Gold Standard" */

  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --shadow: 0 2px 8px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --radius: 8px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--ink);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #d9dde1; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--red);
  font-size: 1.8rem;
  margin-bottom: .6rem;
}
.section--ink .eyebrow { color: #ff6b70; }
/* Homepage eyebrows: half-again bigger (not doubled) */
body.home .eyebrow { font-size: 1.35rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--charcoal); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  color: var(--ink); text-transform: uppercase; letter-spacing: .02em;
}
.brand__mark b { color: var(--red); }
.brand:hover { text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav__links a {
  color: var(--charcoal); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 6px;
}
.nav__links a:hover { background: var(--mist); text-decoration: none; }
.nav__links a.active { color: var(--red); }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(18,20,23,.94) 0%, rgba(18,20,23,.78) 55%, rgba(193,39,45,.72) 100%),
    repeating-linear-gradient(90deg, #1a1d21 0 38px, #202429 38px 40px);
  color: #fff;
  padding: 110px 0 100px;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: #d7dbdf; }
.hero__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges {
  margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem; color: #fff;
}
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges span::before { content: "▸"; color: var(--red); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card--top { border-top: 4px solid var(--red); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 8px;
  background: rgba(193,39,45,.1); color: var(--red);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
  font-family: var(--font-head); font-weight: 700;
}

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 3rem; color: var(--red); line-height: 1; }
.section--ink .stat__num { color: #ff6b70; }
.stat__label { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--steel); margin-top: 6px; }
.section--ink .stat__label { color: #aab2ba; }

/* ---------- Credential table ---------- */
.creds { width: 100%; border-collapse: collapse; }
.creds th, .creds td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.creds th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); font-size: .95rem; width: 34%; }
.creds td { color: var(--slate); }
.creds tr:hover { background: var(--mist); }

/* ---------- Badge pills ---------- */
.pill {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 6px; padding: 8px 14px; margin: 0 8px 10px 0;
  font-weight: 600; font-size: .92rem; color: var(--charcoal);
}
.pill b { color: var(--ink); font-family: var(--font-head); }

/* ---------- Callout / notice ---------- */
.notice {
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 20px 24px;
}
.notice strong { color: var(--ink); }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .95rem; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 6px; font-family: inherit; font-size: 1rem; color: var(--charcoal);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,39,45,.12);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab2ba; padding: 60px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; }
.site-footer a { color: #c7ced4; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-legal {
  border-top: 1px solid #2c3238; margin-top: 40px; padding-top: 22px;
  font-size: .85rem; color: #7f8890; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-badges { font-family: var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: #aab2ba; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 70px 0 60px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #c7ced4; }
.breadcrumb { font-size: .85rem; color: #8b939b; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.breadcrumb a { color: #c7ced4; }

/* ---------- Org chart ---------- */
.org img { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--steel); }

/* ---------- Responsive ---------- */
/* Document / capability-statement cards */
.doc-subhead { font-family: var(--font-head); font-weight:700; text-transform:uppercase; letter-spacing:.04em; font-size:1.5rem; color:var(--ink); border-bottom:2px solid var(--red); display:inline-block; padding-bottom:6px; margin-bottom:22px; }
.doccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 24px; }
.doccard { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:var(--shadow-sm); text-decoration:none; color:inherit; transition:transform .2s ease, box-shadow .2s ease; }
.doccard:hover { transform:translateY(-5px); box-shadow:var(--shadow); text-decoration:none; }
.doccard__thumb { aspect-ratio: 17/20; overflow:hidden; background:#fff; border-bottom:1px solid var(--line); }
.doccard__thumb img { width:100%; height:100%; object-fit:cover; object-position:top center; display:block; }
.doccard__body { padding:14px 16px 16px; display:flex; flex-direction:column; flex:1; }
.doccard__tag { color:var(--red); font-family:var(--font-head); font-weight:700; font-size:.72rem; letter-spacing:.11em; text-transform:uppercase; margin:0 0 6px; }
.doccard__title { font-family:var(--font-head); font-weight:700; font-size:1.06rem; line-height:1.14; margin:0; color:var(--ink); text-transform:none; }
.doccard__more { margin-top:auto; padding-top:10px; color:var(--red); font-weight:700; font-size:.8rem; }

/* Case-study teaser cards */
.cscards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }
.cscard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.cscard:hover { transform: translateY(-5px); box-shadow: var(--shadow); text-decoration: none; }
.cscard__head { background: #16191c; padding: 18px 20px 15px; }
.cscard__eyebrow { color: #ff5257; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 7px; line-height: 1.35; }
.cscard__title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.1; margin: 0; }
.cscard__meta { color: #9aa3ab; font-size: .82rem; margin: 9px 0 0; line-height: 1.4; }
.cscard__rule { height: 3px; background: var(--red); }
.cscard__imgwrap { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.cscard__imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cscard:hover .cscard__imgwrap img { transform: scale(1.04); }
.cscard__blurb { color: var(--slate); font-size: .86rem; line-height: 1.5; padding: 15px 20px 18px; margin: 0; flex: 1; }
.cscard__more { display: block; margin-top: 11px; color: var(--red); font-weight: 700; font-size: .82rem; }
@media (max-width: 620px){ .cscards { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none; box-shadow: var(--shadow);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--mist); }
  .nav__cta { margin: 10px 0 0; text-align: center; }
  .nav__toggle { display: block; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

/* ---------- Logo in nav ---------- */
.brand__logo { height: 56px; width: auto; display: block; }

/* ---------- Hero with background image ---------- */
.hero--photo {
  background:
    linear-gradient(105deg, rgba(16,18,21,.93) 0%, rgba(16,18,21,.80) 45%, rgba(16,18,21,.55) 100%),
    url("../img/projects/hero-cvlink.jpg");
  background-size: cover;
  background-position: center right;
}

/* ---------- Photo gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background:#000; }
.gallery img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; display:block; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: #fff; padding: 26px 14px 12px; font-size: .85rem; font-weight: 600;
}
.gallery--tall img { height: 260px; }

/* ---------- Client / prime lists ---------- */
.clients { display: grid; gap: 22px; }
.clients__row { }
.clients__label {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  color: var(--red); font-size: 1rem; margin-bottom: 8px;
}
.section--ink .clients__label { color: #ff6b70; }
.clients__names { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 26px; row-gap: 12px; font-size: 1.1rem; line-height: 1.35; }
.clients__names span { white-space: nowrap; }

/* ---------- Cert badge grid ---------- */
.certs { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; border-top: 3px solid var(--gold);
}
.cert b { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); display:block; text-transform: uppercase; }
.cert span { color: var(--slate); font-size: .9rem; }

/* ---------- Big quote ---------- */
.quote { text-align: center; max-width: 860px; margin: 0 auto; }
.quote p { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; color: var(--white); text-transform: none; }
.quote cite { display:block; margin-top: 18px; color:#aab2ba; font-style: normal; letter-spacing: .08em; text-transform: uppercase; font-size:.85rem; }

/* ---------- Project table ---------- */
.ptable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ptable th, .ptable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ptable thead th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--ink); font-size:.9rem; }
.ptable tbody tr:hover { background: var(--mist); }
.ptable .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--ink); }
.ptable .scope { color: var(--red); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .certs { grid-template-columns: 1fr; }
  .ptable thead th { top: 0; }
}

/* ============================================================
   ELEVATED HOME (v2) — Turner-caliber, In-Line brand
   ============================================================ */

/* Utility top bar */
.topbar { background: var(--ink); color: #c7ced4; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #c7ced4; }
.topbar__creds span { margin-right: 18px; letter-spacing: .04em; }
.topbar__cta a { color: #fff; font-weight: 600; }
@media (max-width: 780px){ .topbar__creds { display:none; } }

/* Cinematic full-bleed hero */
.xhero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.xhero__media { position: absolute; inset: 0; z-index: 0; }
.xhero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.xhero__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(12,14,17,.92) 0%, rgba(12,14,17,.72) 42%, rgba(12,14,17,.28) 100%),
              linear-gradient(0deg, rgba(12,14,17,.85) 0%, rgba(12,14,17,0) 40%); }
.xhero .wrap { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 84px; }
.xhero h1 { color: #fff; font-size: clamp(3rem, 8vw, 6rem); line-height: .96; max-width: 16ch; }
.xhero .lead { color: #dfe3e7; font-size: 1.3rem; max-width: 640px; margin-top: 20px; }
.xhero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.xhero__quick { margin-top: 48px; display: flex; gap: 0; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.18); }
.xhero__quick a { color:#fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing:.04em;
  font-size: 1.05rem; padding: 20px 34px 20px 0; margin-right: 34px; display:flex; align-items:center; gap:10px; }
.xhero__quick a::after { content:"→"; color: var(--red); transition: transform .2s; }
.xhero__quick a:hover { text-decoration:none; } .xhero__quick a:hover::after { transform: translateX(6px); }

/* Homepage hero — center the title lockup (red line over the headline) */
.xhero--home .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.xhero--home h1, .xhero--home .lead { margin-left: auto; margin-right: auto; }
.xhero--home .xhero__actions { justify-content: center; }
.xhero--home .xhero__quick { justify-content: center; border-top: none; }
.xhero--home .xhero__quick a { padding: 14px 20px; margin: 0 4px; }

/* Big brand logo on the hero — flush to the top-left corner, over the dark sky */
.xhero__brand { position: absolute; top: 34px; left: 34px; z-index: 3; pointer-events: none; }

/* Hero scroll cue — clean bouncing double chevron */
.scrollcue { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; text-decoration: none;
  opacity: .9; transition: opacity .35s ease, visibility .35s ease, transform .35s ease; }
.scrollcue:hover { opacity: 1; }
.scrollcue.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(12px); }
.scrollcue__chev { display: block; width: 24px; height: 24px; position: relative;
  animation: scrollcue-bounce 1.9s ease-in-out infinite; }
.scrollcue__chev--2 { margin-top: -13px; animation-delay: .18s; }
.scrollcue__chev::before { content: ""; position: absolute; inset: 0;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg);
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.6)); }
@keyframes scrollcue-bounce { 0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scrollcue__chev { animation: none; } }
@media (max-width: 700px) { .scrollcue { bottom: 14px; } }
.xhero__brand img { width: min(475px, 64vw); display: block; filter: drop-shadow(0 6px 26px rgba(0,0,0,.75)); }
@media (max-width: 620px){ .xhero__brand { top: 20px; left: 18px; } .xhero__brand img { width: 66vw; } }

/* Homepage hero — raise the bridge into view + lighter scrim so the railing reads */
.xhero--home .xhero__media img { object-position: center 80%; }
.xhero--home .xhero__scrim {
  background: linear-gradient(90deg, rgba(12,14,17,.86) 0%, rgba(12,14,17,.55) 46%, rgba(12,14,17,.12) 100%),
              linear-gradient(0deg, rgba(12,14,17,.70) 0%, rgba(12,14,17,0) 44%);
}

/* Section headers */
.xhead { max-width: 760px; }
.xhead.center { margin-left: auto; margin-right: auto; }
.xhead--center { margin: 0 auto; text-align: center; }
.xhead h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }

/* Play button */
.playbtn { display:inline-flex; align-items:center; gap:14px; color:#fff; font-family:var(--font-head);
  text-transform:uppercase; letter-spacing:.05em; font-size:1.1rem; cursor:pointer; }
.playbtn i { width:60px; height:60px; border-radius:50%; background:var(--red); display:grid; place-items:center;
  font-style:normal; box-shadow:0 8px 30px rgba(193,39,45,.5); transition: transform .2s; }
.playbtn:hover i { transform: scale(1.08); } .playbtn:hover { text-decoration:none; }
.playbtn i::before { content:""; border-left:18px solid #fff; border-top:11px solid transparent; border-bottom:11px solid transparent; margin-left:5px; }

/* Movie-poster title */
.movietitle {
  font-family: var(--font-head);
  font-size: clamp(3.6rem, 10vw, 8rem);
  text-transform: uppercase; letter-spacing: .06em; line-height: .9;
  background: linear-gradient(180deg, #ffffff 0%, #e7eaec 40%, #9aa2a9 78%, #cfd4d8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.6)) drop-shadow(0 14px 40px rgba(0,0,0,.55));
  margin: 4px 0;
}

/* Video feature */
.videofeature { background:#000; }
.videofeature video { width:100%; display:block; border-radius: var(--radius); }
.videowrap { position:relative; border-radius:var(--radius); overflow:hidden; box-shadow: var(--shadow); }

/* GC pitch */
.pitch { background: var(--ink); color:#dfe3e7; }
.pitch h2 { color:#fff; }
.pitch__lead { font-size:1.45rem; line-height:1.5; color:#eef1f3; max-width: 900px; }
.pitch__lead b { color:#fff; }
.pitch__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:48px; }
.pitch__item { border-top:3px solid var(--red); padding-top:18px; }
.pitch__item h3 { color:#fff; } .pitch__item p { color:#aeb6bd; }

/* Image cards (markets / capabilities) */
.imgcards { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.imgcard { position:relative; border-radius:var(--radius); overflow:hidden; min-height:320px; display:flex; align-items:flex-end;
  box-shadow: var(--shadow-sm); }
.imgcard img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform .5s ease; z-index:0; }
.imgcard:hover img { transform: scale(1.07); }
.imgcard__scrim { position:absolute; inset:0; z-index:1; background:linear-gradient(0deg, rgba(12,14,17,.9) 0%, rgba(12,14,17,.15) 60%, rgba(12,14,17,.35) 100%); }
.imgcard__body { position:relative; z-index:2; padding:26px; color:#fff; }
.imgcard__body h3 { color:#fff; margin-bottom:6px; }
.imgcard__body p { color:#d3d8dd; margin:0; font-size:.95rem; }
.imgcard__body .tag { color: #ff5257; font-family:var(--font-head); font-weight:700; text-transform:uppercase; letter-spacing:.09em; font-size:.98rem; text-shadow:0 1px 3px rgba(0,0,0,.65); }
.imgcard a.cover { position:absolute; inset:0; z-index:3; }

/* Numbers band */
.numbers { background: var(--red); color:#fff; }
.numbers .stats { }
.numbers .stat__num { color:#fff; font-size:3.4rem; }
.numbers .stat__label { color:#ffd7d9; }

/* Insights cards */
.postcard { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; }
.postcard img { width:100%; height:200px; object-fit:cover; }
.postcard__body { padding:22px; flex:1; display:flex; flex-direction:column; }
.postcard .tag { color:var(--red); font-family:var(--font-head); text-transform:uppercase; letter-spacing:.06em; font-size:.8rem; }
.postcard h3 { margin:8px 0; font-size:1.25rem; }
.postcard p { color:var(--slate); flex:1; }
.postcard a { font-weight:600; }

/* Split CTA (partner / careers) */
.split { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.splitcard { padding:44px; border-radius:var(--radius); color:#fff; position:relative; overflow:hidden; min-height:280px; display:flex; flex-direction:column; justify-content:flex-end; }
.splitcard--red { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.splitcard--dark { background: linear-gradient(135deg, #1a1f25, var(--ink)); }
.splitcard h3 { color:#fff; font-size:1.9rem; }
.splitcard p { color:rgba(255,255,255,.85); }

/* Reveal on scroll */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

/* Rich footer */
.xfooter { background:#0c0e11; color:#9aa2a9; padding:64px 0 26px; }
.xfooter__top { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:36px; }
.xfooter h4 { color:#fff; font-size:1rem; margin-bottom:14px; }
.xfooter a { color:#c2c9cf; } .xfooter a:hover{ color:#fff; }
.xfooter ul { list-style:none; } .xfooter li { margin-bottom:9px; }

@media (max-width: 940px){
  .pitch__grid, .imgcards { grid-template-columns:1fr 1fr; }
  .split { grid-template-columns:1fr; }
  .xfooter__top { grid-template-columns:1fr 1fr; }
}
@media (max-width: 620px){
  .pitch__grid, .imgcards { grid-template-columns:1fr; }
  .xhero { min-height:88vh; }
  .xfooter__top { grid-template-columns:1fr; }
}

/* Load a condensed display font for headings (with safe fallback) */
@font-face { font-family: "Barlow Condensed"; font-display: swap; src: local("Barlow Condensed"); }

/* ---- Employment application form ---- */
.appform { max-width: 940px; margin: 0 auto; }
.appform fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; margin: 0 0 22px; }
.appform legend { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; padding: 0 10px; color: var(--ink); }
.appform legend small { display:block; font-family:var(--font-body,inherit); font-weight:500; font-size:.8rem; color:var(--steel); letter-spacing:0; text-transform:none; margin-top:2px; }
.appform .fld { margin-bottom: 16px; }
.appform label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.appform input[type=text], .appform input[type=email], .appform input[type=tel], .appform input[type=number], .appform input[type=date], .appform textarea, .appform select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.appform input:focus, .appform textarea:focus, .appform select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,39,45,.12); }
.appform textarea { min-height: 110px; resize: vertical; }
.appform .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.appform .grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.appform .checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 12px; margin-top: 6px; }
.appform .appgrp { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--red); margin: 26px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.appform .eeo-note { background: var(--mist); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 16px 20px; margin-bottom: 30px; font-size: .9rem; color: var(--slate); line-height: 1.6; }
.appform .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .96rem; color: var(--ink); }
.appform .check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.appform .req::after { content: " *"; color: var(--red); }
.appform .attest { background: #fbf3f3; border: 1px solid #f0d3d4; border-radius: 12px; padding: 18px 20px; }
.appform .formnote { font-size: .82rem; color: var(--steel); margin-top: 10px; }
.appform .submitrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
@media (max-width: 680px){ .appform .grid2, .appform .grid3 { grid-template-columns: 1fr; } }
@media print {
  .topbar, .site-header, .xhero, .xfooter, .section--ink, .career-callout, [data-app], .appform .formnote, .submitrow { display: none !important; }
  .appform input, .appform textarea, .appform select { border: 1px solid #999; }
  body { background: #fff; }
}

/* Market tiles — clickable boxes, no images */
.mktiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }
.mktile { position:relative; display:flex; align-items:center; justify-content:center; text-align:center; min-height:132px; padding:26px 22px; border-radius:10px; background:linear-gradient(160deg,#1c2026,#121417); border:1px solid #272c33; color:#fff; text-decoration:none; overflow:hidden; transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.mktile::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--red); transform:scaleY(0); transform-origin:top; transition:transform .25s ease; }
.mktile:hover { transform:translateY(-4px); border-color:var(--red); box-shadow:0 14px 30px rgba(0,0,0,.35); background:linear-gradient(160deg,#232830,#15181c); }
.mktile:hover::before { transform:scaleY(1); }
.mktile h3 { font-family:"Barlow Condensed",sans-serif; font-weight:600; font-size:1.55rem; letter-spacing:.01em; line-height:1.15; margin:0; color:#fff; }
.mktile__arrow { position:absolute; right:15px; bottom:11px; color:var(--red); opacity:0; transform:translateX(-4px); transition:opacity .25s ease, transform .25s ease; font-size:1.15rem; }
.mktile:hover .mktile__arrow { opacity:1; transform:translateX(0); }
