/* =========================================================
   shijil.in — golden-hour anime interface
   Demon Slayer / Zenitsu inspired: sunset sky, lightning,
   embers, rolling hills. Plain CSS, OKLCH throughout.
   ========================================================= */

:root {
  /* --- Color (OKLCH) --- */
  --twilight-top: oklch(0.20 0.09 305);   /* deep violet (top of page) */
  --twilight-bot: oklch(0.16 0.05 35);    /* warm dusk (content base) */
  --bg-deep:      oklch(0.12 0.04 320);    /* footer / deepest */

  --glass:        oklch(0.99 0.04 80 / 0.06);
  --glass-strong: oklch(0.99 0.05 80 / 0.10);
  --glass-line:   oklch(0.95 0.08 85 / 0.16);
  --glass-hi:     oklch(1 0.04 90 / 0.22);

  --ink:          oklch(0.97 0.02 85);     /* warm cream */
  --muted:        oklch(0.82 0.04 70);     /* warm secondary */
  --dim:          oklch(0.68 0.05 60);

  --primary:      oklch(0.88 0.165 92);    /* lightning gold */
  --primary-deep: oklch(0.74 0.16 70);     /* amber */
  --accent:       oklch(0.66 0.20 12);     /* sunset coral-red */
  --violet:       oklch(0.60 0.18 320);    /* sky violet */
  --accent-soft:  oklch(0.66 0.20 12 / 0.16);

  --glow-gold:    oklch(0.88 0.165 92 / 0.5);
  --glow-coral:   oklch(0.66 0.20 12 / 0.45);

  /* --- Type --- */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* --- Space / shape --- */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;

  /* --- Motion --- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* --- Z scale --- */
  --z-field: 0;
  --z-content: 1;
  --z-nav: 100;
  --z-modal: 1000;
  --z-toast: 1100;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  background: #100a18; /* solid fallback behind the fixed image layer */
}
/* Full-page background photo — a fixed, GPU-composited layer (NOT
   background-attachment:fixed, which janks on mobile Chrome). Image only, no
   colour wash; spans every section to the bottom. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -50; pointer-events: none;
  background: url("assets/hero.jpg") center center / cover no-repeat;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--font-mono); font-size: 0.8em; letter-spacing: 0.01em; }
.dim { color: var(--dim); }
.hl { color: var(--ink); }

.skip-link {
  position: fixed; top: -200px; left: 1rem; z-index: var(--z-toast);
  background: var(--primary); color: oklch(0.25 0.06 70);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
  transition: top 0.2s var(--ease-out-quart);
}
.skip-link:focus { top: 1rem; }

/* =========================================================
   Fixed atmosphere: ember/lightning canvas + flash + grain
   ========================================================= */
.field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: var(--z-field); pointer-events: none;
}
.flash {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, oklch(0.98 0.12 95 / 0.9), oklch(0.9 0.14 90 / 0.4) 40%, transparent 75%);
  opacity: 0; mix-blend-mode: screen;
}
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* Fireball cursor layer (drawn above everything; clicks pass through) */
.cursorfx { position: fixed; inset: 0; z-index: 9500; pointer-events: none; }
body:not(.fb-on) .cursorfx { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.fb-on { cursor: none; }
  body.fb-on a, body.fb-on button, body.fb-on .btn, body.fb-on [data-open],
  body.fb-on input, body.fb-on textarea, body.fb-on label { cursor: none; }
  /* keep a real cursor inside the tool dialog (it sits above the fx canvas) */
  body.fb-on dialog.tool, body.fb-on dialog.tool * { cursor: auto; }
  body.fb-on dialog.tool .tool__area { cursor: text; }
}
@media (hover: none) { .cursorfx { display: none; } }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  padding: clamp(0.75rem, 2vw, 1.25rem) var(--gutter);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: 999px;
  background: oklch(0.22 0.06 40 / 0.30);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: background 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart);
}
.nav.is-scrolled .nav__inner {
  background: oklch(0.16 0.05 35 / 0.72);
  box-shadow: 0 10px 40px oklch(0.05 0.05 30 / 0.5);
}

.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.brand__mark { color: var(--primary); display: inline-flex; filter: drop-shadow(0 0 7px var(--glow-gold)); }
.brand__word { font-size: 1.05rem; }
.brand__dot { color: var(--primary); }
.brand--sm .brand__word { font-size: 0.95rem; }

