/* Ramp Ranch - production site styles
   Direction B: Control Room / Operations
   Tokens via CSS custom props so the Tweaks panel can swap accent + headline.
*/

:root {
  --bg:        #0d1117;
  --bg2:       #141a23;
  --bg3:       #1a2230;
  --fg:        #ece4d0;
  --fg2:       rgba(236,228,208,0.72);
  --fg3:       rgba(236,228,208,0.48);
  --line:      rgba(236,228,208,0.10);
  --line-soft: rgba(236,228,208,0.06);
  --accent:    #e0653f;
  --accent-soft: rgba(224,101,63,0.14);
  --green:     #7fa882;

  --max:       1320px;
  --gutter:    48px;
  --kicker-w:  240px;
  --col-gap:   56px;

  --f-sans: 'Geist', 'Inter', system-ui, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
button { font-family: inherit; }

/* ────────── Type primitives ────────── */
.mono {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg3);
}
.mono-strong { color: var(--fg2); }
.h-eyebrow { display: block; margin-bottom: 18px; }

/* ────────── Layout primitives ────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; border-top: 1px solid var(--line); position: relative; }
.section.alt { background: var(--bg2); }
.section.first { border-top: none; }
.section-head {
  display: grid; grid-template-columns: var(--kicker-w) 1fr;
  gap: var(--col-gap); margin-bottom: 64px;
}
.section-head h2 {
  font-size: 56px; font-weight: 600; line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 16px;
}
.section-head p {
  font-size: 20px; line-height: 1.5; color: var(--fg2);
  max-width: 720px; margin: 0;
}
.kicker-col .mono { display: block; }

/* ────────── Status pill & chips ────────── */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg2);
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px;
}
.status .dot {
  width: 6px; height: 6px; border-radius: 4px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.status.green .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ────────── Nav ────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand img { height: 40px; width: auto; display: block; }
.nav-brand .name { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
.nav-brand .sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg3); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px; color: var(--fg2); text-decoration: none; font-weight: 500;
  white-space: nowrap;
  transition: color .15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent); color: #0d1117; padding: 10px 16px;
  font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 4px;
  white-space: nowrap;
  transition: filter .15s, transform .15s;
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nav-menu-btn {
  display: none;
  background: transparent; border: 1px solid var(--line); border-radius: 4px;
  padding: 8px 10px; color: var(--fg); cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 70px; left: 0; right: 0;
  background: rgba(13,17,23,0.98); border-bottom: 1px solid var(--line);
  z-index: 19; padding: 24px var(--gutter);
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; padding: 14px 0; font-size: 18px; font-weight: 500;
  color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer .nav-cta { display: inline-block; margin-top: 18px; padding: 14px 20px; font-size: 14px; }

/* ────────── Hero ────────── */
.hero { position: relative; padding: 120px var(--gutter) 140px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 30%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 460px;
  gap: 80px; align-items: start;
}
.hero h1 {
  font-size: 88px; font-weight: 600; line-height: 0.98;
  letter-spacing: -0.035em; margin: 0; max-width: 880px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  font-size: 21px; line-height: 1.5; color: var(--fg2);
  max-width: 640px; margin: 32px 0 0;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 44px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #0d1117; padding: 16px 24px;
  font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 10px; border: none; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary {
  color: var(--fg); padding: 16px 18px; font-size: 15px; font-weight: 500;
  text-decoration: none; border: 1px solid var(--line); border-radius: 4px;
  transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: var(--fg3); background: rgba(255,255,255,0.03); }

.hero-coords {
  position: absolute; top: 24px; right: var(--gutter);
  display: flex; gap: 24px; z-index: 1;
}

/* Console widget */
.console {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px; position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.console-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.console-time {
  font-size: 13px; color: var(--fg3); margin-bottom: 14px;
  font-family: var(--f-mono);
}
.console-rows { border-top: 1px solid var(--line); }
.console-row {
  display: grid; grid-template-columns: 70px 1fr;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  align-items: start; gap: 14px;
}
.console-row .tag {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.06em; padding-top: 3px;
}
.console-row .body { font-size: 14px; line-height: 1.45; color: var(--fg); }
.tag-green { color: var(--green); }
.tag-accent { color: var(--accent); }
.tag-mute  { color: var(--fg2); }
.console-foot {
  margin-top: 18px; display: flex; justify-content: space-between; align-items: center;
}
.console-foot button {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  padding: 8px 12px; font-size: 12px; font-family: var(--f-mono);
  letter-spacing: 0.08em; text-transform: uppercase; border-radius: 2px;
  cursor: pointer;
}

/* ────────── Anatomy ────────── */
.anatomy {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; margin-bottom: 96px;
}
.anatomy-cell { background: var(--bg2); padding: 28px 26px 32px; }
.anatomy-cell-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.anatomy-cell h4 { font-size: 22px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.012em; }
.anatomy-cell p { font-size: 14px; line-height: 1.55; color: var(--fg2); margin: 0; }
.dot-accent { width: 6px; height: 6px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ────────── Roster ────────── */
.roster {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.roster-head, .roster-row {
  display: grid; grid-template-columns: 70px 280px 1fr 100px 90px;
  gap: 24px; padding: 14px 24px; align-items: baseline;
}
.roster-head { background: var(--bg3); border-bottom: 1px solid var(--line); }
.roster-row { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.roster-row:last-child { border-bottom: none; }
.roster-role { font-size: 17px; font-weight: 600; letter-spacing: -0.008em; }
.roster-scope { font-size: 14px; line-height: 1.5; color: var(--fg2); }
.roster-status { display: flex; align-items: center; gap: 6px; }
.roster-status .dot { width: 6px; height: 6px; border-radius: 4px; background: var(--green); }

/* ────────── Who is this for ────────── */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.who-col-head { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.who-col-head .dot { width: 8px; height: 8px; border-radius: 4px; }
.who-col-head.is-for .dot { background: var(--green); }
.who-col-head.is-for .label { color: var(--green); }
.who-col-head.is-not .dot { background: var(--fg3); }
.who-row {
  display: grid; grid-template-columns: 28px 1fr; gap: 8;
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 16px; line-height: 1.45;
}
.who-row:last-child { border-bottom: 1px solid var(--line); }
.who-row .sigil { font-family: var(--f-mono); font-size: 13px; padding-top: 2px; }
.who-col.is-not .who-row { color: var(--fg3); }
.who-col.is-not .sigil { color: var(--fg3); }
.who-col.is-for .sigil { color: var(--green); }

/* ────────── Process ────────── */
.process {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.process-cell { background: var(--bg2); padding: 26px 22px 28px; min-height: 240px; display: flex; flex-direction: column; }
.process-cell-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.process-cell h4 { font-size: 17px; font-weight: 600; margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.005em; }
.process-cell p { font-size: 13px; line-height: 1.5; color: var(--fg2); margin: 0; }
.process-arrow { color: var(--fg3); font-family: var(--f-mono); font-size: 13px; }

.safety {
  margin-top: 32px; padding: 28px 32px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 6px;
  display: grid; grid-template-columns: 200px 1fr 1fr; gap: 40px; align-items: start;
}
.safety h4 { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.005em; }
.safety p { font-size: 14px; line-height: 1.55; color: var(--fg2); margin: 0; }

/* ────────── Use cases / Day in the life ────────── */
.timeline { margin-left: calc(var(--kicker-w) + var(--col-gap)); }
.timeline-row {
  display: grid; grid-template-columns: 140px 1fr; gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--line); align-items: start;
}
.timeline-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-time {
  font-family: var(--f-mono); font-size: 24px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--accent);
}
.timeline-label { display: block; margin-top: 6px; }
.timeline-row h4 { font-size: 26px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.015em; }
.timeline-row p { font-size: 17px; line-height: 1.55; color: var(--fg2); margin: 0; max-width: 760px; }

/* ────────── About ────────── */
.about-grid {
  display: grid; grid-template-columns: var(--kicker-w) 280px 1fr;
  gap: var(--col-gap); align-items: start;
}
.portrait {
  width: 260px; height: 320px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; position: relative;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Subtle warm tone to harmonize with cream/ember palette */
  filter: contrast(1.02) saturate(0.92);
}
.about-name { font-size: 16px; font-weight: 600; margin-top: 18px; }
.about-role { font-size: 14px; color: var(--fg2); margin-top: 4px; }
.about h2 { font-size: 48px; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 32px; }
.about p { font-size: 17px; line-height: 1.55; color: var(--fg2); margin: 0 0 22px; max-width: 680px; }
.about p.first { font-size: 19px; color: var(--fg); }
.about-sig { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.about-sig-name { font-style: italic; font-size: 24px; color: var(--accent); }

/* ────────── Why ────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
}
.why-cell { background: var(--bg); padding: 32px 28px; }
.why-cell .mono { color: var(--accent); margin-bottom: 14px; display: block; }
.why-cell h4 { font-size: 19px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.008em; }
.why-cell p { font-size: 14px; line-height: 1.6; color: var(--fg2); margin: 0; }

/* ────────── Contact ────────── */
.contact { position: relative; overflow: hidden; }
.contact-spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 80%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.contact-grid { position: relative; display: grid; grid-template-columns: var(--kicker-w) 1fr; gap: var(--col-gap); }
.contact h2 {
  font-size: 72px; font-weight: 600; line-height: 1.02;
  letter-spacing: -0.03em; margin: 0 0 20px; max-width: 820px;
}
.contact p.lede { font-size: 20px; line-height: 1.55; color: var(--fg2); max-width: 640px; margin: 0; }
.contact form {
  margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px 32px; max-width: 800px;
}
.contact .field-wide { grid-column: span 2; }
.contact .field-label { display: block; margin-bottom: 10px; }
.contact input, .contact textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  color: var(--fg); padding: 12px 14px; font-size: 16px;
  border-radius: 4px; outline: none; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.contact textarea { resize: none; min-height: 120px; line-height: 1.5; }
.contact input:focus, .contact textarea:focus {
  border-color: var(--accent); background: var(--bg3);
}
.contact-actions {
  grid-column: span 2; display: flex; gap: 24px; align-items: center;
  margin-top: 8px; flex-wrap: wrap;
}
.contact-fallback {
  color: var(--fg2); text-decoration: none; font-size: 15px;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}

/* ────────── Footer ────────── */
.footer {
  padding: 44px var(--gutter) 52px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px; align-items: center;
  max-width: var(--max); margin: 0 auto;
  box-sizing: border-box;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 22px);
  min-width: 0; max-width: 720px;
}
.footer-brand img {
  height: clamp(50px, 5.2vw, 68px); width: auto; display: block;
  flex: 0 0 auto;
}
.footer-brand-copy { min-width: 0; }
.footer-brand .name {
  font-size: clamp(20px, 2.1vw, 30px); font-weight: 650;
  letter-spacing: -0.02em; line-height: 1.05;
}
.footer-brand .sub {
  font-size: clamp(14px, 1.35vw, 18px); color: var(--fg2);
  margin-top: 7px; line-height: 1.25; white-space: nowrap;
}
.footer-meta { text-align: right; }
.footer-meta a {
  color: var(--fg); text-decoration: none; font-size: 18px; font-weight: 600;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.footer-meta .mono { margin-top: 14px; display: block; }

/* ─────────────────────────── Responsive ─────────────────────────── */
@media (max-width: 1100px) {
  :root { --gutter: 32px; --kicker-w: 180px; --col-gap: 40px; }
  .nav-links { gap: 24px; }
  .nav-brand .sub { display: none; }
  .hero-inner { grid-template-columns: 1fr 380px; gap: 56px; }
  .hero h1 { font-size: 72px; }
  .section-head h2 { font-size: 44px; }
  .contact h2 { font-size: 56px; }
  .anatomy { grid-template-columns: repeat(2, 1fr); }
  .roster-head, .roster-row { grid-template-columns: 60px 1fr 100px; }
  .roster-head .col-scope, .roster-row .roster-scope { display: none; }
  .process { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: var(--kicker-w) 1fr; }
  .about-grid .portrait-col { grid-column: 2; margin-bottom: 32px; }
  .about-grid .about-text { grid-column: 2; }
}

@media (max-width: 820px) {
  :root { --gutter: 24px; --col-gap: 32px; }
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .section { padding: 80px 0; }
  .hero { padding: 80px var(--gutter) 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { font-size: 48px; line-height: 1.02; }
  .hero p.lede { font-size: 18px; margin-top: 24px; }
  .hero-coords { display: none; }
  .console { padding: 18px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .section-head h2 { font-size: 36px; }
  .section-head p { font-size: 17px; }
  .anatomy { grid-template-columns: 1fr; margin-bottom: 64px; }
  .roster-head, .roster-row { grid-template-columns: 60px 1fr; gap: 16px; padding: 16px; }
  .roster-head .col-surface, .roster-row .roster-surface { display: none; }
  .roster-row .roster-status { grid-column: 2; padding-top: 8px; }
  .roster-head .col-status { display: none; }
  .process { grid-template-columns: 1fr; }
  .process-cell { min-height: 0; padding: 22px; }
  .process-arrow { display: none; }
  .safety { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .timeline { margin-left: 0; }
  .timeline-row { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .timeline-row h4 { font-size: 22px; }
  .timeline-row p { font-size: 16px; }
  .timeline-time { font-size: 20px; }
  .who-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid .portrait-col { grid-column: 1; }
  .about-grid .about-text { grid-column: 1; }
  .about h2 { font-size: 36px; }
  .portrait { width: 100%; height: 280px; }
  .why-grid { grid-template-columns: 1fr; }
  .contact h2 { font-size: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact form { grid-template-columns: 1fr; gap: 20px; max-width: none; }
  .contact .field-wide { grid-column: 1; }
  .contact-actions { grid-column: 1; }
  .footer { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .footer-brand { max-width: none; align-items: center; }
  .footer-brand .sub { white-space: normal; }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 40px; }
  .nav-brand .name { font-size: 15px; }
  .nav-brand img { height: 36px; }
  .nav { padding: 14px var(--gutter); }
}
