@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK,9..144,300..700&family=Hanken+Grotesk:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--sw-warm-ink);
  background: var(--sw-ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.portal-active { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: var(--wrap); margin-inline: auto; }

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

/* Blob cursor */
.blob {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sw-gold);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  filter: blur(0px);
}

/* ═══ PORTAL ═══ */
.portal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  background: var(--sw-void);
  transition: opacity 0.55s var(--ease-out);
  transform-origin: center center;
}
.portal--out { pointer-events: none; }

.portal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portal-core {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s;
}
.portal--out .portal-core { opacity: 0; }

.portal-mark {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  position: relative;
  margin-bottom: var(--space-3);
}
.portal-mark .ray {
  position: absolute;
  width: 4px;
  height: 36px;
  background: linear-gradient(var(--sw-gold), transparent);
  border-radius: 2px;
  transform-origin: center 44px;
}
.portal-mark .ray:nth-child(1) { transform: rotate(0deg); }
.portal-mark .ray:nth-child(2) { transform: rotate(45deg); }
.portal-mark .ray:nth-child(3) { transform: rotate(90deg); }
.portal-mark .ray:nth-child(4) { transform: rotate(135deg); }
.portal-mark .ray:nth-child(5) { transform: rotate(180deg); }
.portal-mark .ray:nth-child(6) { transform: rotate(225deg); }
.portal-mark .ray:nth-child(7) { transform: rotate(270deg); }
.portal-mark .ray:nth-child(8) { transform: rotate(315deg); }
.portal-mark .disc {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sw-gold-soft), var(--sw-gold) 55%, var(--sw-sage-deep));
  box-shadow: 0 0 40px rgba(204, 166, 77, 0.45);
}
.portal-mark .core {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sw-ivory);
  opacity: 0.9;
}

.portal-word {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--sw-ivory);
  letter-spacing: 0.04em;
}
.portal-sub {
  display: block;
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sw-sage);
}

/* ═══ NAV ═══ */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: var(--space-3) 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.bar--scrolled {
  background: rgba(13, 20, 16, 0.72);
  backdrop-filter: blur(18px);
  border-color: rgba(204, 166, 77, 0.12);
}
.bar .row {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  mix-blend-mode: difference;
  color: var(--sw-ivory);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, var(--sw-gold), var(--sw-sage), var(--sw-green), var(--sw-gold));
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: var(--space-4);
  margin-left: auto;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 246, 230, 0.75);
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--sw-gold);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid rgba(204, 166, 77, 0.5);
  color: var(--sw-ivory);
  border-radius: 999px;
  transition: background 0.3s, border-color 0.3s;
}
.nav-cta:hover {
  background: rgba(204, 166, 77, 0.12);
  border-color: var(--sw-gold);
}

/* ═══ HERO — Igloo void ═══ */
.hero {
  min-height: 86lvh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-8) 0 var(--space-6);
  background: var(--sw-void);
  position: relative;
  overflow: hidden;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(143, 158, 122, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(204, 166, 77, 0.12), transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(46, 71, 51, 0.35), transparent 70%),
    var(--sw-void);
}
.hero-shard {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(42vw, 420px);
  height: min(55vh, 520px);
  background: linear-gradient(145deg, rgba(204, 166, 77, 0.08), rgba(143, 158, 122, 0.04));
  clip-path: polygon(30% 0%, 100% 15%, 85% 100%, 0% 75%);
  border: 1px solid rgba(204, 166, 77, 0.15);
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  z-index: 2;
  color: var(--sw-ivory);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-sage);
  margin-bottom: var(--space-3);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  font-weight: 350;
  line-height: 1.05;
  max-width: 13ch;
  margin-bottom: var(--space-3);
  font-variation-settings: 'SOFT' 50, 'WONK' 0.8;
}
.hero h1 em {
  font-style: italic;
  color: var(--sw-gold-soft);
}

.gap-word {
  display: inline-flex;
  gap: var(--gap, 0.35vw);
  transition: gap 2.4s var(--ease-out);
}

