/* Hindover: The Sett. Conceived by Noah, built by Badger. */

:root {
  --bg: #120e0a;
  --bg-2: #1a140e;
  --panel: #201812;
  --line: #35291d;
  --cream: #efe6d4;
  --muted: #a3947c;
  --faint: #6e6250;
  --gold: #c08a2e;
  --gold-bright: #e8a33d;
  --amber-glow: rgba(232, 163, 61, 0.14);
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

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

html { scroll-behavior: initial; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #171008; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- preloader ---------- */

#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity 0.9s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
#loader .mark { width: 92px; opacity: 0.9; filter: invert(1) brightness(1.05); }
#loader .log {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  min-height: 72px; text-align: left; width: 300px;
}
#loader .log div { opacity: 0; animation: logline 0.5s ease forwards; }
@keyframes logline { to { opacity: 1; } }
#loader .pct { font-family: var(--mono); font-size: 12px; color: var(--gold-bright); letter-spacing: 0.2em; }

/* ---------- nav ---------- */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
nav.scrolled { background: rgba(18, 14, 10, 0.88); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
nav .wordmark { display: flex; align-items: center; gap: 12px; }
nav .wordmark img { height: 34px; display: block; filter: invert(1) brightness(1.05); }
nav .wordmark span {
  font-size: 19px; letter-spacing: 0.06em; color: var(--cream);
}
nav .links { display: flex; align-items: center; gap: 26px; }
nav .links a { font-size: 14px; color: var(--muted); letter-spacing: 0.05em; }
nav .links a:hover { color: var(--cream); text-decoration: none; }
nav .links a.btn {
  color: #171008; background: var(--gold); padding: 9px 18px; border-radius: 3px;
}
nav .links a.btn:hover { background: var(--gold-bright); }

/* ---------- descent (cinematic scroll) ---------- */

#descent { position: relative; height: 1150vh; }
#descent .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#descent canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

#descent .vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(10, 7, 4, 0.55) 100%);
}
#descent .grain { position: absolute; inset: -100px; pointer-events: none; opacity: 0.05; }

.caption {
  position: absolute; left: 0; right: 0; text-align: center;
  pointer-events: none; opacity: 0; transform: translateY(18px);
  padding: 0 24px;
}
.caption h2 {
  font-weight: 400; font-size: clamp(28px, 4.2vw, 54px);
  letter-spacing: 0.01em; line-height: 1.2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}
.caption .kicker {
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-bright); margin-bottom: 14px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
.caption.low { bottom: 13vh; }
.caption.mid { top: 50%; transform: translateY(-40%); }

#scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cream); opacity: 0.75; text-align: center; pointer-events: none;
  transition: opacity 0.5s ease;
}
#scroll-hint::after {
  content: ''; display: block; width: 1px; height: 34px;
  background: linear-gradient(var(--cream), transparent);
  margin: 10px auto 0; animation: hintdrop 1.8s ease infinite;
}
@keyframes hintdrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

#skip-descent {
  position: absolute; bottom: 30px; right: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); opacity: 0.55; text-decoration: none;
  border-bottom: 1px solid rgba(239, 230, 212, 0.35); padding-bottom: 3px;
}
#skip-descent:hover { opacity: 0.95; text-decoration: none; }

/* ---------- shared section chrome ---------- */

.section { max-width: 1060px; margin: 0 auto; padding: 110px 32px; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.badger-log {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  letter-spacing: 0.04em; margin-bottom: 34px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}
.in-view .badger-log { opacity: 1; transform: none; }
.badger-log::before { content: '> '; color: var(--gold); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 20px;
}
.section h2.title { font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; margin-bottom: 22px; }
.section p.lede { font-size: 19px; color: var(--muted); max-width: 720px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.in-view .reveal, .reveal.in-view { opacity: 1; transform: none; }

/* ---------- statement ---------- */

#statement { text-align: center; padding-top: 140px; padding-bottom: 140px; }
#statement .one-breath {
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.35; font-weight: 400;
  max-width: 900px; margin: 0 auto;
}
#statement .one-breath em { color: var(--gold-bright); font-style: italic; }
#statement .after { margin-top: 28px; color: var(--muted); font-size: 17px; }

/* ---------- chat scenarios ---------- */

#scenarios .intro { max-width: 720px; margin-bottom: 60px; }
.chat-grid { display: grid; gap: 40px; }

.chat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 26px 30px; max-width: 760px; width: 100%; margin: 0 auto;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.chat .chat-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.chat .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold-bright); }
.chat .chat-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chat .stamp { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }

