:root {
  --alabaster: #F5F3EE;
  --paper: #FCFBF8;
  --line: #DCD7CC;
  --line-soft: #E9E5DB;
  --ink: #0D0F0E;
  --ink-soft: #3A3E3B;
  --muted: #6B6F6C;
  --emerald: #004E30;
  --emerald-2: #005635;
  --mint: #9CCBB6;
  --gold: #C99A3B;
  --gold-2: #D4A446;
  --cobalt: #0067B8;
  --vermilion: #D94F34;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--alabaster);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

::selection { background: var(--emerald); color: var(--alabaster); }

a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--emerald); }
[hidden] { display: none !important; }

/* 4-color brand strip */
.strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr); height: 4px;
}
.strip span:nth-child(1) { background: var(--emerald-2); }
.strip span:nth-child(2) { background: var(--cobalt); }
.strip span:nth-child(3) { background: var(--gold); }
.strip span:nth-child(4) { background: var(--vermilion); }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer, .nav { position: relative; z-index: 2; max-width: 100%; }

/* NAV */
.nav {
  position: fixed; top: 4px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245, 243, 238, .88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding-top: 14px; padding-bottom: 14px;
  border-color: var(--line-soft);
}
.wordmark { font-weight: 700; font-size: 15px; letter-spacing: .3em; }
.nav nav { display: flex; gap: 34px; align-items: center; }
.nav nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--ink); color: var(--alabaster) !important;
  padding: 11px 20px; border-radius: 100px; transition: background .3s;
}
.nav-cta:hover { background: var(--emerald); }

/* Shared */
section { padding: clamp(90px, 12vw, 165px) var(--pad); }
.hero, .services, .plans, .contact, .marquee, .statement { overflow-x: clip; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--emerald-2); margin-bottom: 22px;
}
.section-head { margin-bottom: clamp(48px, 7vw, 84px); }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 7vw, 102px); line-height: .98; letter-spacing: -.02em;
}
.arrow { display: inline-block; transition: transform .4s var(--ease); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; padding: 17px 28px; border-radius: 100px;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
  will-change: transform; cursor: pointer;
}
.btn:hover .arrow { transform: translateX(5px); }
.btn-dark { background: var(--ink); color: var(--alabaster); }
.btn-dark:hover { background: var(--emerald); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(252, 251, 248, .65); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); justify-content: center; }
.btn-outline:hover { background: var(--ink); color: var(--alabaster); }
.btn-gold { background: var(--gold-2); color: var(--ink); justify-content: center; font-weight: 600; }
.btn-gold:hover { background: #E0B357; }
.btn-light { background: var(--alabaster); color: var(--ink); font-weight: 600; }
.btn-light:hover { background: var(--gold-2); }
.btn-ghost-light { border: 1px solid rgba(245, 243, 238, .3); color: var(--alabaster); }
.btn-ghost-light:hover { border-color: var(--alabaster); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero .eyebrow.reveal { transform: translateY(10px); }
.reveal.in { opacity: 1; transform: none; }

/* HERO (2-Column: Copy Left, Open Interactive 3D Device Stack Right) */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 106px; padding-bottom: 56px; position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: 100%;
}
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(50px, 6.4vw, 112px); line-height: .94; letter-spacing: -.03em;
  margin-bottom: clamp(28px, 4vw, 42px);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.12em; }
