:root {
  --ink: #172033;
  --muted: #5e6a7d;
  --soft: #eef5ff;
  --soft-2: #f6f8fb;
  --line: #dce5f2;
  --primary: #1f5fae;
  --primary-dark: #164980;
  --accent: #d88c3a;
  --sun: #f4c95d;
  --mint: #8ed6bd;
  --pink: #f2a7b5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 95, 174, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 120px, rgba(244, 201, 93, 0.16), transparent 180px),
    radial-gradient(circle at 90% 280px, rgba(142, 214, 189, 0.16), transparent 210px),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 360px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(220, 229, 242, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1280px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--primary-dark);
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  color: var(--primary);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
  scroll-margin-top: 96px;
}

main {
  display: flex;
  flex-direction: column;
}

#top {
  order: 1;
}

#strengths {
  order: 2;
}

#experience {
  order: 3;
}

#portfolio {
  order: 4;
}

#education {
  order: 5;
}

#skills {
  order: 6;
}

#life {
  order: 7;
}

#self-review {
  order: 8;
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  position: relative;
}

.classroom-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.doodle {
  opacity: 0.68;
}

.doodle.star {
  width: 34px;
  height: 34px;
  right: 42%;
  top: 18%;
  background: var(--sun);
  clip-path: polygon(
    50% 0,
    61% 34%,
    98% 34%,
    68% 55%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 55%,
    2% 34%,
    39% 34%
  );
  border-radius: 0;
}

.doodle.pencil {
  width: 96px;
  height: 16px;
  right: 34%;
  bottom: 18%;
  border-radius: 999px 4px 4px 999px;
  background:
    linear-gradient(90deg, var(--primary) 0 18%, #ffffff 18% 23%, var(--sun) 23% 78%, #e9b98b 78% 100%);
  transform: rotate(-12deg);
}

.doodle.pencil::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 0;
  border-left: 16px solid #be8a5a;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.doodle.book {
  width: 56px;
  height: 42px;
  left: 3%;
  bottom: 20%;
  border: 2px solid rgba(31, 95, 174, 0.28);
  border-radius: 4px 4px 10px 10px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(31, 95, 174, 0.22) 50%, transparent calc(50% + 1px)),
    rgba(255, 255, 255, 0.82);
  transform: rotate(7deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), rgba(244, 201, 93, 0));
}

h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.hero-lede {
  max-width: 680px;
  margin: 22px 0 0;
  color: #344154;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.button.secondary {
  color: var(--primary-dark);
  background: var(--white);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 95, 174, 0.14);
}

.profile-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  position: relative;
  transform: rotate(0.4deg);
}

.profile-panel::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 24px;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 4px;
  background: rgba(244, 201, 93, 0.55);
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px dashed #98b7dc;
  background:
    linear-gradient(135deg, rgba(31, 95, 174, 0.12), rgba(216, 140, 58, 0.08)),
    var(--soft);
  color: var(--primary-dark);
  font-weight: 700;
  background-size: 22px 22px;
  background-image:
    linear-gradient(rgba(31, 95, 174, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 174, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(31, 95, 174, 0.12), rgba(216, 140, 58, 0.08));
}

