/* ============ Tokens ============ */
:root {
  --ink: #131210;
  --ink-raised: #1E1C19;
  --paper: #F3EFE6;
  --paper-raised: #E7E0D2;
  --white: #FBF8F3;
  --line-dark: rgba(251, 248, 243, 0.16);
  --line-light: rgba(19, 18, 16, 0.14);
  --mute-dark: rgba(251, 248, 243, 0.62);
  --mute-light: rgba(19, 18, 16, 0.58);
  --accent: #9D6D76;

  --font-display: "Sulphur Point", "Arial Black", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --header-h: 76px;
  --container: 1360px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 999;
  background: var(--ink); color: var(--white); padding: 10px 16px;
  font-family: var(--font-mono); font-size: 13px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  background: rgba(19, 18, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; height: 100%;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px;
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled .logo { opacity: 1; pointer-events: auto; }
.logo img { height: 38px; width: auto; }
.logo-name {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--white);
}
.nav-list { display: flex; align-items: center; gap: 40px; }
.nav-list a {
  color: var(--white); font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--white); transition: right .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a:focus-visible::after { right: 0; }
.nav-list a.nav-cta {
  border: 1px solid var(--accent); background: var(--accent); color: var(--white);
  padding: 8px 16px; border-radius: 999px;
}
.nav-list a.nav-cta::after { display: none; }
.nav-list a.nav-cta:hover { background: var(--white); color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--white); transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 40px) 32px 0;
}
.hero-inner {
  max-width: var(--container); margin: 0 auto; width: 100%;
  display: flex; align-items: flex-start; gap: 56px;
}
.hero-logo { flex: 0 0 auto; width: clamp(150px, 18vw, 280px); padding-top: 40px; }
.hero-logo img { width: 100%; height: auto; }
.hero-text { flex: 1 1 auto; min-width: 0; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mute-dark); margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  line-height: 1.02; letter-spacing: -0.03em;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 0.02em;
}
.hero-headline-accent { color: var(--accent); }
.hero-sub {
  margin-top: 32px; max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--mute-dark); line-height: 1.5;
}
.hero-cta {
  margin-top: 44px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--white);
  padding: 14px 22px 14px 24px;
  transition: background .25s var(--ease), color .25s var(--ease), gap .25s var(--ease);
}
.hero-cta:hover, .hero-cta:focus-visible { background: var(--white); color: var(--accent); gap: 16px; }

.hero-ticker {
  max-width: var(--container); margin: 64px auto 0; width: 100%;
  border-top: 1px solid var(--line-dark);
  padding: 20px 32px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ticker-track { position: relative; height: 1.4em; overflow: hidden; flex: 1; }
.ticker-item {
  position: absolute; inset: 0; display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.ticker-item.is-active { opacity: 1; transform: translateY(0); }
.ticker-item .t-index { color: var(--mute-dark); }
.ticker-item .t-name { color: var(--white); text-transform: uppercase; }
.ticker-item .t-desc { color: var(--mute-dark); display: none; }
.ticker-dots { display: flex; gap: 8px; flex-shrink: 0; }
.ticker-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line-dark);
  background: transparent; padding: 0; transition: background .2s var(--ease);
}
.ticker-dots button.is-active { background: var(--white); }

