/* ============================================================
   OCTAHEDRON CONSULTING — Design System v2
   Dark · Premium · Geometric · Cinematic
   Navy #202058 · Cyan #22A9D2
   ============================================================ */

:root {
  /* Brand */
  --navy:        #202058;
  --navy-soft:   #2b2e6e;
  --cyan:        #22a9d2;
  --cyan-bright: #45c8ec;
  --cyan-deep:   #1786ad;

  /* Surfaces (dark) */
  --bg:        #06070f;
  --bg-2:      #0a0c1a;
  --panel:     #10132a;
  --panel-2:   #161a38;
  --panel-hi:  #1c2046;

  /* Text */
  --text:    #eef1fb;
  --muted:   #a3aaca;
  --faint:   #6e7595;

  /* Lines & effects */
  --line:        rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --glow:        rgba(34,169,210,.45);

  /* Type */
  --font-display: 'Times New Roman', Times, Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --max:    1240px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 18px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* Ambient background field */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(34,169,210,.16), transparent 60%),
    radial-gradient(800px 700px at 8% 12%, rgba(43,46,110,.40), transparent 55%),
    linear-gradient(180deg, #06070f 0%, #080a16 60%, #06070f 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 80%);
          mask-image: radial-gradient(circle at 50% 30%, #000, transparent 80%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  z-index: 200; box-shadow: 0 0 12px var(--glow);
}

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; color: var(--text); }
.display {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.03em;
}
.h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.italic { font-style: italic; }
.cyan { color: var(--cyan-bright); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--muted); line-height: 1.55; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cyan-bright);
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); display: inline-block; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; padding: clamp(4.5rem, 9vw, 8.5rem) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h2 { margin: 1.1rem 0 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .95rem 1.6rem; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #04121a; box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-primary:hover { box-shadow: 0 14px 44px -8px var(--glow); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--cyan); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6,7,15,.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--muted); position: relative; padding: .3rem 0;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--cyan);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--text); transition: .3s var(--ease); }
.nav-toggle span:nth-child(1){ top: 0; } .nav-toggle span:nth-child(2){ top: 10px; } .nav-toggle span:nth-child(3){ top: 20px; }
.nav-toggle.open span:nth-child(1){ top:10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ top:10px; transform: rotate(-45deg); }

/* ============================================================
   CINEMATIC IMAGE HEROES  (full-screen, parallax)
   ============================================================ */
.hero-full {
  position: relative; min-height: 100svh; padding: 0;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-media, .band-media {
  position: absolute; left: 0; right: 0; top: -14%; bottom: -14%;
  z-index: 0; will-change: transform;
}
.hero-media img, .band-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.55) brightness(.8) contrast(1.05);
}
.hero-media img { animation: heroSettle 2.4s var(--ease) both; }
@keyframes heroSettle { from { transform: scale(1.07); opacity: .0; } to { transform: scale(1); opacity: 1; } }

/* legibility veil — layered navy */
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,7,15,.55) 0%, rgba(6,7,15,.25) 40%, rgba(6,7,15,.92) 100%),
    linear-gradient(100deg, rgba(6,7,15,.88) 0%, rgba(32,32,88,.45) 55%, rgba(34,169,210,.10) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 170px; padding-bottom: clamp(5rem, 10vh, 8rem); }
