:root {
  --paper: #f4f1e9;
  --paper-deep: #e9e4d8;
  --ink: #151718;
  --ink-soft: #5a5d5d;
  --line: rgba(21, 23, 24, 0.18);
  --line-strong: rgba(21, 23, 24, 0.34);
  --card: rgba(255, 255, 255, 0.44);
  --accent: #3157f6;
  --accent-2: #1432a7;
  --signal: #ff5d2a;
  --lime: #c8ff55;
  --safe: #24845a;
  --shadow: 0 22px 70px rgba(28, 30, 28, 0.1);
  --radius: 12px;
  --header-h: 104px;
  --max-width: 1440px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

html[data-theme="dark"] {
  --paper: #121516;
  --paper-deep: #1b1f20;
  --ink: #f1efe8;
  --ink-soft: #a7aaa7;
  --line: rgba(241, 239, 232, 0.16);
  --line-strong: rgba(241, 239, 232, 0.3);
  --card: rgba(255, 255, 255, 0.04);
  --accent: #6f8aff;
  --accent-2: #b0bdff;
  --signal: #ff7950;
  --safe: #67d59e;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

html:not([data-theme="dark"]) .home-page {
  --paper: #ffffff;
  --paper-deep: #f2f3f3;
  --card: #fafafa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 240ms ease, color 240ms ease;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
svg { display: block; }
::selection { background: var(--lime); color: #111; }

.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: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); transition: transform 180ms ease; }
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(clamp(22px, 4vw, 68px), calc((100vw - var(--max-width)) / 2 + 68px));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: height 220ms ease, background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}
.site-header.scrolled { height: 64px; background: color-mix(in srgb, var(--paper) 85%, transparent); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; white-space: nowrap; font-size: clamp(1.14rem, 1.4vw, 1.42rem); font-weight: 760; letter-spacing: -0.035em; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 36px); color: var(--ink-soft); font-size: clamp(0.82rem, 1vw, 1rem); font-weight: 500; }
.site-nav > a { position: relative; padding: 8px 0; }
.site-nav > a::after { content: ""; position: absolute; inset: auto 0 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 220ms var(--ease); }
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-resume { color: var(--ink); font-weight: 700; }
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; }
.theme-toggle:hover { background: var(--paper-deep); }
.theme-icon { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transition: opacity 180ms ease, transform 180ms ease; }
.theme-icon-moon { opacity: 0; transform: rotate(-20deg) scale(0.8); }
[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: rotate(20deg) scale(0.8); }
[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: none; }
.menu-toggle { display: none; }

.hero {
  min-height: min(900px, 100svh);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(70px, 6vw, 108px)) clamp(22px, 4vw, 68px) clamp(88px, 10vw, 140px);
}
.eyebrow, .section-kicker { margin: 0 0 22px; font-size: 0.69rem; font-weight: 780; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(0.7rem, 0.9vw, 0.88rem); letter-spacing: 0.15em; }
.hero-copy { max-width: 1120px; }
.section-heading h2, .about-copy h2, .contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}
.hero h1 { max-width: 1120px; margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(4rem, 6.5vw, 7.5rem); font-weight: 760; letter-spacing: -0.065em; line-height: 1.02; }
em { color: var(--accent); font-weight: 400; }
.hero-intro { max-width: 920px; margin: 36px 0 0; color: var(--ink-soft); font-size: clamp(1.12rem, 1.45vw, 1.5rem); line-height: 1.67; }
.hero-actions { margin-top: 42px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 51px; padding: 0 20px; border: 1px solid var(--ink); font-size: 0.78rem; font-weight: 740; letter-spacing: 0.02em; transition: transform 180ms var(--ease), background 180ms ease, color 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--accent); border-color: var(--accent); color: white; }
.button-outline { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--ink); }
.hero-actions .button { min-height: 60px; padding-inline: 22px; font-size: 0.92rem; }
.hero-actions .text-link { margin-left: 2px; font-size: 0.93rem; }
.text-link, .project-open { font-size: 0.78rem; font-weight: 740; border-bottom: 1px solid var(--line-strong); padding: 8px 0 6px; cursor: pointer; transition: color 180ms ease, border-color 180ms ease; }
.text-link:hover, .project-open:hover { color: var(--accent); border-color: var(--accent); }

