/* ============================================================
   GOLD KEY CONSTRUCTION — site stylesheet
   System: banner-derived. Dark iron base, paper ink, gold accent.
   Type: Archivo (display/title) + IBM Plex Sans (body/label).
   EXACTLY FOUR TYPE SIZES: display / title / body / label.
   Grid: 8px multiples only.
   ============================================================ */

:root {
  --iron: #1F2327;        /* base */
  --iron-deep: #16191C;   /* footer, panels */
  --iron-raised: #262B30; /* cards */
  --paper: #F4F1EA;       /* primary ink on dark */
  --paper-dim: #B9B4A9;   /* secondary ink */
  --gold: #B8904A;        /* accent */
  --bronze: #8A5424;      /* deep accent / hover */
  --rule: #34393F;        /* hairlines */

  --display: 'Archivo', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;

  /* THE FOUR SIZES */
  --t-display: clamp(2.5rem, 5.5vw, 4.25rem);
  --t-title: clamp(1.375rem, 2.4vw, 1.875rem);
  --t-body: 1.0625rem;
  --t-label: 0.8125rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--iron);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type roles ---------- */
.display {
  font-family: var(--display);
  font-size: var(--t-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.title {
  font-family: var(--display);
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.label {
  font-family: var(--body);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.gold { color: var(--gold); }
.dim { color: var(--paper-dim); }

/* ---------- top strip (banner DNA) ---------- */
.strip {
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
}
.strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.strip .label { color: var(--gold); }
.strip .label + .label { color: var(--paper-dim); }

/* ---------- header ---------- */
header {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo img { width: 144px; height: auto; }

nav { display: flex; gap: 32px; flex-wrap: wrap; }
nav a {
  font-family: var(--body);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav a:hover { color: var(--paper); }
nav a.active { color: var(--paper); border-color: var(--gold); }
nav a.careers { color: var(--gold); }
nav a.careers:hover { color: var(--paper); }
nav a.careers.active { border-color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,25,28,.94) 0%, rgba(22,25,28,.45) 45%, rgba(22,25,28,.25) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 64px;
  width: 100%;
}
.hero .label { margin-bottom: 16px; }
.hero .display { max-width: 800px; margin-bottom: 24px; }
.hero p { max-width: 560px; color: var(--paper); }

/* hero without photo (interior pages) */
.hero.flat {
  min-height: 0;
  background: var(--iron-deep);
  border-bottom: 1px solid var(--rule);
}
.hero.flat .wrap { padding-top: 80px; padding-bottom: 64px; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--rule); }
section .label { margin-bottom: 24px; display: block; }
section .title { margin-bottom: 24px; max-width: 720px; }
section p { max-width: 640px; color: var(--paper-dim); }
section p + p { margin-top: 16px; }
section p strong, .hero p strong { color: var(--paper); font-weight: 600; }

/* big statement lines */
.statement { max-width: 840px; }
.statement .title { max-width: none; }
.statement .title + .title { margin-top: 8px; }

/* ---------- the between (signature, overview only) ---------- */
.between {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 960px;
  margin: 48px auto 0;
}
.between ul { list-style: none; }
.between ul li {
  font-family: var(--body);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.between ul li:first-child { border-top: 1px solid var(--rule); }
.between .trades-left li { text-align: right; }
.between .mid {
  background: var(--iron-raised);
  border: 1px solid var(--bronze);
  padding: 32px;
  text-align: center;
}
.between .mid .label { color: var(--gold); margin-bottom: 16px; display: block; }
.between .mid ul li {
  color: var(--paper);
  border-color: var(--rule);
  text-align: center;
}
.between-caption {
  text-align: center;
  margin: 24px auto 0;
  max-width: 640px;
}

/* ---------- photo rows ---------- */
.photo-full { margin-top: 48px; }
.photo-full img { width: 100%; height: auto; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- split (text + photo) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { width: 100%; height: auto; }

/* ---------- record flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.flow-step {
  background: var(--iron-raised);
  border-top: 2px solid var(--gold);
  padding: 24px;
}
.flow-step .label { color: var(--gold); margin-bottom: 8px; display: block; letter-spacing: 0.16em; }
.flow-step p { font-size: var(--t-body); color: var(--paper); }

/* ---------- fact list (leadership) ---------- */
.facts { list-style: none; margin-top: 32px; max-width: 640px; }
.facts li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
}
.facts li:first-child { border-top: 1px solid var(--rule); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--iron-deep);
  padding: 16px 32px;
  margin-top: 32px;
  transition: background .2s;
}
.btn:hover { background: var(--bronze); color: var(--paper); }
.btn.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn.ghost:hover { background: var(--gold); color: var(--iron-deep); }
.btn + .btn { margin-left: 16px; }

/* ---------- contact block ---------- */
.contact-rows { list-style: none; margin-top: 32px; max-width: 560px; }
.contact-rows li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-rows li:first-child { border-top: 1px solid var(--rule); }
.contact-rows .label { color: var(--paper-dim); margin: 0; display: inline; letter-spacing: 0.16em; }
.contact-rows a { color: var(--paper); }
.contact-rows a:hover { color: var(--gold); }

/* ---------- footer ---------- */
footer {
  background: var(--iron-deep);
  border-top: 1px solid var(--rule);
  padding: 48px 0;
  margin-top: 88px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
footer img { width: 112px; }
footer .label { color: var(--paper-dim); letter-spacing: 0.16em; }
footer .label + .label { margin-top: 8px; display: block; }
footer a:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .between { grid-template-columns: 1fr; gap: 24px; }
  .between .trades-left li { text-align: left; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { min-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- itemized scope grid ---------- */
.scope-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  max-width: 960px;
  margin-top: 48px;
}
.scope-grid li {
  font-family: var(--body);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 700px) {
  .scope-grid { grid-template-columns: 1fr; }
}

/* ---------- photo closer (overview) ---------- */
.closer { position: relative; overflow: hidden; }
.closer-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.closer-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(22,25,28,.92) 0%, rgba(22,25,28,.55) 60%, rgba(22,25,28,.35) 100%);
}
.closer .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }

/* ---------- grouped scope list ---------- */
.scope-groups {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px; margin-top: 48px;
}
.scope-groups > div > .label { color: var(--gold); display: block; margin-bottom: 8px; }
.scope-grid.one-col { grid-template-columns: 1fr; margin-top: 0; gap: 0; }
@media (max-width: 900px) { .scope-groups { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- comparison table ---------- */
.compare { margin-top: 48px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; max-width: 960px; }
.compare th, .compare td {
  font-family: var(--body); font-size: var(--t-body);
  text-align: center; padding: 16px; border-bottom: 1px solid var(--rule);
  color: var(--paper-dim);
}
.compare th {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-dim); border-bottom: 2px solid var(--rule);
}
.compare td:first-child { text-align: left; color: var(--paper); }
.compare th:first-child { text-align: left; }
.compare .gk { color: var(--gold); font-weight: 600; }
.compare th.gk { color: var(--gold); }

/* ---------- full-bleed photo band ---------- */
.band {
  height: 320px;
  background-size: cover; background-position: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}

/* ---------- scope group photos ---------- */
.scope-photo {
  width: 100%; aspect-ratio: 3/2; object-fit: cover; margin-bottom: 16px;
}

/* ---------- phone screenshots ---------- */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.phones img {
  width: 100%; border: 1px solid var(--rule); border-radius: 8px;
}


/* team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 24px;
}
.team-card .team-photo { width: 72%; max-width: 380px; height: auto; display: block; }
.team-name {
  font-family: var(--display);
  font-size: calc(var(--t-title) * 0.8);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 24px;
}
.team-role { margin-top: 8px; margin-bottom: 16px; display: block; }
.team-facts li { padding: 12px 0; }
@media (max-width: 800px) {
  .team-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-card .team-photo { width: 100%; max-width: none; }
}

/* ---------- responsive cover images (implementation change only; rendered design unchanged) ---------- */
.hero-img picture, .closer-img picture { position: absolute; inset: 0; }
.hero-img img, .closer-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.band { position: relative; overflow: hidden; }
.band picture { position: absolute; inset: 0; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- mobile CTA stacking ---------- */
@media (max-width: 600px) {
  .btn { display: block; width: fit-content; }
  .btn + .btn { margin-left: 0; margin-top: 16px; }
  .phones { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- keyboard focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* careers hero mobilization line */
.mobilizations { display: block; margin-top: 32px; color: var(--paper-dim); letter-spacing: 0.16em; }

/* ---------- fix: neutralize attribute height; restore original layout behavior ---------- */
img { height: auto; }
picture { display: contents; }
picture source { display: none; }
