/* =========================================================
   Castle Ventures — styles.css
   Layout concept: a holding-company "operations room" —
   charcoal blueprint grounds, a live portfolio registry,
   castle battlement edges between major sections.
   Single dark world by design (brand: charcoal + gold).
   ========================================================= */

:root {
  /* Colour */
  --ink-0: #0B0C0E;      /* page ground */
  --ink-1: #111317;      /* section surface */
  --ink-2: #171A1F;      /* raised card */
  --ink-3: #20242B;      /* hover / inputs */
  --line: rgba(205, 214, 228, 0.10);
  --line-strong: rgba(205, 214, 228, 0.18);
  --fg: #EEEAE2;         /* off-white */
  --fg-muted: #A6AAB2;
  --fg-dim: #868B94;
  --gold: #C9A45C;
  --gold-bright: #E2C17E;
  --gold-soft: rgba(201, 164, 92, 0.14);
  --steel: #7F9EBF;
  --steel-soft: rgba(127, 158, 191, 0.14);
  --live: #7CC79A;       /* semantic: operating */
  --on-gold: #15120B;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(3rem, 7.4vw, 6.6rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 3.75rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.75rem);
  --fs-lede: clamp(1.05rem, 1.35vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.75rem;

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --section-y: clamp(80px, 11vw, 150px);
  --radius: 6px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--on-gold); }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-xs { width: .85em; height: .85em; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted);
}
.eyebrow-dot { width: 7px; height: 7px; background: var(--gold); flex: none; }

.section { position: relative; padding-block: var(--section-y); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 760px; }
.section-head-split { max-width: none; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 24px 64px; }
.section-head-split > div { display: grid; gap: 20px; }
.section-title {
  font-family: var(--font-display); font-size: var(--fs-h2);
  font-stretch: 112%; font-weight: 760; line-height: 1.02; letter-spacing: -0.02em;
}
.section-lede { font-size: var(--fs-lede); color: var(--fg-muted); max-width: 58ch; line-height: 1.6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: .005em;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-block { width: 100%; }

.status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px 5px 9px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--fg-muted);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--live); border-color: rgba(124, 199, 154, .35); background: rgba(124, 199, 154, .07); }
.status-live::before { box-shadow: 0 0 0 0 rgba(124, 199, 154, .6); animation: pulse 2.4s infinite; }
.status-build { color: var(--steel); border-color: rgba(127, 158, 191, .38); background: var(--steel-soft); }
.status-open { color: var(--fg-dim); border-style: dashed; }
.status-open::before { background: transparent; border: 1px solid currentColor; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124,199,154,.55); } 70% { box-shadow: 0 0 0 7px rgba(124,199,154,0); } 100% { box-shadow: 0 0 0 0 rgba(124,199,154,0); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: .82rem; color: var(--fg-muted); padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.015);
}