.hero-lead {
  max-width: var(--max-text);
  font-size: 1rem;
  color: rgba(250, 246, 230, 0.78);
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--sw-gold);
  color: var(--sw-green-900);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 24px;
  border: 1px solid rgba(250, 246, 230, 0.25);
  color: var(--sw-ivory);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(204, 166, 77, 0.2);
  font-size: 0.82rem;
}
.hero-meta strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sw-gold);
  margin-bottom: 4px;
}

/* ═══ TUNNEL ═══ */
.tunnel {
  height: 100lvh;
  position: relative;
  background: var(--sw-green-900);
}
.tunnel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.tunnel-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--sw-ivory);
  pointer-events: none;
  mix-blend-mode: difference;
}
.tunnel-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
}

/* ═══ SECTIONS ═══ */
section {
  padding: clamp(44px, 5.5vw, 72px) 0;
  border-bottom: 1px solid rgba(58, 51, 38, 0.08);
}
.section-head {
  margin-bottom: var(--space-4);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: var(--space-3);
  color: var(--sw-green-900);
}
.section-head p {
  max-width: var(--max-text);
  color: rgba(58, 51, 38, 0.82);
}

.split {
  display: block;
  max-width: 760px;
}
.split.rev { direction: ltr; }
.split.rev > * { direction: ltr; }

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 71, 51, 0.12);
}
.media-placeholder {
  aspect-ratio: 4/5;
  background:
    linear-gradient(160deg, var(--sw-sand) 0%, var(--sw-sage) 40%, var(--sw-green) 100%);
  position: relative;
}
.media-placeholder::after {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(250, 246, 230, 0.3);
  border-radius: var(--radius-md);
  clip-path: polygon(8% 0%, 100% 5%, 92% 100%, 0% 92%);
}

/* Services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.svc-card {
  padding: var(--space-4);
  border: 1px solid rgba(46, 71, 51, 0.14);
  border-radius: var(--radius-md);
  background: var(--sw-sand);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--sw-gold);
}
.svc-card.feature {
  grid-column: span 2;
  background: var(--sw-green-900);
  color: var(--sw-ivory);
  border-color: rgba(204, 166, 77, 0.25);
}
.svc-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--sw-gold);
  letter-spacing: 0.12em;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: var(--space-2) 0;
}
.svc-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-gold-soft);
  margin-left: auto;
}
.svc-head { display: flex; align-items: center; gap: var(--space-2); }
.svc-protocols {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.85;
}
.svc-protocols strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--sw-gold);
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: var(--space-4) 0;
  background: var(--sw-green-900);
  border-block: 1px solid rgba(204, 166, 77, 0.15);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--space-4);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--sw-ivory);
}
.marquee-track b { color: var(--sw-gold); font-weight: 400; }

/* Arc */
.arc {
  height: 100lvh;
  background: var(--sw-void);
  position: relative;
}
.arc-stage {
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
}
.arc-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(143, 158, 122, 0.2), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(204, 166, 77, 0.1), transparent 45%),
    var(--sw-void);
}
.arc-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--sw-ivory);
  max-width: 18ch;
}
.arc-copy .dk {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-sage);
  margin-bottom: var(--space-4);
}
.arc-beat {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  opacity: 0;
  transition: opacity 0.6s;
  width: 100%;
}
.arc-beat.active { opacity: 1; }
.arc-beat em { font-style: italic; color: var(--sw-gold-soft); }

/* Doctor */
.doc-card .cred {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-sage-deep);
  margin-bottom: var(--space-2);
}
.doc-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: var(--space-3);
}
.doc-card .deg {
  display: block;
  font-size: 0.55em;
  color: var(--sw-sage);
  font-weight: 300;
}
.cred-list {
  list-style: none;
  margin-top: var(--space-4);
}
.cred-list li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(46, 71, 51, 0.1);
  font-size: 0.95rem;
}
.cred-list li::before {
  content: '—';
  color: var(--sw-gold);
  margin-right: var(--space-2);
}