.portrait-photo {
  padding: 0;
  border-style: solid;
  background: var(--soft);
  overflow: hidden;
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-meta {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-meta p {
  margin: 0;
  display: grid;
  gap: 2px;
}

.profile-meta strong {
  color: var(--primary);
  font-size: 13px;
}

.profile-meta span {
  color: var(--ink);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

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

.work-card,
.strength-item,
.timeline-content,
.skill-grid article,
.education-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.work-card {
  min-height: 100%;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 16px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 18px;
  top: -8px;
  right: 18px;
  border-radius: 4px;
  background: rgba(244, 201, 93, 0.42);
  transform: rotate(3deg);
}

.work-card:hover {
  transform: translateY(-3px) rotate(-0.2deg);
  box-shadow: 0 16px 36px rgba(31, 95, 174, 0.12);
}

.work-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  min-height: 0;
}

.work-card.compact-card {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
}

.work-thumb,
.media-stack {
  min-height: 132px;
  border-radius: var(--radius);
  background: var(--soft);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 95, 174, 0.08);
}

.work-card.featured .work-thumb,
.work-card.featured .media-stack {
  min-height: 300px;
}

.media-stack {
  display: grid;
  grid-template-rows: minmax(240px, 1fr) auto;
  gap: 8px;
  padding: 8px;
  background:
    linear-gradient(rgba(31, 95, 174, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 174, 0.045) 1px, transparent 1px),
    #f8fbff;
  background-size: 24px 24px;
}

.media-stack img,
.media-strip img,
.video-grid img {
  width: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
}

.media-stack > img {
  height: 100%;
  min-height: 240px;
  cursor: zoom-in;
}

.work-card.featured .media-stack > img {
  min-height: 360px;
}

.work-card.compact-card .media-stack {
  grid-template-rows: minmax(190px, 220px) auto;
  min-height: 0;
}

.work-card.compact-card .media-stack > img {
  min-height: 190px;
  max-height: 220px;
}

.work-card.compact-card .media-strip img {
  aspect-ratio: 16 / 9;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.media-strip img {
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.video-card {
  align-content: start;
}

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

.video-card .video-thumb:first-child {
  grid-column: 1 / -1;
}

.video-thumb {
  position: relative;
  padding: 0;
  border: 1px solid rgba(31, 95, 174, 0.12);
  border-radius: var(--radius);
  background: var(--soft);
  cursor: zoom-in;
  overflow: hidden;
}

.video-thumb img {
  aspect-ratio: 16 / 9;
  transition: transform 180ms ease;
}

.video-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.16);
}

.video-thumb::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: calc(50% - 7px);
  top: calc(50% - 13px);
  border-left: 22px solid var(--primary);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.video-thumb:hover img,
.video-thumb:focus-visible img {
  transform: scale(1.025);
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(31, 95, 174, 0.12);
  border-radius: var(--radius);
  background: #000000;
}

.work-thumb::before,
.work-thumb::after,
.doodle {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.work-thumb::before {
  width: 46%;
  height: 46%;
  left: 12%;
  top: 16%;
  background: rgba(31, 95, 174, 0.16);
}

.work-thumb::after {
  width: 52%;
  height: 52%;
  right: -12%;
  bottom: -14%;
  background: rgba(216, 140, 58, 0.18);
}

.thumb-label {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 2;
  min-width: 54px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(31, 95, 174, 0.08);
}

.book-shape,
.slide-shape,
.note-shape,
.flag-shape,
.play-shape {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
}

.book-shape {
  width: 148px;
  height: 96px;
  border-radius: 8px 8px 14px 14px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(31, 95, 174, 0.24) 50%, transparent calc(50% + 1px)),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 2px solid rgba(31, 95, 174, 0.18);
  box-shadow: 0 16px 28px rgba(31, 95, 174, 0.12);
}

.chalk-line {
  position: absolute;
  z-index: 2;
  height: 7px;
  border-radius: 999px;
  background: rgba(31, 95, 174, 0.22);
}

.chalk-line.one {
  width: 92px;
  left: 44%;
  top: 44%;
}

.chalk-line.two {
  width: 120px;
  left: 34%;
  top: 56%;
  background: rgba(216, 140, 58, 0.24);
}

.slide-shape {
  width: 120px;
  height: 82px;
  border: 2px solid rgba(31, 95, 174, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 95, 174, 0.12), transparent 48%),
    #ffffff;
  box-shadow: 0 14px 28px rgba(31, 95, 174, 0.1);
}

.slide-shape::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 8px;
  left: 22px;
  top: 24px;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 18px 0 rgba(142, 214, 189, 0.75);
}

.note-shape {
  width: 118px;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(31, 95, 174, 0.12) 1px, transparent 1px),
    #fff8df;
  background-size: 100% 18px;
  box-shadow: 0 14px 28px rgba(216, 140, 58, 0.12);
  transform: translate(-50%, -50%) rotate(-3deg);
}

.flag-shape {
  width: 118px;
  height: 86px;
}

.flag-shape::before,
.flag-shape::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 62px;
  height: 44px;
  clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
}

