:root {
  color-scheme: light;
  --ink: #0b0d11;
  --muted: #606775;
  --paper: rgba(246, 248, 250, 0.86);
  --frost: rgba(229, 236, 244, 0.82);
  --line: rgba(13, 20, 31, 0.14);
  --dark: rgba(6, 8, 12, 0.88);
  --blue: #006de5;
  --cyan: #4bb8ff;
  --gold: #e4a638;
  --topbar-height: 52px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  min-width: 320px;
  background: #dfe6ed;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(128deg, rgba(178, 196, 216, 0.74), rgba(235, 238, 241, 0.56) 48%, rgba(128, 155, 184, 0.44)),
    repeating-linear-gradient(90deg, rgba(11, 24, 42, 0.07) 0 1px, transparent 1px 80px);
}

#motion-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 64px);
  color: #fff;
  background: rgba(7, 10, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(24px) saturate(140%);
}

.brand {
  font-size: 15px;
  font-weight: 760;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

nav a {
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: #fff;
}

.chapter-count {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chapter-count i {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}

#chapter-current {
  color: #fff;
}

.chapter {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.chapter-inner {
  width: min(1460px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + clamp(28px, 5vh, 64px)) clamp(20px, 5vw, 82px) clamp(62px, 8vh, 94px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chapter-light {
  background: var(--paper);
}

.chapter-frost {
  background: var(--frost);
}

.chapter-dark,
.chapter-ink {
  color: #fff;
}

.chapter-dark {
  background: rgba(4, 6, 10, 0.86);
}

.chapter-ink {
  background: rgba(14, 18, 25, 0.88);
}

.chapter-dark::after,
.chapter-ink::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(0, 109, 229, 0.12), transparent 34%),
    linear-gradient(290deg, rgba(228, 166, 56, 0.1), transparent 30%);
}

.kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.chapter-dark .kicker,
.chapter-ink .kicker {
  color: var(--cyan);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(54px, 8.6vw, 132px);
  font-weight: 830;
}

h2 {
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 800;
}

h3 {
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 760;
}

.chapter-heading {
  margin-bottom: clamp(28px, 5vh, 58px);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 40px;
  align-items: end;
}

.split-heading > p {
  max-width: 620px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.6;
}

.chapter-ink .split-heading > p {
  color: rgba(255, 255, 255, 0.64);
}

.hero-inner {
  justify-content: space-between;
  gap: 30px;
  padding-top: calc(var(--topbar-height) + clamp(42px, 8vh, 96px));
}

.hero-copy {
  max-width: 1100px;
}

.hero-subtitle {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(17px, 2vw, 25px);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-summary {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.6;
}

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

.hero-contact a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  padding-bottom: 4px;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
}

.experience-role {
  position: sticky;
  top: 100px;
}

.experience-role > p {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 720;
}

.experience-role span {
  display: block;
  max-width: 440px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

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

.experience-points article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: clamp(16px, 2.6vh, 26px) 0;
  border-bottom: 1px solid var(--line);
}

.experience-points b {
  color: var(--blue);
  font-size: 13px;
}

.experience-points p {
  margin: 0;
  color: #303640;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.55;
}

.project-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.project-column {
  min-height: clamp(300px, 46vh, 520px);
  padding: clamp(26px, 4vw, 56px);
  display: flex;
  flex-direction: column;
}

.project-column + .project-column {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.project-column > span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 720;
}

.project-column h3 {
  max-width: 520px;
  margin-top: 28px;
}

.project-column p {
  max-width: 580px;
  margin: 22px 0 32px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.65;
}

.project-column strong {
  margin-top: auto;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 34px);
}

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

.skill-lines article {
  display: grid;
  grid-template-columns: 54px minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: clamp(16px, 2.4vh, 25px) 0;
  border-bottom: 1px solid var(--line);
}

.skill-lines span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 720;
}

.skill-lines h3 {
  font-size: clamp(23px, 2.2vw, 34px);
}

.skill-lines p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.58;
}

.education-line {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 18px 0;
  color: var(--muted);
}

.education-line strong {
  color: var(--ink);
  text-align: right;
}

