/* ===== move ai — cinematic scroll site ===== */
:root {
  --ink: #111111;
  --ink-soft: #2A2723;
  --paper: #F4F1EA;
  --paper-warm: #ECE7DC;
  --paper-cool: #FBFAF6;
  --signal: #2FCC5F;
  --signal-deep: #1C8A43;
  --ash: #9A958C;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--signal-deep); text-decoration: none; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.wrap.narrow { width: min(760px, 92vw); }
.center { text-align: center; }

/* ============ LOADER ============ */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  transition: opacity .8s ease, visibility .8s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-quad { animation: quadPulse 1.6s ease-in-out infinite; transform-origin: 92px 30px; }
@keyframes quadPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.loader-bar { width: min(280px, 60vw); height: 2px; background: rgba(17,17,17,.12); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; width: 0%; background: var(--signal); transition: width .3s ease; }
.loader-text { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }

/* ============ HUD ============ */
#hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  pointer-events: none;
  transition: color .6s ease;
}
#hud > * { pointer-events: auto; }
.hud-logo { display: flex; align-items: center; gap: 10px; }
.hud-wordmark { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: currentColor; }
.hud-ai { color: var(--signal); }
.hud-mark-ink { fill: currentColor; transition: fill .6s ease; }
#hud { color: var(--paper-cool); }           /* over dark film */
#hud.on-paper { color: var(--ink); }          /* over act 2 */
.hud-right { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
/* night clock — digital, top-left, visible only during the film */
#nightClock {
  position: fixed; left: clamp(16px, 3.5vw, 44px); top: clamp(70px, 12vh, 120px);
  z-index: 40;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--paper-cool);
  transition: opacity .7s ease;
  pointer-events: none;
  padding: 16px 26px 18px; margin-left: -26px;
  border-radius: 20px;
  background: radial-gradient(130% 130% at 22% 34%, rgba(8,7,6,.82), rgba(8,7,6,.34) 55%, rgba(8,7,6,0) 78%);
  text-shadow: 0 2px 26px rgba(0,0,0,.9), 0 1px 3px rgba(0,0,0,.85);
}
#nightClock.gone { opacity: 0; }
.nc-time { display: flex; align-items: baseline; gap: 12px; }
.nc-time b { font-size: clamp(40px, 5.5vw, 68px); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1; }
.nc-until { font-size: clamp(13px, 1.4vw, 16px); font-weight: 500; color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.nc-label { font-size: 10px; text-transform: uppercase; letter-spacing: .2em; opacity: .55; }
.nc-counters { display: flex; gap: 16px; font-size: 12px; margin-top: 8px; opacity: .9; }
.nc-counters b { color: var(--signal); font-variant-numeric: tabular-nums; font-size: 14px; }
.lang-toggle {
  font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  background: transparent; color: currentColor;
  border: 1px solid currentColor; border-radius: 999px;
  padding: 6px 14px; cursor: pointer; opacity: .85;
  transition: all .3s ease;
}
.lang-toggle:hover { opacity: 1; background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* ============ FILM ============ */
#film { position: relative; height: 720vh; background: #0d0c0a; }
#filmSticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#filmCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-grade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(6,5,4,.45) 100%);
}

/* scenes */
.scene {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 0 clamp(20px, 6vw, 84px) clamp(72px, 12vh, 128px);
  opacity: 0; visibility: hidden;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 9, 8, .62) 0%, rgba(10, 9, 8, .30) 30%, transparent 58%);
}
.scene-inner { max-width: 620px; }
.scene.hero-center, .scene:first-of-type { align-items: center; }
.hero-scene { max-width: 760px; }
.scene-kicker {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em;
  color: var(--paper-warm); opacity: .75; margin-bottom: 16px;
}
.scene-kicker.signal { color: var(--signal); opacity: 1; }
.scene-title {
  font-family: var(--serif); font-weight: 400; font-style: normal;
  font-size: clamp(34px, 5.4vw, 64px); line-height: 1.08; letter-spacing: -0.01em;
  color: var(--paper-cool);
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.scene-title.sm { font-size: clamp(28px, 4.2vw, 50px); }
.scene-sub {
  margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55;
  color: var(--paper-warm); opacity: .85; max-width: 480px;
}
.scene-tally { margin-top: 20px; font-size: clamp(15px, 1.8vw, 19px); color: var(--paper-warm); }
.scene-tally b { color: var(--signal); font-size: 1.35em; font-variant-numeric: tabular-nums; }
.scroll-hint {
  margin-top: 36px; display: flex; align-items: center; gap: 12px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--paper-warm); opacity: .7;
}
.scroll-arrow { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* ============ ACT 2 ============ */
.act2, .sectors, .services, .how, .faq, .cta { position: relative; z-index: 2; }
.reveal-section { padding: clamp(80px, 12vh, 150px) 0; }
.reveal-section .wrap > *, .reveal-section .wrap.narrow > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal-section.in .wrap > *, .reveal-section.in .wrap.narrow > * { opacity: 1; transform: none; }
.reveal-section.in .wrap > *:nth-child(2) { transition-delay: .1s; }
.reveal-section.in .wrap > *:nth-child(3) { transition-delay: .2s; }
.reveal-section.in .wrap > *:nth-child(4) { transition-delay: .3s; }

.act2 { background: var(--paper); }
.about-mark { margin: 0 auto 32px; }
.kicker {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em;
  color: var(--signal-deep); margin-bottom: 14px;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 18px;
}
.lead { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; color: var(--ink-soft); max-width: 640px; }
.center .lead { margin: 0 auto; }

/* sectors — scroll-rotated circular gallery */
.sectors { background: var(--paper-warm); padding: 0; height: 440vh; }
.sector-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.sector-head { text-align: center; padding-top: clamp(72px, 10vh, 110px); position: relative; z-index: 2; }
.sector-head .lead { margin: 0 auto; }
.sector-ring-viewport {
  flex: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  perspective: 1600px;
  perspective-origin: 50% 42%;
}
.sector-ring {
  position: relative;
  width: 320px; height: 430px;
  transform-style: preserve-3d;
  will-change: transform;
}
.sector-card {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  background: var(--paper-cool);
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 18px;
  padding: 34px 28px;
  box-shadow: 0 18px 44px rgba(17,17,17,.08);
  display: flex; flex-direction: column;
}
.sector-emoji { font-size: 30px; display: block; margin-bottom: 14px; }
.sector-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.sector-card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.sector-points { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.sector-points li {
  position: relative; padding-left: 24px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-soft);
}
.sector-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--signal-deep); font-weight: 700;
}
.sector-gain {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(17,17,17,.08);
  font-size: 14px !important; font-weight: 600; color: var(--signal-deep) !important;
  line-height: 1.45 !important;
}
.sector-card-cta .sector-gain { color: var(--signal) !important; border-color: rgba(244,241,234,.15); }
.sector-card-cta { background: var(--ink); border-color: var(--ink); justify-content: center; gap: 8px; }
.sector-card-cta h3, .sector-card-cta p { color: var(--paper-cool); }
.sector-card-cta .btn { margin-top: 16px; align-self: flex-start; pointer-events: auto; }

