/* ═══════════ HAMID portfolio — same DNA as the GitHub profile ═══════════ */
:root {
  --bg: #05070a;
  --panel: #0d1117;
  --panel2: #11161f;
  --line: #21262d;
  --txt: #f0f6fc;
  --muted: #8b949e;
  --green: #00ff88;
  --cyan: #00c8ff;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--mono);
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--green); color: #000; }
a { color: inherit; }

/* ambient layers */
#bg { position: fixed; inset: 0; z-index: 0; opacity: .8; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 30%, transparent 55%, rgba(0,0,0,.55) 100%);
}
main { position: relative; z-index: 2; }

/* ══════════ NAV ══════════ */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: .8rem 1.4rem;
  background: rgba(5,7,10,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; font-weight: 700; }
.brand .p, .p { color: var(--green); }
.brand .dim { color: var(--muted); }
.caret { color: var(--green); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 0%,55% { opacity: 1 } 56%,100% { opacity: 0 } }
.links { display: flex; gap: 1.1rem; align-items: center; }
.links a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  padding: .25rem .1rem; position: relative; transition: color .25s, text-shadow .25s;
}
.links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--green); transition: width .3s ease;
}
.links a:hover { color: var(--green); text-shadow: 0 0 12px rgba(0,255,136,.7); }
.links a:hover::after { width: 100%; }
.btn-small {
  border: 1px solid var(--green); border-radius: 6px; padding: .3rem .8rem !important;
  color: var(--green) !important;
}
.btn-small::after { display: none; }
.btn-small:hover { background: var(--green); color: #000 !important; text-shadow: none !important; box-shadow: 0 0 18px rgba(0,255,136,.5); }

/* ══════════ HERO ══════════ */
.hero {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 4rem 1.2rem 3rem; position: relative;
}
.hero-inner { max-width: 860px; width: 100%; }
.eyebrow { color: var(--muted); font-size: .9rem; letter-spacing: .5px; }
.eyebrow .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #28c840; box-shadow: 0 0 10px #28c840; margin-right: .5rem;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .45 } 50% { opacity: 1 } }
.wordmark {
  font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; letter-spacing: .04em;
  line-height: 1; margin: .4rem 0 .2rem; color: var(--txt);
  text-shadow: 0 0 18px rgba(0,255,136,.35), 0 0 70px rgba(0,255,136,.18), 6px 6px 0 rgba(0,200,255,.12);
  transform-style: preserve-3d;
}
.tagline { color: var(--muted); font-size: clamp(.95rem, 2.5vw, 1.15rem); }

.terminal {
  margin: 2rem auto 0; max-width: 620px; text-align: left;
  background: rgba(13,17,23,.92); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.terminal:hover {
  transform: translateY(-4px);
  border-color: rgba(0,255,136,.45);
  box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 0 30px rgba(0,255,136,.12);
}
.term-bar, .card-bar {
  display: flex; align-items: center; gap: 7px;
  background: #0d1117; border-bottom: 1px solid var(--line);
  padding: .55rem .9rem; font-size: .8rem; color: var(--muted);
}
.term-bar span, .card-bar span { width: 11px; height: 11px; border-radius: 50%; background: #30363d; }
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-bar em, .card-bar em { margin-left: auto; font-style: normal; }
.term-body { padding: 1.1rem 1.2rem; min-height: 132px; }
#reel { white-space: pre-wrap; font-size: .95rem; color: var(--txt); }
#reel .pr { color: var(--green); }
#reel .out { color: var(--cyan); }

.chips { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem 1rem;
  font-size: .82rem; color: var(--muted); background: rgba(13,17,23,.7);
  transition: all .3s ease;
}
.chip.link { text-decoration: none; }
.chip.link:hover {
  color: var(--green); border-color: var(--green); transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,255,136,.18);
}

.ctas { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.btn {
  font-family: var(--mono); font-size: .95rem; text-decoration: none;
  padding: .8rem 1.7rem; border-radius: 8px; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s, color .25s;
  display: inline-block;
}
.btn.primary { background: var(--green); color: #000; font-weight: 700; border: 1px solid var(--green); }
.btn.primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 32px rgba(0,255,136,.4); }
.btn.ghost { background: transparent; color: var(--green); border: 1px solid rgba(0,255,136,.5); }
.btn.ghost:hover { background: rgba(0,255,136,.1); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,255,136,.15); }
.btn.sm { padding: .55rem 1.2rem; font-size: .85rem; }
.btn.lg { padding: 1rem 2rem; font-size: 1.02rem; }

.scroll-hint {
  position: absolute; bottom: 1.2rem; color: var(--muted); text-decoration: none;
  animation: bob 2s ease-in-out infinite; font-size: 1.1rem;
}
.scroll-hint:hover { color: var(--green); }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(8px) } }