.nav__links { display: flex; gap: 0.35rem; margin-left: auto; font-size: 0.92rem; }
.nav__links a { color: var(--muted); padding: 0.5rem 0.85rem; border-radius: 999px; transition: color 0.25s, background 0.25s; }
.nav__links a:hover { color: var(--ink); background: var(--glass-strong); }

.nav__cta { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.nav__menu {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-line);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__menu span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out-quart), opacity 0.2s; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   Buttons / pills
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn--solid { background: var(--primary); color: oklch(0.26 0.07 60); box-shadow: 0 0 0 0 var(--glow-gold); font-weight: 700; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 40px var(--glow-gold); }
.btn--ghost { background: oklch(0.3 0.05 50 / 0.22); color: var(--ink); border-color: var(--glass-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.btn span { transition: transform 0.25s var(--ease-out-quart); }
.btn:hover span { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.28rem 0.6rem; border-radius: 999px; border: 1px solid var(--glass-line);
}
.pill--on { color: oklch(0.92 0.15 95); background: oklch(0.88 0.165 92 / 0.12); border-color: oklch(0.88 0.165 92 / 0.35); }
.pill--soon { color: var(--muted); background: var(--glass); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); animation: pulse 2s var(--ease-out-quart) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* =========================================================
   Glass panel — warm dusk glass
   ========================================================= */
.panel {
  position: relative;
  background: oklch(0.28 0.05 45 / 0.16);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  box-shadow: 0 20px 55px oklch(0.06 0.05 30 / 0.4);
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, var(--glass-hi), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* =========================================================
   Layout primitives
   ========================================================= */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: var(--z-content); }
.section { padding-block: clamp(5rem, 12vh, 9rem); position: relative; z-index: var(--z-content); }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.title-dot { color: var(--primary); }
.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__sub { color: var(--muted); margin-top: 1rem; max-width: 52ch; font-size: 1.05rem; }

/* =========================================================
   HERO — the golden-hour scene
   ========================================================= */
.hero {
  /* Drop your own image at assets/hero.jpg to override the painted SVG. */
  --hero-img: url("assets/hero.jpg"), url("assets/hero.svg");
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) clamp(2rem, 6vh, 4rem);
  perspective: 1000px;
}

/* Painted / photographic backdrop (sits above the CSS sky fallback) */
.hero__photo {
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img);
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* minimal neutral darkening — just enough for nav + headline legibility */
  background:
    radial-gradient(70% 55% at 30% 42%, oklch(0.08 0.02 300 / 0.40), transparent 70%),
    linear-gradient(180deg, oklch(0.08 0.02 300 / 0.50) 0%, transparent 24%);
}

/* Sky (fallback behind the backdrop) */
.sky {
  position: absolute; inset: 0; z-index: -4; overflow: hidden;
  background:
    linear-gradient(180deg,
      oklch(0.24 0.11 300) 0%,
      oklch(0.34 0.15 340) 22%,
      oklch(0.52 0.19 25) 46%,
      oklch(0.70 0.18 50) 68%,
      oklch(0.84 0.16 75) 84%,
      oklch(0.90 0.13 88) 100%);
}
.sun {
  position: absolute; left: 12%; bottom: 8%;
  width: clamp(120px, 16vw, 240px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.99 0.06 95) 0%, oklch(0.95 0.13 90) 35%, oklch(0.88 0.16 80 / 0.6) 60%, transparent 72%);
  filter: blur(2px); animation: sunPulse 7s var(--ease-out-quart) infinite;
}
.sun::after {
  content: ""; position: absolute; inset: -120% -120%;
  background: radial-gradient(circle, oklch(0.95 0.14 88 / 0.45), transparent 60%);
}
@keyframes sunPulse { 0%,100% { transform: scale(1); opacity: 0.95; } 50% { transform: scale(1.06); opacity: 1; } }

.cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.78 0.16 60 / 0.55), oklch(0.62 0.18 35 / 0.25) 60%, transparent);
  filter: blur(14px); will-change: transform;
}
.cloud--1 { width: 46vw; height: 16vw; top: 14%; left: -10%; animation: drift 46s linear infinite; }
.cloud--2 { width: 38vw; height: 12vw; top: 32%; left: 30%; opacity: 0.8; animation: drift 64s linear infinite; }
.cloud--3 { width: 30vw; height: 10vw; top: 6%;  left: 55%; animation: drift 54s linear infinite reverse; }
.cloud--4 { width: 34vw; height: 11vw; top: 44%; left: 8%; opacity: 0.7; animation: drift 72s linear infinite; }
@keyframes drift { from { transform: translateX(-6vw); } to { transform: translateX(10vw); } }

/* Landscape */
.scenery { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.ridge { position: absolute; left: 0; width: 100%; }
.ridge--3 { bottom: 19%; height: 22vh; filter: drop-shadow(0 -2px 10px oklch(0.8 0.15 70 / 0.25)); }
.ridge--3 path { fill: oklch(0.40 0.10 50 / 0.85); }
.ridge--2 { bottom: 13%; height: 24vh; }
.ridge--2 path { fill: oklch(0.30 0.09 55); }
.ridge--1 { bottom: 7%; height: 26vh; }
.ridge--1 path { fill: oklch(0.22 0.07 70); }
.grass {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 16vh; min-height: 90px;
  background:
    linear-gradient(180deg, transparent, oklch(0.14 0.06 80) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 L4 30 L8 80 L12 40 L18 18 L22 80 L26 46 L32 24 L36 80 L42 34 L48 80 L52 28 L58 12 L62 80 L68 38 L74 80 L80 30 L86 80 L92 42 L98 20 L104 80 L110 36 L116 80 L120 44 Z' fill='%231a1205'/%3E%3C/svg%3E") repeat-x bottom / 130px 80px;
  transform-origin: bottom center; animation: sway 6s ease-in-out infinite;
}
@keyframes sway { 0%,100% { transform: skewX(0deg); } 50% { transform: skewX(-1.4deg); } }

/* Hero content */
.hero__grid { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.5fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.82rem); color: var(--ink); letter-spacing: 0.02em; margin-bottom: 1.4rem; text-shadow: 0 1px 12px oklch(0.1 0.05 40 / 0.6); }
.kicker__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 14px var(--primary); animation: pulse 2s infinite; }
.hero__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 2rem + 14vw, 8.5rem); line-height: 0.92; letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  /* 3D extruded gold — warm face, ramp into dark, drop shadow + glow */
  color: oklch(0.98 0.05 96);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out-quart);
  will-change: transform;
  text-shadow:
    1px 1px 0 oklch(0.84 0.16 90),
    2px 2px 0 oklch(0.78 0.16 80),
    3px 3px 0 oklch(0.72 0.17 66),
    4px 4px 0 oklch(0.64 0.18 48),
    5px 5px 0 oklch(0.56 0.18 34),
    6px 7px 0 oklch(0.44 0.16 28),
    7px 9px 0 oklch(0.30 0.10 30),
    10px 13px 20px oklch(0.05 0.04 30 / 0.55),
    0 0 46px oklch(0.88 0.165 92 / 0.45);
}
.hero__tagline { font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.5rem); color: var(--ink); max-width: 30ch; line-height: 1.5; text-wrap: pretty; text-shadow: 0 1px 14px oklch(0.1 0.05 40 / 0.55); }
.hero__tagline .hl { color: oklch(0.99 0.04 92); font-weight: 600; }
.hero__actions { display: flex; gap: 0.9rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Identity card */
.idcard { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; background: oklch(0.20 0.05 40 / 0.40); }
.idcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.idcard__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--glass-line); }
.idcard__row:nth-last-of-type(1) { border-bottom: 0; padding-bottom: 0; }
.idcard__row .mono:last-child { color: var(--ink); }
.idcard__meter { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.2rem; }
.meter { flex: 1; height: 6px; border-radius: 999px; background: oklch(0.5 0.05 50 / 0.3); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--primary)); box-shadow: 0 0 12px var(--glow-gold); }

