/* =========================================================
   Silicon Badia — Data Room
   Sky-blue is the dominant brand. Sand is accent.
   Rich layered backgrounds. No empty rooms.
   ========================================================= */

:root {
  /* Brand colors */
  --sand:           #A68D6B;
  --sand-light:     #DFDBD6;
  --sand-glow:      rgba(166, 141, 107, 0.16);
  --sky:            #6595D7;
  --sky-deep:       #4A7BC2;
  --sky-light:      #DDE4EB;
  --sky-glow:       rgba(101, 149, 215, 0.18);
  --sky-lighter-w:  #F4F2F1;
  --sky-lighter-c:  #F1F2F3;
  --midnight-slate: #3E495D;
  --slate-deep:     #2A3445;
  --ink:            #292929;
  --ink-soft:       #4A5260;
  --white:          #FFFFFF;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --max-w: 1320px;
  --gutter: clamp(1.5rem, 4vw, 5rem);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-expo:  cubic-bezier(0.19, 1.0, 0.22, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0; padding: 0; font-family: var(--font-sans);
  color: var(--ink); background: var(--white); overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }

/* Lenis */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ---------- Custom cursor (desktop only) ----------
   No transform transitions — JS sets transform every rAF tick.
   Centering done via negative margin (no translate(-50%,-50%) math
   on top of the position transform). will-change promotes to GPU. */
.cursor { pointer-events: none; }
.cursor-ring,
.cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0);
}
.cursor-ring {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px solid var(--sky);
  border-radius: 50%;
  transition:
    width 0.24s var(--ease-out-quart),
    height 0.24s var(--ease-out-quart),
    margin 0.24s var(--ease-out-quart),
    background-color 0.22s var(--ease-out-quart),
    border-color 0.22s var(--ease-out-quart),
    opacity 0.16s ease-out;
}
.cursor-dot {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--sky);
  border-radius: 50%;
  transition:
    width 0.18s var(--ease-out-quart),
    height 0.18s var(--ease-out-quart),
    margin 0.18s var(--ease-out-quart),
    background-color 0.22s var(--ease-out-quart),
    opacity 0.16s ease-out;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: var(--sky-glow);
}
.cursor-dot.is-hover {
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
}

@media (hover: none), (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cursor-ring, .cursor-dot { transition: none; }
}
@media (hover: hover) and (pointer: fine) {
  body, a, button, .deck-tile { cursor: none; }
  input, textarea, select { cursor: text; }
}

