/* ===========================================================================
   OVIO HOLDINGS — cinematic scroll site (igloo.inc-caliber homage)
   Palette: arctic blue-white + warm amber glow + deep slate
   =========================================================================== */

:root {
  --ink: #0a0d14;          /* near-black navy base */
  --ink-2: #11151f;
  --slate: #2b313d;
  --frost: #e8eef3;        /* icy white text */
  --frost-dim: #aab4c2;    /* muted icy */
  --frost-faint: #6b7585;  /* faint labels */
  --amber: #e6a24c;        /* warm glow accent */
  --amber-soft: #d99846;
  --line: rgba(232, 238, 243, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

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

html, body {
  background: var(--ink);
  color: var(--frost);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* clip (not hidden) — hidden makes the root a scroll container and breaks smooth-scroll */
}

body { line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--amber); color: var(--ink); }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--frost-faint); font-weight: 400;
}
.amber { color: var(--amber); }

/* =========================================================================
   PRELOADER
   ========================================================================= */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.8rem;
  transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: 0.55em;
  text-transform: uppercase; font-weight: 300; color: var(--frost); padding-left: 0.55em;
}
.loader-bar { width: min(240px, 50vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader-bar span { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, transparent, var(--amber)); }
.loader-pct { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--frost-faint); font-variant-numeric: tabular-nums; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem);
  mix-blend-mode: difference; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-mark { font-size: 0.95rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 400; color: #fff; }
.nav-mark b { font-weight: 500; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; font-weight: 300; opacity: 0.82; transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 1; }

/* =========================================================================
   VIDEO-SCRUB SCENES (scroll-driven, igloo technique)
   .vscene = tall scroll spacer · .vstage = sticky-pinned viewport
   ========================================================================= */
.vscene { position: relative; height: 220vh; }
.vscene.short { height: 180vh; }
.vstage {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden; display: flex; align-items: center;
}
.vfeed {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; background: var(--ink);
}
.vtone {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,11,18,0.72) 0%, rgba(8,11,18,0.36) 34%, transparent 62%),
    linear-gradient(180deg, rgba(8,11,18,0.38) 0%, transparent 26%, transparent 64%, rgba(8,11,18,0.66) 100%);
}
/* hero text is centered, so use a center-weighted scrim instead of a left band */
#hero .vtone {
  background:
    radial-gradient(64% 50% at 50% 48%, rgba(8,11,18,0.5) 0%, rgba(8,11,18,0.18) 46%, transparent 72%),
    linear-gradient(180deg, rgba(8,11,18,0.26) 0%, transparent 26%, transparent 62%, rgba(8,11,18,0.55) 100%);
}
/* dark halo so light text separates from light footage */
.display, .sub, .kicker, .hero-sub, .marker, .contact-link {
  text-shadow: 0 1px 22px rgba(6,9,15,0.6), 0 1px 4px rgba(6,9,15,0.5);
}
.vcontent { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 4rem); }

/* live WebGL crystal canvas */
#crystal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
#hero .vstage { justify-content: center; }
.hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; will-change: opacity, transform; }

/* ambient looping video background (ventures / contact) */
.ambient { position: relative; overflow: hidden; }
.vbg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.ambient > .vtone { position: absolute; }
.ambient .scene-inner { position: relative; z-index: 2; }

/* =========================================================================
   SCENE SCAFFOLD (legacy still-image scenes — kept for fallback)
   ========================================================================= */
.scene { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.scene-bg {
  position: absolute; inset: -6% 0; z-index: 0;
  background-size: cover; background-position: center; will-change: transform;
}
.scene-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,11,18,0.74) 0%, rgba(8,11,18,0.38) 34%, transparent 62%),
    linear-gradient(180deg, rgba(8,11,18,0.42) 0%, transparent 30%, transparent 60%, rgba(8,11,18,0.72) 100%);
}
.scene-inner { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 4rem); }

.marker { position: absolute; z-index: 3; font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--frost-dim); font-weight: 400; }
.marker.tl { top: 6.5rem; left: clamp(1.4rem, 5vw, 4rem); }
.marker.tr { top: 6.5rem; right: clamp(1.4rem, 5vw, 4rem); text-align: right; }
.marker.bl { bottom: 2.4rem; left: clamp(1.4rem, 5vw, 4rem); }
.marker.br { bottom: 2.4rem; right: clamp(1.4rem, 5vw, 4rem); text-align: right; color: var(--frost-faint); }

.kicker { font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--amber); font-weight: 500; margin-bottom: 1.6rem; }
.display { font-weight: 200; font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: 1.04; letter-spacing: -0.01em; max-width: 16ch; }
.display .light { color: var(--frost-dim); }
.sub { margin-top: 1.8rem; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--frost-dim); font-weight: 300; max-width: 46ch; line-height: 1.6; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero .scene-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-mark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3rem, 10vw, 9rem);
  letter-spacing: 0.04em; line-height: 0.98; padding-left: 0.04em;
  /* lustrous metallic gold with a bright specular band that sweeps across */
  background: linear-gradient(100deg,
    #8a5f20 0%, #c8912f 14%, #e9c45f 26%,
    #f6e7b0 38%, #fffaf0 46%, #f6e7b0 54%, #e3b85a 66%,
    #c8912f 80%, #a9742a 92%, #8a5f20 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(255,240,200,0.25)) drop-shadow(0 2px 3px rgba(6,9,15,0.5)) drop-shadow(0 8px 30px rgba(6,9,15,0.5));
  animation: goldsweep 6.5s ease-in-out infinite;
}
.hero-mark .glow { color: inherit; }
@keyframes goldsweep {
  0%   { background-position: 240% 0; }
  100% { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; background-position: 50% 0; } }
