:root {
  --bg: #1E1422;
  --surface: #2E1F33;
  --surface-2: #3A2740;
  --amber: #EF9F27;
  --amber-hover: #f0ad4a;
  --paper: #F7F6F2;
  --dim: rgba(247, 246, 242, 0.72);
  --faint: rgba(247, 246, 242, 0.55);
  --hair: rgba(247, 246, 242, 0.1);
  --amber-75: rgba(239, 159, 39, 0.75);
  --amber-40: rgba(239, 159, 39, 0.4);
  --amber-18: rgba(239, 159, 39, 0.18);
  --paper-025: rgba(247, 246, 242, 0.025);
  --paper-045: rgba(247, 246, 242, 0.045);
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --z-grain: 999;
  --z-progress: 1000;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 90px; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--paper);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

::selection { background: var(--amber); color: var(--bg); }

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

.point { color: var(--amber); font-weight: 500; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  z-index: var(--z-progress);
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  position: sticky;
  top: 0;
  background: rgba(30, 20, 34, 0.82);
  backdrop-filter: blur(12px);
  z-index: 10;
  transition: box-shadow 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}
.site-header.scrolled { padding: 12px 6vw; box-shadow: 0 12px 34px -20px rgba(0, 0, 0, 0.8); }

.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-name { font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--paper); letter-spacing: -0.01em; }
.wordmark-name.small { font-size: 18px; }
.wordmark-sub { font-family: var(--mono); font-size: 10.5px; color: var(--amber-75); letter-spacing: 0.32em; text-transform: uppercase; }

.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { text-decoration: none; color: var(--dim); font-size: 15px; position: relative; padding-bottom: 3px; }
.site-header nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.site-header nav a:hover { color: var(--paper); }
.site-header nav a:hover::after { transform: scaleX(1); }
.site-header nav a:focus-visible,
.contact-mail:focus-visible,
.footer-mail:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 6vw 0;
}
.hero-orbits {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 620px;
  height: 620px;
  pointer-events: none;
}
.hero-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }
.hero-kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 34px;
}
.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--amber);
  margin-right: 14px;
  vertical-align: middle;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(50px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 30px;
  max-width: 960px;
}
.hero h1 .hl { font-style: normal; color: var(--amber); }
.hero h1 .w {
  display: inline-block;
  animation: word-rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  white-space: pre;
}
@keyframes word-rise {
  from { opacity: 0; transform: translateY(0.5em); }
  to { opacity: 1; transform: none; }
}
.hero-sub { font-size: 20px; color: var(--dim); max-width: 580px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.relay-svg { display: block; width: 100%; max-width: 1100px; margin: 44px auto 0; padding-bottom: 38px; position: relative; z-index: 1; border-bottom: 1px solid var(--hair); }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 6vw;
  gap: 28px;
}
.stat { border-left: 1px solid var(--hair); padding-left: 20px; }
.stat-value { font-family: var(--serif); font-size: 24px; color: var(--paper); display: block; margin-bottom: 4px; }
.stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.15s var(--ease-out), background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn-primary { background: var(--amber); color: var(--bg); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { color: var(--paper); border: 1px solid var(--hair); background: transparent; }
.btn-ghost:hover { border-color: var(--dim); }
.btn-lg { padding: 17px 36px; font-size: 17px; white-space: nowrap; }
.btn-arrow { display: inline-block; margin-left: 9px; transition: transform 0.2s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Sections */
.section { padding: 110px 6vw; max-width: 1080px; margin: 0 auto; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 54px;
}

/* Service rows */
.svc-row {
  display: grid;
  grid-template-columns: 70px 1.05fr 1.55fr;
  gap: 36px;
  padding: 46px 0;
  border-top: 1px solid var(--hair);
  transition: background 0.25s var(--ease-out);
}
.svc-row:last-of-type { border-bottom: 1px solid var(--hair); }
.svc-row:hover { background: var(--paper-025); }
.svc-num { font-family: var(--mono); font-size: 13px; color: var(--amber); padding-top: 8px; }
.svc-title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 31px); font-weight: 500; line-height: 1.2; transition: transform 0.25s var(--ease-out); }
.svc-row:hover .svc-title { transform: translateX(6px); }
.svc-body p { font-size: 16px; color: var(--dim); margin-bottom: 16px; }
.svc-body ul { list-style: none; margin-bottom: 20px; }
.svc-body li {
  font-size: 15px;
  color: var(--paper);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.svc-body li::before { content: '·'; color: var(--amber); font-weight: 500; font-size: 22px; position: absolute; left: 0; top: -4px; }
.svc-tags {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Timeline (process) */
.timeline { position: relative; max-width: 720px; padding-left: 46px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--hair);
}
.t-step { position: relative; padding-bottom: 46px; }
.t-step:last-child { padding-bottom: 0; }
.t-step::before {
  content: '';
  position: absolute;
  left: -40px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--amber);
  z-index: 1;
}
.t-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--amber); display: block; margin-bottom: 6px; }
.t-step h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-bottom: 8px; }
.t-step p { font-size: 16px; color: var(--dim); max-width: 560px; }

