/* ============================================================
   PRESTON GRINSTEAD — portfolio
   Dark editorial · Vegas gold · Space Grotesk / Inter / Fraunces
   ============================================================ */

:root {
  --bg: #0a0d12;
  --bg-2: #0e1219;
  --surface: #131824;
  --line: rgba(237, 234, 227, 0.09);
  --text: #edeae3;
  --muted: #98a1b3;
  --gold: #e3b341;
  --gold-bright: #f0c65e;
  --gold-dim: rgba(227, 179, 65, 0.14);
  --green: #6fcf97;
  --red: #e07a5f;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;

  --nav-h: 72px;
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --max-w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #0a0d12; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- utilities ---------- */

.section { padding: clamp(5rem, 10vw, 8.5rem) var(--pad-x); position: relative; }
.section__head { max-width: var(--max-w); margin: 0 auto clamp(3rem, 6vw, 5rem); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-top: 1rem;
}
.section__lede { color: var(--muted); max-width: 56ch; margin-top: 1.25rem; font-size: 1.05rem; }

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 340;
  color: var(--gold);
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; align-items: baseline; gap: 1rem; }
.preloader__mono {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--gold);
}
.preloader__count {
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- progress bar ---------- */

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 90;
}

/* ---------- noise overlay ---------- */

.noise {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(4%, 4%); }
}

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: baseline; gap: 0.35rem; font-family: var(--font-display); }
.nav__mono { color: var(--gold); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; }
.nav__dash { color: var(--muted); }
.nav__name { font-weight: 500; font-size: 1rem; letter-spacing: 0.02em; }

.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav__links a {
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: color 0.25s ease; position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  padding: 0.55rem 1.1rem; border: 1px solid rgba(227, 179, 65, 0.45); color: var(--gold) !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav__cta:hover { background: var(--gold-dim); border-color: var(--gold); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.8rem 1.4rem; border-radius: 2px; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: scale(0.98); }

.btn--gold {
  background: var(--gold); color: #14100a;
  box-shadow: 0 0 0 rgba(227, 179, 65, 0);
}
.btn--gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(227, 179, 65, 0.25);
}

.btn--ghost {
  border: 1px solid var(--line); color: var(--text); background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn--xl { font-size: clamp(0.95rem, 2vw, 1.15rem); padding: 1.1rem 2.2rem; margin-top: 2.5rem; }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 2.5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 78% 18%, rgba(227, 179, 65, 0.09), transparent 65%),
    radial-gradient(ellipse 50% 40% at 12% 85%, rgba(90, 130, 200, 0.07), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(237, 234, 227, 0.028) 63px 64px),
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(237, 234, 227, 0.028) 63px 64px);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 40%, black 30%, transparent 100%);
}

.hero__skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  width: 100%; height: clamp(70px, 12vw, 130px);
  color: rgba(227, 179, 65, 0.22);
}

.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}

.hero__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 10.5vw, 8.6rem);
  line-height: 0.94; letter-spacing: -0.03em; text-transform: uppercase;
  margin-top: 1.4rem;
}
.hero__name .line { display: block; overflow: hidden; }
.hero__name .line__inner {
  display: inline-block; transform: translateY(112%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
body.loaded .hero__name .line:nth-child(1) .line__inner { transform: translateY(0); transition-delay: 0.05s; }
body.loaded .hero__name .line:nth-child(2) .line__inner { transform: translateY(0); transition-delay: 0.18s; }

.line--accent .line__inner { color: var(--gold); }

.hero__sub {
  margin-top: 1.6rem; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 46ch;
}
.hero__meta { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.2rem; flex-wrap: wrap; }

.badge-vegas {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(227, 179, 65, 0.4); padding: 0.6rem 1.1rem; border-radius: 999px;
  background: rgba(227, 179, 65, 0.06);
}
.badge-vegas__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(240, 198, 94, 0.6); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 198, 94, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(240, 198, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 198, 94, 0); }
}

/* hero photo */
.hero__photo { position: relative; justify-self: end; width: min(100%, 420px); }
.hero__photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%;
  filter: saturate(0.92) contrast(1.05);
  border: 1px solid var(--line);
}
.hero__photo::before, .hero__photo::after {
  content: ""; position: absolute; width: 34px; height: 34px; pointer-events: none;
  border-color: var(--gold); border-style: solid; z-index: 2;
}
.hero__photo::before { top: -10px; left: -10px; border-width: 2px 0 0 2px; }
.hero__photo::after { bottom: -10px; right: -10px; border-width: 0 2px 2px 0; }
.hero__photo-cap {
  margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; text-align: right;
}

