:root {
  --bg: #09090b;
  --bg-soft: #0d0d10;
  --card: rgba(17, 17, 20, .72);
  --card-strong: #111114;
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.14);
  --primary: #fafafa;
  --primary-foreground: #111114;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --green: #22c55e;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
  --radius: 18px;
  --container: 1180px;
  --topbar: rgba(9,9,11,.72);
}

html[data-theme="light"] {
  --bg: #f7f7f8;
  --bg-soft: #ffffff;
  --card: rgba(255,255,255,.8);
  --card-strong: #ffffff;
  --text: #18181b;
  --muted: #52525b;
  --muted-2: #71717a;
  --line: rgba(24,24,27,.09);
  --line-strong: rgba(24,24,27,.14);
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --topbar: rgba(247,247,248,.76);
  --shadow: 0 24px 80px rgba(24,24,27,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139,92,246,.32); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .035;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 10%, rgba(139,92,246,.13), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(34,211,238,.08), transparent 24%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.65) 45%, transparent 100%);
}

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

.section { padding: 112px 0; }
.section-tight { padding: 24px 0 56px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: var(--topbar);
  backdrop-filter: blur(16px);
  transition: border-color .25s ease;
}
.topbar.scrolled { border-color: var(--line); }
.topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  border-radius: 11px;
  font-weight: 850;
  letter-spacing: -.04em;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong { font-size: 13px; letter-spacing: .14em; }
.brand-text small { color: var(--muted-2); font-size: 11px; margin-top: 4px; }

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--text); }

.top-actions { display: flex; gap: 8px; min-width: 190px; justify-content: flex-end; }
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: .2s ease;
}
.icon-btn:hover { background: var(--card-strong); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }

.hero { padding-top: 100px; padding-bottom: 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 62px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: .11em;
  font-weight: 700;
}
.status-dot, .live, .legend-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block;
  box-shadow: 0 0 0 4px rgba(34,197,94,.09);
}
.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(52px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -.058em;
  font-weight: 780;
}
.gradient-text {
  background: linear-gradient(120deg, #fff 15%, #a78bfa 45%, #67e8f9 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .gradient-text {
  background: linear-gradient(120deg, #111 15%, #7c3aed 48%, #0891b2 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 720px;
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 22px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero-tags span, .tech-row span, .skill-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255,255,255,.015);
  font-size: 12px;
}
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }

.btn {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  transition: .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139,92,246,.15); }
.btn-ghost:hover { background: var(--card-strong); transform: translateY(-2px); }

