:root {
  --bg: #0e1117;
  --panel: #171b22;
  --panel-soft: #1d232d;
  --panel-strong: #11161e;
  --text: #f5f7fb;
  --muted: #aeb9cb;
  --blue: #1fb4ff;
  --blue-deep: #106fd4;
  --aqua: #79f2ff;
  --gold: #ffb957;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --max-width: 1380px;
  --font-body: "Inter", sans-serif;
  --font-display: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 180, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 185, 87, 0.12), transparent 20%),
    linear-gradient(180deg, #0b0f15 0%, var(--bg) 55%, #0a0d12 100%);
  color: var(--text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.page-transition {
  opacity: 0;
}

body.page-ready {
  opacity: 1;
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-enter .topbar,
body.page-enter .card {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
}

body.page-ready .topbar,
body.page-ready .card {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

body.page-ready .topbar {
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 820ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-ready .card {
  transition:
    opacity 880ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 880ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 880ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

body.page-ready .card:nth-of-type(1) {
  transition-delay: 70ms;
}

body.page-ready .card:nth-of-type(2) {
  transition-delay: 140ms;
}

body.page-ready .card:nth-of-type(3) {
  transition-delay: 210ms;
}

body.page-ready .card:nth-of-type(4) {
  transition-delay: 280ms;
}

body.page-ready .card:nth-of-type(5) {
  transition-delay: 350ms;
}

body.page-exit .page-shell {
  opacity: 0;
  transform: translateY(20px) scale(0.992);
  filter: blur(3px);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 44px;
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 10px 6px;
}

.brand,
.nav a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0;
  transition: color 180ms ease;
}

.nav a.nav-active {
  color: #59cfff;
}

.nav a.nav-pill {
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid rgba(31, 180, 255, 0.8);
  color: #59cfff;
  background: rgba(17, 110, 170, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.nav a:hover {
  color: white;
}

.nav a.nav-active:hover {
  color: #8be5ff;
}

.nav a.nav-pill:hover {
  border-color: #45c7ff;
  background: rgba(31, 180, 255, 0.18);
  color: white;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.avatar-mark {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0;
  display: grid;
  place-items: center;
}

.avatar-ring,
.avatar-core {
  border-radius: 50%;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border: 6px solid #07131f;
  background:
    radial-gradient(circle at 45% 40%, #2976ff 0 36%, #114ac3 37% 58%, #0b2a85 59% 100%);
  box-shadow:
    inset 0 0 0 8px rgba(255, 195, 148, 0.7),
    0 12px 30px rgba(0, 0, 0, 0.2);
}

.avatar-core {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #7df7ff 0, #0ab5ff 58%, #0057bb 100%);
  color: white;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--aqua);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.1rem, 2vw + 1rem, 3.1rem);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.7rem, 1.45vw + 1rem, 2.45rem);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.99rem;
  font-weight: 400;
  max-width: 62ch;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(31, 180, 255, 0.18), transparent 55%),
    radial-gradient(circle at top right, rgba(121, 242, 255, 0.18), transparent 26%),
    linear-gradient(135deg, #1b242f 0%, #141922 100%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, transparent 0 48%, rgba(255, 255, 255, 0.06) 48% 50%, transparent 50% 100%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.12) 0 2%, transparent 2.2%),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.14) 0 1.2%, transparent 1.4%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.1) 0 1.5%, transparent 1.8%);
  opacity: 0.7;
}

.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2430;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content,
.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.hero-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.hero-content {
  max-width: 760px;
  padding-top: 26px;
}

.hero-title {
  max-width: none;
  font-size: clamp(2.4rem, 3vw + 1rem, 4.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  word-spacing: 0.08em;
}

.hero-rotator {
  display: block;
  min-width: 0;
  white-space: nowrap;
  color: #7ddfff;
}

.hero-rotator-word {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.hero-rotator-word.is-changing {
  opacity: 0;
  transform: translateY(8px);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-primary {
  background: linear-gradient(135deg, #31c5ff 0%, #1497e6 100%);
  color: #08141d;
  box-shadow: 0 14px 30px rgba(20, 151, 230, 0.24);
}

.hero-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

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

.hero-panel {
  padding: 16px 18px;
  background: rgba(9, 14, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-panel strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-card {
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    radial-gradient(circle at 25% 25%, rgba(255, 185, 87, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(32, 126, 255, 0.16), rgba(12, 19, 29, 0.1)),
    var(--panel-soft);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-tags span {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.timeline {
  display: grid;
  gap: 22px;
  margin-top: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(31, 180, 255, 0.22), rgba(31, 180, 255, 0.06));
  color: var(--aqua);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.timeline h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.timeline p {
  font-size: 0.92rem;
  line-height: 1.58;
}

.strengths-card {
  min-height: 300px;
  background:
    radial-gradient(circle at 84% 14%, rgba(31, 180, 255, 0.18), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0 38%, transparent 38% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 56%),
    linear-gradient(135deg, rgba(33, 54, 82, 0.96), rgba(15, 22, 34, 1));
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.strength-grid div {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card {
  grid-column: 1 / -1;
}

.project-card,
.strengths-card {
  grid-column: 1 / -1;
}

.languages-card {
  background:
    radial-gradient(circle at 18% 16%, rgba(31, 180, 255, 0.16), transparent 20%),
    radial-gradient(circle at 78% 74%, rgba(121, 242, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 50%),
    linear-gradient(135deg, rgba(21, 45, 66, 0.98), rgba(11, 18, 28, 1));
}

.language-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.language-pill {
  position: relative;
  padding: 18px 20px;
  padding-bottom: 62px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.language-pill strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.language-pill p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
}

.language-pill-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2430;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card,
.hero-badge,
.project-tags span,
.nav a {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(121, 242, 255, 0.22);
}

.hero-primary:hover,
.hero-secondary:hover {
  transform: translateY(-2px);
}

.contact-line[href]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 151, 230, 0.18);
}

.subpage-layout {
  display: grid;
  gap: 22px;
}

.subpage-hero {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(31, 180, 255, 0.15), transparent 46%),
    radial-gradient(circle at top right, rgba(255, 209, 135, 0.12), transparent 22%),
    linear-gradient(135deg, #18212c 0%, #10161e 100%);
}

.subpage-hero h1 {
  max-width: none;
  width: 100%;
  font-size: clamp(1.9rem, 2vw + 1rem, 3.1rem);
  white-space: nowrap;
}

.subpage-hero .eyebrow {
  font-size: clamp(1.5rem, 2vw + 0.7rem, 2.6rem);
  color: var(--aqua);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.process-card,
.subpage-grid-card,
.contact-page-card,
.projects-page-card,
.resume-page-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(125deg, rgba(255, 255, 255, 0.02), rgba(31, 180, 255, 0.08)),
    var(--panel-strong);
}

.projects-page-grid,
.resume-page-grid {
  display: grid;
  gap: 18px;
}

.projects-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.projects-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.projects-tab:hover {
  transform: translateY(-2px);
  color: white;
  border-color: rgba(121, 242, 255, 0.28);
  background: rgba(31, 180, 255, 0.1);
}

.projects-tab.is-active {
  color: #1a2430;
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.project-entry,
.resume-block {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.project-entry-label {
  margin-bottom: 0;
}

.project-entry-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.project-entry-copy {
  min-width: 0;
  padding-top: 18px;
}

.project-entry-copy p {
  margin-bottom: 0;
  max-width: 58ch;
  color: #c0cad8;
  font-size: 1rem;
  line-height: 1.78;
}

.project-year-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(121, 242, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--aqua);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-gallery {
  display: grid;
  gap: 12px;
}

.project-gallery-frame {
  position: relative;
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.project-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.project-gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.project-gallery-image,
.project-gallery-placeholder {
  width: 100%;
  height: 100%;
}

.project-gallery-image {
  display: block;
  object-fit: cover;
}

.project-gallery-placeholder {
  background:
    radial-gradient(circle at 18% 22%, rgba(121, 242, 255, 0.18), transparent 20%),
    radial-gradient(circle at 82% 74%, rgba(31, 180, 255, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(27, 42, 64, 0.98), rgba(15, 24, 37, 1));
}

.project-gallery-dots {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.project-gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.project-gallery-dot.is-active {
  background: var(--aqua);
  transform: scale(1.15);
}

.project-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  margin-top: 18px;
}

.project-entry-footer .project-tags {
  flex: 1;
  margin-top: 0;
}

.project-details-pill {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a2430;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.project-details-pill:hover {
  transform: translateY(-2px);
  background: #1fb4ff;
  color: #08141d;
  box-shadow: 0 14px 28px rgba(31, 180, 255, 0.24);
}

.timeline-wide {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 18px;
}

.timeline-wide article {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-page-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
}

.contact-line-plain {
  justify-content: flex-start;
}

.contact-line[href]:hover {
  border-color: rgba(121, 242, 255, 0.32);
  background: rgba(31, 180, 255, 0.08);
  color: white;
}

.contact-line-copy {
  display: grid;
  gap: 10px;
}

.contact-line-copy span {
  color: var(--aqua);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-line strong {
  font-size: clamp(1.3rem, 1vw + 1rem, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.contact-line small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-end-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 60px;
  min-height: 60px;
  color: var(--aqua);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.contact-end-icon svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

@media (max-width: 1120px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .project-card,
  .strengths-card,
  .languages-card {
    grid-column: auto;
  }

  .hero-card,
  .project-card,
  .strengths-card,
  .languages-card {
    grid-column: 1 / -1;
  }

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

  .timeline-wide {
    grid-template-columns: 1fr;
  }

  .project-entry-body {
    grid-template-columns: 1fr;
  }

  .project-entry-footer {
    flex-wrap: wrap;
  }

}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .dashboard,
  .hero-layout,
  .hero-grid,
  .strength-grid,
  .language-pill-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: unset;
    padding: 22px;
    border-radius: 26px;
  }

  .hero-badge {
    position: static;
    align-self: flex-start;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2rem, 7vw, 3.2rem);
  }

  .hero-avatar-wrap {
    justify-content: flex-start;
  }

  .avatar-mark {
    width: 132px;
    height: 132px;
  }

  .avatar-core {
    width: 68px;
    height: 68px;
    font-size: 1.4rem;
  }

  .timeline article {
    grid-template-columns: 44px 1fr;
  }

  .timeline span {
    width: 44px;
  }

  .subpage-hero h1 {
    max-width: none;
    font-size: clamp(1.7rem, 6vw, 2.5rem);
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-transition,
  body.page-enter .topbar,
  body.page-enter .card,
  body.page-exit .page-shell {
    opacity: 1;
    transform: none;
    filter: none;
  }

  body.page-ready,
  body.page-ready .topbar,
  body.page-ready .card,
  .page-shell {
    transition: none;
  }
}
