:root {
  --ink: #0A1616;
  --paper: #F7F4EE;
  --teal: #173A3A;
  --teal-card: #11302C;
  --amber: #C9852B;
  --amber-deep: #9A6414;
  --px: clamp(20px, 5vw, 72px);
  --f-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans: 'Satoshi', 'Helvetica Neue', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { overscroll-behavior: none; }
::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

@keyframes pulseline { 0%, 100% { transform: scaleY(0.3); opacity: 0.5; } 50% { transform: scaleY(1); opacity: 1; } }

#app {
  --acc: var(--amber);
  position: relative;
  min-height: 100vh;
  font-family: var(--f-sans);
  color: var(--paper);
}

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#glFallback { display: none; position: fixed; inset: 0; z-index: 0; background: radial-gradient(1100px 750px at 62% 38%, #123030 0%, #0A1616 70%); }

main { position: relative; z-index: 1; }

/* ---------- shared ---------- */
.kicker { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--acc); }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--acc); }
.arr { font-style: normal; }
.line { display: block; }

/* ---------- preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; color: var(--paper); }
.pre-brand { position: absolute; top: 24px; left: var(--px); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; color: rgba(247,244,238,0.6); }
.pre-stack { display: flex; flex-direction: column; align-items: center; gap: 22px; }
#preCount { font-family: var(--f-display); font-weight: 600; font-size: 92px; line-height: 1; letter-spacing: -0.02em; }
.pre-rail { width: 220px; height: 2px; background: rgba(247,244,238,0.14); overflow: hidden; }
#preBar { width: 100%; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.pre-tag { font-family: var(--f-serif); font-style: italic; font-size: 19px; color: rgba(247,244,238,0.55); }

/* ---------- header ---------- */
#siteHeader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 22px var(--px);
  mix-blend-mode: difference; color: var(--paper);
}
.brand { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: 0.1em; display: inline-flex; align-items: center; gap: 8px; }
.brand-dot { font-size: 11px; transform: translateY(1px); }
.main-nav { display: flex; align-items: baseline; gap: clamp(16px, 2.8vw, 38px); font-size: 13.5px; font-weight: 500; }
.nav-link {
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover { background-size: 100% 1px; }
.nav-book { display: inline-flex; }
.nav-book [data-m-inner] { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--f-serif); font-style: italic; font-size: 16.5px; border-bottom: 1px solid rgba(247,244,238,0.55); padding-bottom: 3px; }
.nav-book .arr { font-size: 13px; }

/* ---------- hero ---------- */
#hero { min-height: 100vh; display: grid; align-content: center; gap: clamp(34px, 4.5vh, 54px); padding: 150px var(--px) 130px; position: relative; overflow: hidden; }
#hero > .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
#hero > .hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,22,22,0.6) 0%, rgba(10,22,22,0.32) 45%, rgba(10,22,22,0.75) 100%); }
#heroLabel, #heroTitle, #hero .hero-row { position: relative; z-index: 2; }
#heroTitle { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(60px, 11.5vw, 184px); line-height: 0.93; letter-spacing: -0.02em; color: var(--paper); }
#heroTitle em { letter-spacing: -0.01em; }
.line-indent { padding-left: clamp(34px, 10vw, 170px); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 44px 60px; flex-wrap: wrap; }
#heroCtas { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-main { display: inline-flex; }
.cta-main [data-m-inner] { display: inline-flex; align-items: center; gap: 18px; }
.cta-main-label { font-family: var(--f-serif); font-style: italic; font-size: clamp(23px, 2.4vw, 31px); border-bottom: 1px solid rgba(247,244,238,0.5); padding-bottom: 6px; }
.cta-main-orb { width: 52px; height: 52px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-size: 19px; flex: 0 0 auto; }
.cta-alt { font-family: var(--f-serif); font-style: italic; font-size: 17.5px; color: rgba(247,244,238,0.68); display: inline-flex; align-items: baseline; gap: 8px; }
.cta-alt .arr { font-size: 13px; }
#heroSub { margin: 0; max-width: 420px; font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.68; color: rgba(247,244,238,0.78); }
#heroFoot {
  position: absolute; z-index: 2; bottom: 26px; left: var(--px); right: var(--px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(247,244,238,0.5);
}
.foot-scroll { display: inline-flex; align-items: center; gap: 12px; }
.pulse { display: inline-block; width: 1px; height: 26px; background: var(--amber); transform-origin: top; animation: pulseline 1.8s ease-in-out infinite; }

