/* KD Management — marketing site
   Design tokens transcribed from design_handoff_kd_management_site/README.md.
   Radius is 0 everywhere. No shadows. Letter-spacing is load-bearing. */

:root {
  /* dark surfaces */
  --ink: #0C0D10;
  --ink-raised: #13151A;
  --ink-line: #22252C;
  --ink-line-2: #2A2E37;
  --ink-line-3: #3A3A34;
  /* light surfaces */
  --ivory: #F5F2EB;
  --ivory-2: #F2EFE7;
  --ivory-line: #DCD8CE;
  /* champagne accent */
  --champagne: #C2AC78;
  --champagne-light: #E0CFA4;
  --champagne-dark: #8A7648;
  /* text */
  --text-dark: #131418;
  --text-dark-muted: #55554F;
  --text-dark-faint: #7B7A70;
  --text-light: #F5F2EB;
  --text-light-muted: #CDC8BA;
  --text-light-faint: #A8A69A;
  --text-light-label: #8B8B80;
  --text-light-dim: #6E6E64;
  /* added for the form (no error colour exists in the prototype palette) */
  --error: #D2624A;
  --success: #C2AC78;

  --serif: Marcellus, "Times New Roman", serif;
  --sans: Jost, "Helvetica Neue", Arial, sans-serif;
  --wordmark: "Cormorant Garamond", Marcellus, serif;

  --pad-x: 56px;
  --pad-y: 120px;
  --maxw: 1440px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--champagne); text-decoration: none; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
a:hover { color: var(--champagne-light); }
::selection { background: var(--champagne); color: var(--ink); }

img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--champagne-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 14px 22px; background: var(--champagne); color: var(--ink);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- 0. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 20px 40px;
  background: rgba(12, 13, 16, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.brand { display: flex; flex-direction: column; gap: 5px; color: var(--text-light); }
.brand:hover { color: var(--text-light); }
.brand__name {
  font-family: var(--serif); font-size: 23px;
  letter-spacing: 0.3em; text-indent: 0.3em; line-height: 1;
}
.brand__tag {
  font-size: 10px; letter-spacing: 0.28em; text-indent: 0.28em;
  text-transform: uppercase; color: var(--text-light-label);
}
.koze { font-family: var(--wordmark); font-weight: 500; font-size: 13px; letter-spacing: 0.26em; color: var(--champagne); }
.site-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  min-width: 0; flex-shrink: 1;
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
}
.site-nav a { color: var(--text-light-muted); }
.site-nav a:hover { color: var(--champagne-light); }
.header-cta {
  flex: none; padding: 14px 22px; border: 1px solid var(--champagne);
  color: var(--champagne-light); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; white-space: nowrap;
}
.header-cta:hover { background: var(--champagne); color: var(--ink); }

/* mobile menu — hidden entirely above the breakpoint */
.nav-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle { display: none; }
.site-nav__cta { display: none; }
.nav-toggle-input:focus-visible + .nav-toggle {
  outline: 2px solid var(--champagne-light);
  outline-offset: 3px;
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 740px; height: 86vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__media {
  position: absolute; inset: 0; overflow: hidden;
  background: #191B21 url("assets/kd-hero.jpg?v=2") center / cover no-repeat;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,13,16,0.74) 0%, rgba(12,13,16,0.42) 36%, rgba(12,13,16,0.95) 100%);
}
.hero__plate { position: relative; padding: 0 var(--pad-x) 76px; max-width: 1180px; }
.eyebrow {
  font-size: 14px; font-weight: 500; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--champagne);
}
.eyebrow--tight { letter-spacing: 0.36em; }
.eyebrow--dark { color: var(--champagne-dark); }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: 74px; line-height: 1.06;
  margin: 28px 0 0; color: var(--text-light); text-wrap: pretty;
}
.hero__sub {
  margin: 30px 0 0; max-width: 720px; font-size: 21px; font-weight: 300;
  line-height: 1.6; color: var(--text-light-muted); text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 44px; }

.btn-primary {
  padding: 19px 40px; background: var(--champagne); color: var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
}
.btn-primary:hover { background: var(--champagne-light); color: var(--ink); }
.btn-ghost {
  padding: 19px 40px; border: 1px solid var(--ink-line-3); color: var(--text-light);
  font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase;
}
.btn-ghost:hover { border-color: var(--champagne); color: var(--champagne-light); }

/* ---------- 2. Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink-raised);
  border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line);
}
.stats > div { padding: 52px 40px; border-right: 1px solid var(--ink-line); }
.stats > div:last-child { border-right: 0; }
.stat__value { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--champagne-light); }
.stat__label {
  margin-top: 14px; font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-light-label);
}

/* ---------- shared section shells ---------- */
.section-ivory { background: var(--ivory); color: var(--text-dark); padding: var(--pad-y) var(--pad-x) 110px; }
.section-ink { background: var(--ink); padding: var(--pad-y) var(--pad-x); }
.section-raised { background: var(--ink-raised); padding: var(--pad-y) var(--pad-x); }

