/* Starline Ventures — dark starfield identity from the company banner. Manrope + JetBrains Mono. */
:root {
  --bg: #04080f;
  --bg-2: #081020;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef2f7;
  --text-2: #c3cbd8;
  --muted: #8f9bb0;
  --accent: #3ddbc6;
  --accent-ink: #052a25;
  --accent-soft: rgba(61, 219, 198, .14);
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 20px; --r-s: 12px; --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 20px; top: -80px; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-s); z-index: 60; font-weight: 700; }
.skip-link:focus { top: 14px; }

.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.star { fill: var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #6ae8d7; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); font-size: 15px; transition: gap .2s var(--ease); }
.link:hover { gap: 12px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .25s var(--ease), border-color .25s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(4, 8, 15, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -.01em; }
.brand .star { width: 20px; height: 20px; flex-shrink: 0; }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; color: var(--text-2); }
.brand b + * , .brand span b { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav-links a:not(.btn) { position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line-2); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 48px) 0 40px; overflow: hidden; isolation: isolate; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-glow { position: absolute; left: 46%; top: 36%; width: min(1500px, 150vw); aspect-ratio: 1.7; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(61, 219, 198, .11), rgba(61, 219, 198, .035) 40%, transparent 70%); z-index: -2; pointer-events: none; }
.orbit { position: absolute; left: 50%; top: 50%; width: max(1200px, 118vw); height: auto; transform: translate(-50%, -46%); z-index: -1; pointer-events: none; }
.orbit ellipse { fill: none; stroke: rgba(61, 219, 198, .28); stroke-width: 1.2; }
.orbit-star circle { fill: #eafffb; opacity: .8; filter: drop-shadow(0 0 5px rgba(61, 219, 198, .9)); }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-size: clamp(44px, 7.4vw, 112px); font-weight: 800; line-height: .98; letter-spacing: -.04em; margin: 22px 0 28px; max-width: none; }
.hero h1 span { color: var(--muted); font-weight: 700; }
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.logo-bar { margin-top: clamp(56px, 8vh, 96px); border-top: 1px solid var(--line); padding-top: 26px; display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 24px; width: 100%; }
.logo-bar .eyebrow { color: var(--muted); }
.logo-bar ul { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 16px; }
.logo-bar li { display: flex; align-items: center; justify-content: center; min-height: 88px; }
.logo-bar a, .logo-bar span { display: inline-flex; transition: transform .2s var(--ease); }
.logo-bar a:hover { transform: translateY(-2px); }
.logo-bar img { width: auto; filter: brightness(0) invert(1); opacity: .72; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.logo-bar a:hover img { filter: none; opacity: 1; }
.l-cairnrock { height: 68px; }
.l-oddify { height: 60px; }
.l-norma { height: 30px; }
.l-relay { height: 30px; }

/* Sections */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.hero + .section { padding-top: clamp(64px, 8vw, 104px); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { grid-column: 1 / -1; }
h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-top: 18px; }
.section-lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 440px; justify-self: start; }
h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.pillar:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }
.pillar h3 { font-size: 32px; letter-spacing: -.03em; margin-top: 18px; }
.pillar p { color: var(--text-2); font-size: 16px; }

.quote { margin: 0; max-width: 940px; }
.quote blockquote { display: inline; margin: 0; }
.quote blockquote p { display: inline; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.5; letter-spacing: -.015em; color: var(--text); }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { display: inline; margin-left: .45em; font-size: 15px; color: var(--muted); white-space: nowrap; }
.quote figcaption::before { content: "\2014\00A0"; color: var(--accent); }
.quote figcaption b { color: var(--text); font-weight: 700; }
.thesis-close { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 780px; border-left: 2px solid var(--accent); padding-left: 22px; margin-top: clamp(48px, 6vw, 80px); }