/* ---------- manifesto ---------- */
#manifesto { min-height: 100vh; display: grid; align-content: center; gap: 44px; padding: 120px var(--px); }
#manifestoText { margin: 0; max-width: 1180px; text-indent: clamp(44px, 9vw, 150px); font-family: var(--f-display); font-weight: 500; font-size: clamp(31px, 4.5vw, 68px); line-height: 1.16; letter-spacing: -0.01em; color: var(--paper); }
#manifestoText em { font-size: 1.05em; }

/* ---------- about ---------- */
#about { padding: clamp(100px, 14vh, 180px) var(--px); max-width: 1500px; margin: 0 auto; display: grid; gap: clamp(44px, 6vh, 70px); }
.about-title { margin: 0; max-width: 1150px; font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4.6vw, 70px); line-height: 1.08; letter-spacing: -0.015em; color: var(--paper); }
.about-title-2 { display: inline-block; padding-left: clamp(24px, 5vw, 90px); padding-top: 0.2em; }
.about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-col { display: grid; gap: 26px; font-size: clamp(15.5px, 1.35vw, 17.5px); line-height: 1.72; color: rgba(247,244,238,0.82); }
.about-col p { margin: 0; }
.about-pull { padding-top: 6px; font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; color: var(--paper); }
.link-amber { color: var(--amber); border-bottom: 1px solid rgba(201,133,43,0.55); padding-bottom: 2px; }

/* ---------- rows (spec + method) ---------- */
.rows { display: grid; gap: 0; border-bottom: 1px solid var(--rule, rgba(247,244,238,0.18)); }
.rows-spec { max-width: 1150px; }
.row, .step { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; }
.row { gap: 8px clamp(20px, 3vw, 48px); padding: 18px 0; }
.row-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule, rgba(247,244,238,0.18)); transform-origin: left; }
.row-key { flex: 0 0 clamp(120px, 14vw, 200px); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(247,244,238,0.5); }
.row-val { flex: 1 1 300px; font-size: 15px; color: rgba(247,244,238,0.85); }

/* ---------- light wrap ---------- */
#lightWrap { position: relative; background: var(--paper); color: var(--teal); border-radius: 32px; z-index: 2; --acc: var(--amber-deep); --rule: rgba(23,58,58,0.2); }

.sec-head { display: grid; gap: 24px; }
.h-big { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6vw, 94px); line-height: 0.98; letter-spacing: -0.02em; }
.line-ind { padding-left: clamp(24px, 5vw, 90px); }
.sec-note { margin: 0; max-width: 460px; font-size: 16px; line-height: 1.65; color: rgba(23,58,58,0.75); }
.sec-note-end { justify-self: end; text-align: left; }

/* ---------- method ---------- */
#method { padding: clamp(90px, 13vh, 160px) var(--px) clamp(70px, 9vh, 110px); max-width: 1500px; margin: 0 auto; display: grid; gap: clamp(50px, 7vh, 84px); }
.step { gap: 14px clamp(20px, 3.5vw, 54px); padding: clamp(26px, 3.6vh, 40px) 0; }
.step-no { flex: 0 0 clamp(56px, 6vw, 92px); font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 40px); color: var(--amber-deep); }
.step h3 { margin: 0; flex: 1 1 200px; font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.01em; }
.step p { margin: 0; flex: 1.4 1 300px; font-size: 15.5px; line-height: 1.65; color: rgba(23,58,58,0.78); }