.scroll-cue {
  position: absolute; right: 32px; bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute-dark); writing-mode: vertical-rl;
}
.scroll-cue-line { width: 1px; height: 40px; background: var(--line-dark); position: relative; overflow: hidden; }
.scroll-cue-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--white); animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ About ============ */
.about { padding: 140px 32px; }
.about-inner { max-width: var(--container); margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.section-eyebrow--light { color: var(--accent); }
.about-quote {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.12; letter-spacing: -0.01em; max-width: 20em;
}
.about-lead {
  margin-top: 28px; max-width: 38em;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6;
  font-weight: 500; color: var(--ink);
}
.about-body {
  margin-top: 32px; max-width: 42em;
  font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.7; color: var(--mute-light);
  text-align: justify; text-justify: inter-word;
}

.about-grid { display: flex; align-items: stretch; gap: 56px; }
.about-portrait { flex: 0 0 auto; width: clamp(200px, 24vw, 320px); display: flex; }
.portrait-frame {
  position: relative; background: var(--accent); padding: 7px; border-radius: 18px;
  width: 100%; aspect-ratio: 3 / 4;
}
.portrait-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 12px;
}
.about-content { flex: 1 1 auto; min-width: 0; }
.about-content .about-quote { margin-top: 0; }
.about-content .about-body { margin-top: 32px; }

.capability-list { margin-top: 0; border-top: 1px solid var(--line-light); }
.cap-row { border-bottom: 1px solid var(--line-light); }
.cap-trigger {
  all: unset; box-sizing: border-box;
  position: relative; display: block; width: 100%;
  text-align: center; padding: 22px 24px;
  cursor: pointer; overflow: hidden;
}
.cap-row-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--accent);
  transform: scaleY(0); transform-origin: center;
  transition: transform .45s var(--ease);
}
.cap-trigger:hover .cap-row-bg,
.cap-trigger:focus-visible .cap-row-bg,
.cap-trigger.is-active .cap-row-bg {
  transform: scaleY(1);
}
.cap-index {
  position: relative; z-index: 1; display: block;
  font-family: var(--font-mono); font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.02em; color: var(--mute-light);
  margin-bottom: 14px; transition: color .3s var(--ease);
}
.cap-stack {
  position: relative; z-index: 1;
  display: grid; justify-items: center;
}
.cap-name, .cap-desc { grid-area: 1 / 1; transition: opacity .35s var(--ease); }
.cap-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); letter-spacing: -0.02em;
  color: var(--ink); opacity: 1;
}
.cap-desc {
  max-width: 36em;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.5; color: var(--mute-dark);
  opacity: 0; align-self: center;
}
.cap-trigger:hover .cap-index,
.cap-trigger:focus-visible .cap-index,
.cap-trigger.is-active .cap-index { color: var(--mute-dark); }
.cap-trigger:hover .cap-name,
.cap-trigger:focus-visible .cap-name,
.cap-trigger.is-active .cap-name { opacity: 0; }
.cap-trigger:hover .cap-desc,
.cap-trigger:focus-visible .cap-desc,
.cap-trigger.is-active .cap-desc { opacity: 1; }

.cap-hint { display: none; }

.tools-marquee {
  margin-top: 64px;
  background: var(--accent);
  overflow: hidden;
}
.tools-track {
  display: flex; width: max-content;
  animation: toolsMarquee 26s linear infinite;
}
.tools-marquee:hover .tools-track { animation-play-state: paused; }
.tools-set { display: flex; align-items: center; flex-shrink: 0; }
.tools-set span:not(.tools-dot) {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white); white-space: nowrap;
  padding: 18px 20px;
}
.tools-dot { color: rgba(255,255,255,0.5); font-size: 12px; }
@keyframes toolsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Projects ============ */
.projects { padding: 0 32px 140px; }
.projects-header { max-width: var(--container); margin: 0 auto 56px; }
.projects-header h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.02em; margin-bottom: 40px;
}
.projects-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  padding: 20px 0;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em;
  border: 1px solid var(--line-light); border-radius: 999px; padding: 9px 16px;
  color: var(--mute-light); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.view-toggle { display: flex; gap: 2px; border: 1px solid var(--line-light); border-radius: 8px; padding: 3px; }
.view-btn { padding: 7px 10px; border-radius: 5px; color: var(--mute-light); }
.view-btn.is-active { background: var(--ink); color: var(--white); }