/* Blueprint corner ticks for key panels */
.corner-ticks { position: relative; }
.corner-ticks::before, .corner-ticks::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--gold); border-style: solid; opacity: .9;
}
.corner-ticks::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.corner-ticks::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 12, 14, .82);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand-mark { width: 30px; height: 30px; fill: var(--gold); flex: none; }
.brand-word {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: .4em;
}
.brand-word span { font-weight: 500; color: var(--fg-muted); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  display: block; padding: 10px 14px; text-decoration: none; font-size: .95rem; color: var(--fg-muted);
  border-radius: 4px; position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--fg); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; color: var(--fg);
}
.menu-toggle .icon { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(11, 12, 14, .97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: calc(92px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.mobile-menu-inner { display: grid; gap: 32px; max-width: 520px; margin-inline: auto; }
.mobile-menu ul { display: grid; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; text-decoration: none;
  font-family: var(--font-display); font-stretch: 115%; font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.2rem); letter-spacing: -.01em;
}
.mobile-menu nav a::after { content: "→"; font-family: var(--font-body); color: var(--gold); font-size: 1.2rem; }
.mobile-menu-meta { color: var(--fg-dim); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.mobile-menu.is-open { animation: menuIn .35s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 110px) clamp(96px, 11vw, 150px); margin-top: -76px; padding-top: calc(76px + clamp(48px, 7vw, 100px)); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,92,.20), rgba(127,158,191,.07) 45%, transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.06); } }
.hero-keep {
  position: absolute; right: -3vw; bottom: -4vw; width: 30vw; max-width: 420px; height: auto;
  fill: none; stroke: var(--gold); stroke-width: .12; opacity: .16;
}
.hero::after { /* battlement edge into next band */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--ink-1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='18'%3E%3Cpath d='M0 0h20v8h16V0h20v18H0z'/%3E%3C/svg%3E") repeat-x left bottom / 56px 18px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='18'%3E%3Cpath d='M0 0h20v8h16V0h20v18H0z'/%3E%3C/svg%3E") repeat-x left bottom / 56px 18px;
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero-title { display: grid; gap: 0; }
.hero-kicker {
  font-family: var(--font-mono); font-weight: 500; font-size: clamp(.9rem, 1.2vw, 1.05rem);
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.hero-line {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 850; text-transform: uppercase;
  font-size: var(--fs-hero); line-height: .92; letter-spacing: -.035em; display: block;
}
.hero-line i { font-style: normal; color: var(--gold); }
.hero-line:nth-child(3) { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.hero-line:nth-child(3) i { -webkit-text-stroke: 0; }
.hero-lede { font-size: var(--fs-lede); color: var(--fg-muted); max-width: 46ch; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Load sequence */
.hero-line, .hero-kicker, .hero-lede, .hero-ctas, .hero .eyebrow { animation: rise .9s var(--ease) both; }
.hero .eyebrow { animation-delay: .02s; }
.hero-kicker { animation-delay: .08s; }
.hero-line:nth-child(2) { animation-delay: .14s; }
.hero-line:nth-child(3) { animation-delay: .22s; }
.hero-line:nth-child(4) { animation-delay: .30s; }
.hero-lede { animation-delay: .40s; }
.hero-ctas { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Registry panel */
.registry {
  background: linear-gradient(180deg, rgba(23,26,31,.92), rgba(17,19,23,.92));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  min-width: 0; overflow: hidden;
  animation: rise .9s var(--ease) .35s both;
}
.registry-head, .registry-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim);
}
.registry-head { border-bottom: 1px solid var(--line); }
.registry-coords { color: var(--gold); letter-spacing: .1em; }
.registry-foot { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.registry-scan {
  position: absolute; left: 0; top: 0; height: 1px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: scan 4.5s linear infinite;
}
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.registry-list li + li { border-top: 1px solid var(--line); }
.registry-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 20px; text-decoration: none; position: relative;
  transition: background-color .25s var(--ease);
}
.registry-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold);
  transform: scaleY(0); transition: transform .3s var(--ease);
}
.registry-row:hover { background: rgba(255,255,255,.03); }
.registry-row:hover::before { transform: scaleY(1); }
.registry-list li { animation: rise .7s var(--ease) both; }
.registry-list li:nth-child(1) { animation-delay: .55s; }
.registry-list li:nth-child(2) { animation-delay: .65s; }
.registry-list li:nth-child(3) { animation-delay: .75s; }
.registry-list li:nth-child(4) { animation-delay: .85s; }
.registry-logo { width: 44px; height: 44px; border-radius: 8px; }
.registry-logo-open { display: grid; place-items: center; border: 1px dashed var(--line-strong); color: var(--fg-dim); }
.registry-name {
  display: grid; gap: 2px; min-width: 0;
  font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 1.08rem; letter-spacing: -.005em;
}
.registry-name small { font-family: var(--font-body); font-stretch: 100%; font-weight: 400; font-size: .84rem; color: var(--fg-dim); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.registry-row-open .registry-name { color: var(--fg-muted); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink-1); border-bottom: 1px solid var(--line);
  overflow: hidden; padding-block: 22px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; }
.marquee-list li {
  display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--font-display); font-stretch: 118%; font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: .02em;
}
.marquee-list li::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--ink-1); }
.venture-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }

.venture {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid var(--line);
  transition: border-color .35s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
  min-width: 0;
}
.venture::before { /* pointer spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(201,164,92,.10), transparent 60%);
}
.venture:hover { border-color: rgba(201,164,92,.45); transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.venture:hover::before { opacity: 1; }

.venture-rx { grid-column: span 7; grid-template-rows: auto 1fr; }
.venture-cv { grid-column: span 5; grid-template-rows: auto auto; }
.venture-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.venture-body { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3vw, 40px); min-width: 0; }
.venture-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.venture-logo { width: 52px; height: 52px; border-radius: 10px; }
.venture-code { font-size: .72rem; letter-spacing: .16em; color: var(--fg-dim); margin-right: auto; }
.venture-cat { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.venture-name {
  font-family: var(--font-display); font-stretch: 120%; font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.025em;
}
.venture-tag { font-family: var(--font-display); font-stretch: 105%; font-weight: 600; font-size: 1.2rem; color: var(--fg); }
.venture-desc { color: var(--fg-muted); max-width: 54ch; }
.venture-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; align-self: flex-start;
  font-weight: 600; text-decoration: none; color: var(--gold-bright);
  border-bottom: 1px solid rgba(201,164,92,.35); padding-bottom: 4px; transition: border-color .25s, gap .25s var(--ease);
}
.venture-link:hover { border-bottom-color: var(--gold-bright); gap: 12px; }

.venture-visual { position: relative; min-width: 0; }

/* Rank Xpert browser mockup */
.venture-rx .venture-visual { padding: 0 clamp(26px, 3vw, 40px); align-self: end; }
.browser {
  border-radius: 10px 10px 0 0; overflow: hidden; border: 1px solid var(--line-strong); border-bottom: 0;
  background: #1A1D23; box-shadow: 0 -20px 60px -30px rgba(0,0,0,.8);
  transform: translateY(8px); transition: transform .6s var(--ease);
}
.venture-rx:hover .browser { transform: translateY(0); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3A3F48; }
.browser-url {
  flex: 1; min-width: 0; font-size: .72rem; color: var(--fg-dim); background: rgba(255,255,255,.04);
  border-radius: 4px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Castle Vending visual */
.venture-cv .venture-visual { aspect-ratio: 16 / 11; overflow: hidden; border-bottom: 1px solid var(--line); }
.vending-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .8s var(--ease); }
.venture-cv:hover .vending-img { transform: scale(1.04); }

/* Software & Games */
.venture-sg { background: linear-gradient(120deg, var(--ink-2) 40%, #151B23); }
.release {
  display: grid; gap: 6px; padding: 18px 20px; margin-top: 4px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(255,255,255,.02);
}
.release-label { display: flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.release-name { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 1.3rem; }
.release-desc { color: var(--fg-muted); font-size: .95rem; }

.phones { display: flex; justify-content: center; align-items: center; padding: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); min-height: 100%; }
.phones::before { /* stage glow */
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(127,158,191,.16), transparent); pointer-events: none;
}
.phone {
  position: relative; width: min(42%, 230px); flex: none;
  padding: 9px; border-radius: 34px; background: #0A0B0D;
  border: 1px solid #2E333B; box-shadow: 0 40px 70px -30px rgba(0,0,0,.95), inset 0 0 0 2px #15171B;
  transition: transform .6s var(--ease);
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
.phone::before { /* notch */
  content: ""; position: absolute; top: 17px; left: 50%; width: 30%; height: 15px; transform: translateX(-50%);
  background: #0A0B0D; border-radius: 0 0 10px 10px; z-index: 1;
}
.phone-front { z-index: 2; transform: rotate(-4deg) translateY(-8px); }
.phone-back { margin-left: -9%; transform: rotate(5deg) translateY(22px); opacity: .9; }
.venture-sg:hover .phone-front { transform: rotate(-2deg) translateY(-18px); }
.venture-sg:hover .phone-back { transform: rotate(7deg) translateY(28px) translateX(10px); }
.phone-tag {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim);
}

/* Next venture slot */
.venture-next {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 26px clamp(24px, 3vw, 40px); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
  text-decoration: none; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.venture-next:hover { border-color: var(--gold); background: var(--gold-soft); }
.next-plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; border: 1px dashed var(--gold); color: var(--gold); }
.next-plus .icon { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.venture-next:hover .next-plus .icon { transform: rotate(90deg); }
.next-copy { display: grid; gap: 4px; }
.next-title { font-family: var(--font-display); font-stretch: 115%; font-weight: 750; font-size: 1.3rem; }
.next-desc { color: var(--fg-muted); font-size: .97rem; }
.next-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-bright); white-space: nowrap; }

/* ---------- What We Build (bento) ---------- */
.build { background: var(--ink-0); }
.build::before { /* faint blueprint grid band */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .45;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.build .wrap { position: relative; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: clamp(14px, 1.6vw, 20px); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 28px; border-radius: var(--radius-lg); background: var(--ink-1); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .4s var(--ease);
  min-width: 0;
}
.tile:hover { border-color: var(--line-strong); background: var(--ink-2); transform: translateY(-3px); }
.tile h3 { font-family: var(--font-display); font-stretch: 112%; font-weight: 720; font-size: 1.28rem; letter-spacing: -.01em; }
.tile p { color: var(--fg-muted); font-size: .97rem; max-width: 40ch; }
.tile-icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: auto; border-radius: 8px;
  fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  background: var(--gold-soft); border: 1px solid rgba(201,164,92,.25); transition: transform .4s var(--ease);
}
.tile:hover .tile-icon { transform: translateY(-3px) rotate(-4deg); }
.tile-hero { grid-column: span 2; grid-row: span 2; justify-content: space-between; gap: 32px; background: linear-gradient(160deg, #161A20, var(--ink-1)); }
.tile-hero .tile-text { display: flex; flex-direction: column; gap: 10px; }
.tile-hero .tile-icon { margin-bottom: 8px; }
.tile-hero h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.tile-wide { grid-column: span 2; }
.tile-accent { background: linear-gradient(135deg, rgba(201,164,92,.16), rgba(201,164,92,.03) 60%), var(--ink-1); border-color: rgba(201,164,92,.3); }

/* Stack illustration in hero tile */
.tile-stack { display: grid; gap: 8px; padding-top: 6px; }
.stack-block {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 6px;
  background: var(--ink-3); border: 1px solid var(--line-strong); font-weight: 500; color: var(--fg);
  transition: transform .5s var(--ease);
}
.stack-block b { font-weight: 500; font-size: .72rem; letter-spacing: .14em; color: var(--gold); width: 26px; }
.sb-1 { margin-right: 18%; }
.sb-2 { margin-left: 9%; margin-right: 9%; }
.sb-3 { margin-left: 18%; }
.tile-hero:hover .sb-1 { transform: translateX(10px); }
.tile-hero:hover .sb-3 { transform: translateX(-10px); }
.stack-base {
  margin-top: 4px; text-align: center; padding: 12px; border-radius: 6px; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--on-gold); background: var(--gold);
}

/* ---------- Approach ---------- */
.approach { background: var(--ink-1); }
.approach-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.approach-visual { position: sticky; top: 120px; }
.approach-copy { display: grid; gap: 20px; min-width: 0; }
.loop { width: 100%; max-width: 460px; margin-inline: auto; display: block; overflow: visible; }
.loop-track { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 6; }
.loop-progress { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 100 600; transition: stroke-dasharray .7s var(--ease); }
.loop-node circle { fill: var(--ink-1); stroke: var(--line-strong); stroke-width: 1; transition: fill .4s var(--ease), stroke .4s var(--ease); }
.loop-node text { fill: var(--fg-dim); font-family: var(--font-mono); font-size: 13px; transition: fill .4s; }
.loop-node .loop-label { font-family: var(--font-body); font-size: 13px; fill: var(--fg-dim); }
.loop-node.is-done circle { stroke: var(--gold); }
.loop-node.is-active circle { fill: var(--gold); stroke: var(--gold); }
.loop-node.is-active text.loop-num { fill: var(--on-gold); font-weight: 600; }
.loop-node.is-active .loop-label { fill: var(--fg); }
.loop-center-label { fill: var(--fg-dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; }
.loop-center-step { fill: var(--fg); font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 54px; }

.principles { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; padding: 22px 8px 22px 0;
  border-bottom: 1px solid var(--line); cursor: default; position: relative; outline-offset: -2px;
}
.principle::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.principle.is-active::before { transform: scaleX(1); }
.principle-num { font-size: .85rem; color: var(--fg-dim); padding-top: 4px; transition: color .3s; }
.principle.is-active .principle-num { color: var(--gold); }
.principle h3 { font-family: var(--font-display); font-stretch: 112%; font-weight: 720; font-size: var(--fs-h3); letter-spacing: -.01em; line-height: 1.2; }
.principle p { color: var(--fg-muted); margin-top: 6px; max-width: 52ch; }

.ground-rules {
  margin-top: clamp(56px, 8vw, 96px); padding: 26px clamp(20px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-0);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: center;
}
.ground-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.rules { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.rules li { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); font-size: .95rem; }
.rules .icon { color: var(--gold); }

/* ---------- About ---------- */
.about { background: var(--ink-0); }
.about-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-copy { display: grid; gap: 22px; }
.about-text { color: var(--fg-muted); font-size: var(--fs-lede); max-width: 58ch; }
.about-text:first-of-type { color: var(--fg); }
.facts { display: grid; gap: 12px; margin-top: 10px; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--fg); }
.facts .icon { color: var(--gold); width: 20px; height: 20px; }

.founder {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start;
  padding: 24px; background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--radius);
}
.founder-photo { width: 150px; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 4px; }
.founder-body { display: grid; gap: 8px; min-width: 0; }
.founder-role { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.founder-name { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.55rem; line-height: 1.05; }
.founder-title { color: var(--fg-dim); font-size: .9rem; }
.founder-text { color: var(--fg-muted); font-size: .95rem; margin-top: 6px; }
.founder-quote { margin: 10px 0 0; padding: 14px 0 0 16px; border-left: 2px solid var(--gold); }
.founder-quote p { font-family: var(--font-display); font-stretch: 105%; font-weight: 600; font-size: 1.06rem; line-height: 1.45; color: var(--fg); }

/* ---------- Contact ---------- */
.contact { background: var(--ink-1); overflow: hidden; isolation: isolate; }
.contact-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 12% 18%, rgba(201,164,92,.13), transparent 70%),
    radial-gradient(600px 420px at 95% 100%, rgba(127,158,191,.10), transparent 70%);
}
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: 22px; min-width: 0; }
.contact-title { font-size: clamp(2.2rem, 4.3vw, 3.7rem); }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.topics li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: .96rem;
}
.topics .icon { color: var(--gold); width: 20px; height: 20px; }
.email-card { display: grid; gap: 8px; margin-top: 8px; }
.email-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); }
.email-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.email-address {
  font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  text-decoration: none; border-bottom: 1px solid rgba(201,164,92,.4); word-break: break-all;
}
.email-address:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--fg-muted); font-size: .88rem;
  transition: border-color .2s, color .2s;
}
.copy-btn:hover { border-color: var(--gold); color: var(--fg); }