/* ---------- Container ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Top nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(101, 149, 215, 0.10);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-mark { width: 26px; height: 26px; color: var(--sky); display: block; }
.nav-wordmark { font-weight: 600; letter-spacing: -0.01em; color: var(--midnight-slate); font-size: 0.95rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.875rem; font-weight: 500; }
.nav-links a { color: var(--ink-soft); transition: color 0.2s var(--ease-out-quart); }
.nav-links a:hover { color: var(--sky); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* =========================================================
   HERO — full-bleed, layered, alive.
   Layers (bottom to top):
   1. Mesh gradient base (warm + sky glow + sand glow)
   2. Dot lattice (oversized brand mark watermark, two echoes)
   3. Subtle grid lines
   4. Floating accent dots
   5. Foreground content (mark + title + sub)
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem var(--gutter) 6rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 80% 10%, var(--sky-glow), transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 90%, var(--sand-glow), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255,255,255,0.6), transparent 70%),
    linear-gradient(180deg, #F8FAFC 0%, var(--sky-lighter-w) 100%);
}

/* Layer: oversized mark watermark, sky-tinted */
.hero-bg-mark {
  position: absolute;
  top: 50%; left: 50%;
  width: min(90vmin, 1100px); height: min(90vmin, 1100px);
  transform: translate(-50%, -50%);
  color: var(--sky);
  opacity: 0.07;
  pointer-events: none;
  z-index: -2;
  animation: bg-mark-rotate 120s linear infinite;
}
.hero-bg-mark.echo {
  width: min(60vmin, 720px); height: min(60vmin, 720px);
  color: var(--sand);
  opacity: 0.08;
  top: 18%; left: 12%;
  animation: bg-mark-rotate-rev 160s linear infinite;
}
@keyframes bg-mark-rotate     { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes bg-mark-rotate-rev { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Layer: subtle grid */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(62,73,93,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(62,73,93,0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 80%);
}

/* Layer: floating accent dots */
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  filter: blur(50px);
}
.hero-orb.sky-1  { width: 380px; height: 380px; background: var(--sky-glow);  top: 15%; right: 8%; }
.hero-orb.sand-1 { width: 280px; height: 280px; background: var(--sand-glow); bottom: 20%; left: 6%; }
.hero-orb.sky-2  { width: 220px; height: 220px; background: var(--sky-glow);  bottom: 8%; right: 22%; opacity: 0.6; }

/* Foreground mark */
.hero-mark {
  width: clamp(110px, 11vw, 170px);
  margin-bottom: 2.25rem;
  position: relative;
  filter: drop-shadow(0 10px 30px rgba(101, 149, 215, 0.25));
}
.hero-mark img.logo-large { width: 100%; height: auto; display: block; }
.logo-large { color: var(--sky); width: 100%; height: auto; }
.footer-mark img { width: 100%; height: auto; display: block; }

/* Eyebrow above title */
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sky-deep);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--sky);
  opacity: 0.7;
}

/* Floating headline — gentle vertical hover */
.hero-headline {
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: var(--midnight-slate);
  margin-bottom: 2rem;
  display: flex; flex-direction: column;
  animation: hero-float 6s ease-in-out infinite;
}
.hero-headline .hl-1 { color: var(--midnight-slate); }
.hero-headline .hl-2 { color: var(--sky); }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-headline { animation: none; } }

.hero-sub {
  max-width: 580px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6; color: var(--ink-soft);
  margin: 0 auto;
}

/* Hero meta strip — 3 small pillars under sub */
.hero-meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
}
.hero-meta-label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.7;
}
.hero-meta-value {
  font-size: 1.1rem; font-weight: 600; color: var(--midnight-slate);
  letter-spacing: -0.01em;
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  text-align: center;
}
.hero-meta-sub {
  font-size: 0.78rem; font-weight: 500; color: var(--ink-soft);
  letter-spacing: 0;
}

/* =========================================================
   WELCOME — soft, intentional negative space, with texture.
   ========================================================= */
.welcome {
  padding: clamp(7rem, 14vh, 12rem) 0;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 70% at 100% 0%, var(--sky-glow), transparent 60%),
    radial-gradient(ellipse 40% 60% at 0% 100%, var(--sand-glow), transparent 60%),
    var(--sky-lighter-w);
}
.welcome::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(62,73,93,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
}
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sky-deep); font-weight: 600;
  margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: var(--sky); display: inline-block;
}
.display {
  font-weight: 800;
  font-size: clamp(2.2rem, 5.8vw, 4.8rem);
  line-height: 1.0;
  letter-spacing: -0.038em;
  color: var(--midnight-slate);
  margin-bottom: 2.5rem;
  max-width: 18ch;
}
.display .accent { color: var(--sky); }
.welcome-body {
  max-width: 60ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-soft);
}
.welcome-body p + p { margin-top: 1.25em; }

/* =========================================================
   DATA ROOM — backdrop with mark watermark + grid lines.
   ========================================================= */