.project-grid {
  max-width: var(--container); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px;
}
.project-card {
  position: relative; cursor: pointer;
  border-top: 1px solid var(--line-light);
  padding-top: 20px;
  transition: opacity .3s var(--ease);
}
.project-card[hidden] { display: none; }
.card-media {
  position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-raised);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.project-card:hover .card-media img { transform: scale(1.045); }
.card-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--ink); color: var(--white); padding: 6px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.project-card:hover .card-tag { opacity: 1; transform: translateY(0); }
.card-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 18px;
}
.card-name {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  letter-spacing: -0.01em;
}
.card-sub { font-size: 0.92rem; color: var(--mute-light); margin-top: 4px; }
.card-year { font-family: var(--font-mono); font-size: 12.5px; color: var(--mute-light); white-space: nowrap; }

/* list view */
.project-grid[data-view="list"] {
  grid-template-columns: 1fr;
}
.project-grid[data-view="list"] .project-card {
  display: grid; grid-template-columns: 160px 1fr auto; align-items: center; gap: 24px;
  padding: 18px 0;
}
.project-grid[data-view="list"] .card-media { aspect-ratio: 4/3; }
.project-grid[data-view="list"] .card-meta { flex-direction: column; align-items: flex-start; margin-top: 0; gap: 4px; }
.project-grid[data-view="list"] .card-tag { position: static; opacity: 1; transform: none; background: none; color: var(--mute-light); border: 1px solid var(--line-light); padding: 4px 10px; }
.project-grid[data-view="list"] .card-year { justify-self: end; }

/* ============ Contact ============ */
.contact {
  background: var(--ink); color: var(--white);
  padding: 140px 32px 120px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.contact-inner { max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.contact-logo img { height: 52px; width: auto; margin-bottom: 56px; }
.contact-headline {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 3rem); letter-spacing: -0.02em; margin-bottom: 64px;
}
@media (min-width: 560px) {
  .contact-headline { white-space: nowrap; }
}
.contact-links { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.contact-links li { border-top: 1px solid var(--line-dark); }
.contact-links li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-links a, .contact-static {
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
  padding: 22px 0; font-family: var(--font-mono); font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute-dark);
  transition: color .2s var(--ease);
}
.contact-links a span, .contact-static span {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0; color: var(--white); font-size: 16px;
}
.contact-links a:hover, .contact-links a:focus-visible { color: var(--white); }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink); color: var(--mute-dark);
  padding: 24px 32px 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  border-top: 1px solid var(--line-dark);
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10,9,8,0.94); }
.lightbox-content {
  position: relative; z-index: 2;
  width: min(1440px, 94vw); max-height: 90vh;
  display: flex; align-items: stretch; gap: 48px;
}
.lightbox-image-col {
  position: relative; flex: 1 1 62%; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox-image-frame {
  position: relative; width: 100%; height: 74vh; max-height: 74vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#lightboxImage {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); cursor: zoom-in;
}
.lightbox-image-frame.is-zoomed {
  overflow: auto; cursor: zoom-out;
  align-items: flex-start; justify-content: flex-start;
}
.lightbox-image-frame.is-zoomed #lightboxImage {
  max-width: none; max-height: none; width: 220%; height: auto; cursor: zoom-out;
}
.lightbox-zoom {
  position: absolute; z-index: 3; top: 12px; left: 12px; color: var(--white);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark); border-radius: 50%; background: rgba(10,9,8,0.5);
  transition: background .2s var(--ease);
}
.lightbox-zoom:hover { background: rgba(255,255,255,0.1); }
.lightbox-zoom[aria-pressed="true"] svg path:last-child { display: none; }
.lightbox-thumbs {
  display: flex; gap: 8px; margin-top: 18px; padding: 2px;
  max-width: 100%; overflow-x: auto;
}
.lightbox-thumbs img {
  width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border-radius: 4px;
  cursor: pointer; opacity: 0.45; transition: opacity .2s var(--ease), outline-color .2s var(--ease);
  outline: 2px solid transparent; outline-offset: 2px;
}
.lightbox-thumbs img:hover { opacity: 0.75; }
.lightbox-thumbs img.is-active { opacity: 1; outline-color: var(--white); }