/* Chart */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}
.chart-card {
  padding: var(--space-4);
  border: 1px solid rgba(46, 71, 51, 0.12);
  border-radius: var(--radius-lg);
  background: var(--sw-sand);
}
.data-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.data-stat .n {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--sw-green);
}
.data-stat .l {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sw-sage-deep);
}
.chart-line {
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Contact */
.contact-stack { display: grid; gap: var(--space-2); }
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border: 1px solid rgba(46, 71, 51, 0.14);
  border-radius: var(--radius-md);
  transition: border-color 0.3s, background 0.3s;
}
.contact-row:hover {
  border-color: var(--sw-gold);
  background: var(--sw-sand);
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-sage);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-top: 4px;
}

/* Footer */
footer {
  background: var(--sw-green-900);
  color: rgba(250, 246, 230, 0.7);
  padding: var(--space-6) 0 var(--space-4);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.85rem;
}
.cities { display: flex; gap: var(--space-3); }
.cities span::after { content: '·'; margin-left: var(--space-3); opacity: 0.4; }
.cities span:last-child::after { display: none; }
.made {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(204, 166, 77, 0.15);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-gold);
}
.made a { color: var(--sw-gold-soft); }

/* ═══ The visit — calm signature (replaces removed tunnel + broken arc) ═══ */
.path { background: var(--sw-void); color: var(--sw-ivory); padding: clamp(48px, 6vw, 74px) 0; }
.path-dk {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sw-sage); text-align: center;
}
.path-steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4); margin-top: var(--space-6); position: relative;
}
.path-steps::before {
  content: ''; position: absolute; top: 46px; left: 11%; right: 11%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204,166,77,0.35) 18%, rgba(204,166,77,0.35) 82%, transparent);
}
.path-step { text-align: center; position: relative; }
.path-num { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--sw-sage-deep); }
.path-node {
  display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--sw-gold);
  margin: var(--space-3) auto var(--space-4);
  box-shadow: 0 0 0 7px rgba(204,166,77,0.10), 0 0 22px rgba(204,166,77,0.5);
  position: relative; z-index: 2;
}
.path-step h3 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.25; color: var(--sw-ivory); max-width: 15ch; margin-inline: auto;
}
.path-step em { font-style: italic; color: var(--sw-gold-soft); }

/* feature service card — a quiet gold lift, not a billboard */
.svc-card.feature {
  background: linear-gradient(160deg, rgba(204,166,77,0.08), rgba(143,158,122,0.035));
  border-color: rgba(204,166,77,0.32);
}

@media (max-width: 768px) {
  .path-steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .path-steps::before { display: none; }
  .path-step { text-align: left; padding-left: var(--space-4); border-left: 1px solid rgba(204,166,77,0.25); }
  .path-node { margin: var(--space-2) 0; }
  .path-step h3 { max-width: none; margin-inline: 0; }
}

/* ═══ Draggable sun logo (grab · fling with momentum · elastic spring-home) ═══ */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.sun-logo {
  display: inline-flex; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none;
  position: relative; z-index: 60; will-change: transform;
}
.sun-logo.dragging { cursor: grabbing; }
.sun-logo svg { display: block; filter: drop-shadow(0 0 7px rgba(204,166,77,0.35)); transition: filter .3s; }
.sun-logo:hover svg, .sun-logo:focus-visible svg, .sun-logo.dragging svg {
  filter: drop-shadow(0 0 15px rgba(204,166,77,0.78));
}
.sun-logo:focus-visible { outline: 2px solid var(--sw-gold-soft); outline-offset: 4px; border-radius: 50%; }

/* Wave divider */
.wave-divider {
  height: 80px;
  background: var(--sw-ivory);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80'%3E%3Cpath fill='%23000' d='M0,40 Q300,80 600,40 T1200,40 L1200,80 L0,80 Z'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blob, .portal-canvas, .tunnel-canvas { display: none !important; }
  .portal { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .split, .data-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card.feature { grid-column: span 1; }
  .hero-shard { display: none; }
  .tunnel-canvas { display: none; }
  .tunnel { background: linear-gradient(180deg, var(--sw-green-900), var(--sw-void)); }
}