/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #07090d;
  --bg-raised: #0d1118;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e9edf3;
  --muted: #9aa4b3;
  --faint: #677183;

  --accent: #ff7a3d;
  --accent-soft: #ffb27a;
  --accent-glow: rgba(255, 122, 61, 0.28);
  --cool: #7fb2ff;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #0b0b0b; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0b0b0b;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { flex: none; }
.muted { color: var(--muted); }

.meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Ambient backdrop: exhaust-plume glow + faint star field */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(255, 122, 61, 0.14), transparent 60%),
    radial-gradient(50rem 40rem at -10% 20%, rgba(127, 178, 255, 0.08), transparent 60%),
    var(--bg);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 36%, #fff 50%, transparent 51%);
  background-size: 480px 480px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #120a05;
  font-weight: 600;
  box-shadow: 0 8px 28px -10px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); box-shadow: 0 10px 32px -8px var(--accent-glow); }

.btn-ghost { background: var(--surface); }
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, 0.28); }

.btn-icon { width: 44px; padding: 0; background: var(--surface); }
.btn-icon:hover { background: var(--surface-hover); color: var(--accent-soft); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-soft);
  font-weight: 500;
}
.text-link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 9, 13, 0.78);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff4d2e);
  color: #120a05;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.brand-name { font-family: var(--font-display); letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.925rem;
  transition: color 0.2s, background 0.2s;
}
.site-nav ul a:hover { color: var(--text); background: var(--surface-hover); }
.site-nav ul a[aria-current="page"] { color: var(--text); background: var(--surface-hover); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: grid; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }
.nav-toggle span { display: grid; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .brand-name { display: none; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 24px;
    background: rgba(7, 9, 13, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
  }
  .site-header.is-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .site-nav .btn { min-height: 44px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.eyebrow + h1 { margin-top: 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1,
.page-hero h1 {
  margin-top: 0;
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 30%, #b9c2cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  margin-top: 20px;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text);
  max-width: 34ch;
}
.hero-role .at { color: var(--faint); }
.hero-role strong { color: var(--accent-soft); font-weight: 600; }

.hero-sub { margin-top: 8px; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 44px 0 0;
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.stats > div { padding: 18px 20px; }
.stats > div + div { border-left: 1px solid var(--border); }
.stats dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.stats dd {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
}
/* Show the value above its label while keeping dt/dd source order */
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

.portrait { margin: 0; position: relative; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 10% -6% -6% 10%;
  border-radius: 28px;
  background: radial-gradient(circle at 70% 80%, var(--accent-glow), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 13, 0.55), transparent 40%);
}
.portrait figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 9, 13, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait figcaption span:first-child { color: var(--text); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; max-width: 320px; }
}
@media (max-width: 520px) {
  .portrait { max-width: 240px; }
  .portrait figcaption { justify-content: center; }
  .portrait figcaption span + span { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding-top: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-head h2,
.contact-card h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 600; }
.section-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

h3, .h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.card:hover { border-color: var(--border-strong); }

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 122, 61, 0.3);
  background: rgba(255, 122, 61, 0.1);
  color: var(--accent-soft);
}
.card-icon-lg { width: 56px; height: 56px; border-radius: 16px; margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
}
.tags li:first-child { border-color: rgba(255, 122, 61, 0.4); color: var(--accent-soft); }

.card-feature {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  overflow: hidden;
}
.card-feature > div:last-child { display: flex; flex-direction: column; gap: 10px; }
.card-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 122, 61, 0.6), transparent 40%, transparent 70%, rgba(127, 178, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-feature h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.card-feature .muted { max-width: 60ch; }
@media (max-width: 560px) { .card-feature { flex-direction: column; } }

/* Timeline */
.timeline { position: relative; display: grid; gap: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 60%);
}
.timeline li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 18px 20px 18px 44px;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
}
.timeline li:hover { background: var(--surface); }
.timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.timeline .muted { max-width: 70ch; }

/* Research */
.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 860px) { .research-grid { grid-template-columns: 1fr; } }

.thesis { display: flex; flex-direction: column; }
.thesis > .meta { margin-bottom: 12px; }
.card-thesis { flex: 1; }
.card-thesis h3 { font-size: 1.45rem; }
.card-thesis .text-link { margin-top: auto; padding-top: 12px; align-self: flex-start; }

.publications > .meta { margin-bottom: 12px; }
.publications ul { display: grid; gap: 12px; }
.publications a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.publications a:hover { border-color: rgba(255, 122, 61, 0.45); background: var(--surface-hover); transform: translateX(4px); }
.pub-venue {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.pub-title { grid-column: 1; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.35; }
.pub-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--faint); transition: color 0.25s; }
.publications a:hover .pub-arrow { color: var(--accent); }