.capability-strip { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; }
.capability-track { width: max-content; display: flex; align-items: center; animation: marquee 32s linear infinite; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.capability-group { flex: none; min-width: 100vw; display: flex; align-items: center; justify-content: space-around; gap: 28px; padding-inline: 14px; white-space: nowrap; }
.capability-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { max-width: var(--max-width); margin: 0 auto; padding: clamp(100px, 11vw, 170px) clamp(22px, 4vw, 68px); }
.section-heading { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: end; margin-bottom: clamp(50px, 7vw, 90px); }
.section-heading h2, .about-copy h2 { font-size: clamp(3.5rem, 6vw, 6.5rem); }
.section-heading > p { max-width: 500px; margin: 0 0 4px auto; color: var(--ink-soft); line-height: 1.75; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 2.8vw, 40px); align-items: stretch; }
.project-card { min-width: 0; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease); }
.project-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-4px); }
.project-card-hit { position: absolute; z-index: 1; inset: 0; border-radius: inherit; cursor: pointer; }
.project-card-hit:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
.project-card .project-visual > * { pointer-events: none; }
.project-visual { height: clamp(245px, 25vw, 320px); background: #171a1b; color: white; position: relative; overflow: hidden; border-radius: 2px 2px 0 0; }
.project-featured .project-visual { height: 100%; min-height: 520px; }
.visual-label { position: absolute; z-index: 3; inset: 16px 18px auto; display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 0.56rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.62); }
.project-body { padding: clamp(21px, 2.4vw, 32px); display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.project-featured .project-body { padding: clamp(35px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; color: var(--ink-soft); font-size: 0.59rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.project-meta span:first-child { color: var(--accent); }
.project-body h3 { margin: 15px 0 12px; max-width: 550px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 2.4vw, 2.45rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.035em; }
.project-body > p { margin: 0; max-width: 570px; color: var(--ink-soft); line-height: 1.72; }
.project-body > p + p { margin-top: 15px; }
.project-fact { width: 100%; margin-top: 18px !important; padding: 12px 14px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--paper)); font-size: 0.82rem; line-height: 1.55 !important; }
.project-fact strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 20px 0 23px; padding: 0; }
.tag-list li { border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px; color: var(--ink-soft); font-family: ui-monospace, monospace; font-size: 0.61rem; }
.project-open { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; width: max-content; border: 0; border-bottom: 1px solid var(--line-strong); background: none; padding-inline: 0; }
.project-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; margin-top: auto; }
.project-repo { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0 6px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.76rem; font-weight: 650; transition: color 180ms ease, border-color 180ms ease; }
.project-repo:hover { color: var(--accent); border-color: var(--accent); }

