:root {
  --cream: #f3eee4;
  --cream-deep: #e7dfd0;
  --cream-soft: #faf7f0;
  --navy: #0c1e36;
  --navy-mid: #163050;
  --navy-deep: #071422;
  --gold: #c4a35a;
  --gold-bright: #d4b56e;
  --gold-deep: #9a7c3a;
  --slate: #8a96a8;
  --slate-line: rgba(12, 30, 54, 0.12);
  --slate-line-light: rgba(243, 238, 228, 0.16);
  --text: #0c1e36;
  --text-muted: #4d5b70;
  --white: #fffcf7;
  --shadow: 0 18px 50px rgba(7, 20, 34, 0.12);
  --wrap: 1180px;
  --header-h: 140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

h1,
h2,
h3,
.serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 6vw, 76px);
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
}

h3 {
  font-size: 28px;
}

.muted {
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--navy);
  color: var(--cream);
  border-bottom: 1px solid rgba(196, 163, 90, 0.22);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.site-header .brand {
  position: relative;
}

.brand-logo {
  height: 88px;
  width: auto;
  display: block;
  filter: brightness(0) invert(0.94);
}

.site-header .brand-logo {
  height: 120px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.78);
  position: relative;
  padding: 6px 0;
}

.nav a:hover,
.nav a.is-active {
  color: var(--cream);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(196, 163, 90, 0.45);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-lg {
  padding: 18px 28px;
  min-width: 280px;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(196, 163, 90, 0.12), transparent 46%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 55%);
  color: var(--cream);
  padding: 72px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 28px;
}

.hero h1 {
  margin: 18px 0 22px;
  max-width: 16ch;
}

.hero-copy {
  max-width: 52ch;
  color: rgba(243, 238, 228, 0.78);
  font-size: 17.5px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.network {
  position: relative;
  min-height: 360px;
}

.network svg {
  width: 100%;
  height: auto;
}

.route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-dasharray: 5 9;
  animation: flow 22s linear infinite;
  opacity: 0.85;
}

.route-2 { animation-duration: 28s; animation-direction: reverse; }
.route-3 { animation-duration: 19s; }
.route-4 { animation-duration: 25s; animation-direction: reverse; }

@keyframes flow {
  to { stroke-dashoffset: -240; }
}

.node-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.7); }
}

.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

/* Stats */
.stats {
  background: var(--navy);
  color: var(--cream);
  padding: 8px 0 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(196, 163, 90, 0.22);
}

.stat {
  padding: 32px 28px 28px;
  border-right: 1px solid rgba(196, 163, 90, 0.18);
}

.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 56px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.7);
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin: 12px 0 16px;
}

.gold-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 16px 0 0;
}

/* Value grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-card {
  background: var(--cream-soft);
  border: 1px solid var(--slate-line);
  padding: 28px 24px 32px;
  min-height: 240px;
}

.value-card .num {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 22px;
}

.value-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Page hero (inner) */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 0 64px;
}

.page-hero h1 {
  max-width: 16ch;
  margin: 14px 0 18px;
}

