/* GrebStar Ventures — trading-floor layout: nav, hero with the star, ticker, an exchange-style board of ventures, track record, studios, contact.
   Single dark identity on purpose (the brand is navy); the theme doesn't flip. */
:root {
  color-scheme: dark;
  --ink: #0a1520;          /* page */
  --ink-2: #0e1c2a;        /* raised */
  --rule: #1d2f42;         /* hairlines */
  --rule-2: #2a4058;
  --paper: #eef1f4;        /* text */
  --dim: #8fa0b3;          /* secondary text */
  --faint: #5c6f85;
  --gold: #c99a43;
  --gold-hi: #e2b45c;
  --orange: #e67f2c;
  --red: #c13140;
  --teal: #3b9f85;
  --up: #3fcf8e;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--f-display); font-stretch: 100%; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* film grain so the navy doesn't look like a flat fill */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--f-mono); font-size: .9em; color: var(--gold-hi); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: max(14px, env(safe-area-inset-top, 0px)) var(--gut-r) 14px var(--gut);
  background: rgba(10, 21, 32, .82); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; font-size: 19px; }
.mark svg { width: 26px; height: 26px; }
.mark span { color: var(--gold); } .mark b { color: var(--paper); font-weight: 800; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; font-size: 14px; color: var(--dim); font-weight: 500; }
.nav nav a:hover { color: var(--paper); }
.nav-cta { text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 14px; border: 1px solid var(--gold); color: var(--gold-hi); border-radius: 999px; }
.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 72px var(--gut-r) 56px var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(63, 207, 142, .16); }
h1 {
  margin: 0; font-weight: 850; font-stretch: 122%; line-height: .92; letter-spacing: -.035em;
  font-size: clamp(46px, 7.6vw, 108px); text-wrap: balance;
}
h1 em { font-style: normal; color: var(--gold); display: block; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--dim); max-width: 34em; margin: 26px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 999px; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-line { border: 1px solid var(--rule-2); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); }

