/* Fred W. Nix Jr. resume v10 · deep space navy + electric cyan */

:root {
  --bg0: #0e182c;
  --bg1: #14203a;
  --bg2: #182238;
  --panel: rgba(26, 38, 64, 0.70);
  --panel-solid: #1a2640;
  --line: rgba(120, 160, 220, 0.18);
  --line-strong: rgba(56, 217, 245, 0.45);
  --text: #e6ecf7;
  --text-2: #aab7cf;
  --text-3: #7d8aa6;
  --cyan: #38d9f5;
  --cyan-2: #7fe7ff;
  --violet: #8b7cf6;
  --mint: #5ee8b5;
  --amber: #f5b95a;
  --glow: rgba(56, 217, 245, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --head: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-2); }
.mono { font-family: var(--mono); }
.accent { color: var(--cyan); }
.muted { color: var(--text-2); }
b { color: var(--text); font-weight: 600; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-image {
  position: absolute; inset: 0;
  background: url('../img/bg-datacenter.png') center / cover no-repeat;
  opacity: 0.62;
  filter: saturate(0.85) brightness(0.9);
  transform: scale(1.04);
}
.bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(56, 217, 245, 0.16), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(139, 124, 246, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(14, 24, 44, 0.42) 0%, rgba(14, 24, 44, 0.74) 45%, rgba(14, 24, 44, 0.86) 100%);
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }

main, nav { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  background: rgba(14, 24, 44, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #061019; font-family: var(--head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em;
}
.brand-text { font-family: var(--head); letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { color: var(--text-2); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--cyan-2); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.85rem; border-radius: 10px; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #5ab8ff 100%);
  color: #061019; box-shadow: 0 8px 28px -8px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -8px var(--glow); color: #061019; }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--cyan-2); }
.chip {
  display: inline-flex; align-items: center; padding: 0.42rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--text-2); font-size: 0.85rem; font-weight: 500;
}
.chip:hover { border-color: var(--line-strong); color: var(--cyan-2); }
.chip-muted { color: var(--text-3); }

/* ---------- layout ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2rem) 0; }
.section-tight { padding-top: clamp(3rem, 6vw, 4.5rem); }
.section-head { max-width: 900px; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.eyebrow { color: var(--cyan); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.8rem; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.7rem; }
h4 { font-size: 1.02rem; font-weight: 600; }
.section-sub { color: var(--text-2); font-size: 1.05rem; margin-top: 0.9rem; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.7);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(56, 217, 245, 0.32); }
.card-tag { color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.7rem; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2rem; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bullets { list-style: none; display: grid; gap: 0.7rem; }
.bullets li { position: relative; padding-left: 1.1rem; color: var(--text-2); font-size: 0.93rem; line-height: 1.55; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--glow); }

.mini { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem; }
.mini-n { color: var(--cyan); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.mini-t { color: var(--text-2); font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(6.5rem, 14vw, 9.5rem); }
.hero-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.photo-ring {
  position: relative; width: 260px; height: 260px; border-radius: 50%; padding: 5px; margin: 0 auto;
  background: conic-gradient(from 210deg, var(--cyan), var(--violet), var(--mint), var(--cyan));
  box-shadow: 0 0 60px -10px var(--glow), 0 30px 60px -30px rgba(0,0,0,0.8);
  animation: spin 14s linear infinite;
}
.photo-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid var(--bg0); animation: unspin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { to { transform: rotate(-360deg); } }
.photo-caption { text-align: center; color: var(--text-3); font-size: 0.75rem; letter-spacing: 0.12em; margin-top: 1rem; text-transform: uppercase; }
.title { font-family: var(--head); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; margin-top: 0.6rem; color: var(--text); display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem; align-items: baseline; }
.title .t1 { color: var(--cyan); }
.title .sep { color: var(--text-3); }
.title .t2 { color: var(--text-2); }
.lede { margin-top: 1.2rem; color: var(--text-2); font-size: 1.08rem; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.contact-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }

.stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.stat { padding: 0.4rem 0.6rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--cyan); letter-spacing: -0.02em; }
.stat-label { color: var(--text-3); font-size: 0.78rem; line-height: 1.35; margin-top: 0.15rem; }

/* ---------- stack diagram ---------- */
.stack-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: start; }
.stack { display: grid; gap: 0.55rem; }
.layer {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 0.9rem; align-items: center; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1.1rem; cursor: pointer; color: var(--text);
  font-family: var(--font); transition: transform .18s, border-color .18s, background .18s;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.layer:hover { transform: translateX(6px); border-color: var(--line-strong); }
.layer.active { border-color: var(--cyan); background: rgba(56, 217, 245, 0.09); box-shadow: 0 0 0 1px rgba(56,217,245,.25), 0 16px 40px -20px var(--glow); }
.layer-n { grid-row: 1 / span 2; color: var(--cyan); font-size: 0.85rem; text-align: center; }
.layer-t { font-family: var(--head); font-weight: 600; font-size: 1.02rem; }
.layer-s { color: var(--text-3); font-size: 0.82rem; }
.stack-detail { position: sticky; top: 84px; min-height: 260px; }
.stack-detail p { color: var(--text-2); font-size: 0.95rem; }
.sd-metrics { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.sd-metrics span { padding: 0.3rem 0.6rem; border-radius: 8px; background: rgba(56,217,245,0.1); border: 1px solid rgba(56,217,245,0.25); color: var(--cyan-2); font-size: 0.75rem; }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: 420px 1fr; gap: 1.2rem; align-items: start; }
.radar-wrap svg { width: 100%; height: auto; display: block; }
.skill-cols { display: grid; gap: 0.9rem; }
.skill-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; backdrop-filter: blur(12px); }
.skill-group h4 { color: var(--cyan); margin-bottom: 0.35rem; }
.skill-group p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; }