.scrollcue { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.75rem; margin: clamp(3rem, 7vh, 5rem) auto 0; color: var(--ink); max-width: var(--maxw); width: 100%; text-shadow: 0 1px 10px oklch(0.1 0.05 40 / 0.6); }
.scrollcue__line { width: 60px; height: 1px; background: linear-gradient(90deg, var(--ink), transparent); position: relative; overflow: hidden; }
.scrollcue__line::after { content: ""; position: absolute; inset: 0; width: 20px; background: var(--primary); animation: cue 2.4s var(--ease-out-quart) infinite; }
@keyframes cue { 0% { transform: translateX(-22px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateX(62px); opacity: 0; } }

/* =========================================================
   Signal
   ========================================================= */
.signal__body { max-width: 68ch; }
.lede { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); color: var(--ink); line-height: 1.5; text-wrap: pretty; }
.signal__body p + p { margin-top: 1.3rem; color: var(--muted); }
.signal__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: oklch(0.88 0.165 92 / 0.4); transition: text-decoration-color 0.25s; }
.signal__body a:hover { text-decoration-color: var(--primary); }
.facets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem 1.5rem; margin-top: 2.5rem; }
.facets li { display: flex; align-items: baseline; gap: 0.7rem; padding: 0.9rem 0; border-top: 1px solid var(--glass-line); font-weight: 500; }
.facets .mono { color: var(--primary); }

/* =========================================================
   Ventures
   ========================================================= */
.ventures__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.venture { padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 0.9rem; min-height: 220px; }
.venture--feature { grid-row: span 2; justify-content: space-between; }
.venture--wide { grid-column: span 2; }
.venture__top { display: flex; align-items: center; justify-content: space-between; }
.venture__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.1; }
.venture--feature .venture__title { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); }
.venture__desc { color: var(--muted); max-width: 48ch; }
.venture__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.venture__tags span { color: var(--dim); border: 1px solid var(--glass-line); padding: 0.25rem 0.6rem; border-radius: 999px; }
.venture__link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--primary); font-weight: 600; font-size: 0.95rem; width: fit-content; }
.venture__link span { transition: transform 0.25s var(--ease-out-quart); }
.venture__link:hover span { transform: translateX(4px); }

/* =========================================================
   Toolkit / Deck  (+ triangle haori motif band)
   ========================================================= */
.toolkit { position: relative; }
.triband {
  height: 26px; width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='26'%3E%3Cpath d='M13 4 L24 22 L2 22 Z M39 4 L50 22 L28 22 Z' fill='none' stroke='%23ffd23f' stroke-width='2' stroke-opacity='0.5'/%3E%3C/svg%3E") repeat-x center / 52px 26px;
  opacity: 0.6; margin-bottom: clamp(2rem, 5vw, 3.5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.module { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; min-height: 220px; }
.module__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.module__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--primary); background: oklch(0.88 0.165 92 / 0.12); border: 1px solid oklch(0.88 0.165 92 / 0.28); }
.module[data-status="soon"] .module__icon { color: var(--accent); background: var(--accent-soft); border-color: oklch(0.66 0.20 12 / 0.3); }
.module__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.module__desc { color: var(--muted); font-size: 0.95rem; flex: 1; }
.module__launch { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-weight: 600; font-size: 0.92rem; width: fit-content; margin-top: 0.3rem; }
.module__launch span { transition: transform 0.25s var(--ease-out-quart); }
.module__launch:hover span { transform: translate(3px, -3px); }
.module__launch.is-disabled { color: var(--dim); cursor: not-allowed; pointer-events: none; }
.module__tag { color: var(--dim); margin-top: 0.2rem; }

.module--add { align-items: center; justify-content: center; text-align: center; border-style: dashed; background: transparent; box-shadow: none; gap: 0.5rem; }
.module--add::before { display: none; }
.module--add:hover { border-color: oklch(0.88 0.165 92 / 0.5); }
.module__plus { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--primary); font-weight: 700; }
.module--add .module__desc { flex: none; }

/* =========================================================
   Connect
   ========================================================= */
