:root {
  --bg: #0a0a0a;
  --panel: #1a1a1a;
  --panel-soft: #202020;
  --text: #ffffff;
  --muted: #b7b7b7;
  --ink: #0a0a0a;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.site-header {
  position: fixed;
  inset: 32px 0 auto;
  z-index: 50;
  pointer-events: none;
}

.nav-shell {
  width: fit-content;
  max-width: min(820px, calc(100% - 56px));
  min-height: 60px;
  margin: 0 auto;
  padding: 10px 32px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 72% 50%, #fff 0 32%, transparent 33%),
    #0a0a0a;
  box-shadow: inset 8px 0 0 #0a0a0a, inset -8px 0 0 #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  font-weight: 800;
}

.nav-links a {
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  opacity: 0.62;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 30px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 1px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 220ms ease, top 220ms ease;
}

.menu-toggle span:first-child {
  top: 8px;
}

.menu-toggle span:last-child {
  top: 20px;
}

.menu-open .menu-toggle span:first-child {
  top: 14px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  top: 14px;
  transform: rotate(-45deg);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
  padding: 122px 24px 74px;
  overflow: hidden;
}

.hero-bg,
.hero-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  opacity: 0.94;
  filter: brightness(1.12) saturate(1.04) contrast(0.98);
}

.hero-vignette {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.02), rgba(10, 10, 10, 0.08) 44%, rgba(10, 10, 10, 0.62) 98%),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.2), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  text-align: center;
  color: rgba(8, 8, 8, 0.78);
  margin-top: 0;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 37px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.92);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 860px;
  display: grid;
  gap: 8px;
  font-weight: 820;
  letter-spacing: 0;
}

.hero h1 span:first-child {
  font-size: clamp(48px, 4.8vw, 64px);
  line-height: 1;
}

.hero h1 span:last-child {
  font-size: clamp(28px, 2.7vw, 36px);
  line-height: 1.1;
  font-weight: 720;
}

.hero-copy {
  max-width: 790px;
  margin: 0 auto 24px;
  color: rgba(8, 8, 8, 0.76);
  font-size: clamp(16px, 1.24vw, 19px);
  line-height: 1.62;
  font-weight: 620;
}

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px) scale(1.04);
}

.button-dark {
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.35);
}

.button-dark:hover {
  background: #1a1a1a;
}

.button-light {
  background: #fff;
  color: #0a0a0a;
  box-shadow:
    rgba(153, 153, 153, 0.68) 0 0.5px 1.5px -1.2px,
    rgba(153, 153, 153, 0.3) 0 8px 24px -3.5px;
}

.button-light:hover {
  box-shadow: 0 13px 34px rgba(255, 255, 255, 0.22);
}

.glass-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 8, 8, 0.78);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.glass-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(18, 18, 18, 0.86);
  box-shadow: 0 18px 46px rgba(255, 255, 255, 0.12), 0 16px 34px rgba(0, 0, 0, 0.34);
}

.hero-showcase {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  margin-bottom: 0;
}

.portfolio-carousel {
  position: relative;
  min-height: 292px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.featured-work-card {
  width: min(252px, 42vw);
  aspect-ratio: 1;
  position: relative;
  z-index: 3;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.42);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
  overflow: visible;
  transition: transform 420ms ease, opacity 260ms ease;
}

.featured-work-card.is-changing {
  transform: translateY(6px) scale(0.985);
  opacity: 0.74;
}

.featured-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.work-title-glass {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 8, 0.72);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.work-title-glass {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: min(310px, 86vw);
  min-height: 56px;
  padding: 10px 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.work-title-glass strong,
.work-title-glass small {
  display: block;
}

.work-title-glass strong {
  font-size: 15px;
  line-height: 1.2;
}

.work-title-glass small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.2;
}

.mini-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.project-marquee {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 80px));
  margin: -8px auto 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.project-marquee::before {
  content: "";
  position: absolute;
  inset: -28px -40px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 34s linear infinite;
  will-change: transform;
}

.project-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 74px;
  padding-right: 74px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.76;
  white-space: nowrap;
  transition: opacity 180ms ease, color 180ms ease, text-shadow 180ms ease;
}