.mini-proof {
  margin-top: 36px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.mini-proof div { display: flex; flex-direction: column; }
.mini-proof strong { font-size: 15px; }
.mini-proof span { color: var(--muted-2); font-size: 11px; margin-top: 2px; }

.hero-panel { position: relative; min-height: 460px; display: grid; place-items: center; }
.window {
  width: min(100%, 510px);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateY(-3deg) rotateX(2deg);
}
.window-bar {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
.traffic { display: flex; gap: 6px; }
.traffic span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.window-title { color: var(--muted-2); font-size: 11px; }
.window-kbd {
  justify-self: end; font-size: 10px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2);
}
.terminal {
  padding: 25px;
  min-height: 340px;
  font: 12px/1.8 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.prompt { color: var(--accent-2); }
.output { padding-left: 16px; margin-bottom: 12px; }
.output.accent { color: #c4b5fd; }
.output.muted, .muted { color: var(--muted-2); }
.service-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0 7px 16px;
  color: var(--muted);
}
.service-line span { display: flex; align-items: center; gap: 9px; }
.service-line b { color: var(--green); font-size: 10px; letter-spacing: .09em; }
.terminal-foot { margin-top: 24px; display: flex; align-items: center; gap: 9px; padding-left: 16px; }
.cursor {
  width: 7px;
  height: 15px;
  background: var(--text);
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.floating-card {
  position: absolute;
  border: 1px solid var(--line);
  background: var(--card-strong);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-width: 220px;
}
.floating-card small { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.floating-card strong { font-size: 13px; margin: 3px 0; }
.floating-card span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.fc-one { left: -20px; bottom: 36px; }
.fc-two { right: -18px; top: 44px; }

.marquee { overflow: hidden; padding: 14px 0; }
.marquee-track {
  width: max-content;
  display: flex;
  gap: 30px;
  animation: marquee 34s linear infinite;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.marquee-track span::after { content: "·"; margin-left: 30px; color: var(--line-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}
.kicker {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.section-head h2, .contact-card h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 470px;
  justify-self: end;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 16px;
}
.story-card { padding: 30px; min-height: 100%; }
.card-label, .pill {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
}
.story-card h3 { font-size: 25px; margin: 12px 0 16px; letter-spacing: -.025em; }
.story-card > p { color: var(--muted); font-size: 14px; }
.quote-box {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
}
.quote-box > span { font-size: 30px; color: var(--accent); line-height: 1; }
.quote-box p { margin: 0; font-size: 14px; color: var(--muted); }

.about-side { display: grid; gap: 16px; }
.stat-card { padding: 23px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.stat-icon {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 13px; font-size: 12px; background: rgba(139,92,246,.05);
}
.stat-card small { display: block; color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; margin: 3px 0 5px; font-size: 15px; }
.stat-card p { margin: 0; color: var(--muted); font-size: 12px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-card {
  padding: 26px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.project-featured { grid-column: span 2; min-height: 360px; }
.project-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.project-top h3 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.025em; }
.project-link {
  width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px;
  color: var(--muted); transition: .2s ease;
}
.project-link:hover { color: var(--text); background: var(--card-strong); transform: rotate(5deg); }
.project-card > p { color: var(--muted); font-size: 13px; max-width: 760px; }
.tech-row { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 20px; }
.flow {
  margin: 26px 0 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,.012);
}
.flow span {
  padding: 8px 11px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 11px;
}
.flow i { color: var(--muted-2); font-style: normal; }

.mini-window {
  margin: 18px 0 4px;
  border: 1px solid var(--line);
  height: 120px;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 68px 1fr;
  overflow: hidden;
}
.mini-sidebar { border-right: 1px solid var(--line); padding: 17px 13px; display: grid; gap: 10px; align-content: start; }
.mini-sidebar span { height: 8px; background: var(--line-strong); border-radius: 999px; }
.mini-sidebar span.active { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.mini-content { padding: 17px; display: grid; gap: 10px; align-content: start; }
.mini-content div { height: 9px; background: var(--line); border-radius: 999px; }
.mini-content .short { width: 64%; }

.module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0 4px;
}
.module-list span, .cloud-row b, .app-grid div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  border-radius: 10px;
  min-height: 42px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted);
  font-weight: 650;
}
.cloud-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 22px 0 4px; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 4px; }
.app-grid div { gap: 4px; padding: 10px; }
.app-grid span { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(145deg, rgba(139,92,246,.35), rgba(34,211,238,.14)); border: 1px solid var(--line); }
.app-grid b { font-size: 9px; color: var(--muted-2); }

.repo-terminal {
  margin: 20px 0 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 90px;
  padding: 14px;
  font: 11px/1.7 "SFMono-Regular", Consolas, monospace;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.repo-terminal span { color: var(--accent-2); }
.repo-terminal b { font-weight: 400; color: var(--muted-2); }

.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stack-card { padding: 25px; }
.stack-head { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.stack-head > span {
  width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 10px; color: var(--muted-2); font: 10px/1 monospace;
}
.stack-head h3 { margin: 0; font-size: 18px; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-cloud span { font-size: 12px; }

.infra-card { overflow: hidden; }
.infra-toolbar {
  height: 48px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: var(--muted-2);
  font: 10px/1 monospace;
}
.infra-toolbar span:first-child { display: flex; align-items: center; gap: 9px; }
.topology {
  min-height: 440px;
  padding: 54px 28px;
  display: grid;
  grid-template-columns: 1fr 60px 1fr 70px 1.15fr 70px 1.15fr 70px 1.1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.topology::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139,92,246,.05), transparent 38%);
  pointer-events: none;
}
.node {
  position: relative;
  z-index: 2;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  background: var(--card-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.node small { color: var(--muted-2); font-size: 9px; letter-spacing: .1em; }
.node strong { margin: 5px 0 2px; font-size: 14px; }
.node span { color: var(--muted); font-size: 10px; }
.node.internet { box-shadow: inset 0 0 0 1px rgba(139,92,246,.05); }
.node.edge { box-shadow: inset 0 0 0 1px rgba(34,211,238,.04); }
.infra-column { display: grid; gap: 12px; }
.connector {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(139,92,246,.42), var(--line-strong));
  position: relative;
  z-index: 1;
}
.connector::after {
  content: "›";
  position: absolute;
  right: -2px;
  top: -11px;
  color: var(--muted-2);
  font-size: 15px;
}
.infra-legend {
  min-height: 50px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted-2);
  font-size: 10px;
}
.legend-line { width: 18px; height: 1px; background: var(--line-strong); display: inline-block; margin-right: 6px; vertical-align: middle; }
.infra-legend kbd, .cmd-search kbd {
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  background: var(--bg-soft);
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
}

.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 150px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 122px 56px 1fr;
  align-items: start;
  margin-bottom: 16px;
}
.time { color: var(--muted-2); font: 11px/1.4 "SFMono-Regular", Consolas, monospace; padding-top: 22px; text-align: right; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted-2);
  justify-self: center; margin-top: 24px; position: relative; z-index: 2;
}
.timeline-dot.current { border-color: var(--green); box-shadow: 0 0 0 5px rgba(34,197,94,.08); }
.timeline-card { padding: 22px 24px; }
.timeline-card small { color: var(--muted-2); font-size: 9px; letter-spacing: .1em; }
.timeline-card h3 { margin: 6px 0 6px; font-size: 17px; }
.timeline-card p { margin: 0; color: var(--muted); font-size: 12px; }
.current-card { border-color: rgba(34,197,94,.18); }

.contact-section { padding-bottom: 80px; }
.contact-card {
  padding: 42px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  background:
    radial-gradient(circle at 85% 20%, rgba(139,92,246,.1), transparent 28%),
    var(--card);
}
.contact-card p { color: var(--muted); max-width: 680px; margin-bottom: 0; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  font-size: 11px;
}
.footer-inner > div { display: flex; flex-direction: column; }
.footer-inner strong { color: var(--text); font-size: 12px; }
.footer-right { align-items: flex-end; }
.text-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0 0;
}
.text-btn:hover { color: var(--text); }

.cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: start center;
  padding-top: 15vh;
  background: rgba(0,0,0,.54);
  backdrop-filter: blur(8px);
}
.cmd-overlay.open { display: grid; animation: fadeIn .15s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cmd { width: min(calc(100% - 28px), 620px); overflow: hidden; box-shadow: var(--shadow); }
.cmd-search {
  height: 58px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}
.cmd-search svg { width: 17px; color: var(--muted-2); }
.cmd-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.cmd-search input::placeholder { color: var(--muted-2); }
.cmd-list { padding: 8px; max-height: 360px; overflow-y: auto; }
.cmd-list button {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--muted);
}
.cmd-list button:hover, .cmd-list button.active { background: rgba(255,255,255,.04); color: var(--text); }
.cmd-list small { color: var(--muted-2); font-size: 10px; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

@media (max-width: 980px) {
  .nav { display: none; }
  .brand, .top-actions { min-width: auto; }
  .hero-grid, .section-head, .about-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-panel { min-height: 420px; }
  .section-head > p { justify-self: start; }
  .project-grid, .stack-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .topology {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px;
  }
  .connector { width: 1px; height: 28px; justify-self: center; background: linear-gradient(var(--line-strong), rgba(139,92,246,.42), var(--line-strong)); }
  .connector::after { content: "⌄"; right: -7px; top: 11px; }
  .infra-column { grid-template-columns: repeat(2, 1fr); }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: clamp(46px, 15vw, 64px); }
  .hero-lead { font-size: 15px; }
  .hero-panel { min-height: 380px; }
  .window { transform: none; }
  .fc-one { left: 8px; bottom: 0; }
  .fc-two { right: 4px; top: 8px; }
  .mini-proof { gap: 20px; }
  .project-card, .story-card, .stack-card { padding: 20px; }
  .module-list { grid-template-columns: repeat(2, 1fr); }
  .cloud-row { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 11px; }
  .timeline-item { grid-template-columns: 24px 1fr; }
  .time { grid-column: 2; text-align: left; padding: 0 0 7px; }
  .timeline-dot { grid-column: 1; grid-row: 1 / span 2; margin-top: 4px; }
  .timeline-card { grid-column: 2; }
  .contact-card { padding: 28px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
  .footer-right { align-items: flex-start; }
  .floating-card { max-width: 170px; }
  .infra-column { grid-template-columns: 1fr; }
}

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