/* ---------- 3. Who we are ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 96px; align-items: start; }
.about h2 {
  font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1.08;
  margin: 24px 0 0; color: var(--text-dark); text-wrap: pretty;
}
.about__body { display: grid; gap: 26px; font-size: 19px; font-weight: 300; line-height: 1.7; color: var(--text-dark-muted); text-wrap: pretty; }
.about__body p { margin: 0; }

/* ---------- 4. Services ---------- */
.services { background: var(--ivory); color: var(--text-dark); padding: 0 var(--pad-x) var(--pad-y); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 60px;
  padding-bottom: 34px; border-bottom: 1px solid var(--ivory-line);
}
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1.1; margin: 0; color: var(--text-dark); }
.section-head__note { font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dark-faint); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 64px; margin-top: 56px; }
.service { display: flex; flex-direction: column; gap: 22px; }
.service__kicker { font-family: var(--serif); font-size: 15px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--champagne-dark); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: 1.2; margin: 0; color: var(--text-dark); }
.service ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 17px; font-weight: 300; line-height: 1.5; color: var(--text-dark-muted); }
.service li { padding-bottom: 12px; border-bottom: 1px solid var(--ivory-line); }
.service li:last-child { padding-bottom: 0; border-bottom: 0; }

/* ---------- 5. Process ---------- */
.process h2 {
  font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.1;
  margin: 24px 0 0; max-width: 1000px; color: var(--text-light); text-wrap: pretty;
}
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 70px; border-top: 1px solid var(--ink-line-2); }
.step { padding: 38px 40px 0; border-right: 1px solid var(--ink-line-2); }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; padding-left: 40px; border-right: 0; }
.step__num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--champagne); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.25; margin: 22px 0 12px; color: var(--text-light); }
.step p { margin: 0; font-size: 17px; font-weight: 300; line-height: 1.6; color: var(--text-light-faint); }

/* ---------- 6. Portfolio ---------- */
.portfolio__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.portfolio__head h2 {
  font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.1;
  margin: 24px 0 0; max-width: 900px; color: var(--text-light); text-wrap: pretty;
}
.portfolio__count { flex: none; text-align: right; }
.portfolio__count-value { font-family: var(--serif); font-size: 76px; line-height: 0.9; color: var(--champagne-light); }
.portfolio__count-label { margin-top: 12px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-light-label); }
.portfolio__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #191B21; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.directory {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 56px;
  margin-top: 56px; border-top: 1px solid var(--ink-line-2);
}
.building { padding: 16px 0; border-bottom: 1px solid var(--ink-line); }
.building__name { font-family: var(--serif); font-size: 23px; line-height: 1.2; color: var(--ivory-2); }
.building--featured .building__name { color: var(--champagne-light); }
.building__status { margin-top: 4px; font-size: 13px; letter-spacing: 0.1em; color: var(--champagne); }
.directory__note { margin-top: 30px; font-size: 16px; font-weight: 300; color: var(--text-light-label); }

/* ---------- 7. Recognition ---------- */
.recognition { background: var(--ink-raised); padding: 110px var(--pad-x); }
.recognition__inner { display: grid; grid-template-columns: 0.7fr 1fr; gap: 88px; align-items: center; }
.recognition__frame { border: 1px solid var(--ink-line-2); padding: 14px; }
.recognition__frame img { width: 100%; height: auto; display: block; }
.recognition h2 {
  font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.12;
  margin: 24px 0 0; color: var(--text-light); text-wrap: pretty;
}
.recognition p {
  margin: 28px 0 0; max-width: 660px; font-size: 19px; font-weight: 300;
  line-height: 1.7; color: var(--text-light-faint); text-wrap: pretty;
}
.recognition__stats { display: flex; flex-wrap: wrap; gap: 56px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ink-line-2); }
.recognition__stat-value { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--champagne-light); }
.recognition__stat-label { margin-top: 10px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light-label); }

/* ---------- 8. Team ---------- */
.team { background: var(--ivory); color: var(--text-dark); padding: var(--pad-y) var(--pad-x); }
.team .section-head h2 { font-size: 46px; margin: 22px 0 0; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; margin-top: 56px; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory-line); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.member__name { margin-top: 22px; font-family: var(--serif); font-size: 27px; line-height: 1.2; color: var(--text-dark); }
.member__role { margin-top: 8px; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne-dark); }
.member__bio { margin: 14px 0 0; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--text-dark-muted); }