.marquee-item:hover {
  color: #fff;
  opacity: 0.96;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

.marquee-item svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes marquee-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section-pad {
  padding: 120px 40px;
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 68px;
  text-align: center;
}

.section-heading h2,
.contact-panel h2,
.detail-intro h2 {
  margin: 22px auto 0;
  max-width: 900px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.pill) {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.about-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: stretch;
}

.panel,
.profile-card,
.contact-panel,
.detail-section {
  background: var(--panel);
  border-radius: 12px;
}

.about-copy {
  padding: clamp(30px, 4vw, 56px);
}

.about-copy p {
  margin: 0 0 20px;
  color: #d4d4d4;
  font-size: 20px;
  line-height: 1.82;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.skill-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: #f4f4f4;
  background: rgba(255, 255, 255, 0.04);
}

.profile-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}

.profile-card img {
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
  border-radius: 10px;
  background: #f4f4f4;
  object-position: center;
}

.profile-card p {
  margin: 24px 0 6px;
  font-size: 28px;
  font-weight: 900;
}

.profile-card span {
  color: var(--muted);
  font-size: 18px;
}

.stacked-projects {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.work-card {
  position: sticky;
  top: 112px;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(34px, 6vw, 74px);
  align-items: center;
  margin-bottom: 140px;
  padding: 28px;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04), var(--shadow);
}

.work-card:nth-child(2) { top: 132px; }
.work-card:nth-child(3) { top: 152px; }
.work-card:nth-child(4) { top: 172px; }
.work-card:nth-child(5) { top: 192px; margin-bottom: 0; }

.work-media {
  display: block;
  height: 504px;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.work-media:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.work-info .count {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 42px;
  font-weight: 900;
}

.work-info h3 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
}

.work-info p:not(.count) {
  max-width: 500px;
  margin: 22px 0 34px;
  color: #c6c6c6;
  font-size: 20px;
  line-height: 1.72;
}

.details {
  display: none;
  padding: 132px 40px 80px;
  min-height: 100svh;
}

body.detail-mode main > section:not(.details),
body.detail-mode .site-footer {
  display: none;
}

body.detail-mode .details {
  display: block;
}

.detail-section {
  display: none;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(28px, 4.8vw, 70px);
  scroll-margin-top: 105px;
}

.detail-section.is-active {
  display: block;
}

.detail-intro {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 46px;
}

.detail-intro .pill {
  grid-column: 1;
  width: max-content;
}

.detail-intro h2 {
  grid-column: 1;
  margin: 16px 0 0;
}

.detail-intro p:not(.pill) {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: #cfcfcf;
  font-size: 19px;
  line-height: 1.85;
}

.detail-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.detail-gallery img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  padding: 10px;
  border-radius: 10px;
  background: #111;
}

.poster-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poster-grid img {
  min-height: 0;
}

#detail-perfume.detail-section,
#detail-doll.detail-section {
  width: min(var(--max), 100%);
  padding: clamp(28px, 4.8vw, 70px);
  background: var(--panel);
}

#detail-perfume .detail-intro,
#detail-doll .detail-intro {
  margin: 0 auto 46px;
}

#detail-perfume .detail-gallery,
#detail-doll .detail-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 100vh;
  gap: 0;
  scroll-snap-type: y proximity;
}

#detail-perfume .detail-gallery img,
#detail-doll .detail-gallery img {
  align-self: center;
  justify-self: center;
  width: min(100%, 1180px);
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #070707;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  object-fit: contain;
  scroll-snap-align: center;
}

#detail-photo {
  padding-bottom: clamp(64px, 8vw, 120px);
}