.connect__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.connect__lead .lede { color: var(--muted); margin-top: 1rem; }
.connect__card { padding: clamp(1.8rem, 3vw, 2.5rem); }
.connect__primary { display: block; padding-bottom: 1.5rem; border-bottom: 1px solid var(--glass-line); margin-bottom: 1.3rem; }
.connect__primary .mono { display: block; color: var(--dim); margin-bottom: 0.5rem; }
.connect__email { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -0.02em; color: var(--ink); transition: color 0.25s; }
.connect__primary:hover .connect__email { color: var(--primary); }
.connect__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.connect__links a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); transition: color 0.25s; }
.connect__links a:hover { color: var(--primary); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--bg-deep); border-top: 1px solid var(--glass-line); padding-block: 2.5rem; position: relative; z-index: var(--z-content); }
.triband--footer { margin: -2.5rem 0 2.2rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__note { color: var(--dim); }
.footer__top { color: var(--muted); display: inline-flex; gap: 0.4rem; transition: color 0.25s; }
.footer__top:hover { color: var(--primary); }

/* =========================================================
   Tool dialog (Text Toolbox)
   ========================================================= */
.tool {
  width: min(640px, 92vw); max-height: 88vh; padding: 0; border: none;
  background: oklch(0.18 0.045 38 / 0.92);
  border: 1px solid var(--glass-line); border-radius: var(--radius);
  color: var(--ink); box-shadow: 0 40px 100px oklch(0.04 0.04 30 / 0.6), 0 0 60px oklch(0.88 0.165 92 / 0.1);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
}
.tool::backdrop { background: oklch(0.08 0.04 320 / 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.tool[open] { animation: toolIn 0.35s var(--ease-out-expo); }
@keyframes toolIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.tool__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--glass-line); margin: 0; }
.tool__title { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.tool__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.tool__close { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); cursor: pointer; font-size: 0.85rem; transition: background 0.2s, color 0.2s; }
.tool__close:hover { background: oklch(0.66 0.20 12 / 0.25); color: var(--primary); }
.tool__body { padding: 1.3rem; display: flex; flex-direction: column; gap: 1rem; overflow: auto; }
.tool__area {
  width: 100%; min-height: 180px; resize: vertical; padding: 1rem; border-radius: var(--radius-sm);
  background: oklch(0.12 0.03 320 / 0.6); border: 1px solid var(--glass-line); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.6;
}
.tool__area:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.tool__stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--muted); }
.tool__stats b { color: var(--primary); font-weight: 500; }
.tool__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool__actions button {
  font-family: var(--font-mono); font-size: 0.8rem; padding: 0.5rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out-quart);
}
.tool__actions button:hover { transform: translateY(-1px); border-color: var(--primary); color: var(--primary); }
.tool__actions .is-primary { margin-left: auto; background: var(--primary); color: oklch(0.26 0.07 60); border-color: transparent; font-weight: 700; }
.tool__actions .is-primary:hover { color: oklch(0.26 0.07 60); box-shadow: 0 6px 24px var(--glow-gold); }
.tool__actions .is-primary.is-copied { background: oklch(0.78 0.16 140); }

/* =========================================================
   Tools sidebar (drawer) — neumorphic dark
   Soft-UI: one solid surface (--neu-bg) with paired dark/light
   shadows. Outset = raised; inset = pressed/well. Tweak --neu-*.
   ========================================================= */
:root{
  --neu-bg: oklch(0.195 0.022 298);
  --neu-dark: oklch(0.105 0.018 300);
  --neu-light: oklch(0.285 0.026 300);
  --neu-out: 7px 7px 16px var(--neu-dark), -7px -7px 16px var(--neu-light);
  --neu-out-sm: 4px 4px 10px var(--neu-dark), -4px -4px 10px var(--neu-light);
  --neu-in: inset 4px 4px 9px var(--neu-dark), inset -4px -4px 9px var(--neu-light);
  --neu-in-sm: inset 3px 3px 6px var(--neu-dark), inset -3px -3px 6px var(--neu-light);
}

.nav__tools {
  width: 44px; height: 44px; border-radius: 14px; flex: none; border: none; cursor: pointer;
  background: var(--neu-bg); color: var(--muted); box-shadow: var(--neu-out-sm);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, box-shadow 0.18s, transform 0.2s var(--ease-out-quart);
}
.nav__tools:hover { color: var(--primary); transform: translateY(-1px); }
.nav__tools:active { box-shadow: var(--neu-in-sm); color: var(--primary); transform: none; }