.page-hero p {
  max-width: 58ch;
  color: rgba(243, 238, 228, 0.78);
  font-size: 18px;
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.about-split h2 {
  font-size: clamp(36px, 4vw, 54px);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vm-card {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 36px 44px;
  min-height: 340px;
}

.vm-card .tag {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 28px;
}

.vm-card h3 {
  font-size: 34px;
  margin-bottom: 18px;
  max-width: 12ch;
}

.vm-card p {
  color: rgba(243, 238, 228, 0.76);
}

/* Services tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--slate-line);
  margin-bottom: 48px;
}

.tab {
  background: none;
  border: 0;
  padding: 16px 28px 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.phase {
  background: var(--cream-soft);
  border: 1px solid var(--slate-line);
  padding: 24px 20px 28px;
  position: relative;
}

.phase-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: "Cinzel", serif;
  font-size: 11px;
  margin-bottom: 22px;
  background: var(--cream);
  position: relative;
  z-index: 1;
}

.phase h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.phase strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.phase p {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Catalog */
.catalog {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product {
  background: var(--cream-soft);
  border: 1px solid var(--slate-line);
  padding: 22px 18px 24px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.product .icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 28px;
}

.product .div {
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}

.product h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.product p {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* Markets accordion */
.markets {
  display: grid;
  gap: 12px;
}

.market {
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
}

.market-btn {
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 32px;
  cursor: pointer;
  text-align: left;
}

.market-btn h3 {
  font-size: 30px;
}

.market-btn span {
  color: var(--gold);
  font-size: 22px;
}

.market-body {
  display: none;
  padding: 0 32px 32px;
  color: rgba(243, 238, 228, 0.78);
}

.market.is-open .market-body {
  display: block;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  border: 1px solid rgba(196, 163, 90, 0.35);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--cream);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-aside p {
  margin: 16px 0 28px;
  max-width: 42ch;
}

.email-link {
  display: inline-block;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  letter-spacing: 0.02em;
}

.form {
  background: var(--cream-soft);
  border: 1px solid var(--slate-line);
  padding: 36px;
}

.form-step {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--slate-line);
}

.form-step:last-of-type {
  border-bottom: 0;
  margin-bottom: 8px;
}

.form-step h3 {
  font-size: 22px;
  margin: 8px 0 20px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field label em {
  color: var(--gold);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  background: var(--white);
  border: 1px solid var(--slate-line);
  color: var(--navy);
  padding: 12px 14px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.phone {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px;
}

.radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio {
  border: 1px solid var(--slate-line);
  background: var(--white);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14.5px;
}

.radio:has(input:checked) {
  border-color: var(--gold);
  background: #f7f1e2;
}

.radio input { accent-color: var(--gold); }

.dropzone {
  border: 1px dashed rgba(196, 163, 90, 0.7);
  background: var(--white);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
}

.dropzone strong {
  display: block;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 4px;
}

.subchecks {
  display: none;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.subchecks.is-on { display: flex; }

.subchecks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.thanks {
  display: none;
  background: var(--navy);
  color: var(--cream);
  padding: 48px 40px;
}

.thanks.is-on { display: block; }
.form.is-sent .form-body { display: none; }

.thanks h2 {
  margin: 12px 0 16px;
}

.thanks p {
  color: rgba(243, 238, 228, 0.78);
  max-width: 48ch;
}

.ref {
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(196, 163, 90, 0.25);
  border-bottom: 1px solid rgba(196, 163, 90, 0.25);
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  color: var(--gold);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 56px 0 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  column-gap: 40px;
  row-gap: 16px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.18);
}

.footer-brand {
  display: contents;
}

.footer-brand .brand {
  grid-column: 1;
  grid-row: 1;
}

.footer-brand p {
  grid-column: 1;
  grid-row: 2;
}

.footer-col:nth-child(2) { grid-column: 2; grid-row: 2; }
.footer-col:nth-child(3) { grid-column: 3; grid-row: 2; }

.footer-brand .brand-logo {
  height: 120px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
}
.footer-brand p {
  margin-top: 0;
  color: rgba(243, 238, 228, 0.62);
  max-width: 36ch;
  font-size: 14.5px;
}

.site-footer h4 {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; }
.site-footer li {
  color: rgba(243, 238, 228, 0.72);
  margin-bottom: 8px;
  font-size: 14.5px;
}

.legal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px 32px;
  padding-top: 20px;
  color: rgba(243, 238, 228, 0.45);
  font-size: 13px;
}

.legal-office {
  margin-left: auto;
  text-align: right;
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(196, 163, 90, 0.4);
  color: var(--gold);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* Coming-soon landing (public/index.html in landing deploys) */
body.is-landing .landing-hero {
  padding: 96px 0 0;
  flex: 1;
}

body.is-landing .landing-hero .wrap {
  max-width: 920px;
  padding-bottom: 88px;
}

body.is-landing .landing-hero h1 {
  max-width: 18ch;
}

body.is-landing .landing-soon {
  margin-bottom: 0;
  color: var(--cream);
  font-weight: 500;
}

body.is-landing .landing-cta {
  background: var(--cream);
  padding: 72px 0;
}

body.is-landing .landing-cta h2 {
  max-width: 22ch;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 12px 0 0;
}

body.is-landing .landing-cta .email-link {
  display: inline-block;
  margin: 28px 0 24px;
}

body.is-landing .landing-footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
}

body.is-landing .landing-footer-grid .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.is-landing .landing-footer-grid .footer-brand .brand,
body.is-landing .landing-footer-grid .footer-brand p,
body.is-landing .landing-footer-grid .footer-col {
  grid-column: auto;
  grid-row: auto;
}

body.is-landing .landing-footer-grid .footer-brand .brand {
  transform: translateY(-14px);
}

body.is-landing .landing-footer-grid .footer-brand p {
  margin-top: 0;
  transform: translateY(-14px);
}

@media (max-width: 1080px) {
  .value-grid,
  .catalog { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .hero-grid,
  .about-split,
  .contact-layout,
  .footer-grid,
  body.is-landing .landing-footer-grid { grid-template-columns: 1fr; }
  .footer-brand { display: block; }
  .footer-brand .brand,
  .footer-brand p,
  .footer-col { grid-column: auto; grid-row: auto; }
  .footer-brand p { margin-top: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  body.is-landing .header-cta { display: inline-flex; }
  body.is-landing .header-cta {
    padding: 12px 14px;
    font-size: 11px;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 16px;
  }
  .menu-toggle { display: grid; place-items: center; }
  body.is-landing .menu-toggle { display: none; }
  .brand-logo { height: 60px; }
  .site-header .brand-logo,
  .footer-brand .brand-logo {
    height: 120px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
  }
  .fields, .radios, .vm-grid, .stats-grid, .value-grid, .catalog, .timeline {
    grid-template-columns: 1fr;
  }
  .stat { border-right: 0; border-bottom: 1px solid rgba(196, 163, 90, 0.18); }
  .form, .thanks { padding: 24px; }
  .legal { flex-direction: column; align-items: flex-start; }
  .legal-office { margin-left: 0; text-align: left; white-space: normal; }
  .btn-lg { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