/* stats */
.stats {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: clamp(3rem, 6vw, 5rem) auto 0; width: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.stat { background: var(--bg-2); padding: 1.6rem 1.5rem; }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--gold); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat__label { display: block; margin-top: 0.5rem; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.05rem 0; background: var(--bg-2); position: relative; z-index: 2;
}
.ticker__track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.24em; color: var(--muted); white-space: nowrap; padding-right: 1rem;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- projects ---------- */

.work { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

.project {
  max-width: var(--max-w); margin: 0 auto clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem); align-items: center;
}
.project:last-child { margin-bottom: 0; }

.project--flagship { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.project--flagship .project__media img { aspect-ratio: 16 / 9.4; }

.project__media { position: relative; }
.project__media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}
.project:hover .project__media img { transform: scale(1.015); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); }

.live-pill {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  color: #14100a; background: var(--gold-bright); padding: 0.45rem 0.85rem; border-radius: 999px;
}
.live-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: #14100a; animation: blink 1.4s ease infinite; }
a.live-pill { text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
a.live-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(227,179,65,.35); }
@keyframes blink { 50% { opacity: 0.25; } }

.project__index {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.project__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12; letter-spacing: -0.01em; margin-top: 0.8rem;
}
.project__desc { color: var(--muted); margin-top: 1.1rem; font-size: 0.98rem; }

.chips { margin-top: 1.3rem; display: grid; gap: 0.55rem; }
.chips li {
  position: relative; padding-left: 1.4rem; font-size: 0.92rem; color: var(--text); line-height: 1.5;
}
.chips li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold); transform: rotate(45deg);
}

.tags { margin-top: 1.3rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.05em; }

.project__links { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.7rem; flex-wrap: wrap; }
.deploy-note { font-size: 0.8rem; color: var(--muted); font-style: italic; }

/* gcode terminal */
.project__gcode { display: flex; align-items: center; }
.terminal {
  width: 100%; background: #0d1117; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.terminal__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #131926; border-bottom: 1px solid var(--line);
}
.terminal__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3245; }
.terminal__bar em { margin-left: auto; font-style: normal; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }
.terminal__body {
  padding: 1.2rem 1.4rem; font-family: "Cascadia Code", Consolas, monospace;
  font-size: clamp(0.68rem, 1.35vw, 0.84rem); line-height: 1.75; color: #c9d2e3; white-space: pre-wrap; word-break: break-word;
}
.t-del { color: var(--red); }
.t-add { color: var(--green); font-weight: 600; }
.t-ok { color: var(--gold); }
.t-agent { color: #7d8aa5; }

/* ---------- about ---------- */

.about__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 7vw, 6rem); align-items: start;
}
.about__sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }

.pullquote {
  font-family: var(--font-serif); font-style: italic; font-weight: 340;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--gold);
  border-left: 2px solid var(--gold); padding-left: 1.4rem; margin-bottom: 2.2rem;
}

.about__body p { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.about__body p + p { margin-top: 1.3rem; }

.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
.cap { background: var(--bg-2); padding: 1.6rem 1.5rem; transition: background 0.3s ease; }
.cap:hover { background: var(--surface); }
.cap h4 { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text); margin-bottom: 0.6rem; }
.cap p { font-size: 0.88rem !important; max-width: none !important; }

/* ---------- experience ---------- */

.timeline { max-width: var(--max-w); margin: 0 auto; position: relative; padding-left: clamp(1.5rem, 4vw, 3rem); }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(227, 179, 65, 0.1));
}

.tl-item { position: relative; padding-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: calc(-1 * clamp(1.5rem, 4vw, 3rem) + 2px); top: 6px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--gold); box-shadow: 0 0 14px rgba(227, 179, 65, 0.5);
}

.tl-when { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tl-what h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; margin-top: 0.6rem; line-height: 1.2; }
.tl-role { display: block; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-top: 0.3rem; letter-spacing: 0; }
.tl-what ul { margin-top: 1rem; display: grid; gap: 0.6rem; }
.tl-what li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: 0.95rem; max-width: 72ch; }
.tl-what li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

.tl-brief li strong { color: var(--text); font-weight: 600; }