/* ══════════ TICKER ══════════ */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; background: rgba(13,17,23,.6); padding: .6rem 0;
  color: rgba(0,255,136,.65); font-size: .85rem; white-space: nowrap;
}
/* ticker lives inside the sticky header: bleed to edges, no double border */
.nav .ticker { flex: 1 1 100%; order: 5; border-top: none; border-bottom: none; margin: .7rem -1.4rem -.8rem; padding: .45rem 0; }
.ticker-track { display: inline-block; animation: tick 28s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ══════════ SECTIONS ══════════ */
.block { max-width: 1020px; margin: 0 auto; padding: 4.5rem 1.2rem 1rem; scroll-margin-top: 70px; }
.sec-title { font-size: clamp(1.3rem, 3.5vw, 1.8rem); margin-bottom: 1.6rem; }
.lede { font-size: 1.08rem; }
.muted { color: var(--muted); margin-bottom: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }

.card {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-5px); border-color: rgba(0,255,136,.4);
  box-shadow: 0 22px 55px rgba(0,0,0,.55), 0 0 26px rgba(0,255,136,.1);
}
.card-bar em { color: var(--muted); }

.code { padding: 1.2rem 1.3rem; font-size: .86rem; overflow-x: auto; }
.k { color: #ff7b72; } .c { color: #d2a8ff; } .s { color: #a5d6ff; }
.f { color: #d2a8ff; } .cm { color: #7d8590; }

.about-text p { margin-bottom: 1rem; color: #c9d1d9; }
.about-text strong { color: var(--txt); }
.ticks { list-style: none; margin-top: 1.2rem; }
.ticks li {
  padding: .5rem .8rem; border-left: 2px solid var(--line); margin-bottom: .4rem;
  color: #c9d1d9; transition: all .3s ease; font-size: .93rem;
}
.ticks li:hover { border-color: var(--green); background: rgba(0,255,136,.06); transform: translateX(6px); }

/* skill bars */
.bars { padding: 1.6rem; }
.bar-row {
  display: grid; grid-template-columns: 130px 1fr 52px; gap: 1rem; align-items: center;
  padding: .55rem .6rem; border-radius: 8px; transition: background .3s;
}
.bar-row:hover { background: rgba(0,255,136,.06); }
.bar-name { font-size: .88rem; }
.bar { height: 10px; background: #161b22; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 12px rgba(0,255,136,.5);
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.bar-pct { color: var(--green); font-size: .85rem; text-align: right; }
.note { color: var(--muted); font-size: .82rem; margin-top: 1rem; }

/* projects */
.proj { padding: 1.6rem; transform-style: preserve-3d; }
.proj h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.proj p { color: #c9d1d9; font-size: .92rem; margin-bottom: 1rem; }
.proj .stack { display: flex; gap: .45rem; flex-wrap: wrap; }
.proj .stack code {
  background: #161b22; border: 1px solid var(--line); border-radius: 6px;
  padding: .15rem .6rem; font-size: .78rem; color: var(--cyan);
  transition: all .3s ease;
}
.proj .stack code:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(0,200,255,.3); transform: translateY(-2px); }
.glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(0,255,136,.12), transparent 45%);
}
.proj:hover .glare { opacity: 1; }

/* lab table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--green); font-weight: 700; font-size: .8rem; letter-spacing: .5px; }
tbody tr { transition: background .25s, transform .25s; }
tbody tr:hover { background: rgba(0,255,136,.07); }
tbody tr:last-child td { border-bottom: none; }
td code { color: var(--cyan); }

/* roadmap */
.road details {
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem;
  background: rgba(13,17,23,.7); overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.road details:hover { border-color: rgba(0,255,136,.4); }
.road details[open] { border-color: rgba(0,255,136,.35); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.road summary {
  cursor: pointer; padding: .9rem 1.2rem; font-weight: 700; list-style: none;
  transition: background .3s, color .3s;
}
.road summary::-webkit-details-marker { display: none; }
.road summary::before { content: "▸ "; color: var(--green); transition: transform .3s; display: inline-block; }
.road details[open] summary::before { transform: rotate(90deg); }
.road summary:hover { background: rgba(0,255,136,.06); color: var(--green); }
.road ul { list-style: none; padding: 0 1.2rem 1.1rem 2.2rem; }
.road li { padding: .28rem 0; color: var(--muted); font-size: .9rem; transition: color .25s, transform .25s; }
.road li:hover { color: var(--txt); transform: translateX(4px); }
.road li::before { content: "[ ] "; color: var(--green); }
.road li.done { color: #c9d1d9; }
.road li.done::before { content: "[x] "; color: var(--green); }

/* contact + footer */
.contact { text-align: center; }
.contact .ctas { margin-top: 2rem; }
.quote { color: var(--muted); margin-top: 2rem; }
.footer {
  text-align: center; color: var(--muted); font-size: .85rem;
  padding: 3rem 1rem 2.5rem; border-top: 1px solid var(--line); margin-top: 4rem;
}

/* stats strip */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 1020px; margin: 0 auto; padding: 0 1.2rem;
}
.stat {
  text-align: center; padding: 1.4rem .6rem;
  background: rgba(13,17,23,.7); border: 1px solid var(--line); border-radius: 12px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(0,255,136,.45); box-shadow: 0 14px 34px rgba(0,0,0,.5), 0 0 20px rgba(0,255,136,.1); }
.stat b { display: block; font-size: 2rem; color: var(--green); text-shadow: 0 0 16px rgba(0,255,136,.4); }
.stat span:last-child { color: var(--muted); font-size: .8rem; }

/* services */
.serv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.serv { padding: 1.6rem 1.3rem; }
.serv-ico {
  font-size: 2rem; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  background: #161b22; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.serv:hover .serv-ico { transform: scale(1.12) rotate(-6deg); border-color: var(--green); box-shadow: 0 0 22px rgba(0,255,136,.35); }
.serv h3 { margin-bottom: .6rem; font-size: 1.02rem; }
.serv p { color: #c9d1d9; font-size: .87rem; margin-bottom: 1rem; }
.flag {
  display: inline-block; font-size: .72rem; color: #000; background: var(--green);
  border-radius: 6px; padding: .15rem .6rem; font-weight: 700; margin-bottom: .8rem;
}
.feat { list-style: none; margin-bottom: 1.1rem; }
.feat li { font-size: .86rem; color: #c9d1d9; padding: .25rem 0 .25rem 1.4rem; position: relative; }
.feat li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.toolbox { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
.toolbox code {
  background: #161b22; border: 1px solid var(--line); border-radius: 6px;
  padding: .15rem .6rem; font-size: .78rem; color: var(--cyan); transition: all .3s ease;
}
.toolbox code:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 0 12px rgba(0,200,255,.3); }

/* contact form */
.contact-grid { align-items: stretch; }
.form-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.form-body label { display: flex; flex-direction: column; gap: .4rem; font-size: .82rem; color: var(--green); text-align: left; }
.form-body input, .form-body textarea {
  font-family: var(--mono); font-size: .9rem; color: var(--txt);
  background: #0a0e14; border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem;
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.form-body input:focus, .form-body textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,255,136,.15), 0 0 18px rgba(0,255,136,.12);
}
.ctas.col { flex-direction: column; align-items: stretch; margin-top: 0; }
.ctas.left { justify-content: flex-start; }

/* direct channels */
.chan-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.status { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #28c840; flex-shrink: 0;
  box-shadow: 0 0 10px #28c840; animation: pulse 2.2s ease-in-out infinite;
}
.chan {
  display: flex; align-items: center; gap: 1rem; text-decoration: none; text-align: left;
  background: #0a0e14; border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1.1rem;
  font-family: var(--mono); font-size: .9rem; color: var(--txt); cursor: pointer; width: 100%;
  transition: transform .3s ease, border-color .3s, box-shadow .3s, background .3s;
}
.chan:hover { transform: translateX(6px); border-color: rgba(0,255,136,.5); box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 18px rgba(0,255,136,.12); background: rgba(0,255,136,.05); }
.chan.primary { background: rgba(0,255,136,.1); border-color: rgba(0,255,136,.55); }
.chan.primary:hover { background: var(--green); }
.chan.primary:hover .chan-txt b, .chan.primary:hover .chan-txt small, .chan.primary:hover .chan-go, .chan.primary:hover .chan-ico { color: #000; }
.chan-ico {
  width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; background: #161b22; border: 1px solid var(--line); border-radius: 10px;
  transition: transform .3s ease;
}
.chan:hover .chan-ico { transform: scale(1.1) rotate(-6deg); }
.chan-txt { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.chan-txt b { font-size: .92rem; }
.chan-txt small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-go { color: var(--green); font-size: 1.1rem; transition: transform .3s ease; }
.chan:hover .chan-go { transform: translateX(5px); }

/* hero avatar */
.avatar-wrap { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.avatar {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(0,255,136,.6);
  box-shadow: 0 0 0 6px rgba(0,255,136,.08), 0 0 34px rgba(0,255,136,.35), 0 18px 50px rgba(0,0,0,.6);
  animation: floaty 5s ease-in-out infinite;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.avatar-wrap:hover .avatar { border-color: var(--green); box-shadow: 0 0 0 8px rgba(0,255,136,.12), 0 0 55px rgba(0,255,136,.55), 0 18px 50px rgba(0,0,0,.6); }
@keyframes floaty { 0%,100% { translate: 0 0 } 50% { translate: 0 -10px } }

/* real brand icons inside channel rows */
.brand-ico { width: 22px; height: 22px; display: block; }
.chan:hover .brand-ico { transform: scale(1.12); }
.brand-ico { transition: transform .3s ease; }

/* balanced contact columns */
.contact-grid { align-items: stretch; }
#hireForm { display: flex; flex-direction: column; height: 100%; }
#hireForm .form-body { flex: 1; }
#hireForm .form-body .btn { margin-top: auto; }
.chan-card { display: flex; flex-direction: column; height: 100%; }
.chan-card .chan-body { flex: 1; justify-content: center; }

.sub-title { margin: 2.4rem 0 1.2rem; font-size: 1.05rem; }
/* compact repo grid (pre-linked: goes live when the repo goes public) */
.repo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.repo {
  display: flex; flex-direction: column; gap: .35rem; text-decoration: none;
  background: rgba(13,17,23,.7); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem;
  transition: transform .3s ease, border-color .3s, box-shadow .3s;
}
.repo:hover { transform: translateY(-5px); border-color: rgba(0,255,136,.5); box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 18px rgba(0,255,136,.12); }
.repo b { font-size: .9rem; color: var(--txt); }
.repo:hover b { color: var(--green); }
.repo small { color: var(--muted); font-size: .76rem; line-height: 1.5; flex: 1; }
.lock { align-self: flex-start; font-size: .7rem; color: var(--cyan); background: rgba(0,200,255,.08); border: 1px solid rgba(0,200,255,.3); border-radius: 6px; padding: .1rem .55rem; }

/* footer + toTop + burger */
.foot-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem;
  max-width: 1020px; margin: 0 auto 1.8rem; padding: 0 1.2rem; text-align: left; align-items: start;
}
.foot-brand b { font-size: 1.05rem; }
.foot-brand .muted { margin: .3rem 0 0; font-size: .82rem; }
.foot-links, .foot-social { display: flex; flex-direction: column; gap: .45rem; }
.foot-links a, .foot-social a { color: var(--muted); text-decoration: none; font-size: .85rem; width: fit-content; transition: color .25s, transform .25s; }
.foot-links a:hover, .foot-social a:hover { color: var(--green); transform: translateX(4px); }
.made { color: var(--muted); font-size: .76rem; opacity: .75; }
.exit { font-size: .8rem; margin-top: .4rem; }
#toTop {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 10;
  width: 46px; height: 46px; border-radius: 10px; cursor: pointer;
  background: rgba(13,17,23,.9); color: var(--green); border: 1px solid rgba(0,255,136,.5);
  font-size: 1rem; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .35s ease; font-family: var(--mono);
}
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { background: var(--green); color: #000; box-shadow: 0 0 22px rgba(0,255,136,.5); }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--green); margin: 4px 0; transition: all .3s; }
.nav a.active { color: var(--green); text-shadow: 0 0 12px rgba(0,255,136,.7); }

/* scroll reveal (only hidden when JS is confirmed running) */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in, .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .serv-grid { grid-template-columns: 1fr 1fr; }
  .repo-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .serv-grid { grid-template-columns: 1fr; }
  .burger { display: block; }
  .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5,7,10,.97); border-bottom: 1px solid var(--line); padding: .6rem 1.2rem 1rem;
  }
  .links.open { display: flex; }
  .links a { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
  .links a:last-child { border-bottom: none; }
  .links a::after { display: none; }
  .bar-row { grid-template-columns: 100px 1fr 46px; }
  .term-body { min-height: 150px; }
  .foot-grid { grid-template-columns: 1fr; text-align: center; gap: 1.2rem; }
  .foot-links, .foot-social { align-items: center; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