.enquiry {
  display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px);
  background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9);
}
.form-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 1.35rem; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--ink-0); border: 1px solid var(--line-strong); color: var(--fg); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field [aria-invalid="true"] { border-color: #E07A6B; }
.form-status { font-size: .92rem; color: var(--gold-bright); min-height: 1.4em; }
.form-status.is-error { color: #F0968A; }
.form-note { font-size: .82rem; color: var(--fg-dim); margin-top: -8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink-0); padding-block: clamp(72px, 9vw, 110px) 32px; overflow: hidden; }
.site-footer::before { /* battlement edge from contact band */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--ink-1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='18'%3E%3Cpath d='M0 0h56v10H36v8H20v-8H0z'/%3E%3C/svg%3E") repeat-x left top / 56px 18px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='18'%3E%3Cpath d='M0 0h56v10H36v8H20v-8H0z'/%3E%3C/svg%3E") repeat-x left top / 56px 18px;
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr); gap: 40px; }
.footer-brand { display: grid; gap: 18px; justify-items: start; }
.footer-tagline { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.footer-head { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; text-decoration: none; color: var(--fg-muted); transition: color .2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-wordmark { margin-top: clamp(56px, 8vw, 96px); user-select: none; }
.footer-wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.footer-wordmark text {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 120px; text-transform: uppercase;
  fill: none; stroke: rgba(201,164,92,.38); stroke-width: 1; vector-effect: non-scaling-stroke;
}
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--line); font-size: .86rem; color: var(--fg-dim);
}

