/* Shared look and feel for every page of renee-ramjet.com — colours, fonts, layout and components. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0812;
  --bg-2:      #100b1a;
  --surface:   #161022;
  --surface-2: #1d152d;
  --line:        rgba(167,139,250,0.16);
  --line-strong: rgba(167,139,250,0.38);
  --violet:    #a78bfa;
  --purple:    #8b5cf6;
  --purple-2:  #7c3aed;
  --magenta:   #d36ef5;
  --gold:      #d4af5a;
  --gold-soft: #e8c97a;
  --gold-line: rgba(212,175,90,0.45);
  --cream:     #f3eee4;
  --text:      #cfc9dc;
  --dim:       #948ca8;
  --green:     #34d399;
  --amber:     #f5b94a;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'DM Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--cream); font-weight: 500; }

/* ── background ── */
#bg-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55; }
.glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% 0%, rgba(139,92,246,0.22), transparent 70%),
    radial-gradient(45vw 40vh at 0% 100%, rgba(211,110,245,0.10), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }

/* ── type ── */
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 0.9rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--cream); line-height: 1.05; }
h1 { font-size: clamp(3.2rem, 8vw, 6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.75rem; line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--gold); }
.lead { font-size: 1.08rem; color: var(--text); max-width: 620px; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head p { color: var(--dim); font-size: 1.02rem; }

/* ── nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,8,18,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 0 10px rgba(212,175,90,0.25)); }
.brand-text { border-left: 1px solid var(--line-strong); padding-left: 0.9rem; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.08rem; letter-spacing: 0.28em; color: var(--cream); font-weight: 500; }
.brand-name span { color: var(--gold); }
.brand-sub { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.24em; color: var(--dim); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem; color: var(--text); text-decoration: none; position: relative; padding: 0.4rem 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a[aria-current="page"] { color: var(--cream); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--magenta));
}
.nav-links a.btn { padding: 0.5rem 1.05rem; color: var(--gold-soft); }
.nav-links a.btn:hover { color: var(--gold-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; color: var(--cream); cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border-radius: 10px; font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: linear-gradient(135deg, var(--purple-2), var(--purple)); color: #fff; box-shadow: 0 8px 30px rgba(124,58,237,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,58,237,0.5); }
.btn-gold { background: transparent; color: var(--gold-soft); border-color: var(--gold-line); }
.btn-gold:hover { background: rgba(212,175,90,0.08); border-color: var(--gold); }
.btn-ghost { background: rgba(167,139,250,0.06); color: var(--cream); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.82rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.text-link { color: var(--violet); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; }
.text-link:hover { color: var(--magenta); }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ── pills & tags ── */
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status.live { color: var(--green); }
.status.beta { color: var(--amber); }
.tags { display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.4rem; margin-left: calc(-1.5rem - 1px); clip-path: inset(0 0 0 calc(1.5rem + 1px)); }
.tag { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--mono); font-size: 0.74rem; color: var(--violet); }
.tag::before { content: ""; display: inline-block; width: 1px; height: 0.95em; background: rgba(212,175,90,0.55); margin: 0 0.75rem; }

/* ── cards ── */
.card {
  background: linear-gradient(180deg, rgba(29,21,45,0.85), rgba(19,13,30,0.85));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover, .card.hover:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(139,92,246,0.15); }

/* ── HOME: hero ── */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--cream); margin-bottom: 1.25rem; }
.hero-roles .sep { width: 1px; height: 1.2em; background: var(--line-strong); }
.hero .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.4rem; }

.avatar-wrap { position: relative; justify-self: center; width: min(420px, 80vw); aspect-ratio: 1; }
.avatar-wrap::before {
  content: ""; position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.45), rgba(211,110,245,0.12) 45%, transparent 70%);
  filter: blur(10px);
}

.avatar-ring { position: absolute; inset: 0; border-radius: 50%; padding: 10px; background: conic-gradient(from 210deg, var(--gold), rgba(212,175,90,0.15) 30%, var(--purple) 55%, rgba(139,92,246,0.1) 75%, var(--gold)); }
.avatar-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid var(--bg); }
.avatar-orbit { position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed rgba(212,175,90,0.25); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); padding-top: 2rem; gap: 1.5rem; }
.stat { display: flex; gap: 0.9rem; align-items: center; }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(212,175,90,0.08); border: 1px solid rgba(212,175,90,0.25); color: var(--gold); flex-shrink: 0; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-num { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--cream); font-variant-numeric: lining-nums; }
.stat-label { font-size: 0.8rem; color: var(--dim); line-height: 1.3; margin-top: 0.2rem; }