/* services */
.services { background: var(--paper); }
.service-grid {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  background: var(--paper-cool);
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 18px;
  padding: 30px 26px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(17,17,17,.08); }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.service-card .pain {
  font-family: var(--serif); font-style: italic; font-size: 15.5px;
  color: var(--ash); margin-bottom: 12px; line-height: 1.5;
}
.service-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.service-card.highlight { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.service-card.highlight b { color: var(--signal-deep); }

/* how */
.how { background: var(--paper-warm); }
.how-steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-step {
  background: var(--paper-cool); border-radius: 18px; padding: 34px 28px;
  border: 1px solid rgba(17,17,17,.07);
}
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--signal); color: var(--ink); font-weight: 700; font-size: 17px;
  margin-bottom: 18px;
}
.how-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.how-step p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* globe */
.globe { background: var(--paper); overflow: hidden; }
.globe-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px); align-items: center;
}
.globe-list { list-style: none; margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; }
.globe-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--ink-soft); }
.globe-dot {
  width: 12px; height: 12px; border-radius: 3px; background: var(--signal);
  box-shadow: 0 0 0 4px rgba(47,204,95,.15);
  flex: none;
}
/* the globe is the section's hero visual — never let the reveal fade hide it */
.globe .globe-canvas-wrap { opacity: 1 !important; transform: none !important; }
.globe-canvas-wrap { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; }
.globe-stage {
  position: relative;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
}
/* soft "platform" shadow that grounds the sphere against the cream page */
.globe-stage::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 84%; height: 84%; transform: translate(-50%, -50%);
  border-radius: 50%;
  /* box-shadow: 0 34px 90px rgba(17, 17, 17, .16), 0 8px 26px rgba(17, 17, 17, .10); */
  z-index: 0;
}
#globeCanvas {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  touch-action: none;
  /* filter: drop-shadow(0 2px 6px rgba(17, 17, 17, .12)); */
}
.globe-dots { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.globe-city {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  background: transparent; border: none; padding: 0;
  cursor: pointer; pointer-events: auto;
}
.globe-city::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 11px; margin: -5.5px;
  border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 3px rgba(47, 204, 95, .22);
  transition: transform .2s ease;
}
.globe-city:hover::after, .globe-city.open::after { transform: scale(1.35); }
.globe-city-base::after { background: var(--ink); box-shadow: 0 0 0 3px rgba(17,17,17,.14); }
.globe-tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--paper-cool);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 3px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}
.globe-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 24px;
  background: var(--signal);
  transform: translateX(-50%);
}
.globe-city:hover .globe-tip, .globe-city.open .globe-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.globe-hint { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }

/* faq */
.faq { background: var(--paper); }
.faq-item {
  border-bottom: 1px solid rgba(17,17,17,.1);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; padding: 20px 36px 20px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; color: var(--signal-deep); transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); max-width: 640px; }

/* cta */
.cta { background: var(--ink); }
.cta .h2 { color: var(--paper-cool); }
.cta .lead { color: var(--paper-warm); opacity: .8; }
.btn {
  display: inline-block; font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 16px 34px; border-radius: 999px; letter-spacing: .01em;
  transition: all .3s ease; cursor: pointer;
}
.btn-primary { background: var(--signal); color: var(--ink); margin-top: 34px; }
.btn-primary:hover { background: var(--paper-cool); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47,204,95,.25); }
.btn-ghost { border: 1px solid var(--paper-cool); color: var(--paper-cool); padding: 10px 22px; font-size: 13px; }
.btn-ghost:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.cta-note { margin-top: 22px; font-size: 13px; color: var(--ash); }

/* footer */
footer { background: var(--ink); border-top: 1px solid rgba(244,241,234,.1); padding: 40px 0 48px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.footer-wordmark { font-weight: 600; font-size: 20px; color: var(--paper-cool); letter-spacing: -0.02em; }
footer p { font-size: 13px; color: var(--ash); line-height: 1.6; }
.footer-copy { opacity: .6; }

/* ============ MOBILE ============ */
@media (max-width: 720px) {
  #hud { padding: 14px 16px; }
  #hud.on-paper .lang-toggle { display: none; }
  #nightClock { top: 62px; left: 16px; }
  .nc-time b { font-size: 34px; }
  .nc-until { font-size: 12px; }
  .nc-label, .nc-counters { display: none; }
  .scene { padding: 0 22px 96px; align-items: flex-end; }
  .scene-title { font-size: clamp(30px, 9vw, 40px); }
  .scene-title.sm { font-size: clamp(24px, 7.6vw, 32px); }
  .service-grid, .how-steps { grid-template-columns: 1fr; }
  #film { height: 640vh; }
  .sectors { height: 400vh; }
  .sector-ring { width: 262px; height: 420px; }
  .sector-ring-viewport { perspective: 1100px; }
  .sector-card { padding: 24px 20px; }
  .sector-points li { font-size: 12.5px; }
  .sector-gain { font-size: 13px !important; }
  .globe-grid { grid-template-columns: 1fr; }
  .globe-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 721px) and (max-width: 1024px) {
  .service-grid, .how-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow, .loader-quad { animation: none; }
  .reveal-section .wrap > * { transition: none; opacity: 1; transform: none; }
}