.photo-story {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-layout-row {
  min-height: 58vh;
  padding: clamp(34px, 4.2vw, 62px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
}

.photo-layout-row--hero {
  min-height: 66vh;
  padding-top: 10px;
}

.photo-media-grid {
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
}

.photo-media-grid--hero {
  grid-template-columns: 1fr;
}

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

.photo-media-grid--mosaic .photo-frame:first-child {
  grid-row: span 2;
}

.photo-frame {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #070707;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: min(46vh, 470px);
  border-radius: 8px;
  object-fit: contain;
}

.photo-frame--hero img {
  height: min(62vh, 650px);
}

.photo-text-card {
  max-width: 360px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.photo-text-card span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-text-card h3 {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.photo-text-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 16px;
  line-height: 1.9;
}

.photo-text-card--keywords h3 {
  max-width: 420px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.35;
}

.photo-keywords {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.45;
}

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

#detail-game .detail-gallery img {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #070707;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.contact-panel {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr) minmax(220px, 0.32fr);
  gap: 34px;
  align-items: center;
}

.contact-panel h2 {
  margin-left: 0;
}

.contact-panel p:not(.pill) {
  max-width: 650px;
  color: #d1d1d1;
  font-size: 20px;
  line-height: 1.8;
}

.contact-list {
  display: grid;
  gap: 16px;
  font-size: 20px;
  font-weight: 780;
}

.contact-list a,
.contact-list span {
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.resume-preview {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.site-footer {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 920px) {
  .site-header {
    inset: 32px 0 auto;
  }

  .nav-shell {
    width: min(calc(100% - 56px), 520px);
    max-width: 520px;
    min-height: 58px;
    padding: 10px 18px 10px 22px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 24px 0 10px;
    flex-direction: column;
    gap: 16px;
    font-size: 21px;
  }

  .menu-open .nav-links {
    display: flex;
  }

  .hero {
    min-height: 100svh;
    padding: 120px 20px 72px;
    gap: 30px;
  }

  .hero-content {
    color: #050505;
    margin-top: 10px;
  }

  .hero h1 span:first-child {
    font-size: clamp(40px, 12vw, 52px);
  }

  .hero h1 span:last-child {
    font-size: clamp(22px, 6vw, 28px);
  }

  .hero h1 {
    line-height: 1.05;
  }

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

  .hero-showcase {
    width: min(520px, 100%);
  }

  .portfolio-carousel {
    min-height: 264px;
  }

  .featured-work-card {
    width: min(214px, 58vw);
  }

  .work-title-glass {
    bottom: 8px;
    width: min(286px, 86vw);
  }

  .project-marquee {
    width: calc(100% - 32px);
    margin-top: -2px;
  }

  .marquee-track {
    animation-duration: 28s;
  }

  .marquee-group {
    gap: 42px;
    padding-right: 42px;
  }

  .marquee-item {
    gap: 10px;
    font-size: 15px;
  }

  .marquee-item svg {
    width: 24px;
    height: 24px;
  }

  .section-pad {
    padding: 90px 20px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-height: auto;
  }

  .profile-card img {
    max-height: 360px;
  }

  .work-card {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 28px;
    padding: 12px;
    gap: 26px;
  }

  .work-card:nth-child(n) {
    top: auto;
  }

  .work-media {
    height: auto;
    aspect-ratio: 1.2;
  }

  .work-info {
    padding: 0 8px 20px;
  }

  .work-info .count {
    margin-bottom: 16px;
    font-size: 30px;
  }

  .work-info p:not(.count) {
    font-size: 17px;
  }

  .detail-section {
    padding: 24px;
    margin-bottom: 54px;
  }

  .detail-intro,
  .detail-gallery,
  .poster-grid {
    grid-template-columns: 1fr;
  }

  .detail-intro .pill,
  .detail-intro h2,
  .detail-intro p:not(.pill),
  .detail-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .detail-gallery img,
  .poster-grid img {
    min-height: 0;
    max-height: none;
  }

  #detail-perfume.detail-section,
  #detail-doll.detail-section {
    padding: 24px;
  }

  #detail-perfume .detail-gallery img,
  #detail-doll .detail-gallery img {
    width: 100%;
    padding: 8px;
  }

  .photo-story {
    gap: 0;
  }

  .photo-layout-row,
  .photo-layout-row--hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 42px 0;
  }

  .photo-media-grid--two,
  .photo-media-grid--mosaic {
    grid-template-columns: 1fr;
  }

  .photo-media-grid--mosaic .photo-frame:first-child {
    grid-row: auto;
  }

  .photo-frame {
    padding: 8px;
  }

  .photo-frame img,
  .photo-frame--hero img {
    height: auto;
    max-height: 68vh;
  }

  .photo-text-card {
    max-width: none;
  }

  #detail-game .detail-gallery {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: calc(100% - 40px);
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .nav-shell {
    width: calc(100% - 56px);
    padding-left: 16px;
    padding-right: 14px;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero-showcase {
    margin-top: 36px;
  }

  .project-marquee {
    width: calc(100% - 32px);
    margin-top: 0;
  }

  .section-heading h2,
  .contact-panel h2,
  .detail-intro h2 {
    font-size: 32px;
  }

  .about-copy p,
  .contact-panel p:not(.pill),
  .contact-list {
    font-size: 17px;
  }

  .contact-panel {
    padding: 24px;
  }
}