/* ---------- Privacy page ---------- */
.legal { padding-block: clamp(56px, 8vw, 100px); }
.legal-inner { max-width: 760px; display: grid; gap: 18px; }
.legal h1 { font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
.legal h2 { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 1.35rem; margin-top: 20px; }
.legal p, .legal li { color: var(--fg-muted); }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.legal .notice { padding: 16px 18px; border: 1px dashed var(--gold); border-radius: var(--radius); color: var(--fg); background: var(--gold-soft); }
.legal a { color: var(--gold-bright); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .registry { max-width: 640px; }
  .venture-rx, .venture-cv { grid-column: 1 / -1; }
  .venture-cv { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto; }
  .venture-cv .venture-visual { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .approach-inner { grid-template-columns: minmax(0, 1fr); }
  .approach-visual { position: relative; top: 0; max-width: 380px; width: 100%; margin-inline: auto; }
  .about-inner, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .founder { max-width: 640px; }
  .section-head-split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-hero { grid-column: 1 / -1; grid-row: auto; }
  .venture-wide { grid-template-columns: minmax(0, 1fr); }
  .phones { padding-bottom: 72px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --fs-body: 1rem; }
  .header-inner { min-height: 68px; }
  .hero { margin-top: -68px; padding-top: calc(68px + 40px); }
  .hero-line:nth-child(3) { -webkit-text-stroke-width: 1.2px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .registry-row { padding: 16px; gap: 12px; grid-template-columns: 40px minmax(0, 1fr) auto; }
  .registry-logo { width: 40px; height: 40px; }
  .registry-head .registry-coords { display: none; }
  .venture-cv { grid-template-columns: minmax(0, 1fr); }
  .venture-cv .venture-visual { aspect-ratio: 16 / 11; border-right: 0; border-bottom: 1px solid var(--line); }
  .venture-rx .venture-visual { padding: 0 18px; }
  .venture-next { grid-template-columns: auto minmax(0, 1fr); }
  .next-cta { grid-column: 1 / -1; }
  .bento { grid-auto-rows: auto; gap: 12px; }
  .tile { padding: 22px 20px; }
  .tile h3 { font-size: 1.12rem; }
  .tile p { font-size: .92rem; }
  .tile-icon { margin-bottom: 18px; }
  .registry-name small { white-space: normal; }
  .ground-rules { grid-template-columns: minmax(0, 1fr); }
  .rules { flex-direction: column; gap: 12px; }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { width: 120px; }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .principle { grid-template-columns: 40px minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-wide { grid-column: auto; }
}

@media (max-width: 400px) {
  .brand-word { font-size: .9rem; }
  .registry-row .status { padding: 4px 8px; font-size: .64rem; }
  .registry-name { font-size: 1rem; }
  .phone { width: 46%; }
}

/* Hover-capable devices only for lift effects */
@media (hover: none) {
  .venture:hover, .tile:hover { transform: none; }
}

/* Reduced motion: stop ambient and entrance animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .registry-scan { display: none; }
}
