/* ═══════════════════════════════════════════════════════════════
   COGITARE TECHNOLOGIES — Site Stylesheet
   Observatory design system
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #080c14;
  color: #e8e2d4;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --bg:        #080c14;
  --bg-elev:   #0d131d;
  --surface:   #0f1622;
  --text:      #e8e2d4;
  --text-dim:  rgba(232, 226, 212, 0.55);
  --text-faint:rgba(232, 226, 212, 0.30);
  --gold:      #d4a853;
  --gold-hi:   #ecc474;
  --gold-soft: rgba(212, 168, 83, 0.18);
  --teal:      #6ec5d9;
  --border:    rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --max:       1280px;
  --serif:     'Cormorant Garamond', serif;
  --display:   'Cinzel', serif;
  --sans:      'Outfit', sans-serif;
}

/* ── Cosmos background — for hero only ────────────────────── */
.cosmos-hero {
  position: relative;
  min-height: 100vh;
  background: url('../img/cosmos-hero.jpg?v=202605202000') center/cover no-repeat #080c14;
  overflow: hidden;
}
.cosmos-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 55%, transparent 0%, rgba(8,12,20,0.5) 75%, #080c14 100%);
  pointer-events: none;
}

/* Compact cosmos band — for sub-page heroes */
.cosmos-band {
  position: relative;
  min-height: 360px;
  background: url('../img/cosmos-hero.jpg?v=202605202000') center/cover no-repeat #080c14;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cosmos-band::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 55%, transparent 0%, rgba(8,12,20,0.65) 70%, #080c14 100%);
  pointer-events: none;
}
.cosmos-band > * { position: relative; z-index: 2; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 720px) { .container { padding: 0 28px; } }

/* ── Nav ───────────────────────────────────────────────────── */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav.solid {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
}
.brand-mark {
  width: 38px; height: 38px;
  background-image: url('../img/cogitare-mark.png?v=202605202000');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
}
.brand-text {
  display: flex; flex-direction: column;
  line-height: 1;
}
.brand-word {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}
.brand-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.42em;
  color: var(--teal);
  text-transform: uppercase;
  margin-top: 6px;
}

.nav-links {
  display: flex; gap: 38px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-dim);
  transition: color 0.4s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

@media (max-width: 900px) {
  .site-nav { padding: 20px 28px; }
  .nav-links { gap: 22px; font-size: 10px; letter-spacing: 0.18em; }
  .brand-tag { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ── Gold divider line ─────────────────────────────────────── */
.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(212,168,83,0.25) 50%, transparent 95%);
}
.gold-stamp {
  width: 48px; height: 1px; background: var(--gold);
  display: block;
}

/* ── Typography utilities ─────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-size: clamp(40px, 5.4vw, 76px);
  text-wrap: balance;
}
.display .italic {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.h-card {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.eyebrow {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 56ch;
  text-wrap: pretty;
}
.body-copy {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  font-weight: 300;
  text-wrap: pretty;
}
.label {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

/* ── CTAs ──────────────────────────────────────────────────── */
.cta-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(212,168,83,0.4);
  padding-bottom: 5px;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.cta-link:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

.cta-ghost {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s;
}
.cta-ghost:hover { color: var(--text); }

.cta-solid {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 14px 32px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.cta-solid:hover { background: var(--gold-hi); }

.cta-outline {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 13px 32px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.cta-outline:hover { background: var(--gold); color: var(--bg); }

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 100px 0; }
section.tight  { padding: 64px 0; }
section.large  { padding: 140px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
  section.large { padding: 80px 0; }
}

.section-head {
  margin-bottom: 56px;
}
.section-head .eyebrow { display: block; margin-bottom: 18px; }
.section-head .h-section { margin-bottom: 20px; }

/* ── Cards / Tiles ────────────────────────────────────────── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 720px) { .tile-grid { grid-template-columns: 1fr; } }

.tile-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (max-width: 900px) { .tile-grid-3 { grid-template-columns: 1fr; } }

.tile {
  background: var(--bg);
  padding: 56px 48px;
  position: relative;
  transition: background 0.4s;
  cursor: pointer;
}
.tile:hover { background: var(--bg-elev); }
.tile .tile-code {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 32px;
  display: block;
}
.tile .h-card { margin-bottom: 12px; }
.tile .tile-tagline {
  font-size: 13px;
  color: var(--gold);
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.tile .tile-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.tile .tile-arrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  transition: letter-spacing 0.3s;
}
.tile:hover .tile-arrow { letter-spacing: 0.3em; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.footer-col h4 {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 300;
  padding: 6px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--text); }
.footer-col .footer-blurb {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  margin-top: 14px;
  max-width: 30ch;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; gap: 14px; }
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 1.2s ease-out both; }
.reveal-2 { animation: fadeUp 1.2s ease-out 0.2s both; }
.reveal-3 { animation: fadeUp 1.2s ease-out 0.4s both; }
.reveal-4 { animation: fadeUp 1.2s ease-out 0.6s both; }

/* ── Hero block (for home + sub-pages) ─────────────────────── */
.hero-content {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 100px;
}
@media (max-width: 720px) {
  .hero-content { padding: 0 28px 64px; }
}
.hero-content .display { max-width: 800px; }

.subhero {
  text-align: center;
  padding: 0 28px;
}
.subhero .eyebrow { margin-bottom: 22px; }
.subhero .h-section { margin-bottom: 18px; }
.subhero .body-copy { margin: 0 auto; }

/* ── Two-column content ───────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
.split-meta .eyebrow { display: block; margin-bottom: 14px; }
.split-meta .h-section { font-size: 36px; }

/* ── Spec list (used on product pages) ────────────────────── */
.spec-list {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spec-list li {
  background: var(--bg);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
}
.spec-list .label {
  color: var(--gold);
}
.spec-list .spec-val {
  color: var(--text);
  font-weight: 300;
  font-size: 15px;
}
@media (max-width: 720px) {
  .spec-list li { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
}

/* ── Form ──────────────────────────────────────────────────── */
.form-row { margin-bottom: 28px; }
.form-row label {
  display: block;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  transition: border-color 0.3s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea {
  min-height: 100px;
  resize: vertical;
}
.form-row select option { background: var(--bg); color: var(--text); }

/* ── Article list (research) ──────────────────────────────── */
.article-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.article-item {
  display: grid;
  grid-template-columns: 140px 1fr 180px;
  gap: 48px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.3s;
}
.article-item:hover { background: rgba(255,255,255,0.015); }
.article-item .article-date {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.article-item .article-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.article-item .article-tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
}
@media (max-width: 720px) {
  .article-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .article-item .article-title { font-size: 20px; }
  .article-item .article-tag { text-align: left; }
}

/* ── Case-study tile ──────────────────────────────────────── */
.case-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 1px;
}
@media (max-width: 720px) { .case-row { grid-template-columns: 1fr; } }
.case-cell {
  background: var(--bg);
  padding: 56px 48px;
}
.case-cell .eyebrow { display: block; margin-bottom: 18px; }
.case-cell .h-card { margin-bottom: 14px; }

/* ── Stat row ─────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat .stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
}
.stat .stat-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 10px;
}

/* ── Page-corner stamp ────────────────────────────────────── */
.corner-stamp {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 30;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(212,168,83,0.4);
  font-weight: 500;
  pointer-events: none;
}
@media (max-width: 720px) { .corner-stamp { display: none; } }
