/* ============================================================
   Thematic — marketing site
   BOLSTER "Thematic – R1" brand direction (approved subset):
   lowercase wordmark · orange as the single accent · editorial
   poster layout (mono eyebrows, serif display, thin rules,
   diagonal texture, parallelogram device).

   All brand tokens live here. Fonts are Google-Font STAND-INS for
   the eventual licensed faces — swap the family vars in one place:
     --font-wordmark  →  final heavy wordmark grotesque
     --font-serif     →  Tiempos Text
     --font-body      →  PP Neue Montreal
     --font-mono      →  (DM Mono is already the intended face)

   Held in reserve, deliberately unused: forest green. Do not add
   any standalone emblem or lime/chartreuse — brand decisions open.
   ============================================================ */

:root {
  /* ---- Color ---- */
  --bone:        #FFFFFF; /* dominant page ground (plain white) */
  --ink:         #1E2124; /* text + dark surfaces */
  --orange:      #EF8226; /* the ONLY accent */
  --dark-hover:  #2A2E32; /* operators card hover */

  /* Muted ink (on bone) */
  --ink-82: rgba(30, 33, 36, 0.82);
  --ink-80: rgba(30, 33, 36, 0.80);
  --ink-75: rgba(30, 33, 36, 0.75);
  --ink-65: rgba(30, 33, 36, 0.65);
  --ink-60: rgba(30, 33, 36, 0.60);
  --ink-55: rgba(30, 33, 36, 0.55);
  --ink-45: rgba(30, 33, 36, 0.45);

  /* Muted bone (on ink) */
  --bone-75: rgba(255, 255, 255, 0.75);
  --bone-60: rgba(255, 255, 255, 0.60);
  --bone-50: rgba(255, 255, 255, 0.50);
  --bone-20: rgba(255, 255, 255, 0.20);

  /* Rules + texture */
  --rule:          rgba(30, 33, 36, 0.18);
  --rule-strong:   rgba(30, 33, 36, 0.30); /* dashed hero rail */
  --texture-ink:   rgba(30, 33, 36, 0.05);
  --texture-bone:  rgba(255, 255, 255, 0.05);

  /* ---- Type (stand-ins; see header note) ---- */
  --font-wordmark: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body:     'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:     'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- Layout ---- */
  --maxw:   1200px;
  --pad-x:  48px;

  /* ---- Motion (color/background swaps only — no transforms) ---- */
  --transition: 160ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
a:hover { color: var(--orange); }

::selection { background: var(--orange); color: var(--bone); }

/* ============================================================
   Shared brand elements
   ============================================================ */

/* Wordmark — lowercase always (per brand direction) */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.wordmark--footer {
  font-size: 56px;
  color: var(--bone);
}

/* Mono eyebrow / label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Parallelogram device — decoration only, never "the mark" */
.device {
  width: 34px;
  height: 20px;
  flex-shrink: 0;
  background: var(--orange);
  clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
}
.device--lg { width: 44px; height: 26px; }

/* Pill chips */
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 18px;
}
.chip--filled { background: var(--orange); color: var(--ink); }
.chip--filled:hover { background: var(--ink); color: var(--bone); }
.chip--outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  padding: 12px 22px;
}
.chip--outline:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* Diagonal-line texture overlay (light on bone, bone on ink) */
.textured { position: relative; overflow: hidden; }
.textured::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(115deg,
    var(--texture-ink) 0, var(--texture-ink) 1px, transparent 1px, transparent 72px);
}
.site-footer::before {
  background: repeating-linear-gradient(115deg,
    var(--texture-bone) 0, var(--texture-bone) 1px, transparent 1px, transparent 72px);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   Section 1 — Hero
   ============================================================ */
.hero {
  padding: 96px var(--pad-x) 110px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 40px;
}
.hero-main { display: flex; flex-direction: column; gap: 32px; }
.eyebrow-row { display: flex; align-items: center; gap: 16px; }
.hero .eyebrow { font-size: 13px; }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 13ch;
  text-wrap: pretty;
}
.hero-lede {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-82);
}
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-left: 1px dashed var(--rule-strong);
  padding-left: 28px;
}
.rail-url {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-65);
}

/* ============================================================
   Section 2 — Offers
   ============================================================ */
.offers { border-bottom: 1px solid var(--rule); }
.offers-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.offer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 44px 36px 52px;
}
.offer:not(:last-child) { border-right: 1px solid var(--rule); }