/* education */
.edu { max-width: var(--max-w); margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.edu__card { background: var(--bg-2); padding: 1.8rem 1.7rem; }
.edu__card--wide { grid-column: span 2; }
.edu__card h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.edu__card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- contact ---------- */

.contact { background: linear-gradient(180deg, var(--bg-2), #0b0f16 70%); border-top: 1px solid var(--line); text-align: center; overflow: hidden; position: relative; }
.contact::before {
  content: ""; position: absolute; inset: auto -20% -55% -20%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(227, 179, 65, 0.1), transparent 65%);
  pointer-events: none;
}
.contact__inner { position: relative; max-width: var(--max-w); margin: 0 auto; }
.contact .eyebrow { color: var(--muted); }
.contact__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 6.8rem); line-height: 0.95; letter-spacing: -0.02em; margin-top: 1.4rem;
}
.contact__links { display: flex; justify-content: center; gap: 2.2rem; margin-top: 3rem; flex-wrap: wrap; }
.contact__links a {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: color 0.25s ease;
}
.contact__links a:hover { color: var(--gold); }

/* ---------- downloadables dropdown ---------- */

.download { margin-top: 2.8rem; display: flex; flex-direction: column; align-items: center; gap: 0.95rem; }
.download__label {
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.dropdown { position: relative; width: min(380px, 100%); }
.dropdown__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.95rem 1.3rem; border-radius: 2px;
  cursor: pointer; transition: border-color 0.25s ease, background 0.25s ease;
}
.dropdown__btn:hover { border-color: var(--gold); }
.dropdown.open .dropdown__btn { border-color: var(--gold); background: rgba(227, 179, 65, 0.05); }
.dropdown__caret {
  flex: none; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.dropdown.open .dropdown__caret { transform: rotate(-135deg) translateY(-3px); border-color: var(--gold); }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  margin: 0; padding: 6px; list-style: none;
  background: rgba(14, 18, 25, 0.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s;
}
.dropdown.open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem; border-radius: 2px; transition: background 0.2s ease;
}
.dropdown__menu a:hover { background: var(--gold-dim); }
.dropdown__menu strong {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--text); transition: color 0.2s ease;
}
.dropdown__menu a:hover strong { color: var(--gold); }
.dropdown__menu small { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }

/* ---------- footer ---------- */

.foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.6rem var(--pad-x); border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; background: #0b0f16;
}

/* ---------- reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- responsive ---------- */

/* mobile nav (hamburger + dropdown) */
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 42px; padding: 0 10px;
  background: transparent; border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav.open {
    background: rgba(10, 13, 18, 0.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
  }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.75rem var(--pad-x) 1.4rem;
    background: rgba(10, 13, 18, 0.97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { padding: 0.95rem 0; font-size: 0.92rem; border-bottom: 1px solid rgba(237, 234, 227, 0.07); }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin-top: 1rem; justify-content: center; border-radius: 3px; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero__photo { justify-self: start; width: min(100%, 360px); order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .project, .project--flagship { grid-template-columns: 1fr; gap: 1.8rem; }
  .about__grid { grid-template-columns: 1fr; }
  .about__sticky { position: static; }
}

@media (max-width: 640px) {
  .caps, .edu { grid-template-columns: 1fr; }
  .edu__card--wide { grid-column: span 1; }
  .hero__sub br.desk { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .badge-vegas { font-size: 0.68rem; letter-spacing: 0.12em; padding: 0.55rem 0.9rem; }
  .hero__meta { gap: 1rem; }
  .stat { padding: 1.2rem 1.1rem; }
  .tl-when { letter-spacing: 0.1em; font-size: 0.74rem; }
  .contact__links { gap: 1.3rem 1.8rem; margin-top: 2.4rem; }
}

@media (max-width: 560px) {
  .project__links { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .btn { width: 100%; justify-content: center; }
  .dropdown { width: min(340px, 100%); }
}

@media (max-width: 400px) {
  .hero__name { font-size: clamp(2.5rem, 12vw, 3.2rem); }
}

/* ---------- capture mode (screenshot tooling) ---------- */

.capping .hero { min-height: 900px; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  /* ticker is decorative (aria-hidden) — keep it drifting, just slower */
  .ticker__track { animation-duration: 72s !important; animation-iteration-count: infinite !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__name .line__inner { transform: none; }
}
