:root {
  --bg: #eef7fb;
  --bg-alt: #f8fcff;
  --line: rgba(81, 120, 152, 0.14);
  --line-strong: rgba(81, 120, 152, 0.26);
  --text: #171a1f;
  --muted: #6a7f93;
  --accent: #26c6ff;
  --accent-soft: rgba(38, 198, 255, 0.1);
  --accent-2: #7b61ff;
  --max-width: 1180px;
  --nav-width: 220px;
}

[data-theme="dark"] {
  --bg: #111316;
  --bg-alt: #191d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4ef;
  --muted: #a0a7b1;
  --accent: #8ab4ff;
  --accent-soft: rgba(138, 180, 255, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 18% 36%, rgba(123, 97, 255, 0.1), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(38, 198, 255, 0.1), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  line-height: 1.75;
  transition: background 0.35s ease, color 0.25s ease;
}

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

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.03) 0.5px, transparent 0.5px);
  background-size: 12px 12px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

.paper-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(82, 124, 176, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.3;
}

.site-nav,
main,
section,
footer {
  position: relative;
  z-index: 1;
}

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

.site-nav {
  position: fixed;
  left: 42px;
  top: 88px;
  z-index: 5;
  opacity: var(--nav-opacity, 0);
  transform: translate3d(var(--nav-x, -34px), var(--nav-y, 10px), 0) scale(var(--nav-scale, 0.97));
  filter: blur(var(--nav-blur, 12px));
  pointer-events: none;
  will-change: opacity, transform, filter;
}

body.nav-visible .site-nav {
  pointer-events: auto;
}

.side-nav {
  width: var(--nav-width);
  padding: 14px 0;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 38%, transparent);
}

.nav-logo,
.hero h1,
.story-copy h2,
.featured-header h2,
.skills-copy h2,
.contact-panel h2 {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
}

