:root {
  --bg: #faf8f3;
  --bg-cream: #f1ece0;
  --bg-deep: #efe9da;
  --paper: #ffffff;
  --ink: #0f1614;
  --ink-2: #2a322f;
  --ink-soft: #5a635e;
  --ink-mute: #8a928d;
  --forest: #0d3b2e;
  --forest-2: #0a2e24;
  --forest-deep: #061a14;
  --gold: #c9a96e;
  --gold-soft: #ddc594;
  --gold-deep: #a8884c;
  --line: rgba(15, 22, 20, 0.12);
  --line-soft: rgba(15, 22, 20, 0.06);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ───────── Reveal on scroll ───────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* ───────── Layout ───────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-deep);
}
.eyebrow.light { color: var(--gold); }
.eyebrow.light::before { background: var(--gold); }
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 300;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--forest);
}

.h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ───────── Header ───────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: padding 280ms ease, background 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.header .brand,
.header .nav a {
  color: #f5edd6;
  transition: color 220ms ease;
}
.header .brand small {
  color: rgba(245, 237, 214, 0.6);
  border-left-color: rgba(245, 237, 214, 0.25);
}
.header .brand .amp { color: var(--gold); }
.header .nav a::after { background: var(--gold); }
.header .nav a:hover { color: var(--gold); }
.header .btn { background: var(--gold); color: var(--forest-deep); }
.header .btn:hover { background: var(--gold-soft); }

.header.scrolled {
  padding: 12px 0;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
}
.header.scrolled .brand { color: var(--ink); }
.header.scrolled .brand small {
  color: var(--ink-mute);
  border-left-color: var(--line);
}
.header.scrolled .brand .amp { color: var(--gold-deep); }
.header.scrolled .nav a { color: var(--ink-2); }
.header.scrolled .nav a::after { background: var(--forest); }
.header.scrolled .nav a:hover { color: var(--forest); }
.header.scrolled .btn { background: var(--forest); color: #f7f3e8; }
.header.scrolled .btn:hover { background: var(--forest-2); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand .amp {
  color: var(--gold-deep);
  font-style: italic;
  margin: 0 2px;
}
.brand small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  margin-left: 12px;
  text-transform: uppercase;
  align-self: center;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 180ms ease;
}
.nav a:hover { color: var(--forest); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--forest);
  transition: right 220ms ease;
}
.nav a:hover::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--forest);
  color: #f7f3e8;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.btn:hover { background: var(--forest-2); transform: translateY(-1px); }
.btn .arrow { transition: transform 220ms ease; font-size: 16px; line-height: 1; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); }

.btn--gold {
  background: var(--gold);
  color: var(--forest-deep);
}
.btn--gold:hover { background: var(--gold-soft); }

.btn--light {
  background: var(--bg);
  color: var(--ink);
}
.btn--light:hover { background: #fff; }

.btn--outline {
  background: transparent;
  color: #f5edd6;
  border-color: rgba(245, 237, 214, 0.35);
}
.btn--outline:hover {
  background: rgba(245, 237, 214, 0.08);
  border-color: rgba(245, 237, 214, 0.7);
}

.btn--sm { height: 38px; padding: 0 18px; font-size: 13px; }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: 220px 0 0;
  overflow: hidden;
  background: var(--forest-deep);
  color: #f5edd6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  filter: saturate(0.85) contrast(0.95);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      rgba(6, 26, 20, 0.92) 0%,
      rgba(6, 26, 20, 0.78) 30%,
      rgba(6, 26, 20, 0.55) 60%,
      rgba(6, 26, 20, 0.42) 100%),
    linear-gradient(180deg,
      rgba(6, 26, 20, 0.35) 0%,
      rgba(6, 26, 20, 0) 30%,
      rgba(6, 26, 20, 0) 65%,
      rgba(6, 26, 20, 0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
}
.hero__marquee-wrap {
  position: relative;
  z-index: 1;
}
.hero__title { margin-bottom: 80px; color: #f5edd6; }
.hero__title em { color: var(--gold); font-style: italic; }
.hero__title small {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero .lede { color: rgba(245, 237, 214, 0.85); }
.hero__lower {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.hero__quote {
  border-left: 1px solid rgba(245, 237, 214, 0.25);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: end;
}
.hero__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: rgba(245, 237, 214, 0.92);
  text-wrap: pretty;
}
.marquee {
  margin-top: 0;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.marquee span { white-space: nowrap; }
.marquee span strong {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-right: 8px;
}
.marquee--dark {
  border-top-color: rgba(245, 237, 214, 0.2);
  border-bottom-color: rgba(245, 237, 214, 0.2);
  color: rgba(245, 237, 214, 0.65);
  margin-bottom: 0;
}
.marquee--dark span strong {
  color: var(--gold);
}

/* ───────── Section frame ───────── */
.section { padding: 130px 0; }
.section--cream { background: var(--bg-cream); }
.section--dark {
  background: var(--forest);
  color: #e9e1c7;
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #f5edd6; }
.section--dark .lede { color: rgba(245, 237, 214, 0.78); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section__head .h2 { margin-top: 18px; }

/* ───────── Services / tabs ───────── */
.tabs {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.tabs__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(245, 237, 214, 0.18);
}
.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 237, 214, 0.18);
  padding: 22px 6px 22px 0;
  text-align: left;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(245, 237, 214, 0.65);
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  transition: color 200ms ease, padding 240ms ease;
}
.tab .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: rgba(245, 237, 214, 0.45);
}
.tab:hover { color: #f5edd6; padding-left: 6px; }
.tab.active {
  color: var(--gold);
  padding-left: 14px;
  position: relative;
}
.tab.active .num { color: var(--gold); }
.tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.panel {
  background: var(--forest-2);
  border: 1px solid rgba(245, 237, 214, 0.1);
  border-radius: 2px;
  padding: 56px 56px 48px;
  min-height: 520px;
  position: relative;
  animation: fadeIn 420ms cubic-bezier(.2,.7,.2,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.panel__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(245, 237, 214, 0.14);
}
.panel__top h3 {
  font-size: clamp(28px, 2.6vw, 38px);
  color: #f5edd6;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.panel__top .num-large {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.panel__intro {
  color: rgba(245, 237, 214, 0.78);
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 36px;
}
.panel__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(245, 237, 214, 0.1);
}
.panel__list li {
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid rgba(245, 237, 214, 0.1);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: rgba(245, 237, 214, 0.88);
  line-height: 1.5;
}
.panel__list li:nth-child(odd) { padding-right: 24px; }
.panel__list li:nth-child(even) { padding-left: 24px; border-left: 1px solid rgba(245, 237, 214, 0.1); }
.panel__list li .dot {
  flex: 0 0 6px;
  width: 6px; height: 6px; margin-top: 9px;
  background: var(--gold);
  border-radius: 50%;
}

/* ───────── About / team ───────── */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.about__copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.about__copy p strong {
  color: var(--ink);
  font-weight: 500;
}
.stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 230px;
}
.stat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.stat__k {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--forest);
  letter-spacing: -0.03em;
}
.stat__num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.stat__v {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat__note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ───────── Contact ───────── */
.contact {
  background: var(--forest);
  color: #e9e1c7;
}
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: start;
}
.contact__head h2 { color: #f5edd6; }
.contact__head .lede { color: rgba(245, 237, 214, 0.78); margin-top: 28px; }

.contact__details {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 237, 214, 0.18);
}
.detail {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: baseline;
}
.detail .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 237, 214, 0.55);
  font-weight: 600;
}
.detail .value {
  font-family: var(--serif);
  font-size: 19px;
  color: #f5edd6;
}
.detail .value a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(245, 237, 214, 0.25); padding-bottom: 1px; }
.detail .value a:hover { border-bottom-color: var(--gold); }