/* Training strip */
.training { padding-top: 0; padding-bottom: 0; }
.training-inner {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.training-inner:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.7); }
.training-copy h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-bottom: 8px; }
.training-copy h3::before { content: '·'; color: var(--amber); margin-right: 12px; }
.training-copy p { font-size: 15.5px; color: var(--dim); max-width: 560px; }
.btn-outline { color: var(--paper); border: 1px solid var(--hair); background: transparent; white-space: nowrap; }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* Feature (recent work) */
.feature {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 50px 52px;
  max-width: 860px;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.feature:hover { transform: translateY(-4px); border-color: var(--amber-40); box-shadow: 0 28px 60px -32px rgba(0, 0, 0, 0.8); }
.feature-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.feature h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); font-weight: 500; margin-bottom: 16px; line-height: 1.15; }
.feature p { font-size: 16.5px; color: var(--dim); margin-bottom: 18px; max-width: 660px; }
.feature-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  border-top: 1px solid var(--hair);
  padding-top: 20px;
  margin-bottom: 0 !important;
}

/* Discovery session */
.disco-list { list-style: none; margin: 26px 0 32px; max-width: 660px; }
.disco-list li {
  font-size: 15.5px;
  color: var(--dim);
  padding-left: 20px;
  position: relative;
  margin-bottom: 14px;
}
.disco-list li::before { content: '·'; color: var(--amber); font-weight: 500; font-size: 22px; position: absolute; left: 0; top: -4px; }
.disco-list strong { color: var(--paper); font-weight: 500; }
.disco-price { border-top: 1px solid var(--hair); padding-top: 28px; margin-bottom: 30px; }
.disco .disco-fee {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 44px);
  color: var(--paper);
  line-height: 1.1;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.disco-fee-note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.disco .disco-why { font-size: 15px; color: var(--faint); max-width: 620px; margin-bottom: 0; }

/* About */
.about-mark { font-family: var(--serif); font-size: 72px; color: var(--amber); line-height: 0.4; display: block; margin-bottom: 30px; }
.about-text {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 33px);
  font-weight: 400;
  line-height: 1.45;
  max-width: 860px;
}

/* Contact */
.contact {
  text-align: center;
  padding: 140px 6vw 150px;
  position: relative;
}
.contact-line { display: block; margin: 0 auto 34px; width: 220px; }
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.contact p { color: var(--dim); max-width: 540px; margin: 0 auto 40px; font-size: 17.5px; }
.contact-mail { display: inline-block; margin-top: 26px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 2px; transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.contact-mail:hover { color: var(--amber); border-color: var(--amber); }

/* Footer */
.site-footer { border-top: 1px solid var(--hair); padding: 46px 6vw 38px; overflow: hidden; }
.foot-mark {
  font-family: var(--serif);
  font-size: clamp(72px, 15vw, 210px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--paper-045);
  white-space: nowrap;
  user-select: none;
  margin-bottom: 30px;
}
.foot-mark .point { color: var(--amber-18); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--faint);
}
.footer-mail { font-family: var(--mono); font-size: 12.5px; color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 1px; transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.footer-mail:hover { color: var(--amber); border-color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .relay-mover, .relay-pulse { display: none; }
  .hero h1 .w { animation: none; }
  .scroll-progress { display: none; }
  .btn, .btn-arrow, .svc-row, .svc-title, .feature, .training-inner { transition: none; }
  .btn:hover, .feature:hover, .training-inner:hover { transform: none; }
  .btn:hover .btn-arrow, .svc-row:hover .svc-title { transform: none; }
}

@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 12px; position: static; padding: 16px 6vw; }
  .site-header nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero { padding-top: 64px; }
  .hero-orbits { display: none; }
  .relay-labels text { font-size: 15px; }
  .relay-labels text:nth-of-type(2), .relay-labels text:nth-of-type(4) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 34px; padding-bottom: 34px; }
  .svc-row { grid-template-columns: 1fr; gap: 12px; padding: 34px 0; }
  .svc-num { padding-top: 0; }
  .timeline { padding-left: 38px; }
  .t-step::before { left: -32px; }
  .timeline::before, .timeline::after { left: 8px; }
  .feature { padding: 34px 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 360px) {
  .btn-lg { padding: 15px 20px; font-size: 15px; }
}

/* Legal pages */
.legal { max-width: 760px; padding-top: 90px; }
.legal-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.legal-updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding-bottom: 34px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--hair);
}
.legal h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  margin: 46px 0 14px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { font-size: 16.5px; color: var(--dim); margin-bottom: 16px; }
.legal ul { list-style: none; margin: 0 0 20px; }
.legal li {
  font-size: 16.5px;
  color: var(--dim);
  padding-left: 20px;
  margin-bottom: 10px;
  position: relative;
}
.legal li::before {
  content: '·';
  color: var(--amber);
  font-weight: 500;
  font-size: 22px;
  position: absolute;
  left: 0;
  top: -4px;
}
.legal strong { color: var(--paper); font-weight: 500; }
.legal a { color: var(--amber); text-decoration: none; border-bottom: 1px solid var(--amber-40); }
.legal a:hover { border-color: var(--amber); }
.legal a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.legal-callout {
  border: 1px solid var(--hair);
  border-left: 2px solid var(--amber);
  background: var(--paper-025);
  border-radius: 4px;
  padding: 24px 26px;
  margin: 28px 0 32px;
}
.legal-callout p:last-child { margin-bottom: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.footer-links a:hover { color: var(--amber); border-color: var(--amber); }
.footer-links a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 720px) {
  .legal { padding-top: 70px; }
  .legal-callout { padding: 20px 20px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 14px; }
}

/* Contact SMS opt-in line */
.contact .contact-sms {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--faint);
  max-width: 520px;
  margin: 26px auto 0;
}
.contact .contact-sms a { color: var(--faint); text-decoration: none; border-bottom: 1px solid var(--hair); }
.contact .contact-sms a:hover { color: var(--amber); border-color: var(--amber); }
.contact .contact-sms a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
