/* THYBRID site — brand palette: charcoal + electric red-orange */
:root {
  --bg:        #0a0a0a;
  --bg-elev:   #131313;
  --ink:       #f2ede4;
  --ink-dim:   #a09a90;
  --accent:    #ff3300;
  --accent-2:  #ff7a3d;
  --rule:      rgba(242,237,228,0.14);
  --serif:     "Fraunces", Georgia, "Times New Roman", serif;
  --sans:      "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  backdrop-filter: blur(10px) saturate(120%);
  background: linear-gradient(180deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.35) 70%, rgba(10,10,10,0) 100%);
}
.wordmark {
  font-family: var(--serif); font-weight: 700; font-style: normal;
  letter-spacing: 0.18em; font-size: 15px; color: var(--ink);
}
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.nav a:hover { color: var(--ink); }
.nav .cta-mini {
  padding: 8px 14px; border: 1px solid var(--accent); color: var(--ink);
  border-radius: 999px; letter-spacing: 0.18em;
}
.nav .cta-mini:hover { background: var(--accent); color: #fff; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.scene-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}
.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.55) contrast(1.05) saturate(0.9);
}
.section-copy {
  position: relative; z-index: 5;
  max-width: 780px;
  padding: 40px 32px;
  margin: 0 auto;
  text-align: left;
}
.section-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: 0.02em;
  margin: 0 0 24px 0;
  line-height: 0.98;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7);
}
.section-body {
  font-size: clamp(16px, 1.2vw, 19px);
  color: #f5f2ea;
  max-width: 60ch;
  line-height: 1.7;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(10,10,10,0.62), rgba(10,10,10,0.3));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 2px;
}

/* ---------- Focus (dedicated GLB orbit viewer) ---------- */
.section-focus {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}
.section-focus .focus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}
.focus-copy {
  position: relative;
  z-index: 5;
  max-width: 440px;
  margin: 0 40px;
  padding: 60px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.focus-copy-right {
  margin-left: auto;
  margin-right: 60px;
  text-align: right;
}
.focus-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffb694;
  margin-bottom: 20px;
}
.focus-copy .section-heading {
  font-size: clamp(52px, 6vw, 96px);
  margin-bottom: 24px;
}
.focus-copy .section-body {
  max-width: 42ch;
  margin: 0;
}
.focus-copy-right .section-body {
  margin-left: auto;
}
.focus-hint {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245,242,234,0.55);
}