.lightbox-info-col {
  flex: 0 0 320px; max-width: 360px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: left; color: var(--white); overflow-y: auto; max-height: 82vh;
}
.lightbox-counter { font-family: var(--font-mono); font-size: 12px; color: var(--mute-dark); }
.lightbox-info-col h3 {
  margin-top: 10px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.01em;
}
.lightbox-tags {
  margin-top: 12px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.02em; color: var(--mute-dark); line-height: 1.7;
}
.lightbox-description {
  margin-top: 24px; font-size: 0.98rem; line-height: 1.7; color: rgba(251, 248, 243, 0.85);
}
.lightbox-close, .lightbox-nav {
  z-index: 3; color: var(--white);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark); border-radius: 50%;
  transition: background .2s var(--ease);
}
.lightbox-close { position: absolute; top: 24px; right: 24px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(10,9,8,0.5); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.1); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; }
  .capability-list li { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; }
  .cap-desc { grid-column: 2; }
  .project-grid[data-view="list"] .project-card { grid-template-columns: 110px 1fr; }
  .project-grid[data-view="list"] .card-year { justify-self: start; grid-column: 2; }
  .lightbox-content { flex-direction: column; overflow-y: auto; max-height: 92vh; gap: 24px; }
  .lightbox-image-frame { height: 50vh; max-height: 50vh; }
  .lightbox-info-col { flex: 0 0 auto; max-width: none; max-height: none; text-align: center; }
  .lightbox-tags, .lightbox-counter { text-align: center; }
}

@media (max-width: 720px) {
  .header-inner { padding: 0 20px; }
  .hero-inner { flex-direction: column; gap: 28px; }
  .hero-logo { width: 110px; padding-top: 0; }
  .about { padding-top: 64px; }
  .about-grid { flex-direction: column; gap: 32px; }
  .about-portrait { width: 240px; align-self: center; }
  .cap-trigger { padding: 14px 20px; }
  .cap-index { font-size: 0.85rem; margin-bottom: 0; }
  .cap-stack { display: block; }
  .cap-name {
    position: static; display: block;
    font-size: clamp(1.2rem, 7.5vw, 1.6rem); white-space: nowrap;
    max-height: 2.4em; opacity: 1;
    transition: max-height .35s var(--ease), opacity .25s var(--ease);
  }
  .cap-desc {
    position: static; display: block;
    font-size: 0.92rem; line-height: 1.45;
    max-width: none; margin: 0 auto;
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height .35s var(--ease), opacity .25s var(--ease), margin-top .35s var(--ease);
  }
  .cap-trigger.is-active .cap-name { max-height: 0; opacity: 0; }
  .cap-trigger.is-active .cap-desc { max-height: 160px; opacity: 1; margin-top: 10px; }
  .cap-hint {
    display: block; position: relative; z-index: 1;
    margin-top: 8px; font-family: var(--font-mono); font-size: 1.05rem;
    color: var(--mute-light);
    transition: transform .3s var(--ease), color .3s var(--ease);
  }
  .cap-hint::before { content: "+"; }
  .cap-trigger.is-active .cap-hint { transform: rotate(45deg); color: var(--white); }
  .nav-list {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--ink); flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 20px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-list.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list li { width: 100%; padding: 14px 0; border-top: 1px solid var(--line-dark); }
  .nav-list li:first-child { border-top: none; }
  .nav-list a.nav-cta { display: inline-block; }
  .nav-toggle { display: flex; }

  .hero, .about, .projects, .contact { padding-left: 20px; padding-right: 20px; }
  .hero-ticker { padding-left: 20px; padding-right: 20px; }
  .ticker-item .t-desc { display: none; }
  .scroll-cue { display: none; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .tools-track { animation: none; }
}