/* Contact */
.contact-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 48px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(40rem 20rem at 50% 120%, rgba(255, 122, 61, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.contact-actions .btn { max-width: 100%; }
@media (max-width: 420px) {
  .contact-actions { width: 100%; }
  .contact-actions .btn { width: 100%; font-size: 0.875rem; }
}

/* ---------- Sub-pages ---------- */
.page-hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); }
.page-hero .hero-sub { margin-top: 16px; font-size: 1.15rem; }
.page-404 h1 { font-size: clamp(3rem, 10vw, 6.5rem); }

.accent { color: var(--accent); }
.lead { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.prose { display: grid; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

/* Photo frame used across project and woodwork pages */
.media-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-raised);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.media-frame.fit-contain { background: #0b0d11; }
.media-frame.fit-contain img { object-fit: contain; }

/* Projects */
.project-list { display: grid; gap: clamp(20px, 3vw, 28px); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: border-color 0.3s;
}
.project:hover { border-color: var(--border-strong); }
.project:hover .media-frame img { transform: scale(1.03); }
.project:nth-child(even) .project-media { order: 2; }
.project-media .media-frame { aspect-ratio: 4 / 3; }
.project-media-multi { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.project-media-multi .media-frame { aspect-ratio: auto; height: 100%; min-height: 240px; }
.project-copy { display: grid; gap: 12px; padding: clamp(4px, 1.5vw, 16px); }
.project-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.project-text-only { grid-template-columns: 1fr; }
.project-text-only .project-copy { max-width: 72ch; }

@media (max-width: 860px) {
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
}

/* Woodwork gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery-item { margin: 0; display: grid; gap: 12px; }
.gallery-item .media-frame { aspect-ratio: 4 / 5; }
.gallery-item:hover .media-frame img { transform: scale(1.04); }
.gallery-item figcaption { font-family: var(--font-display); font-weight: 500; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Restoration steps */
.steps { display: grid; gap: clamp(28px, 4vw, 44px); counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--border);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step-copy { display: grid; gap: 10px; }
.step:not(:has(.step-media)) { grid-template-columns: minmax(0, 0.9fr); }
.step:not(:has(.step-media)) .step-copy { max-width: 62ch; }
.step-media { display: grid; gap: 12px; }
.step-media .media-frame { aspect-ratio: 4 / 5; }
.step-media-1 .media-frame { aspect-ratio: 4 / 3; }
.step-media-2 { grid-template-columns: 1fr 1fr; }
.step-media-3 { grid-template-columns: 1fr 1fr 1fr; }
.step-media-3 .media-frame { aspect-ratio: 9 / 16; }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; }
  .step-copy { position: static; }
}
@media (max-width: 520px) {
  .step-media-3 { grid-template-columns: 1fr 1fr; }
  .step-media-3 .media-frame { aspect-ratio: 4 / 5; }
  .step-media-3 .media-frame:last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}
.closing-note {
  margin-top: 32px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Home "Currently" band */
.section-now { padding-top: 0; }
.now-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(16px, 2vw, 20px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(36rem 24rem at 100% 100%, rgba(255, 122, 61, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.now-media { aspect-ratio: 4 / 5; border-radius: 20px; }
.now-media img { object-position: 50% 30%; }
.now-copy { display: grid; justify-items: start; gap: 14px; padding: clamp(4px, 2vw, 24px); }
.now-copy h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; }
.now-role { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--accent-soft); }
.now-copy .muted { font-size: 1.05rem; max-width: 48ch; }
.now-copy .hero-actions { margin-top: 12px; }
@media (max-width: 760px) {
  .now-card { grid-template-columns: 1fr; }
}

/* EqVault */
.browser-frame {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 122, 61, 0);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.browser-frame:hover { transform: translateY(-2px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 122, 61, 0.45); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.browser-url {
  flex: 1;
  max-width: 360px;
  margin-inline: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-hover);
  text-align: center;
}
.browser-open { display: grid; color: var(--faint); }
.browser-frame:hover .browser-open { color: var(--accent); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.dots i:first-child { background: var(--accent); }
.browser-frame img { width: 100%; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.tags-lg { gap: 10px; margin: 0; }
.tags-lg li { padding: 8px 16px; font-size: 0.85rem; }

/* About */
.about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  color: var(--faint);
  font-size: 0.875rem;
}
.footer-links { display: flex; gap: 8px; }
.footer-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.footer-links a:hover { color: var(--accent-soft); background: var(--surface-hover); }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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