/* ─────────────────────────────────────────────────────────────
   Linganore Technologies — founder portfolio
   Design system: "Workshop, not war room"
   Light-default, warm paper + single amber accent. Dark via toggle.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:            #FBFAF7;
  --surface:       #FFFFFF;
  --surface-2:     #F4F2EC;
  --text:          #1A1B22;
  --muted:         #5C5E68;
  --faint:         #8A8B93;
  --border:        #E7E3DA;
  --border-strong: #D9D4C8;
  --accent:        #B45309;
  --accent-ink:    #8A4208;
  --accent-soft:   #FBEFDC;
  --navy:          #1E293B;
  --navy-2:        #16212F;
  --navy-text:     #C7D2DE;
  --navy-faint:    #8A9BB0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1080px;
  --read: 720px;
  --radius: 12px;
  --radius-sm: 8px;
}

html[data-theme="dark"] {
  --bg:            #16161A;
  --surface:       #1E1E24;
  --surface-2:     #121216;
  --text:          #ECEAE3;
  --muted:         #A4A4AE;
  --faint:         #6E6E78;
  --border:        #2C2C34;
  --border-strong: #3A3A44;
  --accent:        #F59E0B;
  --accent-ink:    #FBBF4D;
  --accent-soft:   rgba(245,158,11,0.13);
  --navy:          #10141C;
  --navy-2:        #0B0E14;
  --navy-text:     #C2CCD8;
  --navy-faint:    #7E8A99;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-soft); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Layout ── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.read { max-width: var(--read); }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.divider { border-top: 1px solid var(--border); }

/* ── Type helpers ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; color: var(--text); }
.display { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; line-height: 1.25; }
.lead { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
.prose p { color: var(--muted); font-size: 17px; line-height: 1.72; }
.prose strong { color: var(--text); font-weight: 500; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; flex-shrink: 0; }
.wordmark .mono {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; color: var(--muted); padding: 7px 11px; border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; background: var(--accent);
  border-radius: 2px; margin: 4px 11px 0;
}
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle, .menu-btn {
  width: 34px; height: 34px; border: 1px solid var(--border-strong); background: transparent;
  border-radius: 8px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover, .menu-btn:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.menu-btn { display: none; }
.nav-cta { font-size: 13.5px; padding: 8px 14px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; padding: 10px 17px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s, background 0.15s, border-color 0.15s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-text { color: var(--text); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn-text .arr { color: var(--accent); transition: transform 0.15s; }
.btn-text:hover .arr { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }

/* ── Hero ── */
.hero { padding: 96px 0 72px; }
.hero .display { max-width: 760px; margin-bottom: 22px; }
.hero .lead { max-width: 560px; }

/* ── Proof strip ── */
.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.proof-cell { background: var(--surface); padding: 18px 20px; }
.proof-cell .k { font-size: 14px; font-weight: 500; color: var(--text); }
.proof-cell .v { font-size: 12.5px; color: var(--faint); margin-top: 2px; }

/* ── Cards / grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.18s, transform 0.18s;
  display: flex; flex-direction: column;
}
.card.link { cursor: pointer; }
.card.link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.card h3 { font-family: var(--font-display); margin: 10px 0 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card .foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card .stack { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* ── Status badge ── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pilot { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.badge.building { color: var(--muted); background: var(--surface-2); border-color: transparent; }
.badge.concept { color: var(--faint); background: transparent; }

/* ── Capability matrix ── */
.matrix { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.matrix-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 24px; border-bottom: 1px solid var(--border); background: var(--surface); }
.matrix-row:last-child { border-bottom: none; }
.matrix-row .label { font-family: var(--font-display); font-size: 17px; }
.matrix-row .what { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 3px 8px; }

/* ── Build log timeline ── */
.timeline { display: flex; flex-direction: column; }
.tl-entry { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.tl-entry:last-child { border-bottom: none; }
.tl-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); padding-top: 3px; }
.tl-body h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 5px; }
.tl-body p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.tl-tags { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Studio / generic blocks ── */
.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.block h3 { font-family: var(--font-display); margin-bottom: 10px; }
.block p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.arch { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; white-space: pre-wrap; overflow-x: auto; }
.arch b { color: var(--accent-ink); font-weight: 500; }

.list-clean { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.list-clean li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.list-clean li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.list-clean li strong { color: var(--text); font-weight: 500; }

/* ── CTA band ── */
.cta-band { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px; text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 24px; color: var(--muted); }
.cta-band .btn-row { justify-content: center; margin-top: 0; }

/* ── Section heading row ── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head .eyebrow { margin-bottom: 0; }

/* ── Footer ── */
.footer { background: var(--navy); color: var(--navy-text); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 28px 30px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-faint); margin-bottom: 14px; font-weight: 400; }
.footer-brand .fb-name { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #fff; margin-bottom: 12px; }
.footer-brand .fb-name .mono { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; }
.footer-brand p { font-size: 13.5px; color: var(--navy-faint); max-width: 280px; line-height: 1.6; }
.footer-col a { display: block; font-size: 13.5px; color: var(--navy-text); padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-base { max-width: var(--maxw); margin: 0 auto; padding: 18px 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-base .stamp { font-family: var(--font-mono); font-size: 11.5px; color: var(--navy-faint); }
.footer-base .socials { display: flex; gap: 8px; }
.footer-base .socials a { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--navy-text); transition: border-color 0.15s, color 0.15s; }
.footer-base .socials a:hover { border-color: var(--accent); color: #fff; }
.footer-base .socials svg { width: 15px; height: 15px; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .btn-text .arr { transition: none; }
}

/* ── Mobile menu ── */
.mobile-menu { display: none; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu { display: none; padding: 8px 28px 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 2px; }
  .mobile-menu a { padding: 11px 8px; font-size: 15px; color: var(--text); border-bottom: 1px solid var(--border); }
  .mobile-menu a:last-child { border-bottom: none; }
  .grid-3, .grid-2, .proof-strip { grid-template-columns: 1fr; }
  .matrix-row { grid-template-columns: 1fr; gap: 10px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 48px; }
  .tl-entry { grid-template-columns: 1fr; gap: 6px; }
  .cta-band { padding: 32px 22px; }
}
@media (max-width: 460px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ── Print ── */
@media print {
  .nav, .footer, .cta-band, .theme-toggle, .menu-btn { display: none; }
  body { background: #fff; color: #000; }
}
