:root {
  --bg: #faf8f5;
  --surface: #fff;
  --text: #1a1a1a;
  --text-2: #555;
  --text-3: #888;
  --accent: #b85a35;
  --accent-hover: #9e4d2d;
  --border: #e5e2dd;
  --border-strong: #ccc;

  --ink: #1a1a1a;
  --ink-soft: #555;
  --clay: #b85a35;
  --rule: #e5e2dd;
  --rule-strong: #ccc;
  --paper: #fff;
  --paper-warm: #faf8f5;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.7s;
}


/* ─── Dark Mode Tokens ──────────────────────────── */

html[data-theme="dark"] {
  --bg: #1a1814;
  --surface: #242019;
  --text: #e8e4de;
  --text-2: #b8b2a8;
  --text-3: #7a7468;
  --accent: #d4845a;
  --accent-hover: #e89a72;
  --border: #3a3530;
  --border-strong: #4a443c;
  --ink: #e8e4de;
  --ink-soft: #b8b2a8;
  --clay: #d4845a;
  --rule: #3a3530;
  --rule-strong: #4a443c;
  --paper: #242019;
  --paper-warm: #1a1814;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #1a1814;
    --surface: #242019;
    --text: #e8e4de;
    --text-2: #b8b2a8;
    --text-3: #7a7468;
    --accent: #d4845a;
    --accent-hover: #e89a72;
    --border: #3a3530;
    --border-strong: #4a443c;
    --ink: #e8e4de;
    --ink-soft: #b8b2a8;
    --clay: #d4845a;
    --rule: #3a3530;
    --rule-strong: #4a443c;
    --paper: #242019;
    --paper-warm: #1a1814;
    color-scheme: dark;
  }
}


/* ─── Reset ──────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ─── Grain Texture ──────────────────────────────── */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ─── Dark Mode Image + Grain Adjustments ────────── */

html[data-theme="dark"] img:not([data-no-dim]) {
  filter: brightness(0.9) saturate(0.95);
}

html[data-theme="dark"] body::before {
  opacity: 0.04;
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) img:not([data-no-dim]) {
    filter: brightness(0.9) saturate(0.95);
  }
  html:not([data-theme="light"]) body::before {
    opacity: 0.04;
    filter: invert(1);
  }
}


/* ─── Animation System ───────────────────────────── */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.2em);
  transition: opacity 0.4s var(--ease-out),
              transform 0.4s var(--ease-out);
}

.is-visible .char {
  opacity: 1;
  transform: none;
}


/* ─── Layout ─────────────────────────────────────── */

.container {
  width: min(720px, 100% - 48px);
  margin: 0 auto;
}

.container-wide {
  width: min(1000px, 100% - 48px);
  margin: 0 auto;
}


/* ─── Nav ────────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 48px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}

.site-nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .site-nav.scrolled {
  background: rgba(26, 24, 20, 0.92);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .site-nav.scrolled {
    background: rgba(26, 24, 20, 0.92);
  }
}

.site-nav .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  height: 56px;
}

.site-nav .nav-brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s, letter-spacing 0.3s var(--ease-out);
}

.site-nav .nav-brand:hover {
  color: var(--accent);
  letter-spacing: 0.015em;
}

.site-nav .nav-links {
  display: flex;
  gap: 28px;
}

.site-nav .nav-links a {
  font-size: 13px;
  font-weight: 450;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.site-nav .nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}

.site-nav .nav-links a:hover::after,
.site-nav .nav-links a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-links a:hover { color: var(--text); }
.site-nav .nav-links a[aria-current="true"] { color: var(--text); }


/* ─── Hero ───────────────────────────────────────── */

.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-images {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease, transform 6s ease;
  transform: scale(1.04);
  will-change: opacity, transform;
}

.hero-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(250,248,245,0.85) 30%, rgba(250,248,245,0.7) 60%, var(--bg) 100%);
  pointer-events: none;
}

html[data-theme="dark"] .hero-overlay {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(26,24,20,0.88) 30%, rgba(26,24,20,0.75) 60%, var(--bg) 100%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hero-overlay {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(26,24,20,0.88) 30%, rgba(26,24,20,0.75) 60%, var(--bg) 100%);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.is-active {
  background: var(--accent);
  transform: scale(1.4);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 48px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 28px;
  transition: border-color 0.3s, box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.hero-badge:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transform: translateY(-1px);
  color: var(--text);
}

.hero-badge img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-badge-text {
  line-height: 1.3;
}

.hero-badge-text strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

.hero-badge-text span {
  font-size: 0.75rem;
  color: var(--text-2);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  font-variation-settings: "opsz" 72;
}

.hero-lead {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-2);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 24;
}

.hero-bio {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 20px;
}

.hero-status {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ─── Sections ───────────────────────────────────── */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 32px;
}