/* ── project cards (grid) ── */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proj-grid.two { grid-template-columns: repeat(2, 1fr); }
.proj-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.proj-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; }
.proj-thumb { padding: 14px; display: flex; align-items: center; justify-content: center; }
.proj-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 8px; transition: transform .6s; }
.proj-thumb img.center { object-position: center; }
.proj-card:hover .proj-thumb img { transform: scale(1.02); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.card-meta .proj-kicker { margin: 0; }
.proj-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.proj-kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.proj-title { font-family: var(--serif); font-size: 1.65rem; color: var(--gold-soft); line-height: 1.1; }
.proj-desc { font-size: 0.92rem; color: var(--text); }
.proj-foot { margin-top: auto; padding-top: 0.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.arrow-btn { display: grid; place-items: center; color: var(--gold); flex-shrink: 0; transition: transform .2s; }
.proj-card:hover .arrow-btn { transform: translateX(4px); }
.arrow-btn svg { width: 22px; height: 22px; }
button.proj-card { font: inherit; text-align: left; color: inherit; cursor: pointer; width: 100%; }

/* ── testimonial ── */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: var(--serif); font-size: 6rem; line-height: 0.5; color: var(--gold); display: block; margin-bottom: 1.2rem; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--cream); line-height: 1.3; }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }

/* ── CTA band ── */
.cta-band { padding: clamp(2.5rem, 5vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: radial-gradient(600px 300px at 100% 0%, rgba(139,92,246,0.3), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.cta-band h2 { margin-bottom: 0.4rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-band p { color: var(--dim); }

/* ── PROJECTS: flagship ── */
.page-head { padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2.8rem, 6.5vw, 4.8rem); margin-bottom: 1rem; }
.flagship { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.flagship.flip .flag-media { order: -1; }
.flag-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.flag-meta .proj-kicker { margin: 0; }
.flagship h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 0.5rem; }
.flag-tagline { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--violet); margin-bottom: 1.1rem; }
.flagship p { margin-bottom: 1.1rem; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 1rem 0; margin: 1.6rem 0 1.6rem calc(-1.6rem - 1px); clip-path: inset(0 0 0 2px); }
.mini-stat { padding: 0 1.6rem; border-left: 1px solid var(--line-strong); }
.mini-stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; color: var(--gold-soft); line-height: 1.1; font-variant-numeric: lining-nums; }
.mini-stat span { font-size: 0.78rem; color: var(--dim); }
.features { list-style: none; display: grid; gap: 0.5rem; margin: 1.25rem 0 1.5rem; }
.features li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.features li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 0.25rem; }
.flagship .tags { margin-bottom: 1.6rem; }

.flag-media { position: relative; }
@media (min-width: 861px) { .flag-media { position: sticky; top: 110px; } }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4); background: var(--bg-2); cursor: zoom-in; display: block; width: 100%; padding: 0; }
.shot img { width: 100%; height: auto; }
.shot-stack { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.shot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.shot-pair .shot img { aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.shot-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
.shot-trio .shot img { aspect-ratio: 16/9; object-fit: cover; object-position: top left; }
.media-glow::before { content: ""; position: absolute; inset: -8% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(139,92,246,0.35), transparent); filter: blur(30px); }
.caption { font-size: 0.8rem; color: var(--dim); margin-top: 0.75rem; }

.arch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin: 0.5rem 0 1.6rem; }
.arch span { font-family: var(--mono); font-size: 0.76rem; color: var(--text); }
.arch span.end { color: var(--gold-soft); }
.arch i { color: var(--violet); font-style: normal; font-size: 0.8rem; }
.label-sm { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.6rem; }

/* expandable detail in "more work" cards */
.pvs { list-style: none; display: grid; gap: 0.6rem; font-size: 0.9rem; }
.pvs b { color: var(--gold-soft); font-weight: 500; }

.building { padding: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2.5rem; align-items: start; }
.building ul { list-style: none; display: grid; gap: 0.6rem; }
.building li { display: flex; gap: 0.7rem; }
.building li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); margin-top: 0.6rem; flex-shrink: 0; }

/* ── ABOUT ── */
.about-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-hero .avatar-wrap { width: min(360px, 72vw); }
.story p { margin-bottom: 1.1rem; max-width: 640px; }
.story p:first-child { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--cream); line-height: 1.3; }
.focus { list-style: none; margin-top: 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.25rem 2rem; max-width: 640px; }
.focus li { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--cream); font-size: 0.95rem; }
.focus svg { width: 20px; height: 20px; color: var(--violet); flex-shrink: 0; }