.form {
  background: var(--bg);
  color: var(--ink);
  padding: 44px 44px 36px;
  border-radius: 2px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  position: relative;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.field label .req { color: var(--gold-deep); margin-left: 4px; }
.field input,
.field textarea,
.field select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  padding: 10px 0;
  outline: none;
  transition: border-color 180ms ease;
  border-radius: 0;
}
.field textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--forest); }
.field.error input,
.field.error textarea,
.field.error select { border-bottom-color: #b54b3a; }
.field .err {
  font-size: 12px;
  color: #b54b3a;
  letter-spacing: 0.01em;
  min-height: 14px;
  margin-top: 2px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.field.error .err { opacity: 1; transform: none; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230f1614' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

.form__check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 8px 0 26px;
  line-height: 1.5;
  cursor: pointer;
}
.form__check input { margin-top: 3px; accent-color: var(--forest); }
.form__check.error { color: #b54b3a; }
.form__error {
  margin: -4px 0 20px;
  color: #b54b3a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.form__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form__hint {
  font-size: 12px;
  color: var(--ink-mute);
}
.form .btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form__success {
  text-align: center;
  padding: 64px 24px;
  animation: fadeIn 420ms ease;
}
.form__success .seal {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
}
.form__success h3 { font-size: 28px; margin-bottom: 8px; }
.form__success p { color: var(--ink-soft); font-size: 15px; }

/* ───────── Footer ───────── */
.footer {
  background: var(--forest-deep);
  color: rgba(245, 237, 214, 0.65);
  padding: 56px 0 36px;
  font-size: 13px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 237, 214, 0.14);
  margin-bottom: 28px;
}
.footer__brand {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: #f5edd6;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.footer__brand .amp { color: var(--gold); font-style: italic; }
.footer__nav {
  display: flex;
  gap: 28px;
}
.footer__nav a {
  color: rgba(245, 237, 214, 0.7);
  text-decoration: none;
  transition: color 180ms ease;
}
.footer__nav a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245, 237, 214, 0.5);
}
.footer__credit {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
  padding-bottom: 1px;
  transition: border-color 180ms ease, color 180ms ease;
}
.footer__credit:hover {
  color: var(--gold-soft);
  border-bottom-color: var(--gold-soft);
}

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .hero { padding: 140px 0 0; min-height: auto; }
  .hero__content { padding-bottom: 40px; }
  .hero__title { margin-bottom: 48px; }
  .hero__lower,
  .section__head,
  .about__grid,
  .contact__inner,
  .tabs { grid-template-columns: 1fr; gap: 40px; }
  .hero__quote { border-left: 0; border-top: 1px solid rgba(245, 237, 214, 0.25); padding-left: 0; padding-top: 24px; align-self: stretch; }
  .section { padding: 88px 0; }
  .panel { padding: 36px 28px; }
  .panel__list { grid-template-columns: 1fr; }
  .panel__list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .nav { display: none; }
  .container { padding: 0 22px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; gap: 4px; }
  .marquee { font-size: 11px; gap: 18px; }
  .marquee span strong { font-size: 16px; }
}
