@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/archivo-black-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/source-serif-4-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Kit tokens - BRAND-GUIDE.md section 2 */
  --gtg-navy: #0C2340;
  --gtg-brass: #C39A45;
  --gtg-graphite: #2A2C2E;
  --gtg-bone: #F7F4EC;
  --gtg-slate: #5B6B7C;
  --gtg-navy-tint: #E4EAF0;
  --gtg-brass-tint: #F2E8D5;
  --gtg-brass-dark: #8A7233;
  --gtg-hairline: #E2DED4;

  --gtg-font-display: "Archivo", Helvetica, Arial, sans-serif; /* logo wordmark only */
  --gtg-font-serif-display: "Instrument Serif", Georgia, serif; /* site headings */
  --gtg-font-ui: "Archivo", Helvetica, Arial, sans-serif;
  --gtg-font-doc: "Source Serif 4", Georgia, serif;
  --gtg-font-mark: "Archivo Black", Helvetica, Arial, sans-serif;

  --gtg-radius-sm: 2px;
  --gtg-radius: 4px;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  /* Kit rhythm: 96px desktop, 56px mobile */
  --section-y: clamp(3.5rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--gtg-bone); scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--gtg-bone);
  color: var(--gtg-graphite);
  font-family: var(--gtg-font-ui);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--gtg-font-serif-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--gtg-navy);
  margin: 0;
}

/* The old site's measured scale: tier 1 caps at 57.4px, tier 2 at 45.8px. */
h1 { font-size: clamp(2.125rem, 4.16vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.32vw, 2.875rem); }
h3 { font-size: clamp(1.75rem, 3.32vw, 2.875rem); }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gtg-brass);
  color: var(--gtg-navy);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--gtg-brass);
  outline-offset: 3px;
}

/* ---------- eyebrow (kit signature) ---------- */

.gtg-eyebrow {
  font-family: var(--gtg-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gtg-brass-dark);
}

/* ---------- logo lockup ---------- */

.gtg-logo { text-decoration: none; display: inline-flex; }

.gtg-lockup { display: flex; align-items: center; gap: 0.75rem; }

.gtg-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 15vw, 88px);
  aspect-ratio: 1;
  border-radius: var(--gtg-radius);
  background: var(--gtg-navy);
  color: var(--gtg-bone);
  font-size: clamp(18px, 5.1vw, 30px);
}

/* Interlock: letters tuck -0.21em; brass T behind. Never re-space. */
.gtg-mark {
  display: flex;
  font-family: var(--gtg-font-mark);
  line-height: 1;
}
.gtg-mark > span + span { margin-left: -0.21em; }
.gtg-mark--two-tone > span:nth-child(2) { color: var(--gtg-brass); }

.gtg-wordmark { display: flex; flex-direction: column; gap: 0.14em; font-size: clamp(30px, 9vw, 52px); }
.gtg-wordmark__name {
  font: 700 1em/0.92 var(--gtg-font-display);
  letter-spacing: 0.04em;
  color: var(--gtg-bone); /* dark header context */
}
.gtg-wordmark__sub {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font: 500 0.29em/1 var(--gtg-font-ui); /* must stay narrower than the name */
  color: var(--gtg-brass);
}
.gtg-wordmark__sub .gtg-space { width: 0.3em; }


/* ---------- header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap; /* very narrow screens: nav drops below the lockup instead of overflowing */
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  color: var(--gtg-bone);
}

.site-header__nav a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* kit tap-target floor */
  font-weight: 500;
}

.site-header__nav a:hover { color: var(--gtg-brass); }

/* ---------- hero (dark band 1 of 2) ---------- */

.hero {
  position: relative;
  background: var(--gtg-navy);
  color: var(--gtg-bone);
  min-height: min(88vh, 800px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
}

.hero__inner {
  position: relative;
  padding: calc(var(--section-y) + 3rem) var(--gutter) var(--section-y);
  /* Wide enough for the headline on one line at its full 57.6px; the
     prose measure would force it onto three. */
  max-width: 66rem;
  margin-inline: auto;
  width: 100%;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--gtg-font-serif-display);
  font-size: clamp(1.75rem, 3.32vw, 2.875rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gtg-brass); /* brass on navy: sanctioned */
  margin: 0 0 0.25rem;
}

.hero__title {
  color: var(--gtg-bone);
  margin-bottom: 1.5rem;
  /* When phones do force a wrap, split the lines evenly. */
  text-wrap: balance;
}

.hero__lede {
  margin: 0;
  /* Two even lines for the 114-character lede at 18px. */
  max-width: 36rem;
  margin-inline: auto;
  text-align: left;
  font-size: 1.125rem;
  text-wrap: balance;
}

@media (max-width: 48rem) {
  /* On phones the lede wraps deeper; centered reads better under the
     centered headline than a ragged left edge. */
  .hero__lede { text-align: center; }
}

/* ---------- credibility ---------- */

.credibility {
  background: var(--gtg-navy);
  color: var(--gtg-bone);
  padding: var(--section-y) var(--gutter);
}

/* Wide enough that "We bring the structure..." holds one line at the full
   45.8px serif; the longer first paragraph wraps at the same width. */