.msg { max-width: 85%; margin-bottom: 14px; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.msg.shown { opacity: 1; transform: none; }
.msg .bubble {
  padding: 12px 16px; border-radius: 10px; font-size: 15.5px; line-height: 1.5;
}
.msg.you { margin-left: auto; text-align: right; }
.msg.you .bubble { background: var(--gold); color: #1c1206; border-bottom-right-radius: 3px; display: inline-block; text-align: left; }
.msg.agent .bubble { background: #2a2016; color: var(--cream); border-bottom-left-radius: 3px; display: inline-block; }
.msg .who { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-bottom: 5px; letter-spacing: 0.08em; }
.msg .bubble .typing-caret { display: inline-block; width: 7px; height: 15px; background: var(--gold-bright); vertical-align: text-bottom; margin-left: 2px; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat .aside { font-size: 14px; color: var(--faint); font-style: italic; margin-top: 16px; }

/* ---------- stats ---------- */

#stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
#stats .inner {
  max-width: 1060px; margin: 0 auto; padding: 70px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 44px;
  text-align: center;
}
#stats .stat .num { font-size: clamp(38px, 4.6vw, 58px); color: var(--gold-bright); font-weight: 400; letter-spacing: 0.02em; }
#stats .stat .num sub { font-size: 0.4em; color: var(--muted); vertical-align: baseline; }
#stats .stat .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ---------- pillars ---------- */

.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; margin-top: 54px; }
.pillar {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 26px 34px; position: relative; overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: #4d3b24; }
.pillar::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.35s ease;
}
.pillar:hover::after { opacity: 1; }
.pillar .num { font-family: var(--mono); font-size: 12px; color: var(--gold-bright); letter-spacing: 0.2em; margin-bottom: 18px; }
.pillar h3 { font-weight: 400; font-size: 21px; margin-bottom: 12px; }
.pillar p { font-size: 15px; color: var(--muted); }

.closing-note { font-size: 14px; color: var(--faint); font-style: italic; margin-top: 26px; }

/* ---------- cost table ---------- */

.table-wrap { overflow-x: auto; margin-top: 30px; border: 1px solid var(--line); border-radius: 8px; }
.cost-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--panel); }
.cost-table th, .cost-table td { text-align: left; padding: 13px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.cost-table th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; background: var(--bg-2);
}
.cost-table td { color: var(--muted); }
.cost-table td:first-child { color: var(--cream); }
.cost-table td.cost { color: var(--gold-bright); white-space: nowrap; }
.cost-table tr.total td { border-bottom: 0; background: rgba(232, 163, 61, 0.07); color: var(--cream); }
.cost-table tr.total td.cost { font-size: 16px; }

/* ---------- team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 54px; }
.team-card .media {
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16/10; background: #000;
}
.team-card .media video, .team-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3 { font-weight: 400; font-size: 22px; margin: 22px 0 4px; }
.team-card .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 12px; }
.team-card p { font-size: 15px; color: var(--muted); }

/* ---------- cta ---------- */

#cta { text-align: center; padding-top: 130px; padding-bottom: 150px; }
#cta h2 { font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.2; margin-bottom: 20px; }
#cta h2 em { color: var(--gold-bright); }
#cta p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 40px; }
.btn-gold {
  display: inline-block; background: var(--gold); color: #171008; font-family: var(--serif);
  font-size: 16.5px; padding: 15px 34px; border-radius: 3px; border: 0; cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); text-decoration: none; }
#cta .sub { display: block; margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 44px 32px 54px; text-align: center; }
footer .made {
  font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
footer .made .paw { color: var(--gold-bright); }
footer .legal { font-size: 13px; color: var(--faint); }
footer .legal a { color: var(--faint); }

/* ---------- contact modal ---------- */

.modal-overlay {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 5, 3, 0.78);
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px;
  max-width: 460px; width: 100%; padding: 38px 34px; position: relative;
  max-height: 92vh; overflow-y: auto;
}
.modal h2 { font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.modal .modal-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--cream); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  color: var(--cream); font-family: var(--serif); font-size: 15.5px; padding: 11px 13px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-submit { width: 100%; margin-top: 6px; }
.form-message { display: none; margin-top: 16px; font-size: 14.5px; }
.form-message.success { display: block; color: #9fc48a; }
.form-message.error { display: block; color: #d98c6a; }

/* ---------- programme page ---------- */

.prog-hero { padding: 170px 32px 40px; max-width: 1060px; margin: 0 auto; }
.prog-hero h1 { font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.15; margin-bottom: 18px; }
.prog-hero p { color: var(--muted); font-size: 19px; max-width: 700px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 30px 28px; margin-top: 28px;
}
.card.gold { border-color: var(--gold); }
.card .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 10px;
}
.card h3 { font-weight: 400; font-size: 22px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); margin-bottom: 10px; }
.card .price { font-size: 40px; color: var(--gold-bright); font-weight: 300; }
.card .price-note { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.card ul { list-style: none; margin-top: 14px; }
.card ul li { font-size: 15px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
.card ul li:last-child { border-bottom: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.fineprint { font-size: 13.5px; color: var(--faint); font-style: italic; margin-top: 22px; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; font-size: 15px; margin: 16px 0; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--gold-bright); text-align: right; }
.kv .v.inc { color: #9fc48a; }
.total-note { background: rgba(232, 163, 61, 0.07); border-radius: 4px; padding: 13px 16px; font-size: 14.5px; color: var(--muted); }
.total-note strong { color: var(--cream); }
.total-note .gold { color: var(--gold-bright); }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-size: 17px; color: var(--cream);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--gold-bright); font-size: 22px; flex-shrink: 0; transition: transform 0.25s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .a { padding: 0 0 22px; font-size: 15.5px; color: var(--muted); max-width: 760px; }

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  nav { padding: 14px 18px; }
  nav .wordmark span { font-size: 16px; }
  nav .wordmark img { height: 28px; }
  nav .links { gap: 14px; flex-shrink: 0; }
  nav .links a { font-size: 13px; white-space: nowrap; }
  nav .links a.btn { padding: 8px 14px; }
  .section { padding: 70px 20px; }
  #descent { height: 900vh; }
  .caption.low { bottom: 16vh; }
  .msg { max-width: 94%; }
  .chat { padding: 18px 16px 22px; }
  #stats .inner { padding: 50px 20px; gap: 30px; grid-template-columns: repeat(2, 1fr); }
  .prog-hero { padding: 130px 20px 24px; }
}

@media (max-width: 480px) {
  nav .wordmark span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .badger-log, .msg { transition: none; opacity: 1; transform: none; }
  #scroll-hint::after { animation: none; }
}