/* ---------- larry ---------- */
.larry-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2rem; }
#fleet { width: 100%; height: auto; display: block; }
.fleet-note { color: var(--text-2); font-size: 0.9rem; margin-top: 0.8rem; min-height: 3.2em; }
.router-lede { color: var(--text-2); font-size: 0.92rem; margin-bottom: 0.8rem; }
textarea#router-in, #chat-in {
  width: 100%; background: rgba(6, 12, 24, 0.7); border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  font-family: var(--font); font-size: 0.95rem; padding: 0.8rem 0.95rem; outline: none; resize: vertical; transition: border-color .15s;
}
textarea#router-in:focus, #chat-in:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56,217,245,0.15); }
.ladder { display: grid; gap: 0.45rem; margin-top: 0.9rem; }
.rung {
  display: grid; grid-template-columns: 1fr auto auto; gap: 0.8rem; align-items: center;
  padding: 0.6rem 0.9rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); transition: all .25s;
}
.rung-name { font-weight: 600; font-size: 0.92rem; }
.rung-model, .rung-cost { color: var(--text-3); font-size: 0.75rem; }
.rung.hit { border-color: var(--cyan); background: rgba(56,217,245,0.12); box-shadow: 0 0 24px -6px var(--glow); transform: translateX(4px); }
.rung.hit .rung-name { color: var(--cyan-2); }
.rung.passed { opacity: 0.45; }
.router-why { margin-top: 0.8rem; color: var(--text-3); font-size: 0.78rem; line-height: 1.5; }
.larry-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 1.2rem; }
.fact { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; color: var(--text-3); font-size: 0.85rem; }
.fact b { display: block; color: var(--cyan); font-family: var(--head); font-size: 1.05rem; margin-bottom: 0.15rem; }

/* ---------- chat ---------- */
.chat { max-width: 860px; }
.chat-log { display: grid; gap: 0.8rem; max-height: 420px; overflow-y: auto; padding-right: 0.3rem; }
.msg { display: grid; gap: 0.25rem; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.msg p { color: var(--text-2); font-size: 0.95rem; white-space: pre-wrap; }
.msg .who { color: var(--text-3); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.msg-larry { border-color: rgba(56,217,245,0.28); background: rgba(56,217,245,0.06); }
.msg-larry .who { color: var(--cyan); }
.msg-you { background: rgba(139,124,246,0.08); border-color: rgba(139,124,246,0.3); }
.msg-err { border-color: rgba(245,185,90,0.4); }
.msg-err .who { color: var(--amber); }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.chat-suggest button { background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--text-2); border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.8rem; font-family: var(--font); cursor: pointer; }
.chat-suggest button:hover { border-color: var(--line-strong); color: var(--cyan-2); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; margin-top: 0.9rem; }
.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2 } 40% { opacity: 1 } }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 0.9rem; padding-left: 0; }
.tl-item { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; align-items: start; position: relative; }
.tl-year { color: var(--cyan); font-size: 0.85rem; padding-top: 1.1rem; text-align: right; }
.tl-item::before { content: ''; position: absolute; left: 92px; top: 0; bottom: -0.9rem; width: 1px; background: linear-gradient(var(--line-strong), var(--line)); }
.tl-item:last-child::before { bottom: 0; }
.tl-item::after { content: ''; position: absolute; left: 88px; top: 1.45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--glow); }
.tl-card { margin-left: 1.6rem; display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; backdrop-filter: blur(12px); }
.tl-logo { display: grid; place-items: center; height: 54px; background: rgba(255,255,255,0.9); border-radius: 10px; padding: 0.4rem 0.6rem; }
.tl-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-text { font-family: var(--head); font-weight: 700; color: #0b1220; font-size: 0.95rem; }
.tl-co { color: var(--text-3); font-size: 0.82rem; margin: 0.1rem 0 0.35rem; }
.tl-card p { color: var(--text-2); font-size: 0.9rem; }

/* ---------- contact / footer ---------- */
.contact { padding-bottom: 2rem; }
.contact-card { text-align: center; padding: clamp(2rem, 5vw, 3.5rem); }
.contact-card .contact-row, .contact-card .hero-actions { justify-content: center; }
.contact-card h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.contact-sub { margin: 0.4rem auto 0; max-width: 520px; }
.contact-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 1.8rem 0 1.6rem; text-align: left; }
.topic { position: relative; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.1rem 1.1rem 1.2rem; }
.topic::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(var(--cyan), var(--violet)); }
.topic-n { color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.12em; }
.topic h4 { margin: 0.3rem 0 0.35rem; font-size: 1.05rem; }
.topic p { color: var(--text-2); font-size: 0.88rem; line-height: 1.5; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; color: var(--text-3); font-size: 0.75rem; padding: 2rem 0.2rem 1.5rem; }
.footer a { color: var(--text-2); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 16, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); width: min(920px, calc(100% - 2rem));
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 22px; padding: clamp(1.2rem, 3vw, 2.2rem);
  box-shadow: 0 0 0 1px rgba(56,217,245,.15), 0 40px 100px -30px rgba(0,0,0,.9), 0 0 120px -40px var(--glow);
  opacity: 0; animation: pop .28s cubic-bezier(.2,.9,.3,1.2) forwards;
}
@keyframes pop { to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.modal-x { position: absolute; top: 0.8rem; right: 1rem; background: none; border: 0; color: var(--text-2); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.modal-x:hover { color: var(--cyan); }
.modal-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: center; }
.modal-preview { position: relative; perspective: 900px; }
.paper {
  position: relative; z-index: 1; background: #fff; color: #0b1220; border-radius: 6px; padding: 1.2rem 1.1rem; aspect-ratio: 8.5 / 11;
  transform: rotateY(-14deg) rotateX(4deg); transform-style: preserve-3d; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-10deg) rotateX(2deg) translateY(-8px); } }