.nav-logo {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-links {
  display: grid;
  gap: 20px;
}

.nav-links a,
.nav-link-button,
.theme-toggle {
  color: var(--muted);
  font-size: 1rem;
  transform-origin: left center;
  transition: color 0.22s ease, transform 0.22s ease, opacity 0.22s ease, font-weight 0.22s ease;
}

.nav-links li {
  position: relative;
  padding-left: 34px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.nav-links li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(50% + 12px);
  width: 1px;
  height: 32px;
  background: var(--line);
}

.nav-links li:last-child::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active,
.nav-link-button:hover,
.theme-toggle:hover {
  color: var(--text);
}

.nav-links a.active {
  font-weight: 600;
  transform: scale(1.08);
}

.nav-links li:has(a.active)::before {
  background: #1fc4e7;
  border-color: #1fc4e7;
  transform: scale(1.35);
}

.nav-links li:has(a.active) a {
  color: #1fc4e7;
}

.theme-toggle,
.nav-link-button {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, #ffffff 78%, transparent);
  cursor: pointer;
}

.floating-actions {
  position: fixed;
  right: 42px;
  top: 28px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-toggle {
  position: fixed;
  left: 36px;
  bottom: 34px;
  z-index: 7;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, #ffffff 68%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, #ffffff 88%, transparent);
  box-shadow: 0 10px 28px rgba(83, 107, 136, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.music-toggle:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 14px 30px rgba(83, 107, 136, 0.2);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
}

.music-bars i {
  display: block;
  width: 5px;
  height: 10px;
  border-radius: 999px;
  background: #a7adb5;
  transition: background 0.25s ease, height 0.25s ease, transform 0.25s ease;
}

.music-bars i:nth-child(2) {
  height: 16px;
}

.music-bars i:nth-child(3) {
  height: 12px;
}

.music-bars i:nth-child(4) {
  height: 8px;
}

.music-toggle.is-playing {
  border-color: rgba(38, 198, 255, 0.36);
  background: color-mix(in srgb, #ffffff 80%, rgba(38, 198, 255, 0.12));
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(86, 127, 216, 0.26);
}

.music-toggle.is-playing:hover {
  transform: translateY(-2px) scale(1.12);
}

.music-toggle.is-playing .music-bars i:nth-child(1) {
  background: #26c6ff;
  animation: musicBounceA 1.18s ease-in-out infinite;
}

.music-toggle.is-playing .music-bars i:nth-child(2) {
  background: #55b4ff;
  animation: musicBounceB 1.02s ease-in-out infinite 0.08s;
}

.music-toggle.is-playing .music-bars i:nth-child(3) {
  background: #6e95ff;
  animation: musicBounceC 1.26s ease-in-out infinite 0.14s;
}

.music-toggle.is-playing .music-bars i:nth-child(4) {
  background: #8a6dff;
  animation: musicBounceD 1.1s ease-in-out infinite 0.2s;
}

@keyframes musicBounceA {
  0%, 100% {
    transform: translateY(0);
    height: 9px;
  }
  22% {
    transform: translateY(-2px);
    height: 13px;
  }
  48% {
    transform: translateY(-4px);
    height: 17px;
  }
  72% {
    transform: translateY(-1px);
    height: 12px;
  }
}

@keyframes musicBounceB {
  0%, 100% {
    transform: translateY(0);
    height: 11px;
  }
  18% {
    transform: translateY(-3px);
    height: 15px;
  }
  42% {
    transform: translateY(-5px);
    height: 19px;
  }
  68% {
    transform: translateY(-2px);
    height: 14px;
  }
}

@keyframes musicBounceC {
  0%, 100% {
    transform: translateY(0);
    height: 10px;
  }
  28% {
    transform: translateY(-2px);
    height: 12px;
  }
  54% {
    transform: translateY(-6px);
    height: 20px;
  }
  78% {
    transform: translateY(-3px);
    height: 15px;
  }
}

@keyframes musicBounceD {
  0%, 100% {
    transform: translateY(0);
    height: 8px;
  }
  20% {
    transform: translateY(-2px);
    height: 11px;
  }
  46% {
    transform: translateY(-4px);
    height: 15px;
  }
  74% {
    transform: translateY(-2px);
    height: 10px;
  }
}

.hero {
  padding: 72px 0 100px;
}

.hero,
.section,
.site-footer {
  padding-left: calc(var(--nav-width) + 96px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  gap: 0;
  align-items: center;
  justify-content: start;
}

.hero-main {
  max-width: 820px;
}

.hero-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.hero-kicker span {
  color: #31befe;
  font-weight: 700;
}

.hero-role {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Sans SC", "Manrope", sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 9.5ch;
}

.typing-title {
  display: grid;
  gap: 10px;
}

.typing-line {
  position: relative;
  display: inline-block;
  width: fit-content;
  min-height: 1em;
  white-space: nowrap;
  overflow: hidden;
}

.typing-line::after {
  content: "";
  position: absolute;
  right: -0.12em;
  top: 0.08em;
  width: 0.08em;
  height: 0.86em;
  background: currentColor;
  opacity: 0;
  box-shadow: 0 0 10px color-mix(in srgb, currentColor 35%, transparent);
}

.typing-line.is-typing::after,
.typing-line.is-done::after {
  opacity: 1;
  animation: caretBlink 0.9s steps(1) infinite;
}

.typing-line.typing-accent {
  color: transparent;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes caretBlink {
  0%, 48% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.hero-description {
  max-width: 28ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions,
.contact-links,
.featured-tags,
.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
}

.hero-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 26px;
}

.hero-pill-row {
  gap: 10px;
}

.hero-pill-row span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  background: color-mix(in srgb, #ffffff 78%, transparent);
  font-size: 0.88rem;
}

.hero-actions {
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-highlight {
  position: relative;
  background: linear-gradient(135deg, #26c6ff 0%, #7b61ff 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(38, 198, 255, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(38, 198, 255, 0.35);
}

.btn-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.btn-secondary {
  background: color-mix(in srgb, #ffffff 72%, transparent);
}

.story-copy p,
.hero-fact span,
.timeline-item p,
.featured-copy p,
.featured-notes p,
.project-content p,
.contact-flow p {
  color: var(--muted);
}

.hero-facts {
  border-top: 1px solid var(--line);
}

.hero-fact {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-fact span {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-fact strong {
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 600;
}

.section {
  padding: 92px 0;
}

.story-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.section-label span {
  display: inline-block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-copy,
.timeline,
.featured-flow,
.project-list,
.skills-flow,
.contact-flow {
  max-width: 920px;
}

.story-copy h2,
.featured-header h2,
.skills-copy h2,
.contact-flow h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.story-copy p {
  margin: 22px 0 0;
  font-size: 1.04rem;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item,
.project-entry {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-index,
.project-meta span,
.featured-eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-item h3,
.project-content h3 {
  margin: 0 0 10px;
  font-size: 1.34rem;
}

.project-content h3 a {
  color: inherit;
  text-decoration: none;
}

.project-content h3 a:hover {
  color: var(--accent);
}

.timeline-item p,
.project-content p,
.featured-copy p,
.featured-notes p {
  margin: 0;
}

.featured-flow {
  padding-top: 4px;
}

.featured-divider {
  margin: 3rem 0;
  border-top: 1px solid var(--line);
}

.featured-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.featured-eyebrow {
  margin: 0 0 12px;
}

.featured-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 34px;
  padding-top: 26px;
}

.featured-copy {
  display: grid;
  gap: 18px;
}

.featured-notes {
  display: grid;
  gap: 14px;
}

.plain-note {
  padding: 0 0 0 18px;
  border-left: 2px solid var(--accent);
}

.featured-notes strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.text-link {
  width: fit-content;
  color: var(--accent);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.featured-tags {
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.featured-tags span {
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  padding-right: 16px;
}

.featured-tags span:not(:last-child)::after {
  content: "/";
  position: absolute;
  right: 4px;
  color: var(--line-strong);
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-meta a {
  color: var(--accent);
  font-size: 0.92rem;
}

.project-entry {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-entry:hover {
  transform: translateX(8px);
}

.skills-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 28px;
  padding-top: 4px;
}

.skills-groups {
  display: grid;
  gap: 18px;
}

.skills-groups article {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.skills-groups article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.skills-groups span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.skills-groups p {
  margin: 0;
  font-size: 1rem;
}

.contact-flow {
  padding-top: 8px;
}

.contact-flow h2 {
  max-width: 24ch;
  line-height: 1.4;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.contact-links a {
  color: var(--text);
  font-size: 1rem;
  transition: color 0.22s ease;
}

.contact-links a:hover {
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 28px 24px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* AI Chat Widget */
.chat-widget {
  position: fixed;
  right: 42px;
  bottom: 34px;
  z-index: 100;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 4px 16px rgba(38, 198, 255, 0.2);
  background: linear-gradient(135deg, #26c6ff 0%, #7b61ff 100%);
  color: #fff;
  border: none;
}

.chat-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(38, 198, 255, 0.3);
}

.chat-dialog {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 280px;
  height: 420px;
  display: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  flex-direction: column;
}

.chat-dialog.is-open {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
}

.chat-close {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--muted);
  padding: 2px 6px;
}

.chat-messages {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-message.user {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.bot {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-message p {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: 12px;
  background: var(--line);
}

.chat-message.user p {
  background: var(--accent);
  color: #fff;
}

.chat-message a {
  color: var(--accent);
  text-decoration: underline;
}

.chat-message.user a {
  color: #fff;
  text-decoration: underline;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.chat-suggestion {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}

.chat-suggestion:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-input-area {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 0.85rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-send {
  padding: 7px 12px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 500px) {
  .chat-widget {
    right: 16px;
    bottom: 16px;
  }

  .chat-dialog {
    width: calc(100vw - 32px);
    right: -8px;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .hero-layout,
  .featured-body,
  .skills-flow,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-layout {
    gap: 0;
  }

  .hero-main {
    max-width: none;
  }

  .hero-kicker,
  .hero-role,
  .hero-description,
  .hero h1 {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-inline-actions {
    justify-content: center;
  }

  .site-nav {
    position: static;
    padding-top: 24px;
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
    pointer-events: auto;
  }

  .side-nav {
    width: auto;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .hero,
  .section,
  .site-footer {
    padding-left: 0;
  }

  .nav-logo {
    display: block;
    margin-bottom: 18px;
    text-align: center;
  }

  .nav-links {
    grid-template-columns: repeat(5, minmax(0, max-content));
    gap: 16px 22px;
    justify-content: center;
  }

  .nav-links li {
    min-height: auto;
    padding-left: 20px;
  }

  .nav-links li::before {
    width: 9px;
    height: 9px;
    margin-top: -4.5px;
  }

  .nav-links li::after {
    display: none;
  }

  .floating-actions {
    position: static;
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding-top: 14px;
    justify-content: center;
  }

  .music-toggle {
    left: 20px;
    bottom: 22px;
  }

  .section-label {
    margin-bottom: 0;
  }

  .section-label span {
    margin-bottom: 4px;
  }

  .story-copy h2,
  .featured-header h2,
  .skills-copy h2,
  .contact-flow h2 {
    max-width: none;
  }
}

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

  .container,
  .side-nav,
  .floating-actions {
    width: min(100% - 32px, var(--max-width));
  }

  .music-toggle {
    width: 52px;
    height: 52px;
    left: 16px;
    bottom: 16px;
  }

  .hero,
  .section {
    padding: 72px 0;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.6rem, 13vw, 3.8rem);
    line-height: 1.02;
  }

  .hero-inline-actions {
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-description {
    max-width: 100%;
    font-size: 0.98rem;
  }

  .hero-pill-row span {
    padding: 10px 18px;
    font-size: 0.94rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    min-width: 140px;
  }

  .nav-links {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 14px;
  }

  .nav-links li {
    padding-left: 26px;
  }

  .featured-body,
  .skills-flow {
    gap: 22px;
  }

  .story-copy h2,
  .featured-header h2,
  .skills-copy h2,
  .contact-flow h2 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .story-copy p {
    font-size: 0.98rem;
  }

  .timeline-item,
  .project-entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .project-meta {
    gap: 6px;
  }

  .contact-links {
    gap: 10px 16px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