.skills { border-top: 1px solid var(--line-strong); }
.skill-row { display: grid; grid-template-columns: 4rem minmax(0,1fr) minmax(0,1.6fr); gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.skill-row:hover { background: linear-gradient(90deg, rgba(139,92,246,0.08), transparent 70%); }
.skill-num { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; }
.skill-row h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; }
.skill-row h3 em { color: var(--gold); }
.skill-list { color: var(--text); font-size: 1rem; line-height: 1.9; }
.skill-list span { white-space: nowrap; display: inline-block; }
.skill-list span:not(:last-child)::after { content: "·"; color: var(--violet); margin: 0 0.6rem; }

.timeline { position: relative; display: grid; gap: 1.25rem; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--purple), var(--gold) 60%, transparent); }
.t-item { position: relative; padding-left: 3rem; }
.t-item::before { content: ""; position: absolute; left: 5px; top: 1.9rem; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--violet); }
.t-item.now::before { border-color: var(--gold); box-shadow: 0 0 12px rgba(212,175,90,0.6); }
.t-card { padding: 1.4rem 1.6rem; display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1.5rem; }
.t-date { font-family: var(--mono); font-size: 0.75rem; color: var(--gold); letter-spacing: 0.08em; grid-column: 2; grid-row: 1; white-space: nowrap; padding-top: 0.3rem; }
.t-role { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); line-height: 1.2; grid-column: 1; grid-row: 1; }
.t-org { color: var(--violet); font-size: 0.92rem; grid-column: 1 / -1; }
.t-org a { text-decoration: none; }
.t-org a:hover { color: var(--magenta); }
.t-card ul { grid-column: 1 / -1; list-style: none; display: grid; gap: 0.35rem; margin-top: 0.7rem; font-size: 0.92rem; }
.t-card li { padding-left: 1.1rem; position: relative; }
.t-card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.edu .card { padding: 1.5rem 1.6rem; display: flex; gap: 1rem; align-items: flex-start; }
.edu h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1.4; }
.edu p { font-size: 0.88rem; color: var(--dim); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-list a, .contact-list span.v { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--text); }
.contact-list a:hover { color: var(--cream); }
.contact-list .ci { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(212,175,90,0.28); background: rgba(212,175,90,0.06); flex-shrink: 0; }
.contact-list svg { width: 18px; height: 18px; }
.form { padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: 0.4rem; font-size: 0.8rem; color: var(--dim); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--cream);
  background: rgba(11,8,18,0.7); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0.8rem 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a78bfa' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form select option { background: var(--surface); }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.2); }
.form .btn { width: 100%; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; margin-top: 2rem; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--dim); font-size: 0.85rem; }
.foot-brand img { height: 34px; width: auto; }
.foot-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links a { color: var(--dim); text-decoration: none; font-size: 0.85rem; }
.foot-links a:hover { color: var(--gold-soft); }

/* ── lightbox ── */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(6,4,10,0.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 1.25rem; }
.lb.open { display: flex; }
.lb-inner { width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 1rem; }
.lb-frame { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-frame img { max-height: 72vh; width: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; }
.lb-cap { display: flex; gap: 1rem; align-items: flex-start; max-width: 860px; }
.lb-step { font-family: var(--mono); color: var(--gold); font-size: 0.85rem; padding-top: 0.2rem; }
.lb-title { font-family: var(--serif); color: var(--cream); font-size: 1.4rem; line-height: 1.2; }
.lb-desc { color: var(--dim); font-size: 0.9rem; }
.lb-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
.lb-dots { display: flex; gap: 0.5rem; }
.lb-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; padding: 0; }
.lb-dots button.on { background: var(--gold); }

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

