/* ============================================================
   ericbuilds.xyz — home page (2026-10 professional revamp)
   Standalone: index.html loads ONLY this file, so the shared
   index.css used by every other page is untouched.
   Same dark navy ground and accents as the rest of the site;
   sans-serif display type, mono only for small labels.
   ============================================================ */

:root {
  --bg:      #0a0e16;
  --bg-2:    #0d121c;
  --panel:   #111827;
  --panel-2: #0f1522;
  --fg:      #eef2f8;
  --muted:   #a0aec2;
  --faint:   #66748a;
  --line:    #1c2536;
  --line-2:  #2a3650;
  --blue:    #4c8dff;
  --blue-2:  #78a9ff;
  --blue-soft: rgba(76, 141, 255, 0.12);
  --green:   #3ecf8e;
  --green-soft: rgba(62, 207, 142, 0.12);
  --gold:    #e3b45c;
  --gold-soft: rgba(227, 180, 92, 0.12);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 40px -24px rgba(0,0,0,0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 88% -6%, rgba(76,141,255,0.14), transparent 62%),
    radial-gradient(700px 420px at -10% 18%, rgba(62,207,142,0.05), transparent 60%);
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
strong { color: var(--fg); font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 22, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .name { white-space: nowrap; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand .role { display: block; font-family: var(--mono); font-size: 0.66rem; color: var(--faint); letter-spacing: 0.06em; line-height: 1.2; }
.nav-links { list-style: none; display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-links .nav-cta {
  color: var(--fg); border: 1px solid var(--line-2); padding: 7px 14px; border-radius: 999px; background: var(--panel-2);
}
.nav-links .nav-cta:hover { border-color: var(--blue); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 12px 22px; border-radius: 10px;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: #5f9aff; }
.btn-ghost { color: var(--fg); border: 1px solid var(--line-2); background: var(--panel-2); }
.btn-ghost:hover { border-color: var(--blue); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.gold { color: var(--gold); }
.eyebrow.green { color: var(--green); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- hero ---------- */
.hero { padding: 92px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 600; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero h1 .hl {
  background: linear-gradient(92deg, var(--blue-2), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 56ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* recognition callout in the hero */
.honor {
  position: relative; display: block; color: inherit;
  background: linear-gradient(160deg, rgba(227,180,92,0.10), rgba(17,24,39,0.6) 46%), var(--panel);
  border: 1px solid rgba(227,180,92,0.32); border-radius: var(--radius);
  padding: 26px 26px 24px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.honor:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(227,180,92,0.6); }
.honor .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(227,180,92,0.3);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 16px;
}
.honor .badge svg { width: 14px; height: 14px; }
.honor h3 { font-size: 1.22rem; margin-bottom: 8px; }
.honor p { color: var(--muted); font-size: 0.93rem; }
.honor .meta { margin-top: 16px; font-family: var(--mono); font-size: 0.74rem; color: var(--faint); }
.honor .more { margin-top: 14px; display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--gold); }

/* stats strip */
.stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); overflow: hidden;
}
.stat { padding: 22px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .num .accent { color: var(--blue-2); }
.stat .lbl { font-size: 0.84rem; color: var(--faint); margin-top: 2px; line-height: 1.45; }

/* ---------- recognition ---------- */
.recog {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0;
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow);
}
.recog-main { padding: 40px 40px 36px; position: relative; }
.recog-main::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(227,180,92,0.1));
}
.recog-main .org { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.recog-main h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 22px; }
.recog-main blockquote {
  color: var(--fg); font-size: 1.04rem; line-height: 1.7; opacity: 0.92;
  border: 0; padding: 0; margin: 0 0 22px; quotes: "\201C" "\201D";
}
.recog-main blockquote p + p { margin-top: 12px; }
.recog-main blockquote p:first-child::before { content: open-quote; color: var(--gold); font-size: 1.6em; line-height: 0; vertical-align: -0.32em; margin-right: 4px; }
.recog-main blockquote p:last-child::after { content: close-quote; color: var(--gold); font-size: 1.6em; line-height: 0; vertical-align: -0.32em; margin-left: 2px; }
.recog-main cite { font-style: normal; font-size: 0.86rem; color: var(--faint); }
.recog-side {
  background: var(--panel-2); border-left: 1px solid var(--line); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 26px;
}
.migrate { display: flex; align-items: center; gap: 12px; }
.migrate .from, .migrate .to {
  flex: 1; text-align: center; padding: 14px 10px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
}
.migrate .from { border: 1px dashed var(--line-2); color: var(--muted); }
.migrate .to { border: 1px solid rgba(76,141,255,0.45); background: var(--blue-soft); color: var(--fg); }
.migrate .arrow { color: var(--gold); font-size: 1.2rem; }
.side-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.83rem; color: var(--fg); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel);
}
.facts-list { list-style: none; display: grid; gap: 10px; font-size: 0.9rem; }
.facts-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.facts-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts-list .k { color: var(--faint); white-space: nowrap; }
.facts-list .v { color: var(--fg); text-align: right; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-2); margin-bottom: 18px;
}
.card .icon.g { background: var(--green-soft); color: var(--green); }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .stack { margin-top: 16px; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.02em; }

/* work cards */
.work-card { display: flex; flex-direction: column; }
.work-card .tag {
  align-self: flex-start; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.work-card .tag.b { color: var(--blue-2); background: var(--blue-soft); }
.work-card p + p { margin-top: 10px; }
.work-card .link { margin-top: auto; padding-top: 16px; font-size: 0.9rem; font-weight: 600; }

/* ---------- approach ---------- */
.principle {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px;
}
.principle div { padding: 24px 26px; background: var(--panel-2); }
.principle div + div { border-left: 1px solid var(--line); }
.principle .who { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.principle .what { font-size: 1.15rem; font-weight: 600; }
.principle .what em { font-style: normal; color: var(--blue-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 24px; }
.step .num { font-family: var(--mono); font-size: 0.74rem; color: var(--blue-2); letter-spacing: 0.1em; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.9rem; }

/* ---------- writing ---------- */
.note-link {
  display: block; color: inherit; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.note-link:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-2px); }
.note-link .date { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); letter-spacing: 0.08em; }
.note-link h3 { font-size: 1.12rem; margin: 8px 0; }
.note-link p { color: var(--muted); font-size: 0.94rem; }
.note-link .read { display: inline-block; margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--blue-2); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about-copy p { color: var(--muted); margin-bottom: 16px; max-width: 62ch; }
.about-facts {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.about-facts .facts-list { font-size: 0.92rem; }

/* ---------- contact ---------- */
.contact-box {
  text-align: center; padding: 56px 32px; border-radius: 18px;
  background: radial-gradient(600px 240px at 50% 0%, var(--blue-soft), transparent 70%), var(--panel);
  border: 1px solid var(--line-2);
}
.contact-box h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 12px; }
.contact-box p { color: var(--muted); max-width: 54ch; margin: 0 auto 28px; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.foot-grid h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 12px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); font-size: 0.92rem; }
.foot-grid a:hover { color: var(--fg); }
.foot-grid .blurb { color: var(--muted); font-size: 0.92rem; max-width: 40ch; margin-top: 10px; }
.foot-note { font-size: 0.78rem; color: var(--faint); max-width: 90ch; margin-bottom: 10px; line-height: 1.6; }
.copyright { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); margin-top: 18px; }

/* ---------- reveal (script.js adds .visible) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .note-link, .honor, .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .recog { grid-template-columns: 1fr; }
  .recog-side { border-left: 0; border-top: 1px solid var(--line); }
  .nav-links li.opt { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .principle { grid-template-columns: 1fr; }
  .principle div + div { border-left: 0; border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid .brand-col { grid-column: 1 / -1; }
  .recog-main { padding: 30px 24px 28px; }
  .recog-side { padding: 28px 24px; }
  .brand .role { display: none; }
  .nav-links { gap: 16px; }
  .nav-links li.opt2 { display: none; }
}
@media (max-width: 400px) {
  .stat { padding: 18px 16px; }
  .stat .num { font-size: 1.6rem; }
  .card { padding: 22px; }
}
