/* Songbird Enterprises
   Organic Modernism: natural forms, thoughtful engineering, modern technology.
   Palette from the new logo concept (navy body, teal wing, green tip, steel-blue "Enterprises");
   until it's final, the header and footer use the white gear mark from songbird-brand-assets/. */

:root {
  --navy-950: #06111d;     /* deepest surfaces: ventures, footer */
  --navy-900: #0a1b2d;     /* hero */
  --navy-800: #10263c;     /* cards on dark */
  --navy: #173b5f;         /* emblem body */
  --teal: #2a8c98;         /* emblem wing */
  --teal-300: #63c3cb;     /* teal for dark surfaces */
  --green: #78be6e;        /* emblem wing tip */
  --steel: #50829a;        /* "Enterprises" */
  --steel-300: #8fb3c6;
  --paper: #f3f6f8;
  --white: #ffffff;
  --ink: #0d1f31;
  --muted: #4d6174;
  --line: #d8e0e7;
  --line-dark: rgba(255, 255, 255, 0.1);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

p { margin: 0; }
a { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 0.76rem/1 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--green), var(--teal)); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

.dark { background: var(--navy-950); color: rgba(255, 255, 255, 0.78); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: var(--teal-300); }

/* ── Brand lockup: emblem + live-text wordmark ──────── */

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.wordmark { display: grid; line-height: 1; font-family: var(--font-display); }
.wordmark b { font-weight: 800; font-size: 1.32rem; letter-spacing: 0.02em; color: var(--white); }
.wordmark small { margin-top: 4px; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.27em; color: var(--steel-300); }

/* ── Header ─────────────────────────────────────────── */

.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 96px;
}
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.site-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--white); }
.site-nav .btn { color: var(--white); }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 380px) {
  .brand img { height: 38px; }
  .wordmark b { font-size: 1.1rem; }
  .wordmark small { font-size: 0.56rem; }
  .site-nav .btn { padding: 10px 14px; }
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--teal-300); color: var(--navy-950); }
.btn-primary:hover { background: #82d2d8; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--white); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: #0f2c48; }

/* ── Hero ───────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 15%, rgba(42, 140, 152, 0.30), transparent 65%),
    radial-gradient(50% 60% at 5% 95%, rgba(120, 190, 110, 0.12), transparent 65%),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(160px, 24vh, 230px) 0 0;
}
.hero-pattern {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  opacity: 0.13;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  margin-top: 26px;
  max-width: 17ch;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--teal-300), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  margin-top: 28px;
  max-width: 40rem;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(72px, 11vh, 120px);
  border-top: 1px solid var(--line-dark);
}
.facts div { padding: 28px 28px 34px 0; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.facts dt { font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-300); }
.facts dd { margin: 10px 0 0; color: var(--white); font-weight: 500; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 18px 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line-dark); }
}

/* ── Sections ───────────────────────────────────────── */

section { padding: clamp(84px, 12vw, 140px) 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 { margin-top: 18px; font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 1.12rem; }
.dark .section-head p { color: rgba(255, 255, 255, 0.7); }

/* Company */
.company { background: var(--white); }
.company-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 7vw, 96px); align-items: start;
}
.company-grid h2 { margin-top: 18px; font-size: clamp(2rem, 4vw, 3rem); }
.company-copy { display: grid; gap: 20px; color: var(--muted); font-size: 1.1rem; padding-top: 34px; }
.company-copy p:first-child { color: var(--ink); font-size: 1.22rem; }
@media (max-width: 880px) {
  .company-grid { grid-template-columns: 1fr; }
  .company-copy { padding-top: 0; }
}

/* ── Ventures / GAIA ────────────────────────────────── */

.ventures { position: relative; overflow: hidden; }
.ventures::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 90% 40%, rgba(42, 140, 152, 0.16), transparent 70%);
  pointer-events: none;
}
.ventures .wrap { position: relative; }

.venture {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.venture-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 0.88rem; color: var(--steel-300); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(99, 195, 203, 0.35); color: var(--teal-300); font-weight: 500; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(120, 190, 110, 0.18); }
.venture h3 { margin-top: 22px; font-size: clamp(2.4rem, 4.4vw, 3.4rem); letter-spacing: 0.1em; }
.venture .subtitle { margin-top: 8px; color: var(--steel-300); font-weight: 500; }
.venture .desc { margin-top: 24px; }
.venture .btn { margin-top: 34px; }
.venture figure { margin: 0; }
.venture figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 90px -40px rgba(42, 140, 152, 0.55);
}
.venture figcaption { margin-top: 14px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 880px) {
  .venture { grid-template-columns: 1fr; }
  .venture figure { order: -1; }
}

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(56px, 8vw, 88px) 0 0; padding: 0;
  border-top: 1px solid var(--line-dark);
}
.stats div { padding: 30px 24px 0 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stats dt { order: 2; margin-top: 8px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.65); }
.stats dd { order: 1; margin: 0; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--font-display); color: var(--white); }
.stats div { display: flex; flex-direction: column; }
@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { padding-top: 26px; }
}

/* ── Approach ───────────────────────────────────────── */

.approach { background: var(--paper); }
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
}
.principle {
  padding: 34px 30px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
}
.principle .num { font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.14em; color: var(--steel); }
.principle h3 { margin-top: 18px; font-size: 1.32rem; }
.principle p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
@media (max-width: 880px) { .principles { grid-template-columns: 1fr; } }

/* ── Contact ────────────────────────────────────────── */

.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contact .section-head { margin-bottom: 0; }
.contact-details { margin-top: 36px; display: grid; gap: 22px; }
.contact-details dt { font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
.contact-details dd { margin: 8px 0 0; color: var(--ink); }
.contact-details a { color: var(--navy); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-details a:hover { border-bottom-color: var(--teal); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

form {
  display: grid; gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.3);
  padding: clamp(22px, 4vw, 40px);
}
.field { display: grid; gap: 8px; }
label { font-weight: 500; font-size: 0.92rem; color: var(--ink); }
label .opt { color: var(--muted); font-weight: 400; }
input, textarea, select {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234d6174' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 40px;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 140, 152, 0.18);
}
textarea { min-height: 160px; resize: vertical; }
[aria-invalid="true"] { border-color: #b4412f; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.form-note { font-size: 0.85rem; color: var(--muted); max-width: 26rem; }
.form-status { font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: #2f7a3b; }
.form-status[data-state="error"] { color: #b4412f; }
.hp { position: absolute; left: -9999px; }

/* ── Footer ─────────────────────────────────────────── */

.site-footer { padding: 72px 0 36px; font-size: 0.92rem; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-top .tagline { margin-top: 18px; max-width: 22rem; color: rgba(255, 255, 255, 0.6); }
.footer-col h4 { margin: 0 0 14px; font: 600 0.72rem/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-300); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

/* ── 404 ────────────────────────────────────────────── */

.notfound { min-height: 100vh; display: flex; align-items: center; padding-bottom: 80px; }