/* ── responsive ── */
@media (max-width: 1020px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(11,8,18,0.97); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.25rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--gold-soft); }
  .nav-links .btn { margin-top: 1rem; width: 100%; }
  .hero-grid, .about-hero, .flagship, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid .avatar-wrap { order: -1; width: min(260px, 64vw); }
  .about-hero .avatar-wrap { width: min(260px, 64vw); }
  .flagship .flag-media, .flagship.flip .flag-media { order: -1; }
  .building { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .proj-grid, .proj-grid.two { grid-template-columns: 1fr; }
  .skill-row { grid-template-columns: 2.5rem 1fr; gap: 0.3rem 1rem; padding: 1.3rem 0; }
  .skill-list { grid-column: 2; font-size: 0.95rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .stat { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .brand-text { display: none; }
  .focus { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .t-card { grid-template-columns: 1fr; }
  .t-date { grid-column: 1; grid-row: auto; padding: 0; }
  .t-item { padding-left: 2.2rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-roles { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .hero-roles .sep { display: none; }
  .mini-stats { margin-left: calc(-1rem - 1px); }
  .mini-stat { padding: 0 1rem; }
  .mini-stat b { font-size: 1.4rem; }
  .shot-pair { grid-template-columns: 1fr; }
  .shot-trio { gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── wide feature card (capstone on Home) ── */
a.card.wide-card, .wide-card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; margin-top: 1.5rem; }
.wide-card .proj-thumb { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.wide-card .proj-body { padding: clamp(1.5rem, 3vw, 2.4rem); justify-content: center; gap: 0.9rem; }
.wide-card .proj-title { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.metrics { display: flex; flex-wrap: wrap; gap: 0.5rem 0; margin: 0.4rem 0 0.4rem calc(-1.4rem - 1px); clip-path: inset(0 0 0 2px); }
.metrics div { padding: 0 1.4rem; border-left: 1px solid var(--line-strong); }
.metrics b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.05; color: var(--gold-soft); font-variant-numeric: lining-nums; }
.metrics span { font-size: 0.78rem; color: var(--dim); }

/* ── case study page (capstone) ── */
.cs-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.back { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--dim); text-decoration: none; font-size: 0.9rem; margin-bottom: 2rem; }
.back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.back:hover { color: var(--cream); }
.cs-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 900px; margin-bottom: 1.1rem; }
.cs-hero .lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--violet); max-width: 760px; margin-bottom: 1rem; line-height: 1.4; }
.cs-hero p { max-width: 720px; }
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-stats div { padding: 1.6rem 1.25rem; border-left: 1px solid var(--line); }
.cs-stats div:first-child { border-left: 0; padding-left: 0; }
.cs-stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--gold-soft); font-variant-numeric: lining-nums; margin-bottom: 0.4rem; }
.cs-stats span { font-size: 0.85rem; color: var(--dim); }
.cs-body { max-width: 860px; }
.cs-sec { padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); }
.cs-sec h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cs-sec p { margin-bottom: 1.1rem; max-width: 720px; }
.cs-sec a:not(.btn) { color: var(--violet); }
.finding { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.4; color: var(--cream); border-left: 2px solid var(--gold); padding: 0.2rem 0 0.2rem 1.4rem; margin: 1.8rem 0; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 1rem; margin: 1.5rem 0; max-width: 720px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); color: var(--gold); font-size: 0.85rem; padding-top: 0.2rem; }
.table-wrap { overflow-x: auto; margin: 1.8rem 0; }
.cs-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.cs-table caption { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); text-align: left; padding-bottom: 0.9rem; }
.cs-table th { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-align: left; padding: 0.8rem 0.75rem; border-bottom: 1px solid var(--line-strong); }
.cs-table td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); }
.cs-table th:not(:first-child), .cs-table td:not(:first-child) { text-align: right; }
.cs-table tr.pick td { color: var(--cream); background: rgba(139,92,246,0.1); font-weight: 500; }
.race { margin: 2rem 0; padding: clamp(1.1rem, 3vw, 1.8rem); }
.race-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.2rem; }
.race-title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); }
.legend { display: flex; align-items: center; gap: 1rem; font-size: 0.8rem; color: var(--dim); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 0.4rem; vertical-align: -1px; }
.legend .w { background: var(--gold); } .legend .l { background: #4b3f68; }
.race-rows { list-style: none; display: grid; gap: 5px; }
.race-rows li, .race-axis { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; }
.race-rows .nm { font-size: 0.82rem; color: var(--dim); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-rows .won .nm { color: var(--cream); }
.race-rows .tr { display: flex; align-items: center; height: 16px; background: repeating-linear-gradient(90deg, rgba(167,139,250,0.12) 0 1px, transparent 1px 25%); }
.race-rows .bar { height: 12px; border-radius: 0 3px 3px 0; background: #4b3f68; }
.race-rows .won .bar { background: linear-gradient(90deg, #b8913f, var(--gold-soft)); }
.race-rows .val { font-family: var(--mono); font-size: 0.72rem; margin-left: 8px; color: var(--dim); font-variant-numeric: tabular-nums; }
.race-rows .won .val { color: var(--gold-soft); }
.race-axis { margin-top: 8px; }
.race-axis .tr { position: relative; height: 14px; font-family: var(--mono); font-size: 0.66rem; color: var(--dim); }
.race-axis .tr span { position: absolute; transform: translateX(-50%); }
.race-axis .tr span:first-child { transform: none; }
.race-axis .tr span:last-child { transform: translateX(-100%); }
.race figcaption, .api figcaption { font-size: 0.82rem; color: var(--dim); margin-top: 1rem; }
.api { max-width: 540px; margin: 2rem 0; overflow: hidden; }
.api-bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.82rem; }
.api-method { color: var(--gold); font-weight: 500; letter-spacing: 0.08em; }
.api-path { color: var(--cream); }
.api-status { margin-left: auto; color: var(--green); }
.api dl { padding: 0.4rem 1.2rem; }
.api dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.api dl div:last-child { border-bottom: 0; }
.api dt { color: var(--dim); font-size: 0.9rem; }
.api dd { color: var(--cream); font-family: var(--mono); font-size: 0.9rem; }
.api dd.hl { color: var(--gold-soft); }
.api figcaption { margin: 0; padding: 0.9rem 1.2rem 1.1rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .wide-card { grid-template-columns: 1fr; }
  .wide-card .proj-thumb { aspect-ratio: 16/10; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .cs-stats { grid-template-columns: 1fr; }
  .cs-stats div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .cs-stats div:first-child { border-top: 0; }
  .race-rows li, .race-axis { grid-template-columns: 104px 1fr; gap: 8px; }
  .race-rows .nm { font-size: 0.75rem; }
  .metrics { margin-left: calc(-1rem - 1px); }
  .metrics div { padding: 0 1rem; }
}


/* ── home expertise row (plain text, no boxes) ── */
.expertise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2.2rem; border-top: 1px solid var(--line); }
.exp-ico { color: var(--gold); margin-bottom: 0.8rem; }
.exp-ico svg { width: 24px; height: 24px; }
.expertise h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.expertise p { font-size: 0.92rem; color: var(--dim); }

/* ── Highway Windows deliverables ── */
.deliverables { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0.4rem 0 1.6rem; padding: 1.3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deliverables > div + div { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.deliverables p { font-size: 0.9rem; margin-bottom: 0.6rem; }
.deliverables .tags { margin-bottom: 0; }

/* ── skills descriptions ── */
.skill-note { font-size: 0.86rem; color: var(--dim); margin-top: 0.35rem; }

/* ── contact form status ── */
.form-status { font-size: 0.9rem; min-height: 1.4em; color: var(--dim); }
.form-status.ok { color: var(--green); }
.form-status.err { color: #f08aa0; }
.form-status a { color: inherit; }

@media (max-width: 860px) { .expertise { grid-template-columns: 1fr; gap: 1.6rem; } }
@media (max-width: 640px) {
  .deliverables { grid-template-columns: 1fr; }
  .deliverables > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
}


/* ── home: slim selected-work list ── */
.work-list { list-style: none; border-top: 1px solid var(--line-strong); }
.work-list a { display: grid; grid-template-columns: 3.5rem 1fr auto 2rem; align-items: center; gap: 1rem; padding: 1.4rem 0.5rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .3s, padding .3s; }
.work-list a:hover { background: linear-gradient(90deg, rgba(139,92,246,0.1), transparent 75%); padding-left: 1rem; }
.wl-num { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }
.wl-name { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--cream); line-height: 1.15; }
.wl-cat { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); text-align: right; }
.wl-arrow { color: var(--gold); display: grid; place-items: center; transition: transform .2s; }
.wl-arrow svg { width: 20px; height: 20px; }
.work-list a:hover .wl-arrow { transform: translateX(4px); }
.sub-head { margin-bottom: 1.5rem; max-width: 720px; }
.sub-head p { color: var(--dim); font-size: 0.95rem; }
@media (max-width: 640px) {
  .work-list a { grid-template-columns: 2.4rem 1fr 1.5rem; gap: 0.3rem 0.8rem; }
  .wl-cat { grid-column: 2; grid-row: 2; text-align: left; font-size: 0.66rem; }
  .wl-arrow { grid-column: 3; grid-row: 1 / span 2; }
}


/* This stylesheet is the single source of styling for the site. The colour tokens at the top (purple, gold, cream) are what make every page match the NUNAKI dashboard; change a token there and it updates everywhere. Sections are grouped by page (Home, Projects, About, Contact), and the responsive rules at the bottom handle tablet and phone layouts. */