/* ─── Work Grid ──────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.work-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              border-color 0.3s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  border-color: var(--accent);
  color: var(--text);
}

.work-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-card-img {
  transform: scale(1.05);
}

.work-card-body {
  padding: 20px;
}

.work-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}

.work-card-body p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 12px;
}

.work-card-body .meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}


/* ─── Project List ───────────────────────────────── */

.project-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 20px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, padding-left 0.35s var(--ease-out);
  position: relative;
}

.project-item::before {
  content: "\2192";
  position: absolute;
  left: 8px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
  color: var(--accent);
  font-size: 0.875rem;
}

.project-item:hover {
  background: var(--bg);
  padding-left: 32px;
  color: var(--text);
}

.project-item:hover::before {
  opacity: 1;
  transform: none;
}

.project-item strong {
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
}

.project-item span {
  font-size: 0.8125rem;
  color: var(--text-3);
  text-align: right;
}


/* ─── Photo Strip ────────────────────────────────── */

.photo-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 24px -24px 0;
  padding-left: 24px;
  padding-right: 24px;
  scrollbar-width: none;
}

.photo-strip::-webkit-scrollbar {
  display: none;
}

.photo-strip img {
  flex: 0 0 auto;
  width: clamp(200px, 28vw, 280px);
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-out);
}

.photo-strip img:hover {
  transform: scale(1.03);
}

.photo-strip-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: letter-spacing 0.3s var(--ease-out);
}

.photo-strip-link:hover {
  letter-spacing: 0.02em;
}


/* ─── About ──────────────────────────────────────── */

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 16px;
  max-width: 600px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong {
  color: var(--text);
  font-weight: 550;
}


/* ─── Footer ─────────────────────────────────────── */

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.footer-inner a { color: var(--text-2); transition: color 0.2s; }
.footer-inner a:hover { color: var(--text); }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-3);
}


/* ─── Buttons ────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--text-2);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}


/* ─── CV Page ────────────────────────────────────── */

.cv-header {
  padding: 72px 0 48px;
}

.cv-header h1 {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.cv-header .cv-subtitle {
  font-size: 1.0625rem;
  color: var(--text-2);
  margin-bottom: 20px;
}

.cv-header .cv-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cv-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.cv-section-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 24px;
}

.cv-entry {
  margin-bottom: 32px;
}

.cv-entry:last-child { margin-bottom: 0; }

.cv-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}

.cv-entry h3 {
  font-size: 1rem;
  font-weight: 600;
}

.cv-entry .cv-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-3);
  white-space: nowrap;
}

.cv-entry .cv-org {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 8px;
}

.cv-entry ul {
  padding-left: 16px;
}

.cv-entry li {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  list-style: disc;
  margin-bottom: 4px;
}

.cv-entry li::marker { color: var(--border-strong); }

.cv-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cv-skill-group h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cv-skill-group p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

.cv-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cv-project {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.cv-project h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cv-project p {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.5;
}


/* ─── Contact Page ───────────────────────────────── */

.contact-hero {
  padding: 88px 0 72px;
}

.contact-hero h1 {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.contact-hero .contact-desc {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.contact-hero .contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact-tips h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-tips ul {
  padding-left: 16px;
}

.contact-tips li {
  font-size: 0.9375rem;
  color: var(--text-2);
  list-style: disc;
  line-height: 1.6;
  margin-bottom: 6px;
}

.contact-tips li::marker { color: var(--border-strong); }


/* ─── Inner Page Hero ────────────────────────────── */

.page-hero {
  padding: 72px 0 48px;
  width: min(720px, 100% - 48px);
  margin: 0 auto;
}

.page-hero .eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 16px;
}

.page-hero .page-deck {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 24px;
}

.page-hero .page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* ─── Legacy Section Support ─────────────────────── */

.section .section-kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.section .section-heading-row {
  margin-bottom: 32px;
}

.section .section-heading-row h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 12px;
}

.section .section-heading-row p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 560px;
}

.section .section-heading-row div {
  max-width: 600px;
}

.section .section-heading-row div p {
  margin-bottom: 12px;
}


/* ─── Legacy Cards ───────────────────────────────── */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.archive-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s;
}

.archive-card:hover { border-color: var(--border-strong); }

.archive-card > span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.archive-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 8px;
}

.archive-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.archive-card h3 a:hover { color: var(--accent); }

.archive-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.flagship-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.flagship-card .proof-label,
.proof-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.flagship-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.flagship-card .flagship-asset {
  display: block;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
}

.flagship-card .flagship-asset img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.flagship-card .flagship-asset span {
  display: block;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-2);
}

.flagship-card dl { margin: 0; }

.flagship-card dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-top: 12px;
}

.flagship-card dd {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 2px 0 0;
}

.flagship-card .project-links,
.project-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.text-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}

.text-link:hover { color: var(--accent-hover); }

.section-link { margin-top: 24px; display: inline-block; }


/* ─── Legacy Statement Cards ─────────────────────── */

.statement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.statement-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.statement-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 8px;
}

.statement-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
}


/* ─── Legacy CV Cards ────────────────────────────── */

.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cv-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cv-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 8px;
}

.cv-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 4px;
}

.cv-list {
  padding-left: 16px;
}

.cv-list li {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  list-style: disc;
  margin-bottom: 6px;
}

.cv-list li::marker { color: var(--border-strong); }


/* ─── Legacy Sample Cards ────────────────────────── */

.sample-index {
  display: grid;
  gap: 20px;
}

.sample-card-lite {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.sample-card-lite h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 10px;
}

.sample-card-lite p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 6px;
}


/* ─── Legacy Photo Section ───────────────────────── */

.photo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.photo-layout h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 16px;
}

.photo-layout > div:first-child p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photo-tile {
  margin: 0;
}

.photo-tile img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.photo-tile figcaption {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 4px;
}

.photo-project-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}

.photo-project-link:hover { border-color: var(--border-strong); color: var(--text); }

.photo-project-link img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.photo-project-link span {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.photo-project-link strong {
  display: block;
  font-size: 0.875rem;
}


/* ─── Legacy Contact Section ─────────────────────── */

.contact-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  width: min(720px, 100% - 48px);
  margin: 0 auto;
}

.contact-section .eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.contact-section h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 12px;
}

.contact-section .contact-note {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-links a {
  font-size: 0.8125rem;
  font-weight: 500;
}

.primary-contact {
  font-weight: 600 !important;
  color: var(--text) !important;
}

.primary-contact:hover { color: var(--accent) !important; }


/* ─── Legacy Buttons ─────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.button:hover { border-color: var(--border-strong); color: var(--text); }

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.primary:hover { background: var(--text-2); border-color: var(--text-2); color: var(--bg); }

.contact-prompts { padding-left: 16px; }
.contact-prompts li { list-style: disc; margin-bottom: 6px; }
.contact-prompts li::marker { color: var(--border-strong); }


/* ─── Reduced Motion ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .status-dot {
    animation: none !important;
  }

  .work-card,
  .work-card-img,
  .project-item,
  .photo-strip img {
    transition: none !important;
  }
}


/* ─── Print ──────────────────────────────────────── */

@media print {
  .site-nav { display: none; }
  body { background: #fff; font-size: 11pt; }
  body::before { display: none; }
  .section, .cv-section { break-inside: avoid; }
  a { color: var(--text); }
  .btn, .button { display: none; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}


/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .hero-name { margin-bottom: 16px; font-size: clamp(2rem, 8vw, 2.75rem); }

  .hero-overlay {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(250,248,245,0.95) 20%, rgba(250,248,245,0.92) 65%, var(--bg) 100%);
  }

  .work-grid { grid-template-columns: 1fr; }
  .cv-skills-grid { grid-template-columns: 1fr; }
  .cv-project-grid { grid-template-columns: 1fr; }
  .photo-layout { grid-template-columns: 1fr; }
  .flagship-grid { grid-template-columns: 1fr; }

  .site-nav .nav-links { gap: 16px; }
  .site-nav .sound-toggle,
  .site-nav .dark-mode-toggle { display: none !important; }

  .project-item { padding-right: 36px; }
  .project-item::before {
    left: auto;
    right: 14px;
    opacity: 0.4;
    transform: none;
  }
  .project-item:active { background: var(--bg); }

  .project-item strong { white-space: normal; }
  .project-item span { display: none; }

  .photo-strip img {
    width: clamp(160px, 50vw, 240px);
    height: 160px;
  }
}

@media (max-width: 768px) and (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hero-overlay {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(26,24,20,0.95) 25%, rgba(26,24,20,0.9) 60%, var(--bg) 100%);
  }
}

@media (max-width: 768px) {
  html[data-theme="dark"] .hero-overlay {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(26,24,20,0.95) 25%, rgba(26,24,20,0.9) 60%, var(--bg) 100%);
  }
}

@media (max-width: 480px) {
  .site-nav .nav-links { gap: 12px; }
  .site-nav .nav-links a { font-size: 12px; }
  .site-nav .nav-brand { font-size: 13px; }
  .hero-links { flex-direction: column; }
  .hero-links .btn { text-align: center; }
  .hero-bio { font-size: 0.9375rem; }
  .cv-entry-header { flex-direction: column; gap: 2px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-badge { padding: 5px 12px 5px 5px; }
  .hero-badge img { width: 32px; height: 32px; }
  .photo-strip { margin: 24px -12px 0; padding-left: 12px; padding-right: 12px; }
}