.hero-content h1 { margin: 1.4rem 0 1.6rem; max-width: 15ch; text-shadow: 0 2px 30px rgba(6,7,15,.6); }
.hero-content .lead { max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.6rem; }
.hero-tags span {
  font-size: .78rem; letter-spacing: .04em; color: var(--muted);
  padding: .42rem .9rem; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(6,7,15,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* scroll cue */
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 2.2rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  color: var(--faint); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::before {
  content: ""; width: 1px; height: 54px;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: cueDrop 2.2s var(--ease) infinite;
}
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* inner-page image hero */
.page-hero-img {
  position: relative; min-height: 62vh; padding: 0;
  display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero-img .hero-content { padding-top: 150px; padding-bottom: clamp(3rem, 7vh, 5rem); }
.page-hero-img .display { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 1.2rem 0 1.2rem; max-width: 20ch; }
.page-hero-img .lead { max-width: 60ch; }

/* ---------- Parallax image band (section divider) ---------- */
.img-band { position: relative; overflow: hidden; padding: clamp(6rem, 14vh, 10rem) 0; }
.band-media img { filter: saturate(.5) brightness(.55); }
.band-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(6,7,15,.35) 18%, rgba(32,32,88,.35) 55%, rgba(6,7,15,.35) 82%, var(--bg) 100%);
}
.band-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.band-inner blockquote {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.12; letter-spacing: -.02em; margin: 1.4rem 0 1.2rem;
  text-shadow: 0 2px 30px rgba(6,7,15,.7);
}
.band-inner p { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.band-inner .eyebrow { justify-content: center; }

/* legacy text-only page hero (kept for fallback) */
.page-hero { padding-top: 150px; padding-bottom: 0; }
.page-hero .display { font-size: clamp(2.4rem,5vw,4.4rem); margin: 1.2rem 0 1.2rem; }
.page-hero .lead { max-width: 60ch; }

/* ---------- Generic cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: transform .4s var(--ease), border-color .4s, background .4s, box-shadow .4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(34,169,210,.08), rgba(255,255,255,.02)); }
.card .num { font-family: var(--font-display); font-size: 1rem; color: var(--cyan-bright); letter-spacing: .05em; }
.card h3 { font-size: 1.32rem; margin: .7rem 0 .6rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card .icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(34,169,210,.12); border: 1px solid rgba(34,169,210,.25); margin-bottom: 1.1rem; }
.card .icon svg { width: 22px; height: 22px; stroke: var(--cyan-bright); fill: none; stroke-width: 1.6; }

/* ---------- Dimension cards (8 dimensions, tilt + spotlight) ---------- */
a.card { display: block; }
.dim-card {
  --mx: 50%; --my: 50%;
  transform-style: preserve-3d;
  transition: border-color .4s, background .4s, box-shadow .4s;
  will-change: transform;
}
.dim-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(34,169,210,.16), transparent 65%);
  transition: opacity .4s var(--ease); pointer-events: none;
}
.dim-card:hover::before { opacity: 1; }
.dim-card:hover { border-color: rgba(34,169,210,.4); box-shadow: 0 20px 50px -20px rgba(34,169,210,.25); }
.dim-card > * { position: relative; z-index: 1; }
.dim-card .ghost {
  position: absolute; right: .4rem; top: -.8rem; z-index: 0;
  font-family: var(--font-display); font-size: 6.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(34,169,210,.16);
  pointer-events: none; transition: -webkit-text-stroke-color .4s, transform .5s var(--ease);
}
.dim-card:hover .ghost { -webkit-text-stroke-color: rgba(69,200,236,.4); transform: translateY(-4px); }
.dim-card .dim-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  font-size: .85rem; font-weight: 600; color: var(--cyan-bright);
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.dim-card:hover .dim-link { opacity: 1; transform: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
.metric { text-align: center; padding: 2rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.02); transition: border-color .4s, transform .4s var(--ease); }
.metric:hover { border-color: rgba(34,169,210,.35); transform: translateY(-4px); }
.metric .val { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.6rem); line-height: 1;
  background: linear-gradient(135deg, #fff, var(--cyan-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .label { color: var(--muted); font-size: .9rem; margin-top: .7rem; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.panel {
  background: linear-gradient(150deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.6rem,3vw,2.6rem);
}

/* iceberg diagram */
.iceberg { display: grid; gap: 1px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.iceberg .above, .iceberg .below { padding: 1.6rem 1.8rem; }
.iceberg .above { background: rgba(34,169,210,.10); }
.iceberg .below { background: rgba(10,12,26,.6); }
.iceberg .tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-bright); }
.iceberg .below .tag { color: var(--faint); }
.iceberg h4 { font-family: var(--font-display); font-size: 1.3rem; margin: .4rem 0; }
.iceberg p { color: var(--muted); font-size: .95rem; }