.hero-sub { margin-top: 2rem; max-width: 42ch; font-size: clamp(0.95rem, 1.4vw, 1.15rem); color: var(--frost-dim); letter-spacing: 0.02em; }
.scroll-cue { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--frost-faint); }
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--frost-faint), transparent); }

/* =========================================================================
   VENTURES
   ========================================================================= */
.ventures { padding: clamp(6rem, 14vh, 11rem) 0; }
.ventures .scene-inner { max-width: 1180px; }
.ventures-head { margin-bottom: clamp(2.6rem, 6vh, 4.5rem); }
.ventures-head .display { font-size: clamp(2rem, 5vw, 4rem); max-width: 20ch; }
.v-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.v-card { background: rgba(17, 21, 31, 0.72); backdrop-filter: blur(6px); padding: clamp(1.8rem, 3vw, 2.8rem); min-height: 220px; display: flex; flex-direction: column; position: relative; transition: background 0.4s var(--ease); }
.v-card:hover { background: rgba(30, 36, 50, 0.82); }
.v-card .idx { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--frost-faint); font-variant-numeric: tabular-nums; margin-bottom: 1.4rem; }
.v-card h3 { font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: 0.01em; margin-bottom: 0.7rem; }
.v-card p { color: var(--frost-dim); font-size: 0.95rem; font-weight: 300; line-height: 1.6; max-width: 42ch; }
.v-card .status { margin-top: auto; padding-top: 1.6rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--frost-faint); }
.v-card .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.v-card .dot.dev { background: var(--frost-dim); box-shadow: none; }
.v-card .arrow { position: absolute; top: clamp(1.8rem, 3vw, 2.8rem); right: clamp(1.8rem, 3vw, 2.8rem); font-size: 1rem; color: var(--frost-faint); transition: transform 0.4s var(--ease), color 0.4s; }
.v-card:hover .arrow { transform: translate(3px, -3px); color: var(--amber); }

/* =========================================================================
   CONTACT / FOOTER
   ========================================================================= */
.contact { min-height: 92vh; }
.contact .scene-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .display { max-width: 22ch; }
.contact-link { margin-top: 2.6rem; font-size: clamp(1.1rem, 2.2vw, 1.7rem); font-weight: 300; letter-spacing: 0.02em; border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; transition: border-color 0.4s, color 0.4s; }
.contact-link:hover { color: var(--amber); border-color: var(--amber); }
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 2.4rem clamp(1.4rem, 5vw, 4rem); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.74rem; letter-spacing: 0.06em; color: var(--frost-faint); background: var(--ink); }
.foot a { color: var(--frost-dim); }
.foot a:hover { color: var(--amber); }

/* reveal defaults */
[data-r] { opacity: 0; transform: translateY(22px); }
.no-js [data-r] { opacity: 1; transform: none; }

/* =========================================================================
   VENTURE SUB-PAGES (aims.html, ti-morrow.html, …)
   ========================================================================= */
body > .container {
  position: relative; z-index: 1;
  min-height: 100vh;
  max-width: 820px; margin: 0 auto;
  padding: clamp(7rem, 16vh, 11rem) clamp(1.4rem, 6vw, 3rem) 8rem;
  display: flex; flex-direction: column;
}
body > .container::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: radial-gradient(110% 80% at 50% 0%, rgba(40,48,66,0.55), var(--ink) 60%),
              url('assets/scene-cosmos.jpg') center/cover no-repeat;
  opacity: 0.5;
}
body > .container::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,13,20,0.6), rgba(10,13,20,0.92));
}
.back {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--frost-dim); margin-bottom: auto;
  transition: color 0.3s;
}
.back:hover { color: var(--amber); }
.venture { margin-top: clamp(3rem, 10vh, 7rem); }
.venture .kicker { margin-bottom: 1.4rem; }
.venture h1 {
  font-weight: 200; font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 1.6rem;
}
.venture h1 .gold { color: var(--amber); }
.venture .status {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 2rem;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--frost-faint);
}
.venture .status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.venture .body {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300;
  color: var(--frost-dim); line-height: 1.7; max-width: 60ch;
}
.venture .body strong { color: var(--frost); font-weight: 400; }
body > footer:not(.foot) {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2.2rem clamp(1.4rem, 6vw, 3rem);
  max-width: 820px; margin: 0 auto;
  font-size: 0.74rem; letter-spacing: 0.05em; color: var(--frost-faint);
}
body > footer:not(.foot) a { color: var(--frost-dim); }
body > footer:not(.foot) a:hover { color: var(--amber); }

/* responsive */
@media (max-width: 720px) {
  .nav-links { gap: 1.2rem; }
  .nav-links a:nth-child(1) { display: none; }
  .v-grid { grid-template-columns: 1fr; }
  .marker.tr, .marker.tl { display: none; }
  .display { font-size: clamp(2rem, 9vw, 3rem); }
}
