/* Groundwork Partners — site styles.
   One idea runs through the page: the gold ground line from the logo.
   Things sit on it (hero, numbers), are built along it (approach),
   and it becomes a slab at the call to action. */

:root {
  --navy: #121829;
  --navy-deep: #0c111f;
  --navy-line: #2a3249;
  --cream: #e9e6df;
  --paper: #f4f1ea;
  --paper-line: #d8d3c6;
  --gold: #e0b54a;
  --gold-hi: #f1d58e;
  --gold-ink: #765a10;        /* gold dark enough for small text on paper */
  --mute-on-navy: #aab0c0;
  --mute-on-paper: #4a5165;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 11vw, 152px);
  --line: 6px;                /* ground line weight */
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
em { font-style: italic; }
ol, ul { margin: 0; padding: 0; list-style: none; }

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.paper :focus-visible, .cta :focus-visible { outline-color: var(--navy); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Shared type ---------- */

.label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--gold);
}
.paper .label { color: var(--gold-ink); }
.cta .label { color: var(--navy); }

h2 {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.label + h2 { margin-top: 20px; }

.num {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold);
}
.paper .num { color: var(--gold-ink); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-outline { border-color: var(--gold); color: var(--gold); padding: 0.75rem 1.15rem; }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

.link-arrow {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--mute-on-navy);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand { display: block; flex: none; }
.brand img { width: 178px; height: 48px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--gold); }

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

.hero { overflow-x: clip; }
.hero-top { padding-top: clamp(64px, 11vw, 148px); padding-bottom: clamp(48px, 7vw, 96px); }

h1 {
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(2.6rem, 8.6vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.024em;
  max-width: 11.5em;
}
h1 .lead { display: block; max-width: 8em; text-wrap: balance; }
h1 .turn { display: block; color: var(--gold); white-space: nowrap; }
h1 .turn em { color: var(--cream); }

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px clamp(32px, 6vw, 96px);
  margin-top: clamp(36px, 5vw, 64px);
}
.lede { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; max-width: 40ch; color: var(--mute-on-navy); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; }

/* The ground line: starts at the content edge and runs off the right of the screen. */
.groundline { height: var(--line); margin-right: -50vw; background: var(--gold); }

/* Below the line: what the firm is built on. */
.strata {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 0 clamp(16px, 3vw, 40px);
  padding-top: 28px;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.strata-note { align-self: center; max-width: 16em; }
.stratum {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.18s ease;
}
.stratum .name { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; }
.stratum:hover { color: var(--gold); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.paper { background: var(--paper); color: var(--navy); }
.deep { background: var(--navy-deep); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px clamp(32px, 6vw, 96px);
}
.section-head h2 { margin-top: 20px; }
.intro { font-size: 1.15rem; max-width: 44ch; color: var(--mute-on-paper); text-wrap: pretty; }

/* ---------- Services ---------- */

.disciplines { margin-top: clamp(48px, 7vw, 96px); border-top: 2px solid var(--navy); }
.discipline {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 16px clamp(24px, 3.5vw, 56px);
  padding-block: clamp(32px, 4.5vw, 60px);
  border-bottom: 1px solid var(--paper-line);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.discipline .num { padding-top: 0.85rem; }
.discipline h3 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1; letter-spacing: -0.02em; }
.discipline > p { padding-top: 0.55rem; max-width: 38ch; text-wrap: pretty; }
.items { display: grid; gap: 0.6rem; padding-top: 0.7rem; font-size: 0.98rem; font-weight: 500; }
.items li { position: relative; padding-left: 1.35rem; }
.items li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 0.7rem; height: 2px;
  background: var(--gold);
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 2px solid var(--gold);
}
.step { position: relative; padding: 40px clamp(16px, 2.6vw, 40px) 0 0; }
.step::before {
  content: "";
  position: absolute;
  top: -8px; left: 0;
  width: 14px; height: 14px;
  background: var(--gold);
}
/* The last marker is hollow: this is where we leave and you carry on. */
.step:last-child::before { background: var(--navy-deep); border: 2px solid var(--gold); }
.step h3 { margin: 6px 0 14px; font-size: clamp(1.75rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -0.012em; }
.step p { max-width: 27ch; color: var(--mute-on-navy); font-size: 1.05rem; text-wrap: pretty; }

/* ---------- Results ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(24px, 4vw, 64px);
  margin-top: clamp(56px, 8vw, 104px);
}
.value {
  display: block;
  padding-bottom: 0.1em;
  border-bottom: var(--line) solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(4.25rem, 10.5vw, 9.5rem);
  font-variant-numeric: lining-nums;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.stat-label { display: block; margin-top: 18px; max-width: 22ch; font-size: 1.05rem; font-weight: 500; }

.quote { margin: clamp(64px, 9vw, 128px) 0 0 auto; max-width: 46rem; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-indent: -0.42em;       /* hang the opening quote mark */
  text-wrap: pretty;
}

/* ---------- Call to action: the line becomes a slab ---------- */

.cta { background: var(--gold); color: var(--navy); }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 36px clamp(32px, 6vw, 96px);
  padding-block: clamp(72px, 10vw, 144px);
}
.cta h2 { margin-top: 20px; font-size: clamp(2.75rem, 7.4vw, 6.25rem); line-height: 0.98; letter-spacing: -0.024em; }
.cta-side p { max-width: 34ch; font-size: 1.2rem; line-height: 1.45; font-weight: 500; }
.cta-side .btn { margin-top: 28px; }

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

.site-footer { background: var(--navy); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px clamp(24px, 5vw, 80px);
  padding-block: clamp(56px, 7vw, 88px) 48px;
}
.footer-brand img { width: 208px; height: 56px; }
.footer-brand p { margin-top: 28px; max-width: 42ch; font-size: 0.98rem; color: var(--mute-on-navy); text-wrap: pretty; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 0.98rem; }
.footer-col .label { margin-bottom: 6px; color: var(--mute-on-navy); }
.footer-col a { text-decoration: none; transition: color 0.18s ease; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--gold); }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 36px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.85rem;
  color: var(--mute-on-navy);
}
.legal .label { color: var(--mute-on-navy); }

/* ---------- Motion: the ground line is drawn once on load ---------- */

@media (prefers-reduced-motion: no-preference) {
  .groundline { animation: draw 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  @keyframes draw {
    from { clip-path: inset(0 100% 0 0); }
    to   { clip-path: inset(0 0 0 0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Tablet ---------- */

@media (max-width: 960px) {
  .discipline { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .discipline > p, .discipline .items { grid-column: 2; }
  .discipline .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 24px; padding-top: 0.4rem; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; border-top: 0; }
  .step { border-top: 2px solid var(--gold); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Phone ---------- */

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 1.0625rem; }

  .nav-link { display: none; }
  .brand img { width: 134px; height: 36px; }

  .hero-foot, .section-head, .cta-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .strata { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 22px; }
  .strata-note { margin-bottom: 14px; }
  .stratum { padding: 14px 0; border-top: 1px solid var(--navy-line); }

  .discipline { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .discipline .num { padding-top: 0; }
  .discipline > p, .discipline .items { grid-column: 1; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-left: 7px; border-left: 2px solid var(--gold); }
  .step { border-top: 0; padding: 0 0 44px 30px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 4px; left: -8px; }
  .step p { max-width: 34ch; }

  .stats { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .value { font-size: clamp(4.5rem, 24vw, 7rem); }

  .quote p { text-indent: 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