.drawer-scrim {
  position: fixed; inset: 0; z-index: 9600;
  background: oklch(0.05 0.015 300 / 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.4s var(--ease-out-quart);
}
.drawer-scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 9610; height: 100svh; width: min(380px, 92vw);
  display: flex; flex-direction: column; gap: 1.4rem;
  padding: 1.6rem clamp(1.2rem, 2vw, 1.6rem);
  background: var(--neu-bg);
  box-shadow: -22px 0 60px oklch(0.03 0.015 300 / 0.65);
  transform: translateX(100%); transition: transform 0.45s var(--ease-out-expo);
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer__head .mono { color: var(--dim); }
.drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.drawer__close {
  width: 40px; height: 40px; border-radius: 12px; border: none; flex: none; cursor: pointer;
  background: var(--neu-bg); color: var(--muted); box-shadow: var(--neu-out-sm);
  transition: color 0.2s, box-shadow 0.15s;
}
.drawer__close:hover { color: var(--primary); }
.drawer__close:active { box-shadow: var(--neu-in-sm); }
.drawer__intro { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.drawer__intro b { color: var(--ink); font-weight: 600; }
.drawer__group { display: flex; flex-direction: column; gap: 0.8rem; }
.drawer__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); padding-left: 0.25rem; }
.drawer__list { display: flex; flex-direction: column; gap: 0.85rem; }

.drawer-item {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0.95rem; border-radius: 16px; border: none;
  background: var(--neu-bg); box-shadow: var(--neu-out-sm);
  transition: box-shadow 0.22s, transform 0.22s var(--ease-out-quart);
}
.drawer-item:hover { transform: translateY(-2px); box-shadow: var(--neu-out); }
.drawer-item:active { box-shadow: var(--neu-in-sm); transform: none; }
.drawer-item--link { text-decoration: none; color: inherit; }
.drawer-item--link:hover .drawer-item__name { color: var(--primary); }
.drawer-item__icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  color: var(--primary); background: var(--neu-bg); box-shadow: var(--neu-in-sm);
  font-family: var(--font-display); font-weight: 700;
}
.drawer-item__body { flex: 1; min-width: 0; }
.drawer-item__name { font-weight: 600; font-size: 0.95rem; }
.drawer-item__name span { color: var(--dim); }
.drawer-item__desc { color: var(--muted); font-size: 0.78rem; margin-top: 1px; }
.drawer-item .pill { flex: none; }

/* neumorphic toggle row + switch */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0.95rem; border-radius: 16px; background: var(--neu-bg); box-shadow: var(--neu-out-sm); }
.switch-row__name { font-weight: 600; font-size: 0.95rem; display: block; }
.switch-row__desc { color: var(--muted); font-size: 0.78rem; }
.switch-row.is-disabled { opacity: 0.5; }
.switch { position: relative; flex: none; width: 50px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch__track { display: block; width: 50px; height: 28px; border-radius: 999px; background: var(--neu-bg); box-shadow: var(--neu-in-sm); }
.switch__thumb { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--neu-bg); box-shadow: var(--neu-out-sm); transition: transform 0.28s var(--ease-out-quart), background 0.25s, box-shadow 0.25s; }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(22px); background: var(--primary); box-shadow: 0 0 10px var(--glow-gold); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--primary); outline-offset: 3px; }

body.drawer-open { overflow: hidden; }

/* Normal cursor inside the panel (the fireball sits behind the scrim) */
@media (hover: hover) and (pointer: fine) {
  .drawer, .drawer *, .drawer-scrim { cursor: auto; }
  .drawer button, .drawer a, .nav__tools { cursor: pointer; }
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .idcard { max-width: 420px; }
  .ventures__grid { grid-template-columns: 1fr; }
  .venture--feature { grid-row: auto; }
  .venture--wide { grid-column: auto; }
  .connect__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: flex; margin-left: 0.4rem; }
  .nav__tools { margin-left: auto; }
  .drawer { width: min(360px, 100vw); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0.25rem;
    position: absolute; top: calc(100% + 0.5rem); left: var(--gutter); right: var(--gutter);
    padding: 0.75rem; border-radius: var(--radius);
    background: oklch(0.16 0.05 35 / 0.94); border: 1px solid var(--glass-line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .nav.is-open .nav__links a { padding: 0.8rem 1rem; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .field, .cursorfx { display: none; }
  body { cursor: auto; }
  .hero__name { transform: none !important; }
  .drawer, .drawer-scrim { transition: none; }
  .drawer-item.just-added { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill__dot, .kicker__pulse, .scrollcue__line::after,
  .sun, .cloud, .grass { animation: none; }
  .btn:hover, .panel:hover { transform: none !important; }
  * { scroll-behavior: auto !important; }
}