/* lists */
.ticks { list-style: none; display: grid; gap: .9rem; margin-top: 1.4rem; }
.ticks li { display: flex; gap: .8rem; color: var(--muted); }
.ticks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 5px;
  background: rgba(34,169,210,.15); border: 1px solid rgba(34,169,210,.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345c8ec' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px; }

/* octahedron accents (kept for About page scene) */
.scene { display: grid; place-items: center; perspective: 1100px; min-height: 440px; }
.octa-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,169,210,.30), transparent 65%); filter: blur(20px); }
.octa-ring { position: absolute; border: 1px solid rgba(34,169,210,.22); border-radius: 50%; }
.octa-ring.r1 { width: 420px; height: 420px; animation: pulse 6s ease-in-out infinite; }
.octa-ring.r2 { width: 540px; height: 540px; animation: pulse 6s ease-in-out infinite .8s; }
@keyframes pulse { 0%,100%{ opacity:.25; transform: scale(1);} 50%{ opacity:.6; transform: scale(1.04);} }
.octa-img { position: relative; width: 210px; filter: drop-shadow(0 24px 60px rgba(34,169,210,.4)); animation: float 7s ease-in-out infinite; z-index: 2; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-16px);} }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-card {
  background: linear-gradient(135deg, rgba(34,169,210,.14), rgba(43,46,110,.30));
  border: 1px solid rgba(34,169,210,.28); border-radius: 28px;
  padding: clamp(2.6rem,6vw,4.5rem); position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(34,169,210,.14); left: -160px; top: -260px; pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}
.cta-card .h2 { margin-bottom: 1rem; }
.cta-card .lead { max-width: 52ch; margin-inline: auto; }
.cta-card .hero-actions { justify-content: center; }

/* ---------- Founder ---------- */
.founder-photo { border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); position: relative; }
.founder-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.founder-photo .ph { aspect-ratio: 4/5; display: grid; place-items: center; background: linear-gradient(160deg, var(--panel-2), var(--bg-2)); color: var(--faint); text-align: center; padding: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .82rem; letter-spacing: .04em; color: var(--muted); margin-bottom: .5rem; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 12px; padding: .9rem 1rem; color: var(--text); font-family: var(--font-body); font-size: .98rem;
  transition: border-color .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); background: rgba(34,169,210,.05); }
.field textarea { min-height: 140px; resize: vertical; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-item .ci-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(34,169,210,.12); border: 1px solid rgba(34,169,210,.25); }
.contact-item .ci-ic svg { width: 20px; height: 20px; stroke: var(--cyan-bright); fill: none; stroke-width: 1.6; }
.contact-item .lab { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.contact-item .val { font-size: 1.05rem; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem,5vw,4.5rem) 0 2.5rem; margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-top img { height: 40px; margin-bottom: 1.2rem; }
.footer-top p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer-col h5 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); font-size: .95rem; padding: .35rem 0; transition: color .2s; }
.footer-col a:hover { color: var(--cyan-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; flex-wrap: wrap; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4, .metrics { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .scene { min-height: 320px; }
  .scroll-cue { display: none; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: fixed; inset: 78px 0 auto 0;
    background: rgba(6,7,15,.97); backdrop-filter: blur(20px); padding: 1.5rem var(--gutter) 2rem;
    gap: 1.3rem; border-bottom: 1px solid var(--line); align-items: flex-start;
  }
  .nav-links.mobile-open a { font-size: 1.1rem; }
  .grid-2, .grid-3, .grid-4, .metrics { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-content { padding-top: 130px; }
  .page-hero-img { min-height: 52vh; }
}

@media (prefers-reduced-motion: reduce) {
  .octa-img, .octa-ring, .cta-card::before, .hero-media img, .scroll-cue::before { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-media, .band-media { top: 0; bottom: 0; }
}