.hero-star { margin: 0; display: grid; justify-items: center; gap: 12px; }
#bigstar { width: min(100%, 460px); height: auto; overflow: visible; }
.seg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .55s cubic-bezier(.6, .1, .3, 1) forwards; transition: stroke-width .25s ease, opacity .25s ease; }
.seg:nth-child(1) { animation-delay: .15s; } .seg:nth-child(2) { animation-delay: .62s; } .seg:nth-child(3) { animation-delay: 1.09s; }
.seg:nth-child(4) { animation-delay: 1.56s; } .seg:nth-child(5) { animation-delay: 2.03s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pt { opacity: 0; animation: pop .4s ease forwards; animation-delay: 2.5s; transition: transform .25s ease; }
.pt circle:first-child { fill: var(--ink); stroke: var(--rule-2); stroke-width: 1.5; transition: stroke .2s ease, fill .2s ease; }
.pt text { font-family: var(--f-mono); font-weight: 600; font-size: 12px; text-anchor: middle; fill: var(--paper); }
.pt path { fill: var(--paper); }
.pt .ball { fill: none; stroke: var(--paper); stroke-width: 1.6; }
.pt .ballline, .pt .slash { fill: none; stroke: var(--paper); stroke-width: 1.4; }
.pt .slash { stroke: var(--red); stroke-width: 2.2; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }
/* a hovered venture lights its point and dims the rest */
#bigstar.focus .seg { opacity: .25; }
#bigstar.focus .pt { opacity: .35; }
#bigstar.focus .on.seg { opacity: 1; stroke-width: 10; }
#bigstar.focus .pt.on { opacity: 1; }
.pt.on circle:first-child { stroke: var(--gold); fill: #1a2433; }
.star-key { font-family: var(--f-mono); font-size: 12px; color: var(--faint); text-align: center; min-height: 2.6em; max-width: 30em; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--rule); background: var(--ink-2); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker-list li { white-space: nowrap; padding: 13px 28px; font-family: var(--f-mono); font-size: 13px; color: var(--dim); border-right: 1px solid var(--rule); }
.ticker-list b { color: var(--paper); font-weight: 600; margin-right: 10px; }
.ticker-list i { font-style: normal; margin-left: 10px; }
.up { color: var(--up); } .flat { color: var(--gold); font-size: 9px; vertical-align: 2px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.board, section.record, section.work, section.contact { max-width: var(--max); margin: 0 auto; padding: 104px var(--gut-r) 0 var(--gut); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46em; }
.label { margin: 0; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
h2 { margin: 0; font-weight: 820; font-stretch: 116%; letter-spacing: -.03em; line-height: 1; font-size: clamp(34px, 5vw, 64px); text-wrap: balance; }
.sec-sub { margin: 0; color: var(--dim); font-size: 18px; max-width: 38em; }

/* ---------- the board (exchange table) ---------- */
.exchange { border-top: 2px solid var(--paper); }
.ex-row {
  display: grid; grid-template-columns: 92px minmax(0, 1.1fr) minmax(0, 1.6fr) 150px 40px; gap: 20px; align-items: center;
  padding: 22px 6px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; position: relative;
  transition: background .18s ease, padding .18s ease;
}
.ex-row:not(.ex-head):hover, .ex-row:not(.ex-head):focus-visible { background: linear-gradient(90deg, rgba(201, 154, 67, .09), transparent 70%); padding-left: 14px; outline: none; }
.ex-row:not(.ex-head)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transition: transform .18s ease; }
.ex-row:not(.ex-head):hover::before, .ex-row:not(.ex-head):focus-visible::before { transform: scaleY(1); }
.ex-head { padding-block: 10px; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.sym { font-family: var(--f-mono); font-weight: 600; font-size: 15px; color: var(--gold-hi); letter-spacing: .02em; }
.name { font-weight: 750; font-stretch: 108%; font-size: 21px; letter-spacing: -.01em; line-height: 1.2; display: grid; gap: 4px; }
.name small { font-family: var(--f-mono); font-weight: 400; font-stretch: 100%; font-size: 12px; color: var(--faint); letter-spacing: 0; }
.what { color: var(--dim); font-size: 15.5px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--up); } .status.live::before { animation: blink 1.6s ease-in-out infinite; }
.status.book { color: var(--gold-hi); } .status.prod { color: #7fb7ff; } .status.dev { color: var(--dim); }
@keyframes blink { 50% { opacity: .25; } }
.go { font-size: 20px; color: var(--faint); text-align: right; transition: color .15s ease, transform .15s ease; }
.ex-row:hover .go { color: var(--gold-hi); transform: translate(2px, -2px); }

/* ---------- track record ---------- */
.stats { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; border-top: 2px solid var(--paper); }
.stat { padding: 28px 24px 28px 0; display: grid; align-content: start; gap: 10px; border-right: 1px solid var(--rule); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.num { font-weight: 860; font-stretch: 125%; letter-spacing: -.04em; line-height: .9; font-size: clamp(40px, 4.6vw, 64px); font-variant-numeric: tabular-nums; }
.stat.big .num { color: var(--gold); font-size: clamp(48px, 6.4vw, 92px); }
.cap { color: var(--paper); font-size: 16px; max-width: 22em; }
.cap em { font-style: italic; }
.src { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.guests { color: var(--dim); margin: 28px 0 0; max-width: 46em; }

/* ---------- studios ---------- */
.studios { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--paper); }
.studio { padding: 32px 36px 36px 0; display: grid; align-content: start; gap: 14px; }
.studio + .studio { padding: 32px 0 36px 36px; border-left: 1px solid var(--rule); }
.studio .sym { margin: 0; }
.studio h3 { margin: 0; font-weight: 800; font-stretch: 114%; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; }
.studio > p { margin: 0; color: var(--dim); max-width: 32em; }
.studio ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.studio li { padding: 14px 0; border-top: 1px solid var(--rule); color: var(--dim); font-size: 15.5px; display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.studio li b { color: var(--paper); font-weight: 700; }

/* ---------- contact ---------- */
section.contact { padding-bottom: 120px; display: grid; gap: 20px; }
.contact h2 { font-size: clamp(38px, 6vw, 84px); max-width: 12em; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mail-link { font-weight: 850; font-stretch: 118%; letter-spacing: -.03em; font-size: clamp(28px, 5.4vw, 72px); color: var(--gold); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat; transition: background-size .3s ease; overflow-wrap: anywhere; }
.mail-link:hover { background-size: 100% 3px; }
.copy { font: 600 13px var(--f-mono); color: var(--paper); background: transparent; border: 1px solid var(--rule-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.copy:hover { border-color: var(--paper); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 28px var(--gut-r) max(28px, env(safe-area-inset-bottom, 0px)) var(--gut); max-width: var(--max); margin: 0 auto; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.foot p { margin: 0; color: var(--faint); font-size: 14px; }
.foot .mark { font-size: 16px; }
.fine { margin-top: 14px !important; font-family: var(--f-mono); font-size: 11.5px !important; }

/* ---------- reveal on scroll (content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-star { order: -1; } #bigstar { width: min(78%, 340px); }
  .ex-row { grid-template-columns: 70px minmax(0, 1fr) auto 24px; }
  .hide-sm { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--rule); padding-left: 0 !important; padding-right: 16px; }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
  .studios { grid-template-columns: 1fr; }
  .studio, .studio + .studio { padding: 28px 0; border-left: 0; }
  .studio + .studio { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .nav nav { display: none; } .nav-cta { margin-left: auto; }
  section.board, section.record, section.work, section.contact { padding-top: 76px; }
  .ex-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding-block: 18px; }
  .go { display: none; }
  .name { font-size: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2n) { border-right: 0; padding-left: 0 !important; }
  .studio li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seg { animation: none; stroke-dashoffset: 0; } .pt { animation: none; opacity: 1; }
  .ticker-track { animation: none; } .status.live::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