/* ---------- 9. Remuneration ---------- */
.fees { background: var(--ink); padding: var(--pad-y) var(--pad-x); border-top: 1px solid var(--ink-line); }
.fees h2 {
  font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1.1;
  margin: 24px 0 0; max-width: 1000px; color: var(--text-light); text-wrap: pretty;
}
.fees__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 56px; }
.fee { border: 1px solid var(--ink-line-2); padding: 48px; }
.fee__label { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-light-label); }
.fee__value { margin-top: 20px; font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--text-light); }
.fee p { margin: 20px 0 0; font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--text-light-faint); }
.fees__closing { margin: 38px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.5; color: var(--champagne); max-width: 1100px; }

/* ---------- 10. Contact ---------- */
.contact { background: var(--ink-raised); padding: var(--pad-y) var(--pad-x); border-top: 1px solid var(--ink-line); }
.contact__inner { display: grid; grid-template-columns: 1fr 0.85fr; gap: 96px; align-items: start; }
.contact h2 {
  font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.08;
  margin: 24px 0 0; color: var(--text-light); text-wrap: pretty;
}
.contact__lead { margin: 26px 0 0; max-width: 620px; font-size: 19px; font-weight: 300; line-height: 1.7; color: var(--text-light-faint); text-wrap: pretty; }
.contact__details {
  /* Two columns sized to the longest label, so every value starts on the same
     vertical line. A fixed 120px label was too narrow for "Service area",
     which overflowed into its own value. */
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 28px;
  row-gap: 20px;
  align-items: baseline;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--ink-line-2);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-light-muted);
}
.contact__row { display: contents; }
.contact__row dt, .contact__label {
  font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-light-label);
}
.contact__row dd { margin: 0; }

.lead-form { border: 1px solid var(--ink-line-2); padding: 44px; display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-light-label); }
.field input, .field textarea {
  width: 100%; padding: 15px 0; background: transparent; border: 0;
  border-bottom: 1px solid var(--ink-line-3); color: var(--text-light);
  font-family: var(--sans); font-size: 18px; font-weight: 300; outline: none;
  border-radius: 0; transition: border-color 150ms ease;
}
.field textarea { resize: none; }
.field input::placeholder, .field textarea::placeholder { color: #7C7B72; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--champagne); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--champagne-light); }
.field--invalid input, .field--invalid textarea { border-bottom-color: var(--error); }
.field__error { font-size: 13px; letter-spacing: 0.04em; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form button {
  margin-top: 8px; padding: 19px 0; background: var(--champagne); border: 0; color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; cursor: pointer; border-radius: 0; transition: background-color 150ms ease;
}
.lead-form button:hover:not(:disabled) { background: var(--champagne-light); }
.lead-form button:disabled { cursor: default; opacity: 0.7; }
.form-status { font-size: 16px; font-weight: 300; line-height: 1.5; }
.form-status--error { color: var(--error); }
.form-status--ok { color: var(--success); }
[hidden] { display: none !important; }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--ink); padding: 52px var(--pad-x); border-top: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer__name { font-family: var(--serif); font-size: 17px; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--text-light); }
.footer__tag { margin-top: 7px; font-size: 11px; letter-spacing: 0.26em; text-indent: 0.26em; text-transform: uppercase; color: var(--text-light-label); }
.footer__tag .koze { font-size: 14px; }
.footer__meta { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero h1 { font-size: clamp(40px, 6vw, 74px); }
  .about { gap: 56px; }
  .recognition__inner { gap: 56px; }
  .contact__inner { gap: 56px; }
  .services__grid { gap: 0 40px; }
  .directory { gap: 0 32px; }
}

