/* ============================================================
   Coupled Systems — Embodied Performance
   ============================================================ */

:root {
  --bg:       #050505;
  --bg-alt:   #0b0c0b;
  --panel:    #0d0d0c;
  --text:     #f3efe6;
  --muted:    #b1a898;
  --gold:     #c5a260;
  --gold-dim: #8d764a;
  --line:     rgba(255,255,255,.08);
  --line-2:   rgba(255,255,255,.14);

  --display: "Fraunces", Georgia, serif;
  --sans:    "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0 0 .6em; font-weight: 500; }
p { margin: 0 0 1em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(5,5,5,.85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand strong {
  letter-spacing: .26em;
  font-size: .98rem;
  font-weight: 600;
  white-space: nowrap;
}
.brand em {
  color: var(--gold);
  font-style: normal;
  letter-spacing: .22em;
  font-size: .66rem;
  margin-top: 6px;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  flex-wrap: wrap;
}
.site-header nav a {
  color: #d9d1c5;
  text-decoration: none;
  font-size: .86rem;
  letter-spacing: .08em;
  transition: color .2s ease;
}
.site-header nav a:hover { color: var(--gold); }

/* ---------- Shared section primitives ---------- */

.eyebrow {
  color: var(--gold);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .74rem;
  margin: 0 0 18px;
}

.section-copy { max-width: 720px; }

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--text);
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 24px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.button:hover {
  background: var(--gold);
  color: #0a0a0a;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 40%;
  filter: brightness(.86) contrast(1.04);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.32) 55%, rgba(0,0,0,.12)),
    linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: clamp(120px, 20vh, 200px) clamp(24px, 7vw, 96px) 96px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 7.5vw, 6.6rem);
  line-height: .94;
  letter-spacing: -.035em;
  margin-bottom: 28px;
}
.hero .lede {
  font-size: 1.16rem;
  color: #e3dcce;
  max-width: 620px;
  line-height: 1.55;
}

/* ---------- Approach ---------- */

.approach {
  padding: clamp(72px, 10vw, 120px) clamp(22px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  background: var(--bg);
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.approach-grid article {
  background: var(--bg);
  padding: 30px 30px 34px;
}
.approach-grid h3 {
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.approach-grid p {
  color: var(--muted);
  font-size: .96rem;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Telemetry ---------- */

.telemetry {
  padding: clamp(72px, 10vw, 120px) clamp(22px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  background: linear-gradient(135deg, #070807, #10100e);
}
.telemetry-figure {
  margin: 0;
  border: 1px solid var(--line-2);
  background: #050505;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.telemetry-figure img {
  width: 100%;
  height: auto;
}

/* ---------- Systems ---------- */

.systems {
  padding: clamp(72px, 10vw, 120px) clamp(22px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  background:
    radial-gradient(circle at 78% 14%, rgba(0, 200, 160, .07), transparent 38%),
    linear-gradient(135deg, #060706, #10100e);
}

.systems-grid {
  display: grid;
  gap: 24px;
}

.systems-card {
  margin: 0;
  background: #050505;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0,0,0,.34);
}
.systems-card img {
  width: 100%;
  height: auto;
}
.systems-card figcaption {
  padding: 22px 26px 26px;
  border-top: 1px solid var(--line);
}
.systems-card h3 {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  font-weight: 600;
}
.systems-card figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.systems-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ---------- Reports ---------- */

.reports {
  padding: clamp(72px, 10vw, 120px) clamp(22px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}
.report-grid img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 26px 80px rgba(0,0,0,.38);
}

/* ---------- Foundation ---------- */

.foundation {
  padding: clamp(72px, 10vw, 120px) clamp(22px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.foundation-copy {
  max-width: 880px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.foundation-copy p { color: var(--muted); }
.foundation-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.foundation-media .foundation-lead {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
  justify-self: center;
}
.foundation-media figure {
  margin: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #050505;
}
.foundation-media img {
  width: 100%;
  height: auto;
}
.foundation-media figcaption {
  padding: 14px 18px;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .03em;
  border-top: 1px solid var(--line);
}

/* ---------- Foundation: Westfield build-and-race strip ---------- */

.foundation-strip {
  margin: 40px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #050505;
  overflow: hidden;
}
.foundation-strip-images {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.foundation-strip-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  border-right: 1px solid var(--line);
}
.foundation-strip-images img:last-child {
  border-right: none;
}
.foundation-strip > figcaption {
  padding: 22px 26px 24px;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  letter-spacing: 0;
}
.foundation-strip > figcaption strong {
  display: block;
  color: var(--gold);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(80px, 12vw, 140px) clamp(22px, 6vw, 90px);
  text-align: center;
  background: var(--bg);
}
.contact .eyebrow { margin-bottom: 22px; }
.contact h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 22px;
}
.contact-lede {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.04rem;
}
.contact-lede + .contact-lede {
  margin-top: -28px;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: 0;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(177, 168, 152, .55);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
  background: rgba(255,255,255,.05);
}
.contact-form textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--sans);
}
.contact-submit {
  align-self: flex-start;
  margin-top: 8px;
  padding: 16px 28px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.contact-submit:hover {
  background: var(--gold);
  color: #0a0a0a;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-or {
  margin-top: 36px;
  color: var(--muted);
  font-size: .92rem;
}
.contact-email-inline {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.contact-email-inline:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Original contact-email kept for thanks page */
.contact-email {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.contact-email:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Thanks page ---------- */

.thanks {
  padding: clamp(100px, 15vw, 180px) clamp(22px, 6vw, 90px);
  text-align: center;
  background: var(--bg);
}
.thanks .eyebrow { margin-bottom: 22px; }
.thanks h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-bottom: 28px;
}
.thanks-lede {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.04rem;
}
.thanks-back {
  margin-top: 56px;
  font-size: .9rem;
}
.thanks-back a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s ease;
}
.thanks-back a:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px clamp(22px, 6vw, 90px);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 22px;
  }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: .88rem; letter-spacing: .2em; }
  .brand em { font-size: .6rem; letter-spacing: .18em; }
  .site-header nav { gap: 18px; }

  .approach, .telemetry, .systems {
    grid-template-columns: 1fr;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .systems-pair {
    grid-template-columns: 1fr;
  }
  .foundation-media {
    grid-template-columns: 1fr;
  }
  .foundation-strip-images {
    grid-template-columns: 1fr;
  }
  .foundation-strip-images img {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .foundation-strip-images img:last-child {
    border-bottom: none;
  }
  .report-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-content {
    padding-top: 80px;
    padding-bottom: 64px;
  }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .site-header nav a { font-size: .8rem; }
}