/* Companies */
.company-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.company { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 32px; display: flex; flex-direction: column; gap: 16px; transition: border-color .25s var(--ease), background .25s var(--ease); }
.company:hover { border-color: var(--line-2); background: var(--surface-2); }
.company-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.company-logo { width: auto; }
.company-logo.l-oddify { height: 72px; }
.company-logo.l-cairnrock { height: 82px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 12px; white-space: nowrap; }
.company h3 { font-size: 28px; margin-top: 8px; }
.company > p { color: var(--text-2); font-size: 16px; max-width: 720px; }
.company > .link { align-self: flex-start; padding-top: 2px; }
.products { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
.products > li > a, .products > li > div { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; background: rgba(0, 0, 0, .18); transition: border-color .2s var(--ease); }
.products > li > a:hover { border-color: var(--accent); }
.products img { grid-row: 1 / span 2; justify-self: center; width: auto; }
.products .l-norma { height: 28px; }
.products .l-relay { height: 30px; }
.products span { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.products b { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 6px; font-weight: 500; }
.products i { font-style: normal; }

/* Talent */
.talent { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.talent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.talent-intro .section-lead { margin: 22px 0 30px; justify-self: start; }
.support { border-top: 1px solid var(--line); }
.support li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.support .num { padding-top: 6px; }
.support h3 { font-size: 22px; margin-bottom: 8px; }
.support p { color: var(--text-2); font-size: 16px; max-width: 420px; }

/* Founders */
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.founder { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .25s var(--ease), background .25s var(--ease); }
.founder:hover { border-color: var(--line-2); background: var(--surface-2); }
.founder-body { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.founder-body h3 { font-size: 26px; }
.role { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.founder-body p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 6px 0 4px; }
.founder-body .link { margin-top: auto; }

/* Contact */

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.footer .tagline { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer nav { display: flex; gap: 22px; font-size: 14px; color: var(--text-2); }
.footer nav a:hover { color: var(--accent); }
.footer .copy { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .founder-grid { grid-template-columns: 1fr; }
}

/* Tablet */
@media (max-width: 1000px) {
  .logo-bar { grid-template-columns: 1fr; gap: 14px; }
  .logo-bar ul { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
  .pillar h3 { margin-top: 0; flex-basis: 140px; }
  .pillar p { flex: 1; min-width: 260px; }
  .talent-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-lead { justify-self: start; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 16px 0 0; height: 48px; }
  .nav-toggle { display: block; }
  .nav.menu-open { background: rgba(4, 8, 15, .96); }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 32px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 56px); max-width: none; margin: 18px 0 20px; }
  .hero h1 br { display: none; }
  .hero h1 span { display: block; }
  .lead { font-size: 16px; }
  .hero-cta { margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .orbit { width: 1100px; top: 44%; }
  .logo-bar { margin-top: 48px; }
  .logo-bar ul { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .logo-bar li { min-height: 78px; }
  .l-cairnrock { height: 66px; } .l-oddify { height: 58px; } .l-norma { height: 28px; } .l-relay { height: 30px; }
  h2 { font-size: clamp(32px, 9.5vw, 44px); }
  h2 br { display: none; }
  .section-lead { font-size: 16px; }
  .pillar { padding: 22px 20px; flex-direction: column; gap: 10px; }
  .pillar h3 { font-size: 26px; flex-basis: auto; }
  .thesis-close { padding-left: 16px; font-size: 16px; }
  .quote figcaption { white-space: normal; }
  .company { padding: 22px 20px 24px; }
  .company-top { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; }
  .company-logo.l-oddify { height: 56px; } .company-logo.l-cairnrock { height: 68px; }
  .company h3 { font-size: 23px; }
  .products > li > a, .products > li > div { grid-template-columns: 78px 1fr; column-gap: 14px; padding: 12px; }
  .products .l-norma { height: 24px; } .products .l-relay { height: 26px; }
  .support li { grid-template-columns: 34px 1fr; gap: 12px; padding: 20px 0; }
  .founder-body { padding: 22px 20px 24px; }
        .footer-inner { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
