/* Idiogenicosmoles — cobalt/cyan biotech palette (drawn from icon mark) */

:root {
  --bg:           #F4F7FC;
  --bg-deep:      #E6EEF9;
  --surface:      #FFFFFF;
  --surface-alt:  #F8FAFE;
  --border:       #DCE5F2;
  --border-soft:  #E8EEF7;

  --ink:          #0A1A3E;
  --ink-soft:     #1F2D5A;
  --muted:        #5A6A8A;
  --faint:        #93A0BB;

  --accent:       #1B5FCF;
  --accent-hover: #1850B8;
  --accent-soft:  rgba(27, 95, 207, 0.10);
  --accent-line:  rgba(27, 95, 207, 0.30);

  --cyan:         #5BC9F4;
  --cyan-soft:    rgba(91, 201, 244, 0.18);
  --lavender:     #8DA3E8;

  --hero-navy-1:  #0A1A3E;
  --hero-navy-2:  #0E2A5E;
  --hero-cobalt:  #1B5FCF;

  --radius:       14px;
  --radius-sm:    8px;
  --radius-pill:  999px;

  --shadow-sm:    0 1px 2px rgba(10, 26, 62, 0.05);
  --shadow:       0 1px 3px rgba(10, 26, 62, 0.07), 0 1px 2px rgba(10, 26, 62, 0.05);
  --shadow-lg:    0 12px 32px rgba(10, 26, 62, 0.10), 0 4px 10px rgba(10, 26, 62, 0.05);

  --font-serif:   "Tiempos Headline", "Source Serif Pro", "Iowan Old Style",
                  "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    "Styrene B", "Inter", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }

/* ── Layout ──────────────────────────────────────────────────────── */
.shell { flex: 1; display: flex; flex-direction: column; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: 720px; }

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  padding: 22px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border-soft); background: rgba(244, 247, 252, 0.92); backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background-image: url("assets/idiogenicosmole-mark.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 6px rgba(10, 26, 62, 0.18);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-deep); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--ink-soft); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  text-align: left;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.h-display {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--ink);
}
.h-section {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ink);
}
.h-card {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 56ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-illust {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--hero-navy-1) 0%, var(--hero-navy-2) 55%, var(--hero-cobalt) 100%);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(91, 201, 244, 0.20);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.hero-illust::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 78% 28%, rgba(91, 201, 244, 0.30), transparent 45%),
    radial-gradient(circle at 22% 78%, rgba(141, 163, 232, 0.22), transparent 50%);
  pointer-events: none;
}
.hero-mark {
  position: relative;
  width: 220px; height: 220px;
  background-image: url("assets/idiogenicosmole-mark.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 18px 36px rgba(91, 201, 244, 0.35))
          drop-shadow(0 6px 14px rgba(10, 26, 62, 0.45));
}

/* Parrot variant — bleed image edge-to-edge inside the panel */
.hero-illust--parrot { padding: 0; }
.hero-parrot {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); }
.section-tight { padding: 56px 0; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ── Venture cards ────────────────────────────────────────────────── */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.venture {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.venture:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-line); transform: translateY(-2px); }
.venture-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.venture h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.venture p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.venture-foot {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Tree (corporate structure) ───────────────────────────────────── */
.tree {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
  overflow-x: auto;
}
.tree-root { color: var(--ink); font-weight: 600; }
.tree-entity { color: var(--accent); font-weight: 500; }

/* ── Feature grid ─────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.feature h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.feature p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ── Origin quote ─────────────────────────────────────────────────── */
.origin-quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  padding: 36px 36px 36px 44px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  position: relative;
}
.origin-quote-attr {
  display: block;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}

/* ── Heritage card (Bramble Tree Estate) ──────────────────────────── */
.heritage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 24px;
}
.heritage-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 640px) {
  .heritage-row { grid-template-columns: 1fr; gap: 12px; }
}
.heritage-year {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.heritage-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.heritage-body p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ── Email capture ────────────────────────────────────────────────── */
.signup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 32px;
}
.signup-form {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.signup-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
  margin-top: 60px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-meta { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }
