:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --text: #172026;
  --muted: #63707a;
  --faint: #88939b;
  --line: #dce3e8;
  --accent: #0f766e;
  --accent-2: #1d4ed8;
  --accent-soft: #dff4f0;
  --dark: #111827;
  --shadow: 0 18px 50px rgba(23, 32, 38, 0.09);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101418;
  --surface: #171d22;
  --surface-2: #202930;
  --text: #eef3f7;
  --muted: #a8b3bc;
  --faint: #74818c;
  --line: #2b3740;
  --accent: #2dd4bf;
  --accent-2: #60a5fa;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --dark: #f8fafc;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--dark);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.muted-section {
  background: var(--surface-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.header-actions,
.desktop-nav,
.hero-actions,
.project-actions,
.tag-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-size: 14px;
}

.desktop-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent);
}

.header-actions {
  gap: 10px;
}

.icon-button,
.menu-button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
}

.icon-button {
  width: 40px;
  height: 40px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 40px;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 20px 18px;
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  color: var(--muted);
  font-weight: 700;
}

.mobile-nav.open {
  display: block;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.portrait-card {
  position: relative;
  width: 260px;
  height: 260px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
}

.portrait-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block;
  border: 8px solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.portrait-card:hover .portrait-illustration,
.portrait-card.is-flipped .portrait-illustration {
  transform: rotateY(180deg);
}

.portrait-card:hover .portrait-photo,
.portrait-card.is-flipped .portrait-photo {
  transform: rotateY(360deg);
}

.portrait-illustration {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--surface) 94%, transparent) 0 44%, transparent 45%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 70%, var(--surface)), var(--surface-2));
}

.portrait-photo {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--surface) 82%, transparent), transparent 54%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 56%, var(--surface)), color-mix(in srgb, var(--accent-2) 12%, var(--surface)));
  transform: rotateY(180deg);
}

.portrait-image {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.portrait-lineart {
  inset: 5px auto auto;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  opacity: 0.92;
}

.portrait-real {
  bottom: -18px;
  width: 112%;
  height: 112%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.02) contrast(1.03);
}

[data-theme="dark"] .portrait-lineart {
  filter: invert(1) brightness(1.18);
  opacity: 0.86;
}

.eyebrow,
.section-kicker,
.project-type {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 8px;
  font-size: clamp(44px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  color: var(--accent-2);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero-role {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.hero-actions,
.project-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.hero-facts span {
  position: relative;
  padding-left: 14px;
}

.hero-facts span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}

.compact-actions {
  align-items: center;
  margin-top: 20px;
}

.project-note {
  color: var(--faint);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
}

.button:hover,
.text-link:hover,
.contact-card a:hover {
  transform: translateY(-1px);
}

.profile-panel,
.featured-project,
.project-card,
.skill-group,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel {
  padding: 24px;
}

.profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-top strong,
.profile-top span {
  display: block;
}

.profile-top span {
  color: var(--muted);
  font-size: 14px;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.quick-list {
  margin: 22px 0 0;
}

.quick-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.quick-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.quick-list dt {
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.quick-list dd {
  margin: 0;
  color: var(--muted);
}

.two-column,
.resume-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.content-stack {
  color: var(--muted);
  font-size: 17px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-grid strong,
.stat-grid span {
  display: block;
}

.stat-grid strong {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 24px;
}

.stat-grid span {
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.section-note {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) 1.1fr;
  overflow: hidden;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 0.9fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-shot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--project-a, #0f766e) 20%, transparent), transparent),
    var(--project-bg, #13211d);
}

.project-shot-wrap img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.project-detail-copy {
  padding: 34px;
}

.project-detail.repairflow-theme {
  --project-a: #84cc16;
  --project-bg: #1f2a1d;
}

.project-detail.arostegui-theme {
  --project-a: #64f20c;
  --project-bg: #06140b;
}

.project-detail.orderflow-theme {
  --project-a: #2563eb;
  --project-bg: #e9efff;
}

.project-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.project-select-card {
  display: grid;
  gap: 10px;
  padding: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-select-card:hover,
.project-select-card.is-active {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.project-select-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
}

.project-select-card span,
.project-select-card strong,
.project-select-card small {
  margin: 0 18px;
}

.project-select-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-select-card strong {
  font-size: 18px;
  line-height: 1.2;
}

.project-select-card small {
  color: var(--muted);
  font-size: 13px;
}

.project-visual {
  min-height: 480px;
  padding: 22px;
  background: linear-gradient(135deg, #102a2a, #172554);
}

.window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.mock-layout {
  height: calc(100% - 32px);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}

.mock-sidebar,
.mock-main {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.mock-main {
  padding: 18px;
}

.mock-row,
.mock-cards span,
.mock-table span {
  display: block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.mock-row {
  height: 38px;
  margin-bottom: 18px;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mock-cards span {
  height: 74px;
  background: rgba(45, 212, 191, 0.7);
}

.mock-table {
  display: grid;
  gap: 10px;
}

.mock-table span {
  height: 22px;
}

.project-content {
  padding: 34px;
}

.project-content p,
.project-card p,
.timeline-item p,
.contact-grid p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.project-card {
  overflow: hidden;
}

.mini-visual {
  height: 170px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 20%, transparent 20% 28%, rgba(255, 255, 255, 0.3) 28% 55%, transparent 55%),
    linear-gradient(135deg, #0f766e, #1d4ed8);
}

.mini-orders {
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, 0.45) 0 12%, transparent 13%),
    linear-gradient(135deg, #374151, #0f766e);
}

.mini-api {
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(255, 255, 255, 0.24) 20% 21%, transparent 21% 44%, rgba(255, 255, 255, 0.24) 44% 45%, transparent 45%),
    linear-gradient(135deg, #111827, #7c3aed);
}

.mini-award {
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.95) 0 12%, transparent 13%),
    linear-gradient(135deg, #0f766e, #f59e0b);
}

.mini-award::before {
  content: "1";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 6px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
}

.project-card-body {
  padding: 22px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-group {
  border: 1px solid var(--line);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  padding: 22px;
}

.skill-group h3 {
  font-size: 17px;
}

.skill-group p {
  margin-bottom: 0;
  color: var(--muted);
}

.skill-group:hover,
.skill-group.is-active {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
  box-shadow: 0 18px 36px color-mix(in srgb, var(--accent) 18%, transparent);
}

.process-section {
  background: var(--surface);
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-grid::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 43px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 16%, transparent));
  opacity: 0.34;
}

.process-step {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(22px);
  animation: processIn 0.58s ease forwards;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.process-step:nth-child(2) {
  animation-delay: 0.1s;
}

.process-step:nth-child(3) {
  animation-delay: 0.2s;
}

.process-step:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes processIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.process-step::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-step:hover,
.process-step.is-active {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 32%, var(--bg));
  box-shadow: 0 20px 44px color-mix(in srgb, var(--accent) 18%, transparent);
}

.process-step.is-complete {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.process-step.is-complete span {
  background: color-mix(in srgb, var(--accent) 82%, var(--accent-2));
}

.process-step.is-active span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.process-insight {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-soft) 34%, var(--surface));
}

.process-insight strong {
  color: var(--text);
}

.process-insight span {
  color: var(--muted);
}

.timeline-shell {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 58px;
}

.interactive-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.interactive-timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--line);
}

.timeline-node {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.timeline-node::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-node:hover,
.timeline-node.is-active {
  transform: translateX(4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.timeline-node span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-node strong {
  font-size: 18px;
}

.timeline-modal[hidden] {
  display: none;
}

.timeline-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}

.timeline-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 18, 0.56);
  backdrop-filter: blur(6px);
}

.timeline-modal__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 0;
  width: min(980px, 100%);
  max-height: min(84vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.timeline-modal__content {
  padding: 32px;
  overflow: auto;
}

.timeline-modal__media {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--surface-2);
  overflow: auto;
}

.timeline-modal__media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  display: block;
}

.timeline-modal__close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline-date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-section {
  background: var(--dark);
  color: var(--bg);
}

.contact-section .section-kicker,
.contact-section p {
  color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.contact-card {
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--text);
}

.contact-card a {
  display: block;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-card a:last-child {
  border-bottom: 0;
}

.contact-card span,
.contact-card strong {
  display: block;
}

.contact-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-card strong {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero-grid,
  .two-column,
  .resume-grid,
  .contact-grid,
  .featured-project,
  .project-detail,
  .project-picker,
  .process-grid,
  .timeline-shell {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    margin: 0 auto;
  }

  .project-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-grid {
    gap: 34px;
    text-align: center;
  }

  .hero-actions,
  .hero-facts {
    justify-content: center;
  }

  .brand-text {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .portrait-card {
    width: 230px;
    height: 230px;
  }

  .quick-list div,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-content {
    padding: 24px;
  }

  .project-visual {
    min-height: 300px;
  }

  .project-shot-wrap {
    min-height: 260px;
    padding: 14px;
  }

  .project-shot-wrap img {
    min-height: 0;
  }

  .project-detail-copy {
    padding: 24px;
  }

  .project-select-card img {
    height: 140px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    gap: 12px;
  }

  .process-step {
    min-height: auto;
  }

  .timeline-modal__card {
    grid-template-columns: 1fr;
    max-height: 88vh;
    overflow: auto;
  }

  .timeline-modal__content {
    overflow: visible;
  }

  .timeline-modal__media {
    min-height: 260px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .portrait-card,
  .timeline-modal,
  .project-visual,
  .mini-visual,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section {
    padding: 24px 0;
  }

  .featured-project,
  .project-card,
  .skill-group,
  .timeline-item,
  .contact-card,
  .profile-panel {
    box-shadow: none;
  }
}
