/* c3po-und-r2d2 — style.css */

:root {
  --bg:    #0a0810;
  --bg-2:  #0e0c18;
  --bg-3:  #12101f;
  --gold:  #c8961a;
  --gold-l:#e8b84a;
  --gold-d:rgba(200,150,26,.14);
  --blue:  #8ab4ff;
  --blue-d:rgba(138,180,255,.12);
  --text:  #b4b8c4;
  --hi:    #e4e8f0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono:  'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

/* ── HERO ────────── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-half {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 3rem 5rem;
  position: relative;
}
.hero-half.left  { background: linear-gradient(135deg, #150c00 0%, #0a0810 100%); }
.hero-half.right { background: linear-gradient(225deg, #000d1a 0%, #0a0810 100%); }

.hero-half.left::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08), transparent);
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.left  .hero-label { color: var(--gold); }
.right .hero-label { color: var(--blue); }

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.left  .hero-name { color: var(--gold); }
.right .hero-name { color: var(--blue); text-shadow: 0 0 60px rgba(138,180,255,0.2); }

.hero-sub {
  margin-top: 1.2rem;
  font-size: 1rem;
  opacity: 0.6;
  max-width: 340px;
}

.hero-glyph {
  position: absolute;
  top: 3rem;
  font-size: 6rem;
  opacity: 0.04;
  font-family: var(--serif);
  user-select: none;
}
.left  .hero-glyph { right: 2rem; color: var(--gold); }
.right .hero-glyph { left:  2rem; color: var(--blue); }

/* ── SHARED ────────── */

.s {
  padding: 5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.s-dark  { background: var(--bg-2); }
.s-dark2 { background: var(--bg-3); }

.s-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.s-full {
  max-width: 1040px;
  margin: 0 auto;
}

.sec-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--hi);
  margin-bottom: 1.2rem;
}

p { margin-bottom: 1rem; font-size: 1.02rem; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  border-left: 2px solid var(--gold-d);
  padding-left: 1.2rem;
  margin-top: 1.5rem;
  line-height: 1.55;
}

/* ── SPLIT CARDS ────────── */

.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.s-card {
  border-radius: 4px;
  padding: 1.8rem;
}
.s-card.gold { background: var(--gold-d); border: 1px solid rgba(200,150,26,0.2); }
.s-card.blue { background: var(--blue-d); border: 1px solid rgba(138,180,255,0.15); }

.s-card-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
}
.s-card.gold .s-card-label { color: var(--gold); }
.s-card.blue .s-card-label { color: var(--blue); }

.s-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 0.8rem;
}
.s-card.gold h3 { color: var(--gold-l); }
.s-card.blue h3 { color: var(--blue); }

.s-card ul { list-style: none; }
.s-card li {
  font-size: 0.9rem;
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
  line-height: 1.4;
}
.s-card li::before { content: '→'; position: absolute; left: 0; opacity: 0.5; }
.s-card.gold li::before { color: var(--gold); }
.s-card.blue li::before { color: var(--blue); }

/* ── WHEN TABLE ────────── */

.when-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 2rem;
}
.when-table th {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.when-table th:nth-child(2) { color: var(--gold); }
.when-table th:nth-child(3) { color: var(--blue); }
.when-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.45;
}
.when-table td:first-child { color: var(--hi); font-weight: 500; font-size: 0.85rem; }
.when-table tr:hover td { background: rgba(255,255,255,0.015); }

/* ── HYBRID ────────── */

.hybrid-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 2rem;
  margin-top: 2rem;
}
.hybrid-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hybrid-row:last-child { border: none; }
.hr-gold { color: var(--gold); flex: 1; }
.hr-plus { color: rgba(255,255,255,0.2); }
.hr-blue { color: var(--blue); flex: 1; }
.hr-arr  { color: rgba(255,255,255,0.2); }
.hr-res  { color: var(--hi); flex: 2; }

/* ── CLOSE ────────── */

.s-close {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%);
}
.close-inner { max-width: 640px; }
.close-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--hi);
  margin-bottom: 1.5rem;
}
.close-sub { font-size: 1rem; opacity: 0.65; }
.close-meta {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  opacity: 0.2;
}

/* ── FOOTER ────────── */

.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.site-footer a { color: var(--blue); text-decoration: none; opacity: 0.45; }
.site-footer a:hover { opacity: 1; }

/* ── RESPONSIVE ────────── */

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-half { padding: 3rem 2rem; min-height: 50vh; }
  .s-inner { grid-template-columns: 1fr; gap: 2rem; }
  .split-cards { grid-template-columns: 1fr; }
}