.offer-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.offer-heading {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.offer-copy { font-size: 15px; line-height: 1.6; color: var(--ink-75); }
.offer-status {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* Linked offer cards — light by default, invert to ink (black) on hover.
   To invert to green instead, swap var(--ink) below for a green token. */
.offer--link { transition: background var(--transition), color var(--transition); }
.offer--link:hover { background: var(--ink); color: var(--bone); }
.offer--link:hover .offer-index,
.offer--link:hover .offer-status { color: var(--orange); }
.offer--link:hover .offer-copy { color: var(--bone-75); }

/* ============================================================
   Section 3 — Statement band
   ============================================================ */
.statement {
  padding: 110px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.statement-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.statement .eyebrow { color: var(--ink-55); }
.statement-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  max-width: 22ch;
  text-wrap: pretty;
}

/* ============================================================
   Section 4 — About
   ============================================================ */
.about {
  padding: 80px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.about-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}
.about-label { display: flex; flex-direction: column; gap: 20px; }
.about-content { display: flex; flex-direction: column; gap: 24px; }
.about-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 26ch;
  text-wrap: pretty;
}
.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.about-cols p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-80);
}

/* ============================================================
   Section 5 — Leadership
   ============================================================ */
.leadership {
  padding: 80px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}
.leadership-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.leaders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.leader {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
}
.leader-photo {
  width: 140px;
  height: 168px;
  object-fit: cover;
  object-position: center 20%; /* bias crop toward the top so heads aren't clipped */
  filter: grayscale(100%);
  display: block;
}
.leader-text { display: flex; flex-direction: column; gap: 10px; }
.leader-name {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 20px;
}
.leader-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.leader-bio { font-size: 14px; line-height: 1.65; color: var(--ink-75); }

/* ============================================================
   Investors form page (investors.html)
   ============================================================ */
.form-page {
  padding: clamp(64px, 9vw, 120px) var(--pad-x) clamp(64px, 9vw, 110px);
  border-bottom: 1px solid var(--rule);
}
.form-page-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.form-intro {
  position: sticky;
  top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  max-width: 16ch;
  text-wrap: pretty;
}
.form-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-82);
  max-width: 42ch;
}
.form-back {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.form-embed { max-width: 560px; }

/* ============================================================
   Access / data-room page (access.html) — unlisted
   ============================================================ */
.access-page {
  padding: clamp(64px, 9vw, 110px) var(--pad-x) clamp(48px, 7vw, 80px);
}
.access-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.access-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.access-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  max-width: 18ch;
  text-wrap: pretty;
}
.access-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-82);
  max-width: 54ch;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 36px);
  min-height: 260px;
  border: 1px solid var(--rule);
  background: var(--bone);
  color: var(--ink);
}
.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.doc-icon { color: var(--orange); line-height: 0; }
.doc-icon svg { width: 44px; height: 44px; display: block; }
.doc-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-45);
}
.doc-title {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.doc-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-75);
}
.doc-cta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-45); /* muted = placeholder state */
}
/* Live document card: whole card links to the HubSpot doc */
a.doc-card { transition: border-color var(--transition), color var(--transition); }
a.doc-card .doc-cta { color: var(--orange); }
a.doc-card:hover { color: var(--ink); border-color: var(--ink); }
a.doc-card:hover .doc-cta { color: var(--orange); }

/* Schedule-a-call CTA below the deal cards */
.access-cta {
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}
.access-cta-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 62ch;
}
.access-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.access-cta-lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-82);
}

/* Larger CTA button variant (composes with .chip--filled / .chip--outline) */
.chip--cta { font-size: 13px; padding: 14px 26px; flex-shrink: 0; }

/* Scheduling CTA inside a form-page intro column */
.form-sched {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.form-sched-lead { font-size: 15px; color: var(--ink-60); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  padding: 72px var(--pad-x) 40px;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-60);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.footer-email {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--bone);
}
.footer-email:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--bone-20);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-50);
}

/* ============================================================
   Focus states (accessibility)
   ============================================================ */
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Responsive — collapse to single column below 800px
   ============================================================ */
/* Deal-card grid: 4 across → 2×2 on mid widths → 1 on mobile */
@media (max-width: 1080px) {
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  :root { --pad-x: 24px; }

  .site-header { padding: 20px var(--pad-x); }
  .site-header .wordmark { font-size: 22px; }
  .site-nav { gap: 16px; }
  .chip--filled { padding: 9px 14px; }

  .hero { padding: 64px var(--pad-x) 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-rail { display: none; }

  .offers-grid { grid-template-columns: 1fr; }
  .offer { padding: 36px 24px 40px; }
  .offer:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .statement { padding: 72px var(--pad-x); }

  .about { padding: 56px var(--pad-x); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-cols { grid-template-columns: 1fr; gap: 20px; }

  .leadership { padding: 56px var(--pad-x); }
  .leaders-grid { grid-template-columns: 1fr; gap: 36px; }

  .form-page-inner { grid-template-columns: 1fr; gap: 36px; }
  .form-intro { position: static; }
  .form-embed { max-width: none; }

  .doc-grid { grid-template-columns: 1fr; }

  .site-footer { padding: 56px var(--pad-x) 32px; }
  .wordmark--footer { font-size: 44px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