.credibility__inner { max-width: 65rem; margin-inline: auto; }

.credibility__body {
  font-family: var(--gtg-font-serif-display);
  font-size: clamp(1.5rem, 3.32vw, 2.875rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

/* ---------- services ---------- */

.services {
  background: var(--gtg-graphite);
  color: var(--gtg-bone);
  padding: var(--section-y) var(--gutter);
}

/* Wide enough that the longest card title holds one line at full size. */
.services__inner { max-width: 1280px; margin-inline: auto; }

.services__title { color: var(--gtg-bone); margin-bottom: 3rem; }

.services__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 60rem) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Old-site cards: near-black on graphite, each edged in its own brand color. */
.service {
  background: #1A1C1D;
  border: 3px solid var(--gtg-hairline);
  border-radius: 8px;
  padding: 2rem;
  color: var(--gtg-bone);
}

.service:nth-child(1) { border-color: var(--gtg-brass); }
.service:nth-child(2) { border-color: var(--gtg-bone); }
.service:nth-child(3) { border-color: var(--gtg-slate); }

.service__title {
  color: var(--gtg-bone);
  text-align: center;
  margin-bottom: 1.25rem;
}

.service__body {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
}

.service__list { margin: 0; padding: 0; list-style: none; }

.service__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gtg-brass);
}

/* ---------- contact ---------- */

.contact {
  background: var(--gtg-bone);
  color: var(--gtg-graphite);
  padding: var(--section-y) var(--gutter);
}

/* Two columns like the old site: serif intro left, open form right. */
.contact__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 60rem) {
  .contact__inner { grid-template-columns: 1fr 1.15fr; }
}

.contact__title { margin-bottom: 1rem; }

.contact__lede {
  font-family: var(--gtg-font-serif-display);
  font-size: clamp(1.375rem, 2.5vw, 2.125rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--gtg-navy);
  margin: 0 0 1.5rem;
}

.contact__note { margin: 0; font-size: 0.9375rem; color: var(--gtg-graphite); }

/* Kit callout: brass tint, 3px brass left rule */
.contact__noscript {
  background: var(--gtg-brass-tint);
  border-left: 3px solid var(--gtg-brass);
  border-radius: 0 var(--gtg-radius-sm) var(--gtg-radius-sm) 0;
  padding: 0.875rem 1.125rem;
  margin-bottom: 2rem;
}

/* ---------- form (open, underline fields like the old site) ---------- */

.form__group-label,
.form__field label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--gtg-navy);
  margin: 0 0 0.4rem;
}

.form__group-label { margin-bottom: 0.75rem; }

.form__req {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--gtg-slate);
}

.form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.form__field { margin-bottom: 1.5rem; }

.form__field input,
.form__field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--gtg-graphite);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gtg-slate);
  border-radius: 0;
  padding: 0.5rem 0;
  min-height: 44px;
}

.form__field textarea { resize: vertical; min-height: 7rem; }

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--gtg-navy);
}

.form__field[data-invalid] input,
.form__field[data-invalid] textarea { border-bottom-color: #9B2C2C; }

.form__error {
  margin: 0.35rem 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #9B2C2C;
}

/* Submit on the left, Turnstile on the right of one row; the row wraps on
   narrow screens so the fixed-width widget drops below the button. */
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Turnstile renders a fixed 300px iframe; clamp it so narrow screens crop
   its right padding instead of growing a page-level horizontal scrollbar. */
.cf-turnstile { max-width: 100%; overflow: hidden; }
.cf-turnstile iframe { max-width: 100%; }


/* Kit primary button */
.form__submit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--gtg-radius-sm);
  font-family: var(--gtg-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gtg-brass);
  color: var(--gtg-navy);
  cursor: pointer;
}

.form__submit:hover { background: #B78C36; }

.form__submit[disabled] { opacity: 0.55; cursor: progress; }

.form__status { margin: 1rem 0 0; min-height: 1.4em; font-size: 0.9375rem; }
.form__status[data-state="error"] { color: #9B2C2C; }
.form__status[data-state="success"] { color: #1F6B3A; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gtg-navy);
  color: var(--gtg-bone);
  padding: var(--section-y) var(--gutter);
}

.notfound__code {
  font-family: var(--gtg-font-serif-display);
  font-size: clamp(1.75rem, 3.32vw, 2.875rem);
  letter-spacing: -0.03em;
  color: var(--gtg-brass);
  margin: 0 0 0.25rem;
}

.notfound__title { color: var(--gtg-bone); margin-bottom: 1rem; }

.notfound__body { margin: 0 0 2rem; }

.notfound__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1.375rem;
  border-radius: var(--gtg-radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--gtg-brass);
  color: var(--gtg-navy);
}

.notfound__link:hover { background: #B78C36; }

/* ---------- footer (dark band 2 of 2) ---------- */

.site-footer {
  background: var(--gtg-navy);
  color: var(--gtg-bone);
  padding: 2rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9375rem;
}

.site-footer__tagline {
  font-family: var(--gtg-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gtg-brass);
  margin: 0;
}

.site-footer__copyright { margin: 0; opacity: 0.75; }
