/* ============================================================
   LINCOLN RAMIREZ — AI Systems, Automation & Creative Technology
   Design system. Playful, bright, technically credible.
   Palette: bright blue, cyan/teal, purple, coral accents.
   ============================================================ */
/* CACHE-BUST v20260829-4 : dark default + mobile nav buttons pushed right */

:root {
  --bg: #f6f8ff;
  --bg-soft: #eef1fd;
  --surface: #ffffff;
  --surface-2: #f4f6ff;
  --ink: #131a33;          /* deep navy text */
  --ink-soft: #4a5578;
  --ink-faint: #7b86a8;
  --line: #e3e8fb;
  --line-strong: #cfd7f5;

  --blue: #2f6bff;
  --blue-deep: #1f4fd8;
  --cyan: #00c2d1;
  --teal: #0fa3a3;
  --purple: #7b5bff;
  --purple-deep: #5f3fe0;
  --coral: #ff5d73;

  --grad-hero: linear-gradient(100deg, #2f6bff 0%, #7b5bff 55%, #00c2d1 100%);
  --grad-cta: linear-gradient(100deg, #2f6bff, #7b5bff 70%, #ff5d73 140%);
  --glow-1: rgba(47,107,255,.10);
  --glow-2: rgba(123,91,255,.10);
  --glow-3: rgba(0,194,209,.08);

  --shadow-sm: 0 1px 2px rgba(19, 26, 51, .06), 0 2px 8px rgba(19, 26, 51, .05);
  --shadow-md: 0 6px 18px rgba(31, 79, 216, .10), 0 2px 6px rgba(19, 26, 51, .06);
  --shadow-lg: 0 18px 50px rgba(31, 79, 216, .16);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --maxw: 1140px;
  --nav-h: 68px;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0a0e22;
  --bg-soft: #0e1430;
  --surface: #131a3a;
  --surface-2: #182050;
  --ink: #eef1ff;
  --ink-soft: #b7c0e6;
  --ink-faint: #8591bd;
  --line: #232c5e;
  --line-strong: #33408a;
  --blue: #5b8bff;
  --blue-deep: #3f6fff;
  --purple: #9b82ff;
  --coral: #ff7188;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.55);
  /* dark glows: subtle, keep the page genuinely dark behind the particles */
  --glow-1: rgba(91,139,255,.12);
  --glow-2: rgba(155,130,255,.10);
  --glow-3: rgba(0,194,209,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* hard-stop horizontal overflow on mobile so nothing bleeds past the screen */
html, body { overflow-x: hidden; max-width: 100%; }
/* form controls: kill UA default min-width that causes mobile overflow */
input, select, textarea, button { min-width: 0; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}

/* The living background canvas sits behind everything */
#alive {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  touch-action: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#alive.ready { opacity: 1; }
/* page bg shows through the transparent canvas (theme-aware) */
body.has-alive { background: var(--bg); }

/* soft radial tint BEHIND the canvas; theme-aware so dark mode stays dark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 8%, var(--glow-1), transparent 60%),
    radial-gradient(55% 45% at 88% 4%, var(--glow-2), transparent 60%),
    radial-gradient(60% 50% at 80% 90%, var(--glow-3), transparent 60%);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; min-width: 0; width: 100%; }
/* long unbroken strings (emails, URLs) wrap instead of forcing horizontal scroll */
p, a, li, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* ---------- top progress + theme toggle ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-cta); z-index: 60; border-radius: 0 3px 3px 0;
}

/* ---------- header / nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800;
  letter-spacing: -.01em; color: var(--ink); font-size: 1.02rem;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: var(--grad-hero); display: grid; place-items: center;
  color: #fff; font-weight: 900; box-shadow: var(--shadow-md);
  transform: rotate(-6deg);
}
.brand small { display:block; font-size:.62rem; font-weight:600; color: var(--ink-faint); letter-spacing:.14em; text-transform:uppercase; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; padding: 9px 13px; border-radius: 10px;
  font-size: .94rem; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); }
.nav-cta {
  background: var(--grad-cta); color: #fff !important; padding: 9px 16px !important;
  box-shadow: var(--shadow-md);
}
.nav-cta:hover { filter: brightness(1.06); }
.icon-btn {
  border: 1px solid var(--line-strong); background: var(--surface);
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); font-size: 1.05rem;
}
.icon-btn:hover { border-color: var(--blue); }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .2s, filter .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { background: #fff; color: var(--blue-deep); box-shadow: var(--shadow-md); }
.btn .arw { transition: transform .2s; }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- hero ---------- */
/* padding-block ONLY: .hero is also .wrap, and .wrap owns left/right padding.
   Setting full `padding` here used to clobber the 24px gutters on mobile. */
.hero { padding-block: 76px 60px; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-deep); background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
[data-theme="dark"] .kicker { color: #cfe0ff; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,93,115,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ transform: scale(1); opacity:1 } 50%{ transform: scale(1.5); opacity:.55 } }

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 900; margin: 0 0 14px;
  letter-spacing: -.035em;
  color: var(--ink);
}
/* "Lincoln" — solid, high-contrast name (no outline; bg is dark in dark mode) */
.hero h1 .first {
  color: var(--ink);
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--blue-deep) 0%, var(--purple-deep) 55%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: saturate(1.15);
}
[data-theme="dark"] .hero h1 .grad {
  background: linear-gradient(100deg, var(--blue) 0%, var(--purple) 55%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero .role { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; color: var(--ink-soft); margin-bottom: 20px; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 620px; }
.hero .lede strong { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.chip {
  font-weight: 600; font-size: .82rem; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* quiz lives inside the hero: a framed container so it reads as THE thing */
.quiz-frame { margin-top: 40px; }
#ai-quiz { max-width: 780px; margin: 0 auto; }

/* ---------- sections ---------- */
section.block { padding-block: 64px; position: relative; z-index: 2; }
.sec-head { max-width: 660px; margin-bottom: 40px; }
.sec-head .eyebrow {
  font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple-deep); display: block; margin-bottom: 10px;
}
[data-theme="dark"] .sec-head .eyebrow { color: var(--purple); }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin: 0 0 12px; }
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* cards grid */
.grid { display: grid; gap: 18px; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .25s, border-color .2s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 16px; color: #fff; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.14rem; margin: 0 0 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.tint-1 { background: linear-gradient(135deg,#2f6bff,#5b8bff); }
.tint-2 { background: linear-gradient(135deg,#00c2d1,#0fa3a3); }
.tint-3 { background: linear-gradient(135deg,#7b5bff,#a07bff); }
.tint-4 { background: linear-gradient(135deg,#ff5d73,#ff8a6b); }
.tint-5 { background: linear-gradient(135deg,#5b8bff,#00c2d1); }
.tint-6 { background: linear-gradient(135deg,#0fa3a3,#7b5bff); }

/* numbered 3-step "how it works" */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative;
}
.step .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 1.2rem; color: #fff; margin-bottom: 16px;
  background: var(--grad-cta); box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.14rem; margin: 0 0 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* problem cards (quotes) */
.probs { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.prob {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .25s;
  border-top: 4px solid var(--blue);
}
.prob:nth-child(3n+2){ border-top-color: var(--purple); }
.prob:nth-child(3n){ border-top-color: var(--cyan); }
.prob:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prob .q { font-weight: 800; font-size: 1.06rem; margin: 0 0 8px; color: var(--ink); }
.prob .a { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* proof / flagship project */
.flagship {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 40px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.flagship::after {
  content:""; position:absolute; right:-90px; top:-90px; width:280px; height:280px; border-radius:50%;
  background: var(--grad-hero); opacity:.12; z-index:0;
}
.flagship > * { position: relative; z-index: 1; }
.flagship h3 { font-size: 1.5rem; margin: 0 0 12px; }
.flagship p { color: var(--ink-soft); }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size:.8rem; font-weight:700; padding:6px 12px; border-radius:999px; background:var(--surface-2); color:var(--ink-soft); border:1px solid var(--line); }
.demo-box {
  border-radius: var(--r); border: 1px solid var(--line-strong);
  background: var(--bg-soft); padding: 22px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  text-align: center;
}
.demo-box .play {
  width: 70px; height: 70px; border-radius: 50%; background: var(--grad-cta); color:#fff;
  display:grid; place-items:center; font-size:1.6rem; box-shadow: var(--shadow-md);
  transition: transform .2s; cursor: pointer;
}
.demo-box .play:hover { transform: scale(1.08); }
.demo-box small { color: var(--ink-faint); font-weight:600; }

/* CTA band */
.cta-band {
  background: var(--grad-hero); color: #fff; border-radius: var(--r-lg);
  padding: 52px 44px; text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(120% 100% at 80% -20%, rgba(255,255,255,.22), transparent 50%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color:#fff; font-size: clamp(1.8rem,4vw,2.6rem); font-weight:900; margin:0 0 12px; }
.cta-band p { color: rgba(255,255,255,.9); font-size:1.12rem; max-width:620px; margin:0 auto 26px; }
.cta-band .contact-row { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:26px; }
.cta-band .contact-row a {
  display:inline-flex; align-items:center; gap:8px; color:#fff; font-weight:700;
  padding:10px 18px; border-radius:999px; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3);
}
.cta-band .contact-row a:hover { background: rgba(255,255,255,.28); text-decoration:none; }

/* ---------- services ---------- */
.svc {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px;
  background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
  transition: transform .18s, box-shadow .25s;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc .head .ico { width:56px; height:56px; font-size:1.6rem; }
.svc .head h3 { font-size: 1.4rem; margin: 0 0 6px; }
.svc .head .who { font-size:.9rem; color: var(--ink-faint); font-weight:600; }
.svc ul.benefits { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:10px 22px; }
.svc ul.benefits li { position:relative; padding-left:26px; color: var(--ink-soft); font-size:.95rem; }
.svc ul.benefits li::before {
  content:"✓"; position:absolute; left:0; top:0; width:19px; height:19px; border-radius:6px;
  background: color-mix(in srgb, var(--cyan) 18%, transparent); color: var(--teal);
  display:grid; place-items:center; font-size:.72rem; font-weight:900;
}
.svc .tools { margin-top:16px; }
.svc .usecases { margin-top:16px; }
.svc .usecases .lbl, .svc .tools .lbl { font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-faint); display:block; margin-bottom:8px; }
.svc .footer-cta { margin-top:18px; }

/* ---------- portfolio ---------- */
.filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.filter-btn {
  border:1px solid var(--line-strong); background:var(--surface); color:var(--ink-soft);
  font-weight:700; font-size:.86rem; padding:8px 16px; border-radius:999px; cursor:pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color:#fff; }

.project {
  background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg);
  overflow:hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project .thumb {
  height: 190px; position: relative; overflow: hidden; display:grid; place-items:center; color:#fff;
  font-weight: 900; font-size: 2rem;
}
.project .thumb .emoji { font-size: 3rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.project .thumb .badge {
  position:absolute; top:12px; left:12px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px);
  color:#fff; font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  padding:5px 10px; border-radius:999px;
}
.project .body { padding: 22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.project h3 { font-size:1.18rem; margin:0; }
.project .problem { color: var(--ink-soft); font-size:.94rem; margin:0; }
.project .meta { font-size:.8rem; color: var(--ink-faint); font-weight:600; }
.project .demo-link { margin-top:auto; font-weight:700; }
.no-results { padding:40px; text-align:center; color:var(--ink-faint); grid-column: 1/-1; }

/* ---------- about ---------- */
.about-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.about-grid .photo {
  border-radius: var(--r-lg); background: var(--grad-hero); aspect-ratio: 4/5; display:grid; place-items:center;
  color:#fff; font-size:4rem; font-weight:900; box-shadow: var(--shadow-lg); position:relative; overflow:hidden;
}
.about-grid .photo span { font-size:5rem; }
.about-grid p { color: var(--ink-soft); font-size:1.05rem; }
.about-grid p strong { color: var(--ink); }
.value-list { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:12px; }
.value-list li { display:flex; gap:12px; align-items:flex-start; }
.value-list .v-ico { width:34px; height:34px; flex:0 0 auto; border-radius:10px; display:grid; place-items:center; color:#fff; background: var(--grad-hero); font-weight:900; }
.value-list .v-tx { font-size:.98rem; color: var(--ink-soft); }
.value-list .v-tx b { color: var(--ink); display:block; }

/* ---------- contact / form ---------- */
.contact-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items:start; }
.contact-info .line { display:flex; gap:14px; align-items:center; margin-bottom:18px; }
.contact-info .line .c-ico { width:46px; height:46px; border-radius:13px; display:grid; place-items:center; color:#fff; background: var(--grad-hero); font-size:1.2rem; flex:0 0 auto; }
.contact-info .line b { display:block; font-size:1rem; }
.contact-info .line small { color: var(--ink-faint); }
.form-card { background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display:block; font-weight:700; font-size:.9rem; margin-bottom:6px; }
.field label .opt { color: var(--ink-faint); font-weight:600; }
.field input, .field select, .field textarea {
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font-family:inherit; font-size:.98rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent);
}
.field textarea { resize: vertical; min-height: 90px; }
.field .hint { font-size:.8rem; color: var(--ink-faint); margin-top:5px; }
.form-2col { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.form-note { font-size:.85rem; color: var(--ink-faint); margin-top:14px; display:flex; gap:8px; align-items:flex-start; }
.form-status { margin-top:14px; padding:14px 16px; border-radius:12px; font-weight:600; display:none; }
.form-status.ok { display:block; background: color-mix(in srgb, var(--cyan) 16%, transparent); color: var(--teal); border:1px solid color-mix(in srgb, var(--cyan) 40%, transparent); }
.form-status.err { display:block; background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); border:1px solid color-mix(in srgb, var(--coral) 40%, transparent); }

/* ---- progress meter + "add more" toggle ---- */
.form-progress { height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.form-progress-bar { height: 100%; width: 0%; background: var(--grad-cta); border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.3,1); }
.form-step-label { font-size: .82rem; font-weight: 700; color: var(--ink-faint); margin-bottom: 22px; }
.more-toggle-wrap { margin: 8px 0 4px; }
.more-toggle {
  width: 100%; background: var(--surface-2); border: 1.5px dashed var(--line-strong);
  border-radius: 12px; padding: 13px 16px; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: .92rem; color: var(--blue); transition: border-color .18s, background .18s;
}
[data-theme="dark"] .more-toggle { color: var(--blue); }
.more-toggle:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface-2)); }
.more-fields { transition: max-height .4s ease, opacity .35s ease; }
.more-fields .field:first-child { margin-top: 14px; }
.form-send { margin-top: 22px; }

/* ---------- footer ---------- */
footer { border-top:1px solid var(--line); padding: 44px 0 30px; position:relative; z-index:2; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:30px; margin-bottom:26px; }
footer .brand { margin-bottom:12px; }
footer p { color: var(--ink-soft); font-size:.95rem; }
footer h4 { font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint); margin:0 0 12px; }
footer ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
footer ul a { color: var(--ink-soft); font-size:.95rem; }
footer ul a:hover { color: var(--blue); }
.foot-base { border-top:1px solid var(--line); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:var(--ink-faint); font-size:.85rem; }

/* page header (sub pages) */
.page-head { padding-block: 56px 26px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; margin: 0 0 12px; }
.page-head p { color: var(--ink-soft); font-size: 1.12rem; max-width: 640px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .probs { grid-template-columns: repeat(2, 1fr); }
  .flagship { grid-template-columns: 1fr; padding: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .photo { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .svc ul.benefits { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .g-3, .g-2, .probs { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 44px 34px; }
  section.block { padding-block: 44px; }
  .page-head { padding-block: 38px 20px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero .lede { font-size: 1.02rem; }
  .chips { margin: 22px 0 26px; }
  .btn { padding: 13px 18px; font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* ---- mobile nav: brand left, buttons pushed to the right edge ---- */
  .nav-inner { gap: 10px; padding: 0 16px; }
  .brand { font-size: .98rem; gap: 8px; }
  .brand .mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand small { display: none; }          /* drop the tagline on narrow screens */
  .brand span { white-space: nowrap; }     /* "Lincoln Ramirez" stays on one line */
  .icon-btn { width: 38px; height: 38px; }
  .menu-toggle { display: grid; margin-left: auto; }  /* push the button group right */
  .icon-btn.theme-toggle { order: 5; }

  /* the dropdown sits in normal flow off-canvas until opened */
  .nav-links { margin-left: 0; }

  /* mobile dropdown */
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s, opacity .2s; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-cta { text-align: center; }
}

/* ============================================================
   "WHAT CAN AI DO FOR YOU?" — the quiz + Starter Kit payoff
   ============================================================ */
#ai-quiz { min-height: 120px; }
.quiz-card, .quiz-result {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
  animation: quiz-in .5s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes quiz-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.quiz-eyebrow {
  font-weight: 800; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-deep); display: inline-block; margin-bottom: 14px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
[data-theme="dark"] .quiz-eyebrow { color: #cfe0ff; }
.quiz-q { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 900; margin: 0 0 10px; }
.quiz-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 24px; max-width: 560px; }

.quiz-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quiz-opts-need { grid-template-columns: 1fr; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--surface-2); border: 1.5px solid var(--line-strong);
  border-radius: 16px; padding: 16px 18px; cursor: pointer;
  font-weight: 700; font-size: 1rem; color: var(--ink); font-family: inherit;
  transition: transform .14s, border-color .18s, background .18s, box-shadow .2s;
}
.quiz-opt:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-md); background: var(--surface); }
.quiz-opt:active { transform: translateY(0) scale(.99); }
.quiz-opt-ico { font-size: 1.7rem; line-height: 1; }
.quiz-opt-check {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: color-mix(in srgb, var(--cyan) 20%, transparent); color: var(--teal);
  display: grid; place-items: center; font-size: .9rem; font-weight: 900;
}
.quiz-opt-unk { border-style: dashed; color: var(--ink-soft); }
/* the "something else" option — stands out as the escape hatch */
.quiz-opt-other { border-style: dashed; border-color: color-mix(in srgb, var(--cyan) 45%, var(--line-strong)); }
.quiz-opt-other:hover { border-color: var(--cyan); }
.quiz-opt-note { display: block; font-size: .76rem; font-weight: 600; color: var(--ink-faint); margin-top: 3px; letter-spacing: 0; text-transform: none; }
.quiz-back {
  margin-top: 20px; background: none; border: none; cursor: pointer;
  color: var(--ink-faint); font-weight: 700; font-size: .9rem; padding: 4px 0;
}
.quiz-back:hover { color: var(--blue); }

/* ---- Starter Kit result (composed, stacked build list) ---- */
.quiz-kit-title { font-size: clamp(1.5rem, 3.8vw, 2.2rem); font-weight: 900; margin: 0 0 10px; }
.quiz-kit-lead { color: var(--ink); font-size: 1.06rem; line-height: 1.55; margin: 0 0 24px; max-width: 640px;
  border-left: 3px solid var(--grad-cta); padding-left: 16px; }

/* the ranked build list */
.quiz-buildlist { display: grid; gap: 14px; margin-bottom: 24px; }
.quiz-buildrow {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 20px 22px; position: relative; overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.8,.3,1.3), border-color .2s, box-shadow .25s;
}
.quiz-buildrow.in { opacity: 1; transform: none; }
.quiz-buildrow:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.quiz-buildrow-primary {
  background: linear-gradient(160deg, color-mix(in srgb, var(--blue) 16%, var(--surface)), var(--surface));
  border-color: var(--blue); box-shadow: var(--shadow-md);
}
.quiz-buildrow-primary::before { content:""; position:absolute; inset:0 0 auto 0; height:5px; background: var(--grad-cta); }
.quiz-buildrow-no {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); padding-top: 3px;
}
.quiz-buildrow-primary .quiz-buildrow-no { color: var(--blue); }
.quiz-buildrow-body h3 { font-size: 1.14rem; margin: 0 0 8px; }
.quiz-buildrow-mech { color: var(--ink-soft); font-size: .97rem; line-height: 1.55; margin: 0 0 12px; }
.quiz-buildrow-why { color: var(--ink); font-weight: 700; font-size: .92rem; font-style: italic; margin: 0; }

/* the "how I'd start / the reality" note — reacts to urgency */
.quiz-note {
  background: color-mix(in srgb, var(--cyan) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line-strong));
  border-radius: var(--r); padding: 18px 20px; display: grid; gap: 14px;
}
.quiz-note-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: baseline; }
.quiz-note-k { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.quiz-note-v { color: var(--ink); font-size: .98rem; line-height: 1.5; }
.quiz-result-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.quiz-cta { margin-top: 0; }
.quiz-cta-again { background: none; border: none; cursor: pointer; color: var(--ink-faint); font-weight: 700; font-size: .9rem; text-decoration: underline; }
.quiz-cta-again:hover { color: var(--blue); }

@media (max-width: 720px) {
  .quiz-card, .quiz-result { padding: 24px 20px; }
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz-buildrow { grid-template-columns: 1fr; gap: 6px; padding: 18px 16px; }
  .quiz-buildrow-no { padding-top: 0; }
  .quiz-note-row { grid-template-columns: 1fr; gap: 4px; }
  .quiz-result-acts { flex-direction: column; align-items: stretch; }
  .quiz-cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  #alive { display: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .quiz-card, .quiz-result { animation: none; }
  .quiz-kit-card { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto; }
}
