:root {
  --ink: #16233d;
  --paper: #f5f4ef;
  --paper-raised: #fbfaf6;
  --gold: #a67c27;
  --gold-dim: #c9a55c;
  --slate: #5b6472;
  --line: #dbd7cc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 239, 0.92);
  backdrop-filter: blur(8px);
}

.nav-shell {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 36px;
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
}

.navlinks a:hover,
.foot-col a:hover {
  color: var(--ink);
}

.navcta,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.navcta,
.btn-primary {
  padding: 10px 20px;
  color: var(--paper-raised);
  background: var(--ink);
}

.navcta:hover,
.btn-primary:hover {
  background: #233250;
}

.btn-primary {
  padding: 14px 26px;
}

.btn-secondary {
  padding: 13px 26px;
  border: 1px solid var(--ink);
}

.btn-secondary:hover {
  color: var(--paper-raised);
  background: var(--ink);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  padding: 96px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: end;
}

.kicker {
  max-width: 34ch;
  margin-bottom: 22px;
  color: var(--slate);
  font-size: 15px;
}

.hero-head {
  max-width: 16ch;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
}

.hero-head em {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  max-width: 46ch;
  margin-top: 26px;
  color: var(--slate);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.match-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-raised);
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.match-row:last-of-type {
  border-bottom: 0;
}

.match-side {
  min-width: 0;
  color: var(--slate);
  font-size: 14px;
}

.match-side strong {
  display: block;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  font-weight: 500;
}

.match-side-right {
  text-align: right;
}

.match-link {
  position: relative;
  width: 34px;
  height: 2px;
  background: var(--gold-dim);
}

.match-link::before,
.match-link::after {
  position: absolute;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.match-link::before {
  left: -2px;
}

.match-link::after {
  right: -2px;
}

.match-note {
  margin-top: 20px;
  color: var(--slate);
  font-size: 13px;
}

.strip {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 44px;
}

.strip-label {
  color: var(--slate);
  font-size: 13px;
  white-space: nowrap;
}

.strip-names {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 38px;
  color: #9a9689;
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
}

.section {
  padding: 100px 0;
}

.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: 56ch;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
}

.section-head p {
  margin-top: 16px;
  color: var(--slate);
  font-size: 17px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proc-step {
  position: relative;
  min-height: 220px;
  padding: 28px 28px 28px 0;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.proc-step:first-child {
  border-left: 0;
  padding-left: 0;
}

.proc-num {
  margin-bottom: 14px;
  color: var(--gold);
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
}

.proc-step h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.proc-step p:last-child {
  color: var(--slate);
  font-size: 15px;
}

.tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--line);
}

.track {
  padding: 44px;
  background: var(--paper-raised);
}

.track h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

.track .lead {
  margin-bottom: 24px;
  color: var(--slate);
  font-size: 15px;
}

.track li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}

.track li:first-child {
  border-top: 0;
}

.track li::before {
  flex: 0 0 auto;
  color: var(--gold);
  content: "-";
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--slate);
  background: var(--paper-raised);
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.stat-num {
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 44px;
  line-height: 1.05;
}

.stat-num span {
  color: var(--gold);
}

.stat-label {
  margin-top: 6px;
  color: var(--slate);
  font-size: 14px;
}

.testimonial {
  padding: 64px;
  border-radius: 4px;
  color: var(--paper-raised);
  background: var(--ink);
}

.testimonial blockquote {
  max-width: 38ch;
  color: var(--paper-raised);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.4;
}

.testimonial figcaption {
  margin-top: 28px;
  color: #b9c2d6;
  font-size: 14px;
  font-style: normal;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-raised);
}

.cta-band h2 {
  max-width: 22ch;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.14;
}

.contact-section {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
}

.contact-intro {
  position: sticky;
  top: 112px;
}

.contact-intro h2 {
  max-width: 12ch;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

.contact-intro > p:last-of-type {
  max-width: 34ch;
  margin-top: 20px;
  color: var(--slate);
  font-size: 16px;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-cards a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.panel-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.form-head {
  margin-bottom: 24px;
}

.form-head h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.form-head p {
  color: var(--slate);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full-field {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper-raised);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(166, 124, 39, 0.16);
}

.is-hidden {
  display: none;
}

.form-submit {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.foot-brand .logo {
  margin-bottom: 14px;
}

.foot-brand p {
  max-width: 32ch;
  color: var(--slate);
  font-size: 14px;
}

.foot-col h4 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.foot-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 14px;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .proc-step,
  .proc-step:first-child {
    min-height: auto;
    padding: 24px 0 24px 28px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .navlinks {
    position: absolute;
    top: 76px;
    left: 40px;
    right: 40px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper-raised);
    box-shadow: 0 20px 40px rgba(22, 35, 61, 0.12);
  }

  .navlinks.is-open {
    display: flex;
  }

  .navlinks a {
    padding: 12px 10px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .navcta {
    display: none;
  }

  .tracks,
  .stats,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-intro {
    position: static;
  }
}

@media (max-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 22px;
  }

  .section {
    padding: 76px 0;
  }

  .section-tight {
    padding-top: 0;
  }

  .hero {
    padding: 70px 0 72px;
  }

  .hero-head {
    font-size: clamp(38px, 12vw, 54px);
  }

  .match-panel,
  .track,
  .testimonial,
  .cta-band,
  .panel-form {
    padding: 32px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .match-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .match-side-right {
    text-align: left;
  }

  .match-link {
    width: 52px;
  }

  .strip-inner {
    align-items: flex-start;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}