.flag-shape::before {
  left: 0;
  background: var(--pink);
}

.flag-shape::after {
  right: 0;
  background: var(--sun);
  transform: scaleX(-1);
}

.play-shape {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(31, 95, 174, 0.14);
}

.play-shape::after {
  content: "";
  position: absolute;
  left: 39px;
  top: 29px;
  border-left: 28px solid var(--primary);
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

.lesson {
  background:
    linear-gradient(rgba(31, 95, 174, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 174, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #e9f3ff, #f8fbff);
  background-size: 26px 26px, 26px 26px, auto;
}

.ai-courseware {
  background: linear-gradient(135deg, #edf6ff, #f6f0ff);
}

.parent {
  background: linear-gradient(135deg, #f1f8ff, #fff7eb);
}

.event {
  background: linear-gradient(135deg, #f4f8ff, #eef8f2);
}

.video {
  background: linear-gradient(135deg, #edf5ff, #fff4ed);
}

.work-type {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.work-card h3,
.work-card p {
  margin-top: 0;
}

.work-card p:last-child,
.strength-item p,
.timeline-content li,
.skill-grid p,
.education-list p,
.self-review p {
  color: var(--muted);
}

.file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.file-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 95, 174, 0.18);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

.file-links a:hover,
.file-links a:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 76px;
  background: rgba(10, 18, 32, 0.82);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-frame {
  width: min(1080px, 100%);
  margin: 0;
  display: grid;
  gap: 12px;
}

.lightbox-media {
  min-height: 240px;
  display: grid;
  place-items: center;
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  border-radius: var(--radius);
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.lightbox-media img {
  object-fit: contain;
}

.lightbox-media video {
  width: min(100%, 1080px);
}

.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--white);
  font-size: 15px;
}

.lightbox-count {
  opacity: 0.72;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close {
  right: 28px;
  top: 24px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 44px;
  line-height: 0.8;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.split-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 104px;
}

.strength-list {
  display: grid;
  gap: 14px;
}

.strength-item {
  padding: 22px;
}

.index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.timeline-date,
.date {
  color: var(--primary);
  font-weight: 700;
}

.timeline-content {
  padding: 24px;
}

.role {
  margin-top: 0;
  color: var(--accent);
  font-weight: 700;
}

ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 8px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-grid article {
  padding: 22px;
}

.education-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-list article {
  padding: 22px;
}

.self-review {
  max-width: 880px;
}

.self-review p:last-child {
  margin: 0;
  font-size: 18px;
}

.life-section {
  padding-top: 20px;
}

.life-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 0;
}

.life-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  cursor: zoom-in;
  background: var(--soft);
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 24px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius);
  background: var(--primary-dark);
  color: var(--white);
}

.footer h2,
.footer p {
  margin: 0;
  color: var(--white);
}

.footer p {
  opacity: 0.78;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
}

:focus-visible {
  outline: 3px solid rgba(216, 140, 58, 0.7);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .split-section,
  .education-section,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
    gap: 28px;
  }

  .profile-panel {
    max-width: 420px;
  }

  .portfolio-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card.featured {
    grid-template-columns: 1fr;
  }

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

  .life-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(var(--max), calc(100% - 28px));
    min-height: 64px;
    gap: 8px;
  }

  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .section {
    width: min(var(--max), calc(100% - 28px));
    padding: 52px 0;
  }

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

  .hero-actions,
  .button {
    width: 100%;
  }

  .portfolio-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
  }

  .work-card.featured .work-thumb {
    min-height: 180px;
  }

  .work-card.featured .media-stack,
  .work-card.featured .media-stack > img,
  .media-stack > img {
    min-height: 180px;
  }

  .media-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .life-gallery {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 64px 14px 24px;
  }

  .lightbox-media img,
  .lightbox-media video {
    max-height: calc(100dvh - 180px);
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 36px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }

  .lightbox-close {
    right: 14px;
    top: 14px;
  }

  .profile-panel {
    max-width: none;
  }

  .portrait-placeholder {
    aspect-ratio: 4 / 5;
  }

  .footer {
    width: min(var(--max), calc(100% - 28px));
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