.data-room {
  padding: clamp(7rem, 14vh, 12rem) 0;
  position: relative;
  isolation: isolate;
  background: var(--white);
  overflow: hidden;
}
.data-room::before {
  /* faint horizon line + dots */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, var(--sky-glow), transparent 70%),
    radial-gradient(ellipse 50% 30% at 50% 100%, var(--sand-glow), transparent 70%);
}
.data-room-mark {
  position: absolute;
  top: 8%; right: -8%;
  width: 520px; height: 520px;
  color: var(--sky);
  opacity: 0.045;
  pointer-events: none;
  z-index: -1;
  animation: bg-mark-rotate 240s linear infinite;
}
.data-room-headline-wrap {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 1rem;
}
.data-room .display { max-width: 22ch; }
.data-room-sub {
  max-width: 56ch;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.6; color: var(--ink-soft);
  margin-bottom: 1rem;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
@media (max-width: 1080px) { .deck-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .deck-grid { grid-template-columns: 1fr; gap: 1.25rem; } }

.deck-tile {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sky-light);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out-quart),
    box-shadow 0.5s var(--ease-out-quart),
    border-color 0.3s var(--ease-out-quart);
  position: relative;
}
.deck-tile::after {
  /* subtle inner glow on hover */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: 18px;
  box-shadow: inset 0 0 0 0 rgba(101, 149, 215, 0);
  transition: box-shadow 0.4s var(--ease-out-quart);
}
.deck-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px -20px rgba(62, 73, 93, 0.22);
  border-color: var(--sky);
}
.deck-tile:hover::after { box-shadow: inset 0 0 0 1px var(--sky-glow); }
.deck-tile.coming-soon { opacity: 0.78; }
.deck-tile.coming-soon:hover { transform: translateY(-4px); border-color: var(--sand); }

.tile-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky-lighter-c);
  position: relative;
}
.tile-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-out-quart);
}
.deck-tile:hover .tile-cover img { transform: scale(1.05); }

.tile-meta {
  padding: 1.75rem 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.tile-tag {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sky-deep); font-weight: 600;
}
.deck-tile.coming-soon .tile-tag { color: var(--sand); }
.tile-title {
  font-size: 1.5rem; font-weight: 700; line-height: 1.15;
  color: var(--midnight-slate);
  letter-spacing: -0.02em;
}
.tile-desc {
  font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft);
  flex-grow: 1;
}
.tile-cta {
  font-size: 0.85rem; font-weight: 600; color: var(--sky);
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out-quart);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.deck-tile:hover .tile-cta { transform: translateX(4px); }
.tile-cta-soon { color: var(--ink-soft); font-style: italic; }

/* =========================================================
   FOOTER — Midnight, with a soft glow that breathes.
   ========================================================= */
.footer {
  padding: clamp(7rem, 16vh, 12rem) 0 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(101, 149, 215, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 90%, rgba(166, 141, 107, 0.14), transparent 70%),
    var(--midnight-slate);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 0%, transparent 80%);
}
.footer .container { position: relative; }
.footer-mark { width: 64px; margin: 0 auto 2.5rem; }
.footer-mark .logo-mark { color: var(--sky); }
.footer-cta { color: var(--white); margin: 0 auto 2rem; max-width: none; }
.footer-line { font-size: 1.05rem; color: var(--sky-light); margin-bottom: 3rem; }
.footer-line a { color: var(--sky); transition: color 0.2s var(--ease-out-quart); }
.footer-line a:hover { color: var(--sand); }
.footer-fine {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Animations: data-fade-in / data-reveal ---------- */
[data-fade-in] {
  opacity: 0; transform: translateY(20px);
  transition:
    opacity 1.0s var(--ease-out-expo),
    transform 1.0s var(--ease-out-expo);
}
[data-fade-in].is-in { opacity: 1; transform: translateY(0); }

[data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition:
    opacity 1.0s var(--ease-out-expo),
    transform 1.0s var(--ease-out-expo);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

[data-tile] {
  opacity: 0; transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
[data-tile].is-in { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-fade-in], [data-reveal], [data-tile] { opacity: 1; transform: none; transition: none; }
  .hero-bg-mark, .data-room-mark { animation: none; }
}

/* Selection */
::selection { background: var(--sky); color: var(--white); }