@media (max-width: 1000px) {
  :root { --pad-x: 40px; --pad-y: 96px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 38px 40px 38px 0; border-bottom: 1px solid var(--ink-line-2); }
  .step:nth-child(2n) { padding-right: 0; padding-left: 40px; border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
  .services__grid { grid-template-columns: 1fr; gap: 56px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .directory { grid-template-columns: repeat(2, 1fr); }
  .about, .recognition__inner, .contact__inner { grid-template-columns: 1fr; }
  .recognition__inner { gap: 48px; }
  .about h2 { font-size: 44px; }
  .portfolio__count-value { font-size: 60px; }
}

@media (max-width: 760px) {
  :root { --pad-x: 24px; --pad-y: 72px; }

  html { scroll-padding-top: 84px; }

  /* Header collapses to brand + Menu. The four links and the proposal CTA
     move into the panel, so the sticky bar stays one row tall. */
  .site-header { padding: 14px 24px; gap: 0; flex-wrap: wrap; }
  .brand__name { font-size: 17px; letter-spacing: 0.24em; text-indent: 0.24em; }
  .brand__tag { font-size: 9px; letter-spacing: 0.22em; text-indent: 0.22em; }
  .brand__tag .koze { font-size: 11px; letter-spacing: 0.2em; }
  .header-cta { display: none; }

  .nav-toggle {
    display: flex;
    align-items: center;
    flex: none;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--champagne);
    color: var(--champagne-light);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
  }
  .nav-toggle__label--close { display: none; }
  .nav-toggle-input:checked + .nav-toggle .nav-toggle__label--open { display: none; }
  .nav-toggle-input:checked + .nav-toggle .nav-toggle__label--close { display: inline; }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 14px;
    padding-top: 6px;
    border-top: 1px solid var(--ink-line);
    font-size: 15px;
  }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.site-nav__cta {
    display: block;
    margin-top: 14px;
    padding: 17px 0;
    background: var(--champagne);
    color: var(--ink);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.2em;
  }
  .site-nav a.site-nav__cta:hover { background: var(--champagne-light); color: var(--ink); }

  .hero { min-height: 560px; height: auto; padding-top: 150px; }
  .hero__media { background-image: url("assets/kd-hero-1200.jpg?v=2"); }
  .hero__plate { padding-bottom: 56px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero__sub { font-size: 18px; }
  .btn-primary, .btn-ghost { padding: 17px 28px; font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 36px 24px; border-bottom: 1px solid var(--ink-line); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-last-child(-n+2) { border-bottom: 0; }
  .stat__value { font-size: 42px; }
  .section-head, .portfolio__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-head h2, .team .section-head h2 { font-size: 34px; }
  .about h2, .process h2, .portfolio__head h2, .contact h2, .fees h2, .recognition h2 { font-size: 34px; }
  .about__body, .recognition p, .contact__lead { font-size: 17px; }
  .process__grid { grid-template-columns: 1fr; }
  .step, .step:last-child, .step:nth-child(2n) { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--ink-line-2); }
  .step:last-child { border-bottom: 0; }
  .portfolio__photos { grid-template-columns: 1fr; }
  .portfolio__count { text-align: left; }
  .portfolio__count-value { font-size: 52px; }
  .directory { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; gap: 40px; }
  .fees__grid { grid-template-columns: 1fr; }
  .fee { padding: 32px; }
  .fee__value { font-size: 32px; }
  .fees__closing { font-size: 20px; }
  .lead-form { padding: 28px; }
  .contact__details { grid-template-columns: 1fr; row-gap: 6px; }
  .contact__row + .contact__row dt { margin-top: 16px; }
  .site-footer { gap: 24px; }
}

/* wordmark used inside running text keeps the surrounding colour */
.koze--inherit { color: inherit; }

/* ---------- confirmation page ---------- */
.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 72px var(--pad-x);
  background: var(--ink);
}
.thanks__inner { max-width: 620px; text-align: center; }
.thanks h1 {
  font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.12;
  margin: 24px 0 0; color: var(--text-light); text-wrap: pretty;
}
.thanks p {
  margin: 24px 0 0; font-size: 19px; font-weight: 300; line-height: 1.7;
  color: var(--text-light-faint); text-wrap: pretty;
}
.thanks .btn-ghost { display: inline-block; margin-top: 40px; }
@media (max-width: 760px) { .thanks h1 { font-size: 32px; } }

/* ---------- small phones (iPhone SE and similar, 320-400px) ---------- */
@media (max-width: 400px) {
  :root { --pad-x: 18px; }
  .site-header { padding: 12px 18px; }
  .brand__name { font-size: 15px; letter-spacing: 0.2em; text-indent: 0.2em; }
  .brand__tag { font-size: 8px; letter-spacing: 0.18em; text-indent: 0.18em; }
  .nav-toggle { padding: 11px 12px; font-size: 11px; letter-spacing: 0.14em; }
  .hero h1 { font-size: 30px; }
  .hero__sub { font-size: 17px; }
  .btn-primary, .btn-ghost { padding: 16px 22px; font-size: 12px; letter-spacing: 0.18em; }
  .stat__value { font-size: 34px; }
  .stat__label { font-size: 12px; letter-spacing: 0.18em; }
  .stats > div { padding: 28px 18px; }
  .section-head h2, .team .section-head h2,
  .about h2, .process h2, .portfolio__head h2,
  .contact h2, .fees h2, .recognition h2 { font-size: 29px; }
  .portfolio__count-value { font-size: 44px; }
  .recognition__frame { padding: 8px; }
  .recognition__stats { gap: 28px; }
  .fee { padding: 24px; }
  .lead-form { padding: 22px; }
  .building__name, .member__name { font-size: 21px; }
  .footer__meta { font-size: 12px; letter-spacing: 0.16em; }
}