.metric-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-wall article {
  min-height: clamp(150px, 21vh, 230px);
  padding: clamp(22px, 3vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-wall strong {
  display: block;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.95;
}

.metric-wall strong span {
  margin-left: 4px;
  color: var(--cyan);
  font-size: 0.34em;
}

.metric-wall p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.proof-chapter .chapter-inner {
  padding-top: calc(var(--topbar-height) + clamp(20px, 3vh, 40px));
  padding-bottom: clamp(58px, 7vh, 78px);
}

.proof-chapter .chapter-heading {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.media-deck {
  position: relative;
  width: 100%;
  min-height: 0;
  outline: none;
}

.deck-stage {
  position: relative;
  height: clamp(260px, 46vh, 520px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.deck-card {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(14, 23, 36, 0.14);
  box-shadow: 0 22px 54px rgba(21, 35, 54, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.86);
  transition:
    left 520ms cubic-bezier(0.22, 1, 0.36, 1),
    width 520ms cubic-bezier(0.22, 1, 0.36, 1),
    height 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 340ms ease;
}

.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wide-deck .deck-card {
  width: 54%;
  height: 72%;
  padding: 16px;
}

.wide-deck .deck-card.is-active {
  left: 8%;
  z-index: 6;
  width: 84%;
  height: 88%;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.wide-deck .deck-card.is-prev {
  left: -34%;
  z-index: 4;
  opacity: 0.82;
  pointer-events: auto;
  transform: translateY(-50%) scale(0.92);
}

.wide-deck .deck-card.is-next {
  left: 80%;
  z-index: 5;
  opacity: 0.9;
  pointer-events: auto;
  transform: translateY(-50%) scale(0.94);
}

.phone-deck .deck-stage {
  height: clamp(420px, 56vh, 640px);
}

.phone-deck .deck-card {
  width: 24%;
  height: 82%;
  padding: 8px;
}

.phone-deck .deck-card.is-active {
  left: 36%;
  z-index: 8;
  width: 28%;
  height: 94%;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.phone-deck .deck-card.is-prev {
  left: 15%;
  z-index: 6;
  opacity: 0.92;
  pointer-events: auto;
  transform: translateY(-50%) scale(0.94);
}

.phone-deck .deck-card.is-next {
  left: 61%;
  z-index: 7;
  opacity: 0.96;
  pointer-events: auto;
  transform: translateY(-50%) scale(0.95);
}

.phone-deck .deck-card.is-far-prev {
  left: -3%;
  z-index: 4;
  opacity: 0.66;
  pointer-events: auto;
  transform: translateY(-50%) scale(0.88);
}

.phone-deck .deck-card.is-far-next {
  left: 80%;
  z-index: 5;
  opacity: 0.72;
  pointer-events: auto;
  transform: translateY(-50%) scale(0.9);
}

.deck-control {
  position: absolute;
  top: 50%;
  z-index: 15;
  width: 44px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(7, 10, 15, 0.82);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.deck-control.prev {
  left: 10px;
}

.deck-control.next {
  right: 10px;
}

.deck-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  height: 22px;
  padding-top: 10px;
}

.deck-dots i {
  width: 18px;
  height: 2px;
  background: rgba(11, 13, 17, 0.2);
  transition: width 260ms ease, background 260ms ease;
}

.deck-dots i.is-active {
  width: 40px;
  background: var(--blue);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}

.proof-strip a {
  padding: 13px 18px;
  color: #39414d;
  font-size: 13px;
  font-weight: 680;
  text-align: center;
}

.proof-strip a + a {
  border-left: 1px solid var(--line);
}

.creative-chapter .chapter-inner {
  padding-top: calc(var(--topbar-height) + clamp(20px, 3vh, 40px));
  padding-bottom: clamp(58px, 7vh, 78px);
}

.creative-chapter .chapter-heading {
  margin-bottom: clamp(16px, 2.5vh, 28px);
}

.creative-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: clamp(430px, 64vh, 720px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.creative-item {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.creative-item + .creative-item {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.creative-item img,
.creative-item video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #000;
}

.creative-item > span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
}

.creative-item b {
  font-size: 16px;
}

.creative-item small {
  color: rgba(255, 255, 255, 0.52);
}

.contact-inner {
  align-items: center;
  text-align: center;
}

.contact-inner h2 {
  max-width: 1100px;
  font-size: clamp(48px, 8vw, 118px);
}

.contact-inner > p:not(.kicker) {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(17px, 2vw, 25px);
}

.contact-actions {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(38px, 7vh, 78px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-actions a {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 38px);
}

.contact-actions a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-actions span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.contact-actions strong {
  font-size: clamp(18px, 2.2vw, 30px);
}

.scroll-cue {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 12;
  width: 30px;
  height: 38px;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 10px;
  height: 10px;
  margin-top: -3px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.84);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.84);
  transform: rotate(45deg);
  animation: cuePulse 1.5s ease-in-out infinite;
}

.scroll-cue i:nth-child(2) {
  animation-delay: 140ms;
}

.scroll-cue i:nth-child(3) {
  animation-delay: 280ms;
}

.dark-cue i {
  border-color: rgba(10, 16, 26, 0.68);
}

@keyframes cuePulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(-2px) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(3px) rotate(45deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.is-visible .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.is-visible .reveal:nth-child(3) {
  transition-delay: 150ms;
}

.is-visible .reveal:nth-child(4) {
  transition-delay: 220ms;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: 26px;
  background: rgba(3, 5, 8, 0.94);
  backdrop-filter: blur(18px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 96vw;
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox p {
  max-width: 980px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.close {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .chapter-inner {
    justify-content: flex-start;
  }

  .hero-inner,
  .contact-inner {
    justify-content: center;
  }

  .experience-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .experience-role {
    position: static;
  }

  .split-heading {
    gap: 16px;
  }

  .project-column {
    min-height: 38vh;
  }

  .skill-lines article {
    grid-template-columns: 42px minmax(160px, 0.45fr) minmax(0, 1fr);
  }

  .wide-deck .deck-card.is-active {
    left: 4%;
    width: 92%;
  }

  .phone-deck .deck-card {
    width: 30%;
  }

  .phone-deck .deck-card.is-active {
    left: 32%;
    width: 36%;
  }

  .phone-deck .deck-card.is-prev {
    left: 4%;
  }

  .phone-deck .deck-card.is-next {
    left: 67%;
  }

  .phone-deck .deck-card.is-far-prev {
    left: -24%;
  }

  .phone-deck .deck-card.is-far-next {
    left: 91%;
  }
}

@media (max-width: 720px) {
  :root {
    --topbar-height: 48px;
  }

  html {
    scroll-snap-type: y proximity;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  nav {
    gap: 14px;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .chapter-count {
    display: none;
  }

  .chapter {
    min-height: 100svh;
  }

  .chapter-inner {
    min-height: 100svh;
    padding: calc(var(--topbar-height) + 28px) 16px 62px;
  }

  h1 {
    font-size: clamp(50px, 17vw, 76px);
  }

  h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .chapter-heading {
    margin-bottom: 24px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .experience-layout {
    gap: 26px;
  }

  .experience-role span {
    margin-top: 12px;
  }

  .experience-points article {
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 13px 0;
  }

  .experience-points p {
    font-size: 15px;
  }

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

  .project-column {
    min-height: auto;
    padding: 22px 6px;
  }

  .project-column + .project-column {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .project-column h3 {
    margin-top: 14px;
    font-size: 24px;
  }

  .project-column p {
    margin: 12px 0 18px;
    font-size: 15px;
  }

  .project-column strong {
    font-size: 20px;
  }

  .skill-lines article {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .skill-lines h3 {
    font-size: 22px;
  }

  .skill-lines p {
    grid-column: 2;
    font-size: 14px;
  }

  .education-line {
    display: grid;
    margin-top: 12px;
    padding: 12px 0;
  }

  .education-line strong {
    text-align: left;
    font-size: 14px;
  }

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

  .metric-wall article {
    min-height: 128px;
    padding: 20px 16px;
  }

  .metric-wall strong {
    font-size: clamp(38px, 12vw, 54px);
  }

  .metric-wall p {
    margin-top: 12px;
    font-size: 13px;
  }

  .proof-chapter .chapter-inner,
  .creative-chapter .chapter-inner {
    padding-top: calc(var(--topbar-height) + 20px);
  }

  .split-heading > p {
    font-size: 14px;
    line-height: 1.45;
  }

  .deck-stage {
    height: clamp(240px, 42vh, 390px);
  }

  .wide-deck .deck-card {
    width: 70%;
    padding: 8px;
  }

  .wide-deck .deck-card.is-active {
    left: 5%;
    width: 90%;
  }

  .wide-deck .deck-card.is-prev {
    left: -62%;
  }

  .wide-deck .deck-card.is-next {
    left: 88%;
  }

  .phone-deck .deck-stage {
    height: clamp(420px, 57vh, 560px);
  }

  .phone-deck .deck-card {
    width: 62%;
  }

  .phone-deck .deck-card.is-active {
    left: 18%;
    width: 64%;
  }

  .phone-deck .deck-card.is-prev {
    left: -42%;
  }

  .phone-deck .deck-card.is-next {
    left: 78%;
  }

  .phone-deck .deck-card.is-far-prev,
  .phone-deck .deck-card.is-far-next {
    opacity: 0;
    pointer-events: none;
  }

  .deck-control {
    width: 36px;
    height: 48px;
    font-size: 30px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .proof-strip a {
    padding: 9px 12px;
  }

  .proof-strip a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .creative-gallery {
    height: auto;
    grid-template-columns: repeat(3, 76vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .creative-gallery::-webkit-scrollbar {
    display: none;
  }

  .creative-item {
    height: min(64vh, 570px);
    scroll-snap-align: center;
  }

  .creative-item > span {
    display: grid;
    gap: 4px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-actions a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .contact-actions strong {
    font-size: 18px;
  }
}

@media (max-height: 720px) and (min-width: 721px) {
  .chapter-inner {
    padding-top: calc(var(--topbar-height) + 18px);
    padding-bottom: 48px;
  }

  .chapter-heading {
    margin-bottom: 18px;
  }

  h2 {
    font-size: clamp(36px, 5vw, 64px);
  }

  .experience-points article,
  .skill-lines article {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .project-column {
    min-height: 330px;
  }

  .deck-stage {
    height: 360px;
  }

  .phone-deck .deck-stage {
    height: 430px;
  }

  .creative-gallery {
    height: 470px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-cue i {
    animation: none;
    opacity: 0.7;
  }

  .deck-card {
    transition: none;
  }
}