/* ---------- services ---------- */
#services { padding: clamp(70px, 9vh, 110px) var(--px); max-width: 1500px; margin: 0 auto; display: grid; gap: clamp(44px, 6vh, 72px); }
#serviceGrid { position: relative; display: grid; grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid rgba(23,58,58,0.2); }
.card {
  cursor: pointer; border-top: 1px solid rgba(23,58,58,0.2);
  padding: clamp(28px, 4vh, 46px) clamp(8px, 1vw, 16px);
  display: flex; flex-direction: column; gap: 0;
  transition: background 0.35s ease, padding-left 0.35s ease;
}
.card:hover { background: rgba(23,58,58,0.04); padding-left: clamp(16px, 2vw, 30px); }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px clamp(18px, 3vw, 48px); }
.card-tag { flex: 0 0 clamp(70px, 8vw, 110px); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--amber-deep); }
.card-title { margin: 0; flex: 1 1 240px; font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 62px); line-height: 1.02; letter-spacing: -0.015em; }
.card-blurb { margin: 0; flex: 1 1 220px; max-width: 330px; font-size: 14.5px; line-height: 1.6; color: rgba(23,58,58,0.68); }
.card-icon {
  flex: 0 0 auto; margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(23,58,58,0.35); display: grid; place-items: center;
  font-size: 20px; font-weight: 300; color: rgba(23,58,58,0.7);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, color 0.35s ease;
}
.card[aria-expanded="true"] .card-icon { transform: rotate(45deg); background: var(--teal); color: var(--paper); border-color: var(--teal); }
.card-detail { display: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; padding: 32px 0 8px clamp(0px, 11vw, 158px); overflow: hidden; }
.card-detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 14.5px; line-height: 1.5; color: rgba(23,58,58,0.85); }
.card-detail li { display: flex; gap: 10px; }
.card-detail li span { color: var(--amber-deep); }
.card-side { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; align-items: flex-start; }
.card-side p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(23,58,58,0.7); }
.card-go { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--amber-deep); border-bottom: 1px solid rgba(154,100,20,0.5); padding-bottom: 3px; }

/* ---------- proof ---------- */
/* section 05 lives on the vortex film: dark treatment inside the light wrap */
#proof { position: relative; padding: clamp(70px, 9vh, 110px) 0 clamp(110px, 15vh, 180px); display: grid; gap: 48px; overflow: hidden; color: var(--paper); --acc: var(--amber); }
#proof > * { position: relative; z-index: 2; }
#proof > .proof-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(1.1); }
#proof > .proof-scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(10,22,22,0.78) 0%, rgba(10,22,22,0.5) 38%, rgba(10,22,22,0.55) 70%, rgba(10,22,22,0.82) 100%); }
#proof .h-big { color: var(--paper); text-shadow: 0 2px 24px rgba(10,22,22,0.6); }
.proof-head { padding: 0 var(--px); max-width: 1500px; margin: 0 auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.drag-hint { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; color: rgba(247,244,238,0.65); display: inline-flex; align-items: center; gap: 10px; }
#proofWindow { cursor: grab; overflow: hidden; min-width: 0; width: 100%; }
#proofWindow.dragging { cursor: grabbing; }
#proofTrack { display: flex; align-items: stretch; gap: clamp(28px, 4vw, 64px); padding: 0 var(--px); width: max-content; }
.p-card { flex: 0 0 auto; width: min(400px, 80vw); background: var(--teal-card); color: var(--paper); padding: 38px; display: flex; flex-direction: column; gap: 20px; justify-content: space-between; min-height: 270px; box-shadow: 0 18px 60px rgba(10,22,22,0.5); }
.p-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--amber); }
.p-num { font-family: var(--f-display); font-weight: 600; font-size: 62px; line-height: 1; letter-spacing: -0.02em; color: var(--amber); }
.p-num-serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 58px; letter-spacing: 0; }
.p-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(247,244,238,0.8); }
.p-quote { flex: 0 0 auto; width: min(460px, 82vw); display: flex; flex-direction: column; gap: 22px; justify-content: center; min-height: 270px; padding: 12px 0; }
.q { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; color: var(--paper); text-shadow: 0 2px 18px rgba(10,22,22,0.7); }
.q-by { margin: 0; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; color: rgba(247,244,238,0.65); }
.p-stat { flex: 0 0 auto; width: min(420px, 80vw); display: flex; flex-direction: column; gap: 18px; justify-content: center; min-height: 270px; padding: 12px 0; }
.p-stat-num { font-family: var(--f-display); font-weight: 600; font-size: 84px; line-height: 1; letter-spacing: -0.02em; color: var(--paper); text-shadow: 0 2px 20px rgba(10,22,22,0.7); }
.p-stat-num em { color: var(--amber); }
.p-stat p { margin: 0; max-width: 300px; font-size: 14.5px; line-height: 1.6; color: rgba(247,244,238,0.8); }
.proof-legal { margin: 0; padding: 0 var(--px); font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(247,244,238,0.55); }

