/* gibreen.com — level 3. Layered on site.css + motion.css (reveals).
   One rendered moment, calm around it. */

:root { --display: 'Sora', 'Rubik', system-ui, sans-serif; }

/* the old decorative background goes; the scene is the background now */
.grid-bg, .orb { display: none; }
body { background: var(--bg); }

/* ── Header floats transparent over the scene ───────────────────────────── */
.site-header { background: linear-gradient(180deg, rgba(6,9,26,.75), rgba(6,9,26,0)); border-bottom: 1px solid transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: fixed; left: 0; right: 0; top: 0; transition: background .35s, border-color .35s, backdrop-filter .35s; }
.site-header.scrolled { background: rgba(6,9,26,.82); border-bottom-color: rgba(30,35,64,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-header .nav-inner { padding: 1rem 2rem; max-width: 1240px; }
.site-header .nav-menu { flex-wrap: nowrap; gap: .2rem; }
.site-header .nav-menu a { padding: .4rem .5rem; }
.site-header .nav-menu a { font-size: .9rem; color: var(--text-mid); }
.site-header .nav-menu a:hover { color: var(--text); }
.nav-cta { border-color: rgba(212,165,116,.45); }

/* ── The hero: the scene fixed behind, the copy anchored left ────────────── */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
html.no-webgl #scene { display: none; }
html.no-webgl .hero3 { background: radial-gradient(70% 60% at 70% 50%, rgba(124,58,237,.22), transparent 60%), radial-gradient(60% 50% at 20% 30%, rgba(212,165,116,.10), transparent 60%), var(--bg); }

.hero3 { position: relative; z-index: 1; min-height: 100vh; height: 150vh; }
.hero3 .copy {
  position: sticky; top: 0; height: 100vh; box-sizing: border-box;
  max-width: 1240px; margin: 0 auto; padding: 0 2rem;
  display: grid; align-content: center; gap: 1.4rem;
}
.hero3 .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; width: max-content;
  font: 600 .72rem/1 'Inter', system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--amber);
}
.hero3 .eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--amber); }
.hero3 h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: .98;
  font-size: clamp(2.8rem, 6.6vw, 6rem); margin: 0; max-width: 11ch;
}
.hero3 h1 .mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero3 h1 .line { display: block; }
.hero3 h1 .accent { color: var(--amber); -webkit-text-fill-color: var(--amber); background: none; }
.hero3 .lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-mid); max-width: 52ch; margin: .4rem 0 0; }
.hero3 .btn-row { justify-content: flex-start; margin-top: .4rem; }
.hero3 .btn { padding: .95rem 1.6rem; }
.hero3 .hero-foot {
  position: absolute; left: 2rem; right: 2rem; bottom: 2rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  font: 500 .74rem/1.5 'Inter', system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint);
}
.hero3 .hero-foot .status { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-dim); transition: color .4s; }
.hero3 .hero-foot .status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); transition: background .4s, box-shadow .4s; }
.hero3.asking .hero-foot .status { color: #B59CFF; }
.hero3.asking .hero-foot .status::before { background: var(--purple); box-shadow: 0 0 14px var(--purple); }
.hero3.open .hero-foot .status { color: var(--green); }
.hero3.open .hero-foot .status::before { background: var(--green); box-shadow: 0 0 14px var(--green); }
.hero3 .hero-foot .status span { display: none; }
.hero3 .hero-foot .status .s-closed { display: inline; }
.hero3.asking .hero-foot .status .s-closed, .hero3.open .hero-foot .status .s-closed { display: none; }
.hero3.asking .hero-foot .status .s-asking { display: inline; }
.hero3.open .hero-foot .status .s-open { display: inline; }
.hero3 .hero-foot .scroll { display: inline-flex; align-items: center; gap: .6rem; }
.hero3 .hero-foot .scroll i { width: 1px; height: 36px; background: linear-gradient(var(--text-faint), transparent); display: block; animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── The rest of the page sits on solid ink above the fixed scene ──────────── */
.content > main, .content > .book, .content > .site-footer, .console-section { position: relative; z-index: 1; }
main { background: var(--bg); }
.section { padding-top: 6rem; padding-bottom: 6rem; }
.section-label { font-family: 'Inter', system-ui, sans-serif; }
.section h2, .book h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
.section h3 { font-family: var(--display); }
.book { background: var(--bg-surface); }
.site-footer { background: var(--bg); }

/* console (from level 2, unchanged visually) */
.console-section .inner { max-width: 900px; }
.console { background: #05070F; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(124,58,237,.08); }
.console-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #0A0D1C; border-bottom: 1px solid var(--border); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; }
.console-bar span:nth-child(1) { background: #E0635A; } .console-bar span:nth-child(2) { background: #D4A574; } .console-bar span:nth-child(3) { background: #6FBF8B; }
.console-bar em { margin-inline-start: auto; font: 500 .72rem/1 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--text-faint); letter-spacing: .08em; }
.console-body { margin: 0; padding: 1.1rem 1.25rem 1.3rem; min-height: 15.5em; font: 500 .86rem/1.75 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--text-mid); white-space: pre-wrap; direction: ltr; text-align: left; }
.console-body .ts { color: var(--text-faint); } .console-body .role { display: inline-block; min-width: 7.5ch; font-weight: 700; }
.console-body .r-reader { color: #7FB3FF; } .console-body .r-drafter { color: #D4A574; } .console-body .r-checker { color: #B59CFF; }
.console-body .r-gate { color: #7C3AED; } .console-body .r-ghassan { color: #F5F7FA; } .console-body .r-odoo { color: #6FBF8B; } .console-body .r-record { color: var(--text-dim); }
.console-body .cur { display: inline-block; width: .6ch; height: 1.1em; background: var(--amber); vertical-align: -0.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-body .wait { color: var(--purple); }
.console-note { font-size: .82rem; color: var(--text-faint); margin-top: .9rem; }

/* chart counters + flowing arrows */
.figure-frame .cnt { font-variant-numeric: tabular-nums; }
.figure-frame path.flow { stroke-dasharray: 7 5; }
.in .figure-frame path.flow { animation: flow 1.1s linear infinite; }
.in .figure-frame path.flow.slow { animation-duration: 2.6s; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* the level-1 word-rise targets the old hero; neutralise on this page */
.hero h1 .w { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .hero3 { height: 120vh; }
  .hero3 .copy { padding: 0 1.25rem; align-content: end; padding-bottom: 6rem; gap: 1rem; }
  .hero3 .lede { font-size: 1rem; }
  .hero3 .btn { padding: .8rem 1.2rem; font-size: .92rem; }
  .hero3 h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero3 .hero-foot { left: 1.25rem; right: 1.25rem; bottom: 1.4rem; }
  .hero3 .hero-foot .scroll { display: none; }
  .site-header .nav-inner { padding: .9rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero3 .hero-foot .scroll i { animation: none; }
  .in .figure-frame path.flow { animation: none; }
}
