/* Self-hosted fonts (latin subsets from Google Fonts, SIL Open Font License) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/inter-v20-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-v20-400-latin.woff2") format("woff2");
}

:root {
  --night: #070b18;
  --night-2: #0c1224;
  --ivory: #f3efe7;
  --muted: rgba(243, 239, 231, .66);
  --faint: rgba(243, 239, 231, .42);
  --amber: #f6b267;
  --amber-soft: #ffd59a;
  --line: rgba(243, 239, 231, .12);
  --gutter: clamp(20px, 6vw, 96px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--ivory);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--amber); color: var(--night); }

/* One content column everywhere: nav, hero copy and sections share the same left edge. */
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--faint);
}
.display {
  font-size: clamp(40px, 6.4vw, 104px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.body { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); max-width: 34em; }

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  font-size: 15px;
  font-weight: 400;
  border-bottom: 1px solid rgba(243, 239, 231, .35);
  transition: border-color .3s, gap .3s, color .3s;
}
@media (hover: hover) {
  .cta-link:hover { gap: 18px; color: var(--amber-soft); border-color: var(--amber); }
}

/* ============ Preloader ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--night);
}
.preloader svg { width: 64px; fill: #fff; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .55)); }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-block: 28px;
  transition: background .5s, padding .5s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav.scrolled { padding-block: 18px; background: rgba(7, 11, 24, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.brand svg { width: 26px; fill: #fff; }
.nav-links { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 400; }
.nav-links a { opacity: .75; transition: opacity .3s; }
@media (hover: hover) { .nav-links a:hover { opacity: 1; } }

/* ============ 01 HERO ============ */
.hero {
  position: relative;
  min-height: clamp(640px, 100vh, 1100px);
  min-height: clamp(640px, 100svh, 1100px);
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) clamp(72px, 12vh, 140px);
  overflow: hidden;
  /* only visible if WebGL is unavailable */
  background: linear-gradient(180deg, #0b1430 0%, #1a2550 40%, #5a4a66 52%, #d48b5c 57%, #1a1e36 62%, var(--night) 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--night) 0%, rgba(7, 11, 24, .55) 30%, rgba(7, 11, 24, 0) 60%);
  pointer-events: none;
}
.hero-body { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(48px, 8vw, 132px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .inner { display: inline-block; }
.lede { margin-top: 32px; max-width: 30em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); }
.hero .cta-link { margin-top: 40px; }
.scroll {
  position: absolute;
  z-index: 1;
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  bottom: clamp(72px, 12vh, 140px);
  width: 1px;
  height: 64px;
  background: linear-gradient(var(--ivory), transparent);
  animation: drop 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ============ 02 MISSION ============ */
.mission { padding-block: clamp(120px, 18vw, 240px) clamp(100px, 14vw, 200px); }
.mission .display { margin-top: 28px; max-width: 11em; }
.branches { margin: clamp(56px, 8vw, 110px) 0; color: var(--ivory); }
.branches svg { display: block; width: 100%; height: auto; overflow: visible; }
.branches path { fill: none; stroke-linecap: round; }
.trunk { stroke: var(--ivory); stroke-width: 1.5; }
.branch { stroke: url(#fadeR); stroke-width: 1; }
.else { stroke: url(#goldR); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(246, 178, 103, .7)); }
.node { fill: var(--night); stroke: var(--ivory); stroke-width: 1.5; }
.branches text { fill: var(--amber-soft); font: 400 14px "Inter", sans-serif; letter-spacing: .12em; }
.traveller { fill: #fff6e6; filter: drop-shadow(0 0 6px #ffd59a) drop-shadow(0 0 14px #f6b267); }
.mission-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.mission-body p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--muted); }
.mission-body p:first-child { color: var(--ivory); }

/* ============ 03 PRODUCT ============ */
.product { padding-block: clamp(80px, 12vw, 180px); border-top: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.product h2 { margin-top: 28px; font-size: clamp(40px, 5vw, 76px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.product-sub { margin-top: 14px; font-size: clamp(18px, 1.6vw, 22px); color: var(--amber-soft); }
.product .body { margin-top: 28px; }
.status { display: flex; align-items: center; gap: 10px; margin: 32px 0 40px; font-size: 13px; letter-spacing: .08em; color: var(--faint); }
.status span { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.product-visual { position: relative; aspect-ratio: 1; max-width: 100%; }
#globe-canvas { width: 100%; height: 100%; display: block; }
.legend { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--faint); }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.human { background: #fff; box-shadow: 0 0 8px #fff; }
.dot.agent { margin-left: 12px; background: var(--amber); box-shadow: 0 0 8px var(--amber); }

/* ============ 04 LOOKING FORWARD ============ */
.forward {
  position: relative;
  padding-block: clamp(160px, 22vw, 300px) clamp(100px, 14vw, 180px);
  text-align: center;
  overflow: hidden;
}
.forward .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.forward .display { margin-top: 28px; }
.forward .body { margin: 32px auto 44px; }
.horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background: radial-gradient(50% 40% at 50% 0%, rgba(246, 178, 103, .22), transparent 70%);
}
.horizon i {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-soft), transparent);
  box-shadow: 0 0 24px rgba(246, 178, 103, .8);
}

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding-block: 64px 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.footer-slogan { margin-top: 8px; color: var(--faint); }
.footer ul { display: flex; flex-wrap: wrap; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer ul a { color: var(--muted); transition: color .3s; }
@media (hover: hover) { .footer ul a:hover { color: var(--ivory); } }
.copyright { margin-top: 64px; font-size: 13px; color: var(--faint); }

/* ============ Phones & tablets ============
   All small-screen rules live in mobile.css, which index.html loads with
   media="(max-width: 860px)": desktop browsers never apply it. Never put
   phone fixes in this file. */
@media (prefers-reduced-motion: reduce) {
  .scroll, .status span { animation: none; }
}

/* ============ Cursor ============ */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0; z-index: 200; pointer-events: none; transition: opacity .3s; }
.cursor.is-hidden { opacity: 0; }
.cursor-ring, .cursor-dot, .cursor-label { position: fixed; top: 0; left: 0; will-change: transform; }
.cursor-ring-shape {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(243, 239, 231, .45);
  border-radius: 50%;
  transition: width .45s cubic-bezier(.2, .8, .2, 1), height .45s cubic-bezier(.2, .8, .2, 1),
    border-color .3s, background-color .3s, scale .2s;
}
.cursor-ring-shape i {
  position: absolute;
  background: var(--amber-soft);
  opacity: 0;
  transition: opacity .3s, translate .45s cubic-bezier(.2, .8, .2, 1);
}
.cursor-ring-shape i:nth-child(1) { left: 50%; top: -9px; width: 1px; height: 6px; translate: 0 -6px; }
.cursor-ring-shape i:nth-child(2) { left: 50%; bottom: -9px; width: 1px; height: 6px; translate: 0 6px; }
.cursor-ring-shape i:nth-child(3) { top: 50%; left: -9px; width: 6px; height: 1px; translate: -6px 0; }
.cursor-ring-shape i:nth-child(4) { top: 50%; right: -9px; width: 6px; height: 1px; translate: 6px 0; }
/* The dot is drawn in ::before: the element itself is positioned with transform, and the CSS
   scale property would also scale that position, pulling the dot away from the pointer. */
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
.cursor-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 10px rgba(255, 213, 154, .6);
  transition: scale .3s, background-color .3s;
}
.cursor-label {
  padding: 30px 0 0 30px;
  font: 400 11px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  white-space: pre;
  color: var(--amber-soft);
}
.cursor.is-down .cursor-ring-shape { scale: .8; }
.cursor.is-link .cursor-ring-shape { width: 64px; height: 64px; border-color: rgba(246, 178, 103, .7); background-color: rgba(246, 178, 103, .08); }
.cursor.is-link .cursor-dot::before { scale: 0; }
.cursor.is-reticle .cursor-ring-shape { width: 46px; height: 46px; border-color: rgba(255, 213, 154, .35); }
.cursor.is-reticle .cursor-ring-shape i { opacity: .9; translate: 0 0; }
.cursor.is-reticle .cursor-dot::before { scale: .6; background: var(--amber); }

.cursor-grid { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