.paper-name { font-family: var(--head); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; }
.paper-title { font-size: 0.55rem; color: #4a5a78; margin-top: 0.15rem; }
.paper-rule { height: 2px; background: var(--cyan); margin: 0.6rem 0; }
.paper-h { font-family: var(--mono); font-size: 0.5rem; color: var(--cyan); letter-spacing: 0.12em; margin: 0.7rem 0 0.35rem; font-weight: 600; }
.paper-line { height: 5px; background: #e6ebf3; border-radius: 3px; margin: 0.32rem 0; }
.w95 { width: 95% } .w90 { width: 90% } .w85 { width: 85% } .w80 { width: 80% } .w75 { width: 75% } .w70 { width: 70% } .w60 { width: 60% }
.paper-shadow { position: absolute; inset: 20% 10% -6% 10%; background: radial-gradient(ellipse at center, var(--glow), transparent 70%); filter: blur(20px); z-index: 0; }
.modal-copy h3 { font-family: var(--mono); font-size: 1.15rem; color: var(--cyan-2); word-break: break-all; }
.modal-copy p { color: var(--text-2); font-size: 0.95rem; margin: 0.7rem 0; }
.dl-facts { list-style: none; display: grid; gap: 0.3rem; color: var(--text-3); font-size: 0.78rem; margin-bottom: 1rem; }
.dl-facts li::before { content: '▸ '; color: var(--cyan); }
.dl-status { color: var(--mint); font-size: 0.78rem; margin-top: 0.7rem; min-height: 1.2em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in, .static .reveal { opacity: 1; transform: none; }
.static .reveal { transition: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .skills-grid, .larry-grid, .stack-wrap { grid-template-columns: 1fr; }
  .stack-detail { position: static; }
  .larry-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; top: 58px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(14,24,44,0.96); border-bottom: 1px solid var(--line); padding: 0.6rem 1rem 1rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 0.8rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .title, .hero-actions, .contact-row { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .photo-ring { width: 200px; height: 200px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; }
  .cards-4, .cards-2, .larry-facts, .contact-topics { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-year { text-align: left; padding: 0 0 0 1.6rem; }
  .tl-item::before, .tl-item::after { left: 4px; }
  .tl-item::after { top: 0.3rem; }
  .tl-card { margin-left: 1.6rem; grid-template-columns: 1fr; }
  .tl-logo { width: 120px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-preview { max-width: 220px; margin: 0 auto; }
  .chat-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-ring, .photo-ring img, .paper { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- print (the PDF is separate; this is a fallback) ---------- */
@media print {
  .bg, .nav, .modal, #ask, #larry, .hero-actions, .chat-suggest { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .mini, .skill-group, .tl-card, .stats { background: #fff; border-color: #ddd; box-shadow: none; }
  .reveal { opacity: 1; transform: none; }
  .accent, .stat-num, .card-tag, .eyebrow { color: #0a7ea4; }
  .section { padding-top: 1.5rem; }
}