.hero-title .word {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.4s var(--ease);
}
.loaded .hero-title .word { transform: none; }
.hero-title em { color: var(--emerald); }
.hero-foot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 26px;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-sub { max-width: 460px; width: 100%; font-size: 17.5px; line-height: 1.6; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  width: 100%;
  height: clamp(380px, 52vw, 600px);
  position: relative;
}
.stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scroll-cue {
  position: absolute; left: var(--pad); bottom: 26px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue span { width: 42px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue span::after {
  content: ''; position: absolute; top: 0; left: -60%; height: 1px; width: 60%; background: var(--ink);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { left: 110%; } }

/* MARQUEE */
.marquee {
  padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; background: var(--paper);
}
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: clamp(30px, 4vw, 56px); white-space: nowrap; }
.marquee-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.marquee-track i:nth-of-type(4n+2) { background: var(--emerald-2); }
.marquee-track i:nth-of-type(4n+3) { background: var(--cobalt); }
.marquee-track i:nth-of-type(4n) { background: var(--vermilion); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* STATEMENT */
.statement { max-width: 1280px; }
.statement-text {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 72px); line-height: 1.12; letter-spacing: -.015em;
}
.statement-text .w { color: rgba(13, 15, 14, .14); transition: color .4s; }
.statement-text .w.on { color: var(--ink); }

/* SERVICES */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service {
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; padding: 36px 30px 40px;
  min-height: 340px; display: flex; flex-direction: column;
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.service:hover { border-color: var(--ink); box-shadow: 0 24px 50px -28px rgba(13, 15, 14, 0.16); }
.service-num { font-family: var(--serif); font-size: 22px; color: var(--gold); margin-bottom: auto; }
.service h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 60px 0 14px; }
.service p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.service-grid .service:nth-child(2) { transition-delay: .08s; }
.service-grid .service:nth-child(3) { transition-delay: .16s; }
.service-grid .service:nth-child(4) { transition-delay: .24s; }

/* PROCESS (Sticky Split Scroll) */
.process-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.steps { list-style: none; border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: baseline;
  padding: 84px 0; border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease), border-color .4s, opacity .4s;
  opacity: .38;
}
.step.is-active, .step:hover {
  opacity: 1;
  padding-left: 16px;
  border-bottom-color: var(--emerald);
}
.step > span { font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: .9; color: var(--emerald); }
.step h3 { font-size: clamp(26px, 2.5vw, 34px); font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.step p { font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 460px; }

.process-visual {
  position: sticky;
  top: 96px;
}
.sticky-stage {
  position: relative;
  width: 100%;
  height: clamp(420px, 66vh, 620px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 45%, #FCFBF8 0%, #EFECE4 100%);
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(13, 15, 14, 0.14);
}
.stage-status {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(252, 251, 248, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-num { color: var(--emerald); font-weight: 700; }
.status-label { color: var(--ink-soft); flex: 1; }
.status-dots { display: inline-flex; gap: 6px; align-items: center; }
.status-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.status-dots i.on { background: var(--emerald); transform: scale(1.25); }

/* PLANS */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.plan {
  border-radius: 20px; padding: 48px 44px; display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
}
.plan-featured {
  background: var(--emerald); color: #F8F7F4; border-color: #003D25;
  box-shadow: 0 40px 90px -30px rgba(0, 78, 48, .45);
}
.plan-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.plan-featured .plan-eyebrow { color: var(--gold-2); }
.pill { background: var(--gold-2); color: var(--ink); padding: 4px 10px; border-radius: 4px; font-size: 10.5px; letter-spacing: .16em; }
.plan-name { font-size: 32px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 26px; }
.plan-price { font-size: clamp(54px, 5.5vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 34px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.plan-price span { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.plan-featured .plan-price span { color: var(--mint); }
.plan ul { list-style: none; border-top: 1px solid var(--line-soft); margin-bottom: 40px; flex: 1; }
.plan-featured ul { border-color: rgba(255,255,255,.14); }
.plan li { padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line-soft); font-size: 16.5px; position: relative; }
.plan-featured li { border-color: rgba(255,255,255,.14); color: #EEF5F1; }
.plan li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-2); transform: translateY(-50%); }
.plan-featured li::before { background: var(--gold-2); }
.plan-grid .plan:nth-child(2) { transition-delay: .1s; }

.care {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 14px; padding: 24px 32px;
  background: var(--paper);
}
.care-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--emerald-2); }
.care-text { font-size: 17px; flex: 1; }
.care-price { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.care-badge { background: #E9F4EE; color: var(--emerald-2); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 4px; }

/* CONTACT */
.contact {
  background: var(--ink); color: var(--alabaster); text-align: center;
  padding-top: clamp(120px, 16vw, 210px); padding-bottom: clamp(120px, 16vw, 210px);
  position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 86, 53, .55) 0%, rgba(0, 86, 53, 0) 60%);
  pointer-events: none;
}
.contact > * { position: relative; }
.contact .eyebrow { color: var(--gold-2); }
.contact-title { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 12vw, 190px); line-height: .9; letter-spacing: -.035em; margin-bottom: 30px; }
.contact-title em { color: var(--gold-2); }
.contact-sub { font-size: 19px; color: #A6ABA8; margin-bottom: 48px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer {
  background: var(--ink); color: var(--alabaster);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 34px var(--pad); border-top: 1px solid #1E2120;
}
.footer-tag { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.footer-copy { font-size: 13px; color: #7C807D; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid, .process-split { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; }
  .process-visual { position: static; }
  .sticky-stage { height: 380px; }
  .step { opacity: 1; padding: 36px 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { padding: 16px 20px; }
  .wordmark { font-size: 12.5px; letter-spacing: .18em; }
  .nav nav { gap: 0; }
  .nav nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 12.5px; white-space: nowrap; }
  .scroll-cue { display: none; }
  .hero { padding-top: 96px; padding-bottom: 44px; min-height: auto; }
  .eyebrow { font-size: 10.5px; letter-spacing: .18em; margin-bottom: 14px; }
  .hero-title { font-size: clamp(40px, 11.2vw, 58px); margin-bottom: 24px; }
  .hero-sub { font-size: 15.5px; }
  .hero-visual { height: 320px; }
  .sticky-stage { height: 320px; }
  .service-grid, .plan-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service h3 { margin-top: 36px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .plan { padding: 36px 24px; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word { transform: none; }
}
