/* Build for Good: layout and rhythm inspired by editorial climate-startup sites;
   our own palette (navy, sun), open fonts and copy. */
:root {
  --cream: #fffdf5; --sand: #efece3; --line: rgba(22,33,58,.14); --line-soft: rgba(22,33,58,.08);
  --ink: #16213a; --ink-2: #4f5668; --ink-3: #7b8191;
  --navy: #121b30; --navy-2: #1b2744;
  --sun: #f0b260; --sun-2: #f6c987;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 14px; } p:last-child { margin-bottom: 0; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 10px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.tag { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 22px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--sun); color: #16213a; font: 600 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: background .2s ease, transform .1s ease; }
.btn:hover { background: var(--sun-2); } .btn:active { transform: scale(.98); }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* Header */
.head { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.head .wrap { display: flex; align-items: center; gap: 24px; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 600 18px/1 var(--display); letter-spacing: -.02em; }
.logo svg { width: 26px; height: 26px; }
.head nav { flex: 1; display: flex; justify-content: center; gap: 28px; }
.head nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 14px; font-weight: 500; }
.head nav a:hover { color: #fff; }
.head .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero with video */
.hero { position: relative; min-height: 100svh; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  background: linear-gradient(172deg, #0e1730 0%, #1b2950 34%, #3c3a68 58%, #8a5a5c 80%, #d39058 100%); }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero video { opacity: 1; } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,26,.6) 0%, rgba(8,12,26,.32) 40%, rgba(8,12,26,.62) 100%); }
.hero .inner { position: relative; z-index: 2; }
.hero h1 { text-align: center; font-size: clamp(48px, 8.6vw, 128px); line-height: .98; max-width: 11ch; margin: 0 auto; padding-top: 22vh; text-shadow: 0 4px 40px rgba(0,0,0,.25); }
.hero .row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 120px; gap: 40px; align-items: end; margin-top: 12vh; padding: 0 0 34px; border-top: 1px solid rgba(255,255,255,.18); }
.hero .row > div { padding-top: 28px; max-width: 860px; }
.hero .row .mono { color: rgba(255,255,255,.7); }
.hero .row .mono:first-child { align-self: start; padding-top: 14px; }
.hero .row .mono.right { text-align: right; }
.hero .belief { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgba(255,255,255,.9); margin: 0 0 22px; }
.hero .belief em { color: var(--sun-2); }

/* Section shell */
.sec { padding: 120px 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1; }
.sec-head p { color: var(--ink-2); max-width: 30em; justify-self: end; }

/* Tabs panel: how we choose problems */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 640px; background: var(--navy); color: #fff; }
.split .left { padding: 96px 56px 56px max(32px, calc((100vw - 1240px) / 2 + 32px)); display: flex; flex-direction: column; }
.split h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; }
.split .lede { color: rgba(255,255,255,.7); margin: 22px 0 0; max-width: 26em; }
.tabs { margin-top: auto; padding-top: 48px; }
.tab { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 0; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font: 500 clamp(19px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: -.02em; text-align: left; cursor: pointer; transition: color .2s ease; }
.tab .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 11px/1 var(--mono); border: 1px solid rgba(255,255,255,.25); }
.tab .arrow { margin-left: auto; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.tab:hover { color: rgba(255,255,255,.8); }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.tab[aria-selected="true"] .n { background: var(--sun); color: #16213a; border-color: var(--sun); }
.tab[aria-selected="true"] .arrow { opacity: 1; transform: translateX(4px); }
.split .close { margin-top: 26px; color: rgba(255,255,255,.6); font-size: 15px; max-width: 30em; }
.split .right { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 56px;
  background: radial-gradient(ellipse 70% 60% at 70% 100%, rgba(240,178,96,.65), transparent 70%), radial-gradient(ellipse 60% 50% at 20% 10%, rgba(96,120,196,.4), transparent 70%), linear-gradient(170deg, #1b2950 0%, #3c3a68 50%, #8a5a5c 80%, #d39058 100%); }
.split .right::before { content: ''; position: absolute; left: 0; right: 0; top: -560px; bottom: 0; background: url(/img/doodles.svg) 0 0 / 560px 560px repeat; animation: drift 90s linear infinite; pointer-events: none; }
@keyframes drift { to { transform: translateY(560px); } }
@media (prefers-reduced-motion: reduce) { .split .right::before { animation: none; } }
.panel { position: relative; z-index: 1; width: min(440px, 100%); padding: 32px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.panel[hidden] { display: none; }
.panel .mono { color: rgba(255,255,255,.65); display: block; margin-bottom: 16px; }
.panel h3 { font-size: 30px; line-height: 1.1; margin-bottom: 14px; }
.panel p { color: rgba(255,255,255,.85); }

/* Principles cards */
.sand { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--cream); border-radius: 16px; padding: 28px 24px 30px; display: flex; flex-direction: column; min-height: 320px; border: 1px solid var(--line-soft); }
.card .num { font: 500 12px/1 var(--mono); color: var(--ink-3); margin-bottom: auto; }
.card h3 { font-size: 23px; line-height: 1.15; margin: 48px 0 12px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* Statement with word reveal */
.statement { font: 500 clamp(30px, 4.2vw, 58px)/1.12 var(--display); letter-spacing: -.035em; max-width: 20ch; margin: 0; }
.statement .w { opacity: .18; transition: opacity .25s ease; }
.statement .w.on { opacity: 1; }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 72px; }
.prod { display: flex; flex-direction: column; text-decoration: none; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line-soft); transition: transform .25s ease, box-shadow .25s ease; }
.prod:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(22,33,58,.45); }
.prod .top { position: relative; height: 220px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.prod.legit .top { background: radial-gradient(ellipse 70% 70% at 80% 110%, rgba(240,178,96,.7), transparent 70%), linear-gradient(165deg, #0e1730, #3c3a68 70%, #8a5a5c); }
.prod.scannibal .top { background: radial-gradient(ellipse 70% 70% at 20% 110%, rgba(246,201,135,.75), transparent 70%), linear-gradient(165deg, #1b2744, #2f5a6a 65%, #6f8a5a); }
.prod .top .mono { color: rgba(255,255,255,.75); }
.prod .top h3 { font-size: 44px; line-height: 1; }
.prod .body { padding: 26px 24px 24px; display: grid; gap: 18px; flex: 1; }
.prod dt { font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.prod dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.prod .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.prod .foot .src { color: var(--ink-3); font-size: 12px; }
.prod .foot b { font-weight: 600; white-space: nowrap; }

/* Closing band */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; text-align: center; padding: 140px 0; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 70% at 50% 120%, rgba(240,178,96,.45), transparent 70%); }
.cta .inner { position: relative; }
.cta .mono { color: rgba(255,255,255,.6); display: block; margin-bottom: 22px; }
.cta h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1; max-width: 16ch; margin: 0 auto 36px; }

/* Footer */
.foot-site { background: var(--navy); color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.1); }
.foot-site .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 36px; font-size: 14px; }
.foot-site nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-site a { color: rgba(255,255,255,.75); text-decoration: none; } .foot-site a:hover { color: #fff; }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split .left { padding: 80px 32px 40px; }
  .split .right { min-height: 420px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .head nav { display: none; }
  .head .wrap { justify-content: space-between; }
  .hero h1 { padding-top: 0; }
  .hero { justify-content: center; }
  .hero .row { grid-template-columns: 1fr; gap: 18px; margin-top: 10vh; }
  .hero .row .mono.right { display: none; }
  .hero .row > div { padding-top: 0; }
  .sec { padding: 84px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .sec-head p { justify-self: start; }
  .cards, .products { grid-template-columns: 1fr; }
  .card { min-height: 0; } .card h3 { margin-top: 28px; }
  .split .left { padding: 72px 20px 36px; } .split .right { padding: 28px 20px; min-height: 0; }
  .cta { padding: 100px 0; }
}
@media (max-width: 420px) { .wrap { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .statement .w { opacity: 1; } }