/* ---------- Hero cinema (drone) ---------- */
.section-hero-cinema {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #050505;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.05) saturate(0.9);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.hero-overlay-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}
.section-hero-cinema .hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #ffb694;
  padding: 8px 18px;
  border: 1px solid rgba(255,51,0,0.35);
  border-radius: 999px;
  background: rgba(10,10,10,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-bottom: 24px;
}
.scroll-cue {
  pointer-events: auto;
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f5f2ea;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.scroll-cue:hover {
  background: rgba(255,51,0,0.85);
  border-color: transparent;
  color: #0a0a0a;
}

/* ---------- Hero (legacy, kept for fallback) ---------- */
.section-hero { background: radial-gradient(ellipse at center, #141010 0%, #0a0a0a 70%); }
.hero-copy {
  position: relative; z-index: 5;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(72px, 14vw, 220px);
  letter-spacing: 0.08em;
  line-height: 0.9;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 6px 60px rgba(255, 51, 0, 0.25);
}
.tagline {
  font-family: var(--sans);
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 24px;
}

/* ---------- Editorial (Founders) ---------- */
.section-editorial { background: linear-gradient(180deg, #0a0a0a 0%, #131010 50%, #0a0a0a 100%); }
.editorial-inner {
  max-width: 760px;
  padding: 120px 32px;
  text-align: left;
}
.editorial-body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.55;
  color: var(--ink);
  margin: 40px 0;
}
.editorial-rule {
  height: 1px; width: 60px; background: var(--accent);
}

/* ---------- Testimonial ---------- */
.section-testimonial { background: #0a0a0a; padding: 100px 24px; }
.testimonial-grid {
  display: grid;
  grid-template-columns: minmax(320px, 40vw) 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.testimonial-video-wrap {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
.bordered-video { display: block; width: 100%; height: auto; }
.testimonial-copy .section-heading { font-size: clamp(32px, 4vw, 48px); }
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Apply ---------- */
.section-apply { background: #0a0a0a; }
.apply-inner {
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}
.apply-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 68px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.apply-subline {
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 44px;
}
.apply-cta {
  display: inline-block;
  padding: 22px 54px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.28em;
  font-size: 14px;
  border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 10px 40px rgba(255,51,0,0.35);
}
.apply-cta:hover { transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 16px 50px rgba(255,122,61,0.5); }
.apply-cta .arrow { margin-left: 10px; }
.apply-footnote {
  margin-top: 30px;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 28px;
  border-top: 1px solid var(--rule);
  background: #050505;
  color: var(--ink-dim);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-line { color: var(--ink); margin-bottom: 10px; font-family: var(--serif); font-weight: 300; text-transform: none; letter-spacing: 0.02em; font-size: 15px; }
.footer-meta { opacity: 0.65; }

/* ---------- Map scene ---------- */
.section-map {
  background: linear-gradient(180deg, #1a1d24 0%, #0a0a0a 100%);
  overflow: hidden;
}
.section-map .scene-canvas.map-canvas {
  pointer-events: auto;
  z-index: 2;
}
.map-overlay {
  position: absolute; inset: 0;
  z-index: 4;
  pointer-events: none;
}
.map-copy {
  position: absolute;
  right: 40px; bottom: 60px;
  z-index: 5;
  max-width: 420px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(10,10,10,0.75), rgba(10,10,10,0.35));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,51,0,0.15);
  border-radius: 4px;
  pointer-events: none;
}
.map-copy .section-heading { font-size: clamp(30px, 4vw, 52px); margin-bottom: 12px; }
.map-subheading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(15px, 1.2vw, 20px);
  color: var(--ink);
  margin: 0 0 24px;
}
.map-hint {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
}
.map-label {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8vw;
  min-font-size: 12px;
  color: #f5f2ea;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 242, 234, 0.16);
  border-radius: 2px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.24s ease, border-color 0.24s ease, color 0.24s ease;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.map-label.is-clickable { border-color: rgba(255, 51, 0, 0.55); color: #ffffff; }
.map-label.is-clickable::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(255, 51, 0, 0.9);
}
.map-tooltip {
  position: fixed;
  z-index: 20;
  padding: 6px 12px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(245, 242, 234, 0.18);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.map-tooltip.visible { opacity: 1; }
.map-back {
  position: absolute;
  top: 92px; left: 40px;
  z-index: 22;
  padding: 11px 20px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 51, 0, 0.42);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease;
}
.map-back.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.map-back:hover { background: var(--accent); border-color: transparent; color: #0a0a0a; }

/* Controls hint — small, corner, fades after first interaction. */
.map-controls-hint {
  position: absolute;
  right: 24px; top: 92px;
  z-index: 22;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 10.5px;
  color: rgba(245, 242, 234, 0.72);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.map-controls-hint.interacted { opacity: 0.32; }
.map-controls-hint .mch-row { display: flex; align-items: center; gap: 8px; }
.map-controls-hint .mch-key {
  display: inline-block;
  padding: 2px 6px;
  min-width: 44px; text-align: center;
  background: rgba(255, 51, 0, 0.12);
  border: 1px solid rgba(255, 51, 0, 0.35);
  border-radius: 2px;
  color: #ffb694;
  letter-spacing: 0.10em;
}
.section-map[data-focused] .map-controls-hint { opacity: 0; }

/* Zoom badge — appears on wheel activity, fades out after ~1s. */
.map-zoom-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  z-index: 22;
  padding: 10px 18px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 51, 0, 0.35);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  color: #f5f2ea;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.map-zoom-badge.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.section-map[data-focused] .map-copy { opacity: 0; transition: opacity 0.4s ease; }
.map-copy { transition: opacity 0.4s ease; }
.map-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: 30;
  width: min(440px, 90vw);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px) saturate(120%);
  border-left: 1px solid var(--rule);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  overflow-y: auto;
  padding: 80px 34px 40px;
  pointer-events: auto;
}
.map-panel.active { transform: translateX(0); }
.map-panel-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.map-panel-close:hover { background: rgba(255, 51, 0, 0.15); border-color: var(--accent); }
.map-panel-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.map-panel-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  line-height: 1.05;
}
.map-panel-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 20px;
  border: 1px solid var(--rule);
}
.map-panel-desc {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 26px;
}
.map-panel-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 999px;
}
.map-panel-cta:hover { background: var(--accent-2); }
.map-panel-cta span { margin-left: 8px; }
.map-panel-pending {
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px dashed rgba(255, 51, 0, 0.4);
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav a:not(.cta-mini) { display: none; }
  .site-header { padding: 14px 18px; }
  .section-copy { padding: 24px 20px; }
  .map-copy { left: 20px; right: 20px; bottom: 24px; }
  .map-label { font-size: 11px; padding: 4px 8px; }
  .map-panel { width: 100vw; padding: 72px 22px 28px; }
  .map-panel-title { font-size: 30px; }
}

/* ---------- Glasshouse walk-in (scroll-driven POV) ---------- */
.section-walkin {
  position: relative;
  height: 300vh;
  min-height: 300vh;
  background: #050505;
  overflow: visible;
  display: block;
  align-items: initial;
  justify-content: initial;
}
.section-walkin .scene-canvas.walkin-canvas {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  inset: auto;
  z-index: 1;
  pointer-events: none;
}
.walkin-copy {
  position: absolute;
  left: 40px;
  z-index: 5;
  max-width: 460px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.walkin-copy-approach  { top: 42vh; }
.walkin-copy-threshold { top: calc(100vh + 42vh); }
.walkin-copy-inside    { top: calc(200vh + 42vh); }
.section-walkin[data-phase="0"] .walkin-copy-approach,
.section-walkin[data-phase="1"] .walkin-copy-threshold,
.section-walkin[data-phase="2"] .walkin-copy-inside {
  opacity: 1;
  transform: translateY(0);
}
.walkin-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #ffb694;
  margin-bottom: 18px;
}
.walkin-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: 0.01em;
  margin: 0 0 18px 0;
  line-height: 1.02;
  color: #f5f2ea;
  text-shadow: 0 2px 30px rgba(0,0,0,0.85);
}
.walkin-line,
.walkin-body {
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 18px);
  color: #f5f2ea;
  line-height: 1.7;
  max-width: 46ch;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(10,10,10,0.62), rgba(10,10,10,0.28));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 2px;
}
.walkin-progress {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 20;
  pointer-events: none;
}
.walkin-progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #ff3300, #ffb060);
  transition: transform 60ms linear;
}
@media (max-width: 720px) {
  .walkin-copy { left: 20px; right: 20px; max-width: none; }
  .walkin-line, .walkin-body { padding: 12px 14px; }
}