/* ---------- marquee ---------- */
#marqueeSection { padding: clamp(80px, 12vh, 140px) 0 0; overflow: hidden; white-space: nowrap; }
#marqueeInner { display: inline-flex; will-change: transform; }
.m-strip { display: inline-block; font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 4.6vw, 58px); color: rgba(247,244,238,0.85); padding-right: 0.75em; }
.m-dot { color: var(--amber); font-size: 0.42em; vertical-align: middle; padding: 0 0.9em; font-style: normal; }

/* ---------- cta ---------- */
#cta { min-height: 100vh; display: grid; align-content: center; gap: 40px; padding: 110px var(--px) 130px; position: relative; text-align: center; justify-items: center; }
#ctaTitle { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(50px, 9vw, 150px); line-height: 0.95; letter-spacing: -0.02em; color: var(--paper); }
.cta-sub { margin: 0; max-width: 500px; font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.68; color: rgba(247,244,238,0.78); }
.cta-circle {
  display: grid; width: clamp(190px, 22vw, 250px); aspect-ratio: 1 / 1; border-radius: 50%;
  background: var(--amber); color: var(--ink); place-items: center; text-align: center;
  padding: 20px; margin-top: 10px;
}
.cta-circle:hover { color: var(--ink); }
.cta-circle [data-m-inner] { display: grid; justify-items: center; gap: 8px; font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; }
.cta-circle .arr { font-size: 24px; }
.cta-contacts { display: flex; flex-wrap: wrap; gap: 12px 36px; justify-content: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; color: rgba(247,244,238,0.55); }
#cta footer {
  position: absolute; bottom: 24px; left: var(--px); right: var(--px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(247,244,238,0.45); text-align: left;
}

/* ---------- cursor ---------- */
#cursorDot { position: fixed; left: 0; top: 0; z-index: 90; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); pointer-events: none; opacity: 0; }
#cursorRing { position: fixed; left: 0; top: 0; z-index: 90; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(247,244,238,0.65); mix-blend-mode: difference; pointer-events: none; opacity: 0; }
@media (pointer: coarse) { #cursorDot, #cursorRing { display: none; } }

/* ---------- responsive ---------- */
/* mobile-only legibility pass over the chaos field: films and desktop tuning are
   owner-approved — do not change them here. Heavier type in the sections that sit
   directly on the particle field. */
@media (max-width: 768px) {
  #manifestoText { font-weight: 600; }
  .about-col { font-weight: 500; color: rgba(247,244,238,0.92); }
  .row-val { font-weight: 500; color: rgba(247,244,238,0.95); }
  .row-key { color: rgba(247,244,238,0.65); }
  .cta-sub { font-weight: 500; color: rgba(247,244,238,0.9); }
  .cta-contacts { color: rgba(247,244,238,0.72); }
}
@media (max-width: 860px) {
  .nav-link { display: none; }
  #heroFoot { flex-direction: column; align-items: flex-start; gap: 14px; }
  #lightWrap { border-radius: 20px; }
  .card-detail { padding-left: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
