/* Polar Bear Ventures: single-page site. Mobile first, no framework. */

/* ---------- Fonts (self-hosted, SIL OFL; no third-party requests) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cg-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cg-500i.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --bg: #06111e;
  --bg-2: #081a2c;
  --surface: #0b2037;
  --line: rgba(150, 205, 235, .16);
  --line-strong: rgba(150, 205, 235, .32);

  --text: #e9f2f9;
  --muted: #a9bfd0;           /* >= 7:1 on --bg */
  --ice: #bfe8f6;
  --cyan: #5fdcf3;            /* glacial accent */
  --cyan-deep: #2db4d4;
  --navy-ink: #04101c;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 3rem);
  --max: 76rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--cyan); color: var(--navy-ink); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .7rem 1.1rem; background: var(--cyan); color: var(--navy-ink); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; color: #f4f9fc; }
h1 { font-size: clamp(2.7rem, 8.4vw, 6rem); line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.06; }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--ice); }

.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font: 600 .75rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .7; }
.eyebrow__no { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; letter-spacing: 0; text-transform: none; margin-right: -.3rem; }
.lead { font-size: clamp(1.1rem, 2.1vw, 1.35rem); line-height: 1.6; color: var(--muted); max-width: 34rem; }
p { color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .35s, backdrop-filter .35s, box-shadow .35s; }
.site-header.is-scrolled, .menu-open .site-header { background: rgba(6, 17, 30, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand__bear { width: 3.1rem; height: auto; }
.brand__word { height: 1.9rem; width: auto; }

.nav-toggle { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: 0 .1rem 0 .6rem; background: none; border: 0; color: var(--text); font: 600 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 1.5rem; height: 1px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.nav-toggle__bars::before { content: ""; position: absolute; top: -6px; }
.nav-toggle__bars { margin-top: 6px; }
.menu-open .nav-toggle__bars { transform: translateY(-3px) rotate(45deg); }
.menu-open .nav-toggle__bars::before { transform: translateY(6px) rotate(-90deg); }

.site-nav { position: absolute; inset: var(--header-h) 0 auto; background: rgba(6, 17, 30, .97); border-bottom: 1px solid var(--line); padding: .5rem var(--pad) 1.75rem; display: none; }
.menu-open .site-nav { display: block; }
.site-nav a { display: block; padding: .95rem 0; text-decoration: none; font: 500 .8125rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--line); }
.site-nav .nav-cta { margin-top: 1.25rem; border: 1px solid var(--cyan); color: var(--cyan); text-align: center; padding: 1rem; }

@media (min-width: 60em) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 2.25rem; }
  .site-nav a { position: relative; padding: .5rem 0; border: 0; color: var(--muted); transition: color .25s; }
  .site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
  .site-nav a:not(.nav-cta):hover, .site-nav a:not(.nav-cta):focus-visible { color: #fff; }
  .site-nav a:not(.nav-cta):hover::after, .site-nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
  .site-nav .nav-cta { margin: 0 0 0 .5rem; padding: .7rem 1.25rem; color: var(--cyan); transition: background .25s, color .25s; }
  .site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { background: var(--cyan); color: var(--navy-ink); }
  .brand__bear { width: 3.4rem; }
  .brand__word { height: 2.1rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .95rem 1.75rem; text-decoration: none; font: 600 .8125rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn--primary { background: var(--cyan); color: var(--navy-ink); }
.btn--primary:hover, .btn--primary:focus-visible { background: #8ae9fa; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 2.5rem) 0 4.5rem; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero__bg { position: absolute; inset: -10% 0 -10%; z-index: -3; will-change: transform; }
.hero__bg canvas, .contact__bg canvas { width: 100%; height: 100%; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(120% 90% at 12% 45%, rgba(6, 17, 30, .90) 0%, rgba(6, 17, 30, .62) 42%, rgba(6, 17, 30, .10) 100%),
  linear-gradient(to bottom, rgba(6, 17, 30, .55) 0, rgba(6, 17, 30, 0) 22%, rgba(6, 17, 30, 0) 70%, var(--bg) 100%); }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero__copy { display: grid; gap: 1.6rem; max-width: 44rem; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .6rem; width: 100%; }
.hero__actions .btn { flex: 1 1 100%; }
@media (min-width: 40em) { .hero__actions { width: auto; } .hero__actions .btn { flex: 0 0 auto; } }
.hero__art { position: relative; margin-inline: calc(var(--pad) * -.4); will-change: transform; }
.hero__bear { width: 100%; height: auto; animation: drift 11s ease-in-out infinite; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.hero__glow { position: absolute; left: 8%; right: 8%; bottom: -3%; height: 20%; background: radial-gradient(closest-side, rgba(95, 220, 243, .30), rgba(95, 220, 243, 0)); filter: blur(10px); }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -9px, 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; width: 2.75rem; height: 3.5rem; transform: translateX(-50%); display: none; justify-content: center; }
.scroll-cue span { display: block; width: 1px; height: 100%; background: linear-gradient(to bottom, rgba(95, 220, 243, 0), var(--cyan)); transform-origin: top; animation: cue 2.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 35% { opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (min-width: 60em) {
  .hero { padding-bottom: 6rem; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__art { position: absolute; right: 1.5vw; bottom: 10vh; width: min(52vw, 58rem); margin: 0; }
  .scroll-cue { display: flex; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(5.5rem, 12vw, 10rem); }
.section--tint { background: linear-gradient(180deg, var(--bg-2), #07182a 60%, var(--bg-2)); }
.section--tint::before, .section--tint::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(1.5rem, 4vw, 4rem); background: var(--bg); }
.section--tint::before { top: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); }
.section--tint::after { bottom: 0; clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%); }
.section__head { display: grid; gap: 1.4rem; max-width: 44rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__head--center { margin-inline: auto; justify-items: center; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.section__intro { font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 36rem; }

/* What we back: cards */
.cards { display: grid; gap: 1rem; }
.card { position: relative; overflow: hidden; padding: 2rem 1.75rem 2.25rem; display: grid; gap: 1rem; align-content: start; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(18, 56, 90, .38), rgba(8, 26, 44, .55)); transition: transform .5s var(--ease), border-color .35s, box-shadow .5s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(150, 220, 245, .09) 50%, transparent 65%); transform: translateX(-110%); transition: transform .9s var(--ease); pointer-events: none; }
.card:hover { transform: translateY(-6px); border-color: rgba(95, 220, 243, .55); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(95, 220, 243, .08); }
.card:hover::after { transform: translateX(110%); }
.card__gem { width: 3rem; height: 3rem; margin-bottom: .6rem; transition: transform .6s var(--ease); }
.card:hover .card__gem { transform: rotate(-6deg) scale(1.08); }
.f1 { fill: #bfe8f6; } .f2 { fill: #6fc6e3; } .f3 { fill: #2f8fc0; } .f4 { fill: #17608f; }

@media (min-width: 40em) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70em) { .cards { grid-template-columns: repeat(4, 1fr); } .card { padding: 2.25rem 1.75rem 2.5rem; } }

/* How we invest */
.approach { display: grid; gap: 3.5rem; }
.glance { display: grid; margin-top: 1.25rem; border-top: 1px solid var(--line); }
.glance > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.glance dt { font: 600 .72rem/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.glance dd { color: var(--text); }

.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 1.35rem; top: .6rem; bottom: .6rem; width: 1px; background: linear-gradient(to bottom, var(--cyan), rgba(95, 220, 243, .08)); }
.step { position: relative; padding: 0 0 2.75rem 4.5rem; }
.step:last-child { padding-bottom: 0; }
.step__no { position: absolute; left: 0; top: -.2rem; width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border: 1px solid var(--cyan); border-radius: 50%; background: var(--bg-2); font: italic 500 1.2rem/1 var(--serif); color: var(--ice); transition: background .3s, color .3s; }
.step:hover .step__no { background: var(--cyan); color: var(--navy-ink); }
.step h3 { margin-bottom: .55rem; }
.step p { max-width: 32rem; }

@media (min-width: 60em) {
  .approach { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6rem; align-items: start; }
  .approach__head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}

/* For founders */
.expect { display: grid; gap: 0; border-top: 1px solid var(--line); }
.expect li { position: relative; padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--line); display: grid; gap: .6rem; transition: background .4s; }
.expect li::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--cyan); transition: width .6s var(--ease); }
.expect li:hover::before { width: 100%; }
@media (min-width: 48em) {
  .expect { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; }
}
@media (min-width: 70em) {
  .expect { grid-template-columns: repeat(3, 1fr); column-gap: 4.5rem; }
}

/* About */
.about__grid { display: grid; gap: 3.5rem; align-items: center; }
.about__text { display: grid; gap: 1.4rem; max-width: 36rem; }
.about__text p { font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.chips li { padding: .55rem 1rem; border: 1px solid var(--line-strong); font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ice); }
.plate { position: relative; padding: clamp(1.75rem, 5vw, 3.25rem); border: 1px solid var(--line); background:
  radial-gradient(90% 70% at 50% 25%, rgba(45, 180, 212, .20), rgba(45, 180, 212, 0) 70%),
  linear-gradient(160deg, #0b2742, #071a2d); }
.plate::before, .plate::after { content: ""; position: absolute; width: 1.75rem; height: 1.75rem; border: 1px solid var(--cyan); }
.plate::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.plate::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.plate img { width: 100%; height: auto; }
.plate--photo { padding: 0; margin: 0; max-width: 26rem; justify-self: center; background: #071a2d; }
.plate--photo::before, .plate--photo::after { z-index: 1; }
.plate--photo::before { top: -.6rem; left: -.6rem; }
.plate--photo::after { bottom: -.6rem; right: -.6rem; }
.plate--photo img { display: block; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.92) contrast(1.02); }
@media (min-width: 60em) { .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6rem; } }

/* Contact */
.contact { overflow: hidden; isolation: isolate; text-align: center; padding-block: clamp(6.5rem, 14vw, 12rem); }
.contact__bg { position: absolute; inset: 0; z-index: -3; }
.contact__shade { position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 70% at 50% 50%, rgba(6, 17, 30, .86), rgba(6, 17, 30, .55) 60%, rgba(6, 17, 30, .82)), linear-gradient(to bottom, var(--bg) 0, rgba(6, 17, 30, 0) 18%, rgba(6, 17, 30, 0) 82%, var(--bg) 100%); }
.contact__inner { display: grid; gap: 1.6rem; justify-items: center; }
.contact .eyebrow::before { display: none; }
.contact .section__intro { margin-inline: auto; }
.mail { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.2rem; max-width: 100%; padding: .4rem 0 .9rem; text-decoration: none; color: #fff; font: 500 clamp(1.35rem, 5.2vw, 3.1rem)/1.15 var(--serif); letter-spacing: -.005em; position: relative; overflow-wrap: anywhere; }
.mail__addr { background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: .5rem; border-bottom: 1px solid var(--line-strong); }
.mail:hover .mail__addr, .mail:focus-visible .mail__addr { background-size: 100% 1px; }
.mail__arrow { flex: none; color: var(--cyan); transition: transform .4s var(--ease); }
.mail:hover .mail__arrow, .mail:focus-visible .mail__arrow { transform: translateX(8px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #050e19; padding: 4rem 0 3.5rem; }
.footer__grid { display: grid; gap: 2.5rem; font-size: .9375rem; line-height: 1.65; }
.footer__brand img { height: 2.6rem; width: auto; }
.footer__legal p, .footer__notice p { color: var(--muted); }
.footer__legal strong { color: var(--text); font-weight: 600; }
.footer__notice { display: grid; gap: .8rem; max-width: 34rem; }
.footer__copy { font-size: .85rem; opacity: .9; }
@media (min-width: 60em) {
  .footer__grid { grid-template-columns: 1.1fr 1fr 1.5fr; gap: 4rem; align-items: start; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Draft copy marks (remove data-draft from <body> to switch off) ---------- */
body[data-draft] [data-ph] { outline: 1px dashed rgba(95, 220, 243, .38); outline-offset: 4px; }
body[data-draft]::after { content: "DRAFT COPY: placeholder wording"; position: fixed; left: .75rem; bottom: .75rem; z-index: 300; padding: .5rem .8rem; background: var(--cyan); color: var(--navy-ink); font: 600 .68rem/1 var(--sans); letter-spacing: .14em; pointer-events: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__bg, .hero__art { transform: none !important; }
}

@media print {
  .site-header, .hero__bg, .hero__shade, .contact__bg, .contact__shade, .scroll-cue { display: none; }
  body { background: #fff; color: #000; } p, h1, h2, h3 { color: #000; }
}

/* Contact: name and region under the email address */
.contact__who { margin-top: .6rem; line-height: 1.6; }
.contact__who strong { color: var(--text); font-weight: 600; }

/* Hero headline: one sentence per line */
.hero h1 em { display: block; }