.case-flow { position: absolute; inset: 54px 24px 76px; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1vw, 16px); }
.case-flow span { min-width: 0; width: 21%; min-height: 62px; display: grid; place-content: center; padding: 8px 6px; border: 1px solid rgba(255,255,255,0.35); background: rgba(8,11,12,0.34); color: rgba(255,255,255,0.9); text-align: center; font-family: ui-monospace, monospace; font-size: clamp(0.52rem, 0.68vw, 0.68rem); line-height: 1.4; letter-spacing: 0.025em; }
.case-flow i { color: var(--lime); font-style: normal; font-size: 1rem; }
.visual-hospital { background: #17303c; }
.visual-facility { background: #2e2818; }
.visual-queueing { background: #15332c; }
.visual-database { background: #29213d; }
.visual-scheduling { background: #262116; }
.visual-vision { background: #24143a; }
.visual-network { background: #12172d; }
.visual-mtg { background: #142b29; }
.visual-heart { background: #321e26; }
.visual-grocery { background: #193222; }
.visual-retention { background: #173140; }
.visual-skincare { background: #30231d; }
.visual-skincare .case-flow span:nth-of-type(2), .visual-skincare .case-flow span:nth-of-type(3) { border-color: rgba(255,193,148,0.82); }
.visual-retention .case-flow span:nth-of-type(2), .visual-retention .case-flow span:nth-of-type(3) { border-color: rgba(121,223,200,0.82); }
.visual-grocery .case-flow span:nth-of-type(2), .visual-grocery .case-flow span:nth-of-type(3) { border-color: rgba(168,224,145,0.8); }
.visual-hospital .case-flow span:nth-of-type(2), .visual-hospital .case-flow span:nth-of-type(4) { border-color: rgba(114,218,229,0.72); }
.visual-facility .case-flow span:nth-of-type(2), .visual-facility .case-flow span:nth-of-type(3) { border-color: rgba(255,196,93,0.75); }
.visual-scheduling .case-flow span:nth-of-type(2), .visual-scheduling .case-flow span:nth-of-type(3) { border-color: rgba(255,150,91,0.75); }
.visual-vision .case-flow span:nth-of-type(2), .visual-vision .case-flow span:nth-of-type(3) { border-color: rgba(181,151,255,0.8); }
.visual-network .case-flow span:nth-of-type(2), .visual-network .case-flow span:nth-of-type(3) { border-color: rgba(142,163,255,0.8); }
.visual-mtg .case-flow span:nth-of-type(2), .visual-mtg .case-flow span:nth-of-type(3) { border-color: rgba(113,220,188,0.8); }
.visual-heart .case-flow span:nth-of-type(2), .visual-heart .case-flow span:nth-of-type(4) { border-color: rgba(255,156,148,0.8); }
.visual-queueing .case-flow span:nth-of-type(2), .visual-queueing .case-flow span:nth-of-type(3) { border-color: rgba(129,226,175,0.8); }
.visual-database .case-flow span:nth-of-type(2), .visual-database .case-flow span:nth-of-type(3) { border-color: rgba(194,158,255,0.8); }
.project-visual .visual-stat { right: 14px; bottom: 12px; max-width: calc(100% - 28px); padding: 9px 11px; }
.project-visual .visual-stat strong { font-family: ui-monospace, monospace; font-size: clamp(0.68rem, 0.95vw, 0.88rem); line-height: 1.35; }

.visual-kairos { background: #142725; }
.visual-kairos::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 8.33% 20%; }
.gantt { position: absolute; inset: 21% 7% 19%; }
.gantt span { position: absolute; left: var(--x); top: calc(var(--row) * 24%); width: var(--w); height: 13%; background: var(--lime); box-shadow: 0 7px 22px rgba(200,255,85,0.15); animation: gantt-in 1s var(--ease) both; animation-delay: calc(var(--row) * 100ms); }
.gantt span:nth-child(3n + 2) { background: #80d7ff; }
.gantt span:nth-child(4n) { background: var(--signal); }
@keyframes gantt-in { from { transform: scaleX(0); transform-origin: left; } }
.visual-stat { position: absolute; right: 7%; bottom: 7%; padding: 13px 15px; border: 1px solid rgba(255,255,255,0.25); background: rgba(20,39,37,0.84); backdrop-filter: blur(8px); }
.visual-stat span, .visual-stat strong { display: block; }
.visual-stat span { color: rgba(255,255,255,0.6); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; }
.visual-stat strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; color: var(--lime); }
.visual-network { background: #12172d; }
.visual-network svg { width: 100%; height: 100%; }
.network-lines line { stroke: rgba(117,143,255,0.26); stroke-width: 0.8; }
.network-nodes circle { fill: #12172d; stroke: #8ea3ff; stroke-width: 1.4; }
.network-nodes circle.active { fill: var(--lime); stroke: var(--lime); filter: drop-shadow(0 0 6px rgba(200,255,85,0.8)); }
.accuracy { position: absolute; left: 18px; bottom: 16px; }
.accuracy span, .accuracy strong { display: block; }
.accuracy span { font-family: ui-monospace, monospace; color: rgba(255,255,255,0.55); font-size: 0.57rem; letter-spacing: 0.1em; }
.accuracy strong { font-family: Georgia, serif; font-weight: 400; font-size: 2rem; }
.visual-scheduling { background: #262116; }
.solver-chart { position: absolute; inset: 24% 9% 18%; display: flex; align-items: flex-end; gap: 8%; border-bottom: 1px solid rgba(255,255,255,0.28); }
.solver-chart div { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; }
.solver-chart i { width: 100%; height: var(--h); background: #f3bd3d; display: block; transition: height 500ms var(--ease); }
.solver-chart div:nth-child(2n) i { background: #ff7145; }
.solver-chart span { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-family: ui-monospace, monospace; font-size: 0.54rem; color: rgba(255,255,255,0.57); }
.chart-axis { position: absolute; inset: auto 9% 7%; display: flex; justify-content: space-between; color: rgba(255,255,255,0.45); font-family: ui-monospace, monospace; font-size: 0.52rem; }
.visual-vision { background: #24143a; }
.scan-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); opacity: 0.5; }
.scan-grid i { border-right: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.visual-vision svg { width: 100%; height: 100%; }
.scan-shape { fill: rgba(139,103,255,0.34); stroke: #af96ff; stroke-width: 2; }
.scan-line { fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-dasharray: 5 5; }
.scan-progress { position: absolute; left: 0; right: 0; top: 56%; height: 1px; background: rgba(255,255,255,0.17); box-shadow: 0 0 18px rgba(200,255,85,0.4); animation: scan 4.5s ease-in-out infinite; }
.scan-progress span { display: block; width: 38%; height: 100%; background: var(--lime); box-shadow: 0 0 11px var(--lime); }
@keyframes scan { 0%,100% { transform: translateY(-80px); } 50% { transform: translateY(100px); } }

.about-section { position: relative; padding-block: clamp(72px, 8vw, 112px); }
.about-intro { display: block; }
.about-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.about-identity-label { display: block; font-size: clamp(1.5rem, 2.3vw, 2.2rem); font-weight: 750; letter-spacing: -0.045em; }
.about-identity p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; text-align: right; }
.about-copy { margin-top: 36px; }
.about-copy h2, .about-approach h3, .about-background h3 { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 760; letter-spacing: -0.055em; }
.about-copy h2 { max-width: 900px; margin: 0 0 26px; font-size: clamp(3rem, 5vw, 5.5rem); line-height: 1.02; }
.about-bio { max-width: 1120px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.about-bio p { margin: 0; color: var(--ink-soft); line-height: 1.72; }
.about-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.about-actions .text-link { margin-left: 4px; }
.about-approach { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); margin-top: clamp(64px, 7vw, 96px); padding-top: 30px; border-top: 1px solid var(--line); }
.about-approach h3 { max-width: 520px; margin: 0; font-size: clamp(2.5rem, 3.8vw, 4.2rem); line-height: 1.08; }
.approach-copy p { margin: 0 0 16px; color: var(--ink-soft); line-height: 1.72; }
.about-background { margin-top: clamp(64px, 7vw, 96px); padding-top: 30px; border-top: 1px solid var(--line); }
.about-background h3 { margin: 0 0 30px; font-size: clamp(2.6rem, 4.4vw, 4.8rem); line-height: 1.08; }
.background-row { display: grid; grid-template-columns: minmax(130px, 0.25fr) 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.background-row:last-child { border-bottom: 1px solid var(--line); }
.background-row > span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.background-row strong { font-size: 1rem; }
.background-row p { margin: 5px 0 0; color: var(--ink-soft); line-height: 1.65; }

.contact-section { min-height: 720px; padding: clamp(100px, 12vw, 180px) 22px; background: var(--accent); color: white; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact-section::before, .contact-section::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,0.12); border-radius: 50%; }
.contact-section::before { width: 70vw; height: 70vw; min-width: 700px; min-height: 700px; }
.contact-section::after { width: 48vw; height: 48vw; min-width: 470px; min-height: 470px; }
.contact-section > * { position: relative; z-index: 1; }
.contact-orbit { width: 78px; height: 78px; margin-bottom: 35px; border: 1px solid rgba(255,255,255,0.32); border-radius: 50%; display: grid; place-items: center; position: relative; }
.contact-orbit::before { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(255,255,255,0.32); border-radius: 50%; animation: orbit-spin 10s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.contact-orbit span { font-family: Georgia, serif; }
.contact-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); top: 6px; left: 33px; box-shadow: 0 0 8px var(--lime); }
.contact-orbit i:nth-child(2) { top: auto; bottom: 7px; left: auto; right: 17px; background: var(--signal); }
.contact-section h2 { color: white; font-size: clamp(4.2rem, 9vw, 9.5rem); }
.contact-section h2 em { color: var(--lime); }
.contact-copy { max-width: 580px; margin: 35px 0 0; color: rgba(255,255,255,0.72); }
.contact-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.button-light { background: white; border-color: white; color: #17191a; min-width: 245px; }
.button-light:hover { background: var(--lime); border-color: var(--lime); }
.contact-section .button-outline { color: white; border-color: rgba(255,255,255,0.5); min-width: 140px; }
.contact-section .button-outline:hover { background: white; color: #17191a; border-color: white; }

.site-footer { max-width: var(--max-width); margin: 0 auto; padding: 42px clamp(22px, 4vw, 68px); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 25px; font-size: 0.68rem; }
.site-footer > div:first-child { display: flex; flex-direction: column; }
.site-footer strong { font-size: 0.82rem; }.site-footer span, .site-footer p { color: var(--ink-soft); }
.site-footer p { margin: 0; text-align: center; }
.footer-meta { display: flex; justify-content: flex-end; gap: 25px; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .project-card.reveal:nth-child(2) { transition-delay: 80ms; }
.js .project-card.reveal:nth-child(3) { transition-delay: 130ms; }
.js .project-card.reveal:nth-child(4) { transition-delay: 180ms; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) { .project-card:not(.project-featured) .project-visual { transition: transform 450ms var(--ease), box-shadow 450ms var(--ease); } .project-card:not(.project-featured):hover .project-visual { transform: translateY(-7px); box-shadow: var(--shadow); } }

@media (max-width: 980px) {
  .hero { min-height: 760px; padding-top: calc(var(--header-h) + 90px); }
  .hero h1 { font-size: clamp(4rem, 8vw, 6.5rem); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p { margin-left: 0; }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured .project-visual { min-height: 460px; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .site-header { padding-inline: 19px; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto; height: calc(100svh - var(--header-h)); padding: 55px 24px; background: var(--paper); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; font-size: 1.8rem; transform: translateX(100%); visibility: hidden; transition: transform 300ms var(--ease), visibility 300ms; }
  .menu-open .site-nav { transform: none; visibility: visible; }
  .theme-toggle { position: absolute; right: 68px; top: 16px; }
  .menu-toggle { display: block; width: 38px; height: 38px; border: 0; background: transparent; position: relative; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { position: absolute; right: 3px; width: 26px; height: 1.5px; background: currentColor; transition: transform 220ms ease, top 220ms ease; }
  .menu-toggle span:nth-child(2) { top: 14px; }.menu-toggle span:nth-child(3) { top: 23px; }
  .menu-open .menu-toggle span:nth-child(2) { top: 19px; transform: rotate(45deg); }.menu-open .menu-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
  .hero { min-height: min(760px, 100svh); padding-top: 150px; padding-bottom: 78px; }
  .hero h1 { font-size: clamp(3.3rem, 11vw, 5.4rem); }
  .hero-intro { font-size: 1.13rem; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-height: 54px; font-size: 0.84rem; }
  .hero-actions .text-link { margin: 8px 0 0; }
  .capability-track { animation-duration: 24s; }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .project-featured .project-visual { min-height: 370px; }
  .project-featured .project-body { padding: 30px 22px 36px; }
  .project-visual { height: 340px; }
  .about-identity { align-items: flex-start; }
  .about-bio, .about-approach { grid-template-columns: 1fr; }
  .about-copy h2 { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .background-row { grid-template-columns: 1fr; gap: 6px; }
  .contact-section { min-height: 640px; }
  .contact-section h2 { font-size: clamp(3.8rem, 17vw, 6rem); }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer p { text-align: left; }.footer-meta { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .brand { font-size: 1rem; }
  .eyebrow { font-size: 0.62rem; line-height: 1.6; }
  .hero h1 { font-size: clamp(2.85rem, 11vw, 3.6rem); }
  .hero-actions .button { width: 100%; justify-content: center; }
  .hero-actions .text-link { margin-top: 10px; }
  .about-identity { display: block; }
  .about-identity p { margin-top: 6px; text-align: left; }
  .project-visual { height: 300px; }
  .contact-actions { width: 100%; }.contact-actions .button { width: 100%; }
}

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