/*
 * Portfolio redesign layer
 * Loaded after the legacy stylesheet so existing content and scripts stay intact.
 */

:root {
  --rd-ink: #08090a;
  --rd-ink-soft: #0e1011;
  --rd-panel: #111315;
  --rd-panel-light: #181b1d;
  --rd-paper: #eee8de;
  --rd-text: #f4efe7;
  --rd-muted: #9d978f;
  --rd-muted-strong: #c5bfb6;
  --rd-accent: #c9925a;
  --rd-accent-soft: rgba(201, 146, 90, 0.16);
  --rd-line: rgba(244, 239, 231, 0.14);
  --rd-line-strong: rgba(244, 239, 231, 0.26);
  --rd-radius: 2px;
  --rd-control-radius: 999px;
  --rd-font:
    "Helvetica Neue",
    "Arial Nova",
    Arial,
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  --rd-mono:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  --display: var(--rd-font);
  --sans: var(--rd-font);
  --serif-cn: var(--rd-font);
  --ink: var(--rd-ink);
  --ink-soft: var(--rd-ink-soft);
  --ink-raised: var(--rd-panel);
  --paper: var(--rd-paper);
  --paper-light: var(--rd-paper);
  --white: var(--rd-text);
  --muted: var(--rd-muted);
  --muted-dark: #5f5a55;
  --copper: var(--rd-accent);
  --copper-light: var(--rd-accent);
  --mineral: var(--rd-accent);
  --line: var(--rd-line);
}

html {
  scroll-padding-top: 94px;
}

body {
  color: var(--rd-text);
  background: var(--rd-ink);
  font-family: var(--rd-font);
  letter-spacing: 0;
}

body[data-page="home"],
body[data-page="project"] {
  background:
    linear-gradient(180deg, rgba(201, 146, 90, 0.025), transparent 24%),
    var(--rd-ink);
}

main {
  isolation: isolate;
}

h1,
h2,
h3,
h4,
p,
span,
strong,
small,
button,
a {
  font-family: inherit;
}

.faulty-terminal-bg canvas {
  opacity: 0.22;
}

.faulty-terminal-bg::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 24%, transparent 78%, rgba(0, 0, 0, 0.3)),
    radial-gradient(circle at 50% 44%, transparent 10%, rgba(0, 0, 0, 0.24) 72%, rgba(0, 0, 0, 0.5) 100%);
}

.antigravity-bg {
  opacity: 0.2;
}

.page-progress span {
  background: linear-gradient(90deg, rgba(201, 146, 90, 0.32), var(--rd-accent));
}

.cursor-light {
  display: block;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201, 146, 90, 0.08), transparent 68%);
  mix-blend-mode: screen;
}

.section-shell {
  width: min(100%, 1440px);
  padding-right: clamp(22px, 4vw, 70px);
  padding-left: clamp(22px, 4vw, 70px);
}

.section-kicker,
.eyebrow {
  gap: 12px;
  color: var(--rd-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.section-kicker span:first-child {
  color: var(--rd-accent);
  font-family: var(--rd-mono);
  font-size: 11px;
  letter-spacing: 0;
}

/* Navigation */
.site-header,
.site-header.is-scrolled,
.site-header.is-menu-open {
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  max-width: none;
  min-height: 72px;
  margin: 0;
  padding: 0 clamp(22px, 4vw, 70px);
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.72), rgba(8, 9, 10, 0));
  box-shadow: none;
  justify-content: center;
  transform: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  min-height: 62px;
  border-color: var(--rd-line);
  background: rgba(8, 9, 10, 0.9);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.brand {
  position: absolute;
  top: 50%;
  left: clamp(22px, 4vw, 70px);
  z-index: 3;
  display: inline-flex;
  gap: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-radius);
  color: var(--rd-text);
  background: rgba(8, 9, 10, 0.42);
  font-family: var(--rd-mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.04em;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.brand:hover .brand-mark {
  color: var(--rd-ink);
  border-color: var(--rd-accent);
  background: var(--rd-accent);
  filter: none;
  transform: none;
}

.site-nav {
  gap: 0;
  margin: 0;
}

.nav-lamp {
  display: none;
}

.site-nav > a:not(.nav-download, .nav-say-hi) {
  padding: 10px 15px;
  border-radius: 0;
  color: rgba(244, 239, 231, 0.62);
  background: transparent;
  font-family: var(--rd-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.site-nav > a:not(.nav-download, .nav-say-hi)::after {
  right: 15px;
  bottom: 3px;
  left: 15px;
  height: 1px;
  background: var(--rd-accent);
}

.site-nav > a:not(.nav-download, .nav-say-hi):hover,
.site-nav > a:not(.nav-download, .nav-say-hi).is-active {
  color: var(--rd-text);
  background: transparent;
}

.language-switch {
  gap: 7px;
  margin: 0 8px;
  padding: 0;
  color: rgba(244, 239, 231, 0.3);
  font-size: 10px;
}

.language-switch button.is-active {
  color: var(--rd-accent);
}

.nav-download {
  gap: 9px;
  margin: 0 0 0 12px;
  padding: 11px 15px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-radius);
  color: var(--rd-text);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.nav-download:hover {
  color: var(--rd-ink);
  border-color: var(--rd-accent);
  background: var(--rd-accent);
}

.nav-download svg {
  width: 15px;
  height: 15px;
}

/* Hero */
.cinematic-hero {
  height: 100svh;
  min-height: 660px;
  background: var(--rd-ink);
  cursor: default;
}

.cinematic-media {
  inset: 0;
  animation: rd-hero-reveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cinematic-media::before {
  position: absolute;
  z-index: 5;
  inset: 86px clamp(22px, 4vw, 70px) 44px;
  border: 1px solid rgba(244, 239, 231, 0.16);
  content: "";
  pointer-events: none;
}

.cinematic-media::after {
  position: absolute;
  z-index: 4;
  top: 86px;
  right: clamp(22px, 4vw, 70px);
  width: min(38vw, 520px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rd-accent));
  content: "";
  pointer-events: none;
}

.cinematic-image {
  object-position: center 44%;
  filter: brightness(0.86) contrast(1.05) saturate(0.82);
  transform:
    translate3d(
      calc(var(--rd-hero-pointer-x, 0) * -14px),
      calc(var(--rd-hero-scroll, 0) * 42px + var(--rd-hero-pointer-y, 0) * -10px),
      0
    )
    scale(calc(1.04 + var(--rd-hero-scroll, 0) * 0.045));
  animation: none;
  transition: filter 600ms ease;
  will-change: transform;
}

.cinematic-image--trail,
.cinematic-image--light {
  background-image: url("../assets/images/hero-cinematic-clean.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 901px) {
  .cinematic-image--trail,
  .cinematic-image--light {
    background-size: contain;
  }
}

.cinematic-hero:hover .cinematic-image {
  filter: brightness(0.94) contrast(1.04) saturate(0.9);
}

.cinematic-vignette {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.22), transparent 24%, transparent 64%, rgba(8, 9, 10, 0.68)),
    linear-gradient(90deg, rgba(8, 9, 10, 0.42), transparent 38%, transparent 72%, rgba(8, 9, 10, 0.18));
}

.cinematic-vignette::before,
.cinematic-vignette::after {
  display: none;
}

.cinematic-scroll {
  position: absolute;
  z-index: 7;
  bottom: 62px;
  left: clamp(42px, 6vw, 100px);
  display: flex;
  align-items: center;
  gap: 14px;
  width: auto;
  padding: 0;
  color: rgba(244, 239, 231, 0.72);
  font-family: var(--rd-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cinematic-scroll::before {
  width: 54px;
  height: 1px;
  background: var(--rd-accent);
  content: "";
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cinematic-scroll:hover::before {
  transform: scaleX(1.28);
}

.cinematic-tie {
  width: 16px;
  height: 16px;
  color: var(--rd-accent);
  transform: translateY(0);
  animation: rd-scroll-nudge 2.2s ease-in-out infinite;
}

@keyframes rd-hero-reveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

@keyframes rd-scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* About */
.about-profile {
  padding: clamp(108px, 11vw, 174px) 0 clamp(96px, 10vw, 150px);
  color: var(--rd-text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--rd-ink);
  background-size: 112px 100%;
}

.about-profile-head {
  align-items: center;
  padding-top: 18px;
  padding-bottom: 0;
  border-top: 1px solid var(--rd-line);
  border-bottom: 0;
}

.about-profile-title {
  margin: clamp(30px, 3.6vw, 56px) 0 0;
  color: rgba(244, 239, 231, 0.06);
  font-family: var(--rd-font);
  font-size: clamp(78px, 12.2vw, 188px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.76;
  -webkit-text-stroke: 1px rgba(244, 239, 231, 0.72);
}

.about-profile-layout {
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(44px, 6vw, 104px);
  align-items: start;
  margin-top: clamp(54px, 6vw, 90px);
}

.about-portrait {
  position: sticky;
  top: 92px;
  height: auto;
}

.about-portrait-frame {
  height: clamp(580px, 58vw, 780px);
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--rd-line);
  background: var(--rd-panel);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 91% 100%, 0 100%);
}

.about-portrait-frame::after {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 72px;
  height: 72px;
  border-top: 1px solid var(--rd-accent);
  border-right: 1px solid var(--rd-accent);
  content: "";
  pointer-events: none;
}

.about-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.82) contrast(1.04);
  transform: scale(1.01);
  transition:
    filter 600ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-portrait:hover .about-portrait-frame img {
  filter: saturate(0.96) contrast(1.02);
  transform: scale(1.035);
}

.about-profile-content {
  padding-top: clamp(10px, 3vw, 44px);
}

.about-profile-card {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-profile-card::before {
  display: none;
}

.about-profile-chip {
  padding: 7px 10px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-radius);
  color: var(--rd-accent);
  background: transparent;
  font-family: var(--rd-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-profile-question {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 28px 0 0;
  font-family: var(--rd-font);
  line-height: 0.92;
}

.about-profile-name-zh {
  font-size: clamp(58px, 6.4vw, 98px);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.about-profile-name-en {
  color: var(--rd-muted);
  font-family: var(--rd-mono);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 400;
}

.about-profile-card .about-profile-summary {
  max-width: 780px;
  margin: 34px 0 0;
  color: rgba(244, 239, 231, 0.78);
  font-size: clamp(18px, 1.75vw, 26px);
  font-weight: 400;
  line-height: 1.72;
}

.about-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 46px;
  border-top: 1px solid var(--rd-line);
  border-bottom: 1px solid var(--rd-line);
}

.about-profile-stats > span {
  display: grid;
  min-height: 92px;
  align-content: end;
  gap: 4px;
  padding: 18px 18px 16px 0;
  color: var(--rd-muted);
  font-size: 10px;
}

.about-profile-stats > span + span {
  padding-left: 20px;
  border-left: 1px solid var(--rd-line);
}

.about-profile-stats strong {
  color: var(--rd-text);
  font-family: var(--rd-mono);
  font-size: clamp(27px, 2.7vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.about-profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.about-action {
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-radius);
  color: var(--rd-text);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.about-action:hover {
  color: var(--rd-ink);
  border-color: var(--rd-paper);
  background: var(--rd-paper);
  transform: translateY(-2px);
}

.about-action--solid {
  color: var(--rd-ink);
  border-color: var(--rd-accent);
  background: var(--rd-accent);
}

.about-action--solid:hover {
  border-color: var(--rd-paper);
  background: var(--rd-paper);
}

.about-rows {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--rd-line);
}

.about-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 48px;
  gap: 18px;
  align-items: center;
  min-height: 80px;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--rd-line);
  border-radius: 0;
  background: transparent;
  transition:
    color 220ms ease,
    padding 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 220ms ease;
}

.about-row strong {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
}

.about-row span {
  color: var(--rd-muted);
  font-family: var(--rd-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-row small {
  color: var(--rd-accent);
  font-family: var(--rd-mono);
  font-size: 10px;
  text-align: right;
}

.about-row:hover,
.about-row:focus-visible,
.about-row.is-active {
  padding-right: 16px;
  padding-left: 16px;
  color: var(--rd-ink);
  background: var(--rd-paper);
}

.about-row:hover span,
.about-row:focus-visible span,
.about-row.is-active span {
  color: rgba(8, 9, 10, 0.6);
}

/* Horizontal selected work gallery */
.work-section {
  padding: clamp(100px, 10vw, 152px) 0 clamp(106px, 10vw, 158px);
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--rd-ink), #0d1012 52%, var(--rd-ink)),
    var(--rd-ink);
}

.work-gallery-head {
  align-items: center;
  padding: 18px 0 0;
  border-top: 1px solid var(--rd-line);
  border-bottom: 0;
}

.work-gallery-status {
  min-width: 58px;
  margin: 0 10px 0 0;
  color: var(--rd-muted);
  font-family: var(--rd-mono);
  font-size: 10px;
}

.work-gallery-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-control-radius);
  background: transparent;
}

.work-gallery-button:hover:not(:disabled) {
  color: var(--rd-ink);
  border-color: var(--rd-accent);
  background: var(--rd-accent);
  transform: translateY(-2px);
}

.project-grid.work-gallery-track {
  position: relative;
  left: calc((100vw - min(100vw, 1440px)) / -2);
  width: 100vw;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: clamp(42px, 5vw, 72px) max(clamp(22px, 4vw, 70px), calc((100vw - 1440px) / 2 + clamp(22px, 4vw, 70px))) clamp(56px, 6vw, 88px);
  gap: clamp(14px, 2vw, 26px);
  overflow-x: auto;
  overflow-y: hidden;
  perspective: none;
  transform: none;
  scroll-padding-inline: clamp(22px, 4vw, 70px);
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  cursor: grab;
  touch-action: pan-x pan-y;
  user-select: none;
}

.project-grid.work-gallery-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.project-grid.work-gallery-track::-webkit-scrollbar {
  display: none;
}

.work-section .work-gallery-card {
  --rd-card-lift: 0px;
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 clamp(330px, 39vw, 610px);
  width: clamp(330px, 39vw, 610px);
  height: auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  background: var(--rd-panel);
  box-shadow: none;
  filter: none;
  opacity: 1;
  transform:
    translate3d(0, calc(var(--rd-card-lift) + var(--rd-card-y, 0px)), 0)
    rotateX(var(--rd-card-rx, 0deg))
    rotateY(var(--rd-card-ry, 0deg));
  transform-origin: center center;
  transition:
    border-color 320ms ease,
    box-shadow 420ms ease,
    transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
  scroll-snap-align: center;
  will-change: transform;
}

.work-section .work-gallery-card::before {
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  height: 2px;
  background: var(--rd-accent);
  opacity: 0;
  transform: scaleX(0.24);
  transform-origin: left;
}

.work-section .work-gallery-card::after {
  display: none;
}

.work-section .work-gallery-card.is-active,
.work-section .work-gallery-card:hover,
.work-section .work-gallery-card:focus-visible {
  --rd-card-lift: -10px;
  border-color: rgba(201, 146, 90, 0.58);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
}

.work-section .work-gallery-card.is-active::before,
.work-section .work-gallery-card:hover::before,
.work-section .work-gallery-card:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.work-section .work-gallery-card .project-image {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #090a0b;
}

.work-section .work-gallery-card .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05) brightness(0.82);
  transform: scale(1.01);
  transition:
    filter 520ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-section .work-gallery-card.is-active .project-image img,
.work-section .work-gallery-card:hover .project-image img,
.work-section .work-gallery-card:focus-visible .project-image img {
  filter: saturate(0.96) contrast(1.02) brightness(0.98);
  transform: scale(1.045);
}

.work-section .work-gallery-card .project-card-copy,
.work-section .work-gallery-card:not(.is-active) .project-card-copy {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  display: grid;
  height: auto;
  min-height: 116px;
  align-content: end;
  gap: 8px;
  padding: 20px 22px 22px;
  color: var(--rd-text);
  background: var(--rd-panel);
  pointer-events: auto;
}

.work-section .work-gallery-card .project-card-copy p,
.work-section .work-gallery-card:not(.is-active) .project-card-copy p {
  display: block;
  margin: 0;
  color: var(--rd-accent);
  font-family: var(--rd-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-section .work-gallery-card .project-card-copy h3,
.work-section .work-gallery-card:not(.is-active) .project-card-copy h3,
.work-section .work-gallery-card.is-active .project-card-copy h3,
.work-section .work-gallery-card:hover .project-card-copy h3 {
  position: static;
  max-height: none;
  margin: 0;
  overflow: visible;
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(18px, 1.7vw, 27px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.28;
  text-wrap: balance;
  transform: none;
  writing-mode: horizontal-tb;
}

.work-gallery-dots {
  justify-content: flex-start;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 70px);
}

.work-gallery-dots button {
  width: 28px;
  height: 2px;
  border-radius: 0;
  background: rgba(244, 239, 231, 0.2);
}

.work-gallery-dots button:hover,
.work-gallery-dots button.is-active {
  width: 52px;
  background: var(--rd-accent);
}

.work-gallery-footer {
  display: none;
}

/* Honors archive */
.awards-section {
  padding: clamp(112px, 11vw, 170px) 0 clamp(116px, 11vw, 164px);
  background: var(--rd-ink);
}

.awards-heading {
  align-items: flex-end;
  padding: 18px 0 34px;
  border-top: 1px solid var(--rd-line);
  border-bottom: 1px solid var(--rd-line);
}

.awards-heading .section-kicker {
  margin-bottom: 20px;
  color: var(--rd-muted);
}

.awards-heading-title {
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(58px, 8.2vw, 126px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.78;
}

.awards-heading-meta {
  gap: 7px;
  color: var(--rd-muted);
  font-family: var(--rd-mono);
  font-size: 9px;
}

.awards-heading-meta strong {
  color: var(--rd-accent);
  font-family: var(--rd-mono);
  font-size: clamp(34px, 4vw, 58px);
}

.awards-console {
  grid-template-columns: 154px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 62px);
  margin-top: clamp(40px, 5vw, 72px);
}

.awards-year-nav {
  top: 88px;
  gap: 0;
  border-top: 1px solid var(--rd-line);
}

.awards-year-nav button {
  min-height: 54px;
  padding: 12px 10px;
  border: 0;
  border-bottom: 1px solid var(--rd-line);
  border-radius: 0;
  color: var(--rd-muted);
}

.awards-year-nav button::before {
  display: none;
}

.awards-year-nav button.is-active {
  color: var(--rd-text);
  background: var(--rd-accent);
  transform: none;
}

.awards-year-nav button.is-active small {
  color: rgba(8, 9, 10, 0.7);
}

.awards-stage {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  min-height: clamp(520px, 42vw, 630px);
  overflow: hidden;
  border: 1px solid var(--rd-line);
  background: var(--rd-panel);
}

.awards-stage::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.awards-stage::after {
  top: 0;
  right: 0;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rd-accent));
  box-shadow: none;
}

.awards-stage-copy {
  padding: clamp(34px, 4.2vw, 66px);
  padding-bottom: clamp(96px, 7vw, 120px);
}

.awards-stage-date {
  margin-bottom: clamp(36px, 4.8vw, 64px);
  color: var(--rd-accent);
  font-family: var(--rd-mono);
}

.awards-stage-number {
  color: var(--rd-text);
  font-family: var(--rd-mono);
  font-size: clamp(54px, 5.4vw, 86px);
  font-weight: 400;
  letter-spacing: -0.055em;
}

.awards-stage-copy h3 {
  margin-top: 30px;
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 500;
}

.awards-stage-result {
  color: var(--rd-muted-strong);
}

.awards-stage-category {
  border: 1px solid rgba(201, 146, 90, 0.38);
  color: var(--rd-accent);
  background: var(--rd-accent-soft);
  font-family: var(--rd-mono);
}

.awards-stage-button {
  border-color: var(--rd-line-strong);
  background: rgba(8, 9, 10, 0.36);
}

.awards-stage-button:hover {
  color: var(--rd-ink);
  border-color: var(--rd-accent);
  background: var(--rd-accent);
}

.awards-visual {
  min-height: 100%;
  padding: clamp(24px, 3.4vw, 50px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(201, 146, 90, 0.09), transparent 44%),
    #0c0e0f;
}

.awards-visual-grid {
  display: none;
}

.awards-visual-glow {
  inset: 16%;
  background: radial-gradient(circle, rgba(201, 146, 90, 0.18), transparent 68%);
  filter: blur(30px);
  opacity: 0.72;
}

.awards-stage-media,
.awards-visual:hover .awards-stage-media {
  inset: 0;
  border: 1px solid var(--rd-line);
  background: transparent;
  box-shadow: none;
  clip-path: none;
  transform: none;
}

.awards-stage-media img,
.awards-visual:hover .awards-stage-media img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  filter: saturate(0.92) contrast(1.03) drop-shadow(0 28px 48px rgba(0, 0, 0, 0.56));
  transform: scale(1);
}

.awards-scanline {
  display: none;
}

.awards-filmstrip {
  gap: 8px;
  padding-top: 12px;
}

.awards-thumb {
  flex-basis: 70px;
  width: 70px;
  height: 70px;
  padding: 5px;
  border-color: var(--rd-line);
  border-radius: var(--rd-radius);
  background: var(--rd-panel);
}

.awards-thumb:hover,
.awards-thumb.is-active {
  border-color: var(--rd-accent);
}

.awards-drift-wall {
  opacity: 0.24;
  filter: grayscale(1);
}

/* Contact */
.contact-section {
  min-height: 82svh;
  padding: clamp(116px, 12vw, 184px) 0 0;
  background: var(--rd-ink);
}

.contact-section::before {
  background:
    linear-gradient(90deg, rgba(201, 146, 90, 0.08), transparent 38%),
    radial-gradient(circle at var(--contact-x, 78%) var(--contact-y, 36%), rgba(201, 146, 90, 0.12), transparent 48%);
}

.contact-orbit {
  top: 4%;
  right: -14vw;
  width: min(62vw, 900px);
  border-color: rgba(201, 146, 90, 0.11);
  opacity: 0.62;
}

.contact-orbit::before,
.contact-orbit::after {
  border-color: rgba(244, 239, 231, 0.06);
}

.contact-heading {
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--rd-line);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(72px, 8vw, 118px);
  border-top: 1px solid var(--rd-line);
  border-bottom: 1px solid var(--rd-line);
}

.contact-actions .button {
  width: 100%;
  min-height: 96px;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border: 0;
  border-right: 1px solid var(--rd-line);
  border-radius: 0;
  color: var(--rd-text);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.contact-actions .button:last-of-type {
  border-right: 0;
}

.contact-actions .button:hover {
  color: var(--rd-ink);
  background: var(--rd-paper);
  transform: none;
  box-shadow: none;
}

.contact-actions .button--solid {
  color: var(--rd-ink);
  border-color: var(--rd-accent);
  background: var(--rd-accent);
}

.contact-actions .button--solid:hover {
  background: var(--rd-paper);
}

.contact-actions .button svg {
  width: 18px;
  height: 18px;
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-actions .button:hover svg {
  transform: translate(3px, -3px);
}

.contact-footer {
  margin-top: clamp(96px, 12vw, 164px);
  padding: 26px 0 30px;
  border-top-color: var(--rd-line);
}

.contact-footer a {
  font-family: var(--rd-font);
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.contact-footer p {
  color: var(--rd-muted);
  font-family: var(--rd-mono);
  font-size: 9px;
}

/* Reusable controls and overlays */
.button,
.icon-button {
  border-radius: var(--rd-radius);
}

.work-gallery-button,
.awards-stage-button,
.award-lightbox-close,
.award-lightbox-arrow,
.lightbox-close {
  border-radius: var(--rd-control-radius);
}

.button--solid {
  color: var(--rd-ink);
  border-color: var(--rd-accent);
  background: var(--rd-accent);
}

.button--solid:hover {
  color: var(--rd-ink);
  border-color: var(--rd-paper);
  background: var(--rd-paper);
}

.button--outline {
  border-color: var(--rd-line-strong);
  color: var(--rd-text);
}

.button--outline:hover {
  color: var(--rd-ink);
  border-color: var(--rd-paper);
  background: var(--rd-paper);
}

.qr-dialog {
  border-color: var(--rd-line-strong);
  border-radius: var(--rd-radius);
  background: var(--rd-panel);
}

.qr-placeholder {
  border-radius: var(--rd-radius);
}

.toast {
  border-radius: var(--rd-radius);
  background: var(--rd-paper);
}

/* Project detail pages */
.project-main {
  padding-top: 72px;
}

.project-hero {
  padding: clamp(68px, 8vw, 120px) 0 0;
  background: var(--rd-ink);
}

.project-hero-copy {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px);
  margin-bottom: clamp(46px, 6vw, 88px);
  padding: 0 clamp(22px, 4vw, 70px);
}

.project-hero-number {
  color: var(--rd-accent);
  font-family: var(--rd-mono);
  font-size: 12px;
  line-height: 1.4;
}

.project-hero h1 {
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(54px, 8vw, 132px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.project-hero-title-en {
  max-width: 900px;
  margin-top: 20px;
  color: var(--rd-muted);
  font-family: var(--rd-font);
  font-size: clamp(22px, 2.8vw, 46px);
  line-height: 1.18;
}

.project-hero-meta {
  border-color: var(--rd-line);
}

.project-cover {
  height: min(76svh, 840px);
  border-top: 1px solid var(--rd-line);
  border-bottom: 1px solid var(--rd-line);
  background: var(--rd-panel);
}

.project-overview {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(46px, 8vw, 140px);
  padding: clamp(82px, 9vw, 138px) clamp(22px, 4vw, 70px);
  color: var(--rd-text);
  background: var(--rd-panel);
  border-bottom: 1px solid var(--rd-line);
}

.project-lead {
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(20px, 2vw, 31px);
  line-height: 1.68;
}

.project-meta,
.project-meta-item,
.project-meta-item:nth-child(even) {
  border-color: var(--rd-line);
}

.project-meta-item span {
  color: var(--rd-accent);
  font-family: var(--rd-mono);
}

.project-story {
  background: var(--rd-ink);
}

.project-story-intro {
  padding-top: clamp(96px, 10vw, 154px);
}

.project-story-row,
.project-story-row--reverse {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 48px);
  min-height: clamp(580px, 60vw, 820px);
  border-bottom-color: var(--rd-line);
}

.project-story-row--reverse {
  background: var(--rd-panel);
}

.project-story-number,
.project-story-row--reverse .project-story-number {
  color: transparent;
  -webkit-text-stroke-color: rgba(244, 239, 231, 0.42);
}

.project-story-copy p {
  color: var(--rd-accent);
  font-family: var(--rd-mono);
}

.project-story-copy h3 {
  font-family: var(--rd-font);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.project-story-fragment {
  border-color: var(--rd-line);
  border-radius: var(--rd-radius);
}

.project-visual-section,
.project-palette {
  background: var(--rd-ink-soft);
}

.project-visual-heading,
.project-boards .project-visual-heading {
  border-color: var(--rd-line);
}

.project-gallery {
  column-gap: clamp(14px, 2vw, 28px);
}

.gallery-item,
.board-item {
  border-color: var(--rd-line);
  border-radius: var(--rd-radius);
  background: var(--rd-panel);
}

.project-boards {
  color: var(--rd-text);
  background: var(--rd-panel);
}

.project-boards .project-visual-heading {
  border-color: var(--rd-line);
}

.next-project {
  min-height: 68svh;
  border-color: var(--rd-line);
}

.next-project img {
  filter: brightness(0.38) saturate(0.68);
}

.next-project-copy span {
  color: var(--rd-accent);
  font-family: var(--rd-mono);
}

.next-project-copy h2 {
  font-family: var(--rd-font);
  font-weight: 600;
  letter-spacing: -0.05em;
}

/* Motion language */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 46px, 0);
  transition:
    opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 980ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

main > section,
.project-main > [data-project-root] > section {
  --rd-section-progress: 0;
}

main > section::after,
.project-main > [data-project-root] > section::after {
  opacity: calc(0.04 + var(--rd-section-progress) * 0.05);
}

.work-gallery-track::after {
  position: sticky;
  right: 0;
  flex: 0 0 1px;
  content: "";
}

@media (max-width: 1180px) {
  .site-nav > a:not(.nav-download, .nav-say-hi) {
    padding-right: 11px;
    padding-left: 11px;
  }

  .about-profile-layout {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 46px;
  }

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

  .contact-actions .button:nth-child(2) {
    border-right: 1px solid var(--rd-line);
  }

  .contact-actions .button:nth-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header,
  .site-header.is-scrolled,
  .site-header.is-menu-open {
    min-height: 68px;
    padding-right: 20px;
    padding-left: 20px;
    background: rgba(8, 9, 10, 0.78);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .brand {
    left: 20px;
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 103;
    transform: translateY(-50%);
  }

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

  .site-nav {
    align-items: stretch;
    padding: 96px 22px 44px;
    background:
      linear-gradient(135deg, rgba(201, 146, 90, 0.12), transparent 38%),
      rgba(8, 9, 10, 0.98);
  }

  .site-nav > a:not(.nav-download, .nav-say-hi) {
    padding: 18px 0;
    border-bottom-color: var(--rd-line);
    color: var(--rd-text);
    font-family: var(--rd-font);
    font-size: 26px;
    font-weight: 500;
  }

  .language-switch {
    align-self: flex-start;
    margin-top: 26px;
  }

  .nav-download {
    align-self: flex-start;
    margin: 22px 0 0;
  }

  .section-shell {
    padding-right: 22px;
    padding-left: 22px;
  }

  .cinematic-media::before {
    inset: 82px 20px 28px;
  }

  .cinematic-media::after {
    top: 82px;
    right: 20px;
    width: 48vw;
  }

  .cinematic-scroll {
    bottom: 46px;
    left: 42px;
  }

  .about-profile {
    background-size: 76px 100%;
  }

  .about-profile-title {
    font-size: clamp(66px, 22vw, 116px);
    line-height: 0.82;
  }

  .about-profile-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-portrait {
    position: relative;
    top: auto;
    width: 100%;
  }

  .about-portrait-frame {
    height: min(66svh, 620px);
  }

  .about-profile-content {
    padding-top: 0;
  }

  .about-profile-question {
    display: block;
  }

  .about-profile-name-en {
    display: block;
    margin-top: 12px;
  }

  .project-grid.work-gallery-track {
    left: 0;
    width: calc(100% + 44px);
    margin-left: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .work-section .work-gallery-card {
    flex-basis: min(78vw, 480px);
    width: min(78vw, 480px);
  }

  .work-gallery-dots {
    padding-right: 22px;
    padding-left: 22px;
  }

  .awards-heading {
    align-items: flex-start;
  }

  .awards-console {
    grid-template-columns: 1fr;
  }

  .awards-year-nav {
    position: sticky;
    top: 68px;
    display: flex;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    border-top: 1px solid var(--rd-line);
    border-bottom: 1px solid var(--rd-line);
    background: rgba(8, 9, 10, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .awards-year-nav button {
    flex: 0 0 auto;
    min-width: 82px;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-right: 1px solid var(--rd-line);
    border-bottom: 0;
  }

  .awards-stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .awards-visual {
    order: 1;
    min-height: 0;
    padding: 24px;
    aspect-ratio: 4 / 5;
  }

  .awards-stage-copy {
    order: 2;
    min-height: 380px;
    padding: 32px 24px 92px;
  }

  .awards-filmstrip {
    grid-column: 1;
  }

  .contact-actions {
    margin-top: 70px;
  }

  .contact-actions .button {
    min-height: 84px;
  }

  .contact-footer a {
    font-size: clamp(28px, 8vw, 46px);
  }

  .project-main {
    padding-top: 68px;
  }

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

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

  .project-story-row,
  .project-story-row--reverse {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cinematic-hero {
    min-height: 620px;
  }

  .cinematic-image {
    object-position: 52% center;
  }

  .cinematic-media::before {
    inset: 78px 14px 18px;
  }

  .cinematic-media::after {
    top: 78px;
    right: 14px;
    width: 42vw;
  }

  .cinematic-scroll {
    bottom: 34px;
    left: 32px;
    gap: 10px;
  }

  .cinematic-scroll::before {
    width: 34px;
  }

  .about-profile {
    padding-top: 92px;
  }

  .about-profile-title {
    margin-top: 28px;
    font-size: clamp(62px, 21.5vw, 98px);
  }

  .about-portrait-frame {
    height: min(62svh, 540px);
    clip-path: polygon(0 0, 100% 0, 100% 94%, 90% 100%, 0 100%);
  }

  .about-profile-name-zh {
    font-size: clamp(50px, 17vw, 74px);
  }

  .about-profile-stats {
    grid-template-columns: 1fr;
  }

  .about-profile-stats > span {
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 70px;
    align-items: end;
    padding: 14px 0;
  }

  .about-profile-stats > span + span {
    padding-left: 0;
    border-top: 1px solid var(--rd-line);
    border-left: 0;
  }

  .about-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .about-action {
    justify-content: space-between;
    text-align: left;
  }

  .about-row {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .about-row span {
    display: none;
  }

  .work-gallery-head {
    align-items: flex-start;
    flex-direction: row;
  }

  .work-gallery-controls {
    align-self: flex-start;
  }

  .work-section .work-gallery-card {
    flex-basis: 84vw;
    width: 84vw;
  }

  .work-section .work-gallery-card .project-image {
    aspect-ratio: 1 / 1;
  }

  .work-section .work-gallery-card .project-card-copy,
  .work-section .work-gallery-card:not(.is-active) .project-card-copy {
    min-height: 112px;
    padding: 18px;
  }

  .awards-heading-title {
    font-size: clamp(54px, 18vw, 86px);
  }

  .awards-heading-meta strong {
    font-size: 38px;
  }

  .awards-visual {
    aspect-ratio: 1 / 1.18;
    padding: 18px;
  }

  .awards-stage-copy {
    min-height: 390px;
    padding: 28px 20px 90px;
  }

  .awards-stage-number {
    font-size: 56px;
  }

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

  .contact-actions .button,
  .contact-actions .button:nth-child(2),
  .contact-actions .button:nth-child(-n + 2) {
    min-height: 74px;
    border-right: 0;
    border-bottom: 1px solid var(--rd-line);
  }

  .contact-actions .button:last-of-type {
    border-bottom: 0;
  }

  .contact-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .project-hero-copy,
  .project-overview {
    padding-right: 22px;
    padding-left: 22px;
  }

  .project-hero h1 {
    font-size: clamp(48px, 16vw, 82px);
  }

  .project-cover {
    height: 62svh;
  }

  .project-story-row,
  .project-story-row--reverse {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-media,
  .cinematic-tie {
    animation: none;
  }

  .cinematic-image,
  .work-section .work-gallery-card,
  .about-portrait-frame img,
  .gallery-item img,
  .project-story-fragment img {
    transition: none;
    will-change: auto;
  }
}

/* Full-frame work viewing, gallery-first project pages, unified section backdrop */
.about-profile,
.work-section,
.awards-section,
.contact-section {
  background-color: var(--rd-ink);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 112px 100%;
}

.work-section .work-gallery-card {
  flex: 0 0 min(78vw, calc(52svh * 1.7778), 1120px);
  width: min(78vw, calc(52svh * 1.7778), 1120px);
}

.work-section .work-gallery-card .project-image {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, rgba(201, 146, 90, 0.06), transparent 46%),
    #050607;
}

.work-section .work-gallery-card .project-image img {
  object-fit: contain;
  padding: clamp(10px, 1.5vw, 22px);
}

.work-section .work-gallery-card .project-card-copy,
.work-section .work-gallery-card:not(.is-active) .project-card-copy {
  min-height: 92px;
  padding-top: 17px;
  padding-bottom: 18px;
}

.work-section .work-gallery-card .project-card-copy h3,
.work-section .work-gallery-card:not(.is-active) .project-card-copy h3 {
  font-size: clamp(17px, 1.5vw, 24px);
}

/* Certificate floats over the full animated wall, with no side panels. */
.awards-stage {
  position: relative;
  display: block;
  min-height: clamp(620px, 52vw, 780px);
  overflow: hidden;
  border-color: var(--rd-line);
  background: transparent;
}

.awards-stage::before {
  display: none;
}

.awards-stage::after {
  z-index: 4;
  height: 1px;
  opacity: 0.72;
}

.awards-drift-wall {
  z-index: 0;
  inset: 0;
  opacity: 0.72;
  filter: none;
  -webkit-mask-image: radial-gradient(ellipse 92% 86% at 58% 48%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 86% at 58% 48%, #000 52%, transparent 100%);
}

.awards-stage-copy {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: min(38%, 470px);
  min-height: 0;
  padding: clamp(34px, 4vw, 64px);
  padding-bottom: clamp(104px, 7vw, 126px);
  background: linear-gradient(
    90deg,
    rgba(5, 6, 7, 0.94),
    rgba(5, 6, 7, 0.76) 62%,
    transparent
  );
  pointer-events: none;
}

.awards-stage-copy button,
.awards-stage-copy a {
  pointer-events: auto;
}

.awards-stage-controls {
  left: clamp(34px, 4vw, 64px);
}

.awards-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 0;
  padding: clamp(30px, 4vw, 62px) clamp(30px, 4vw, 62px) clamp(30px, 4vw, 62px) 34%;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.awards-stage-media,
.awards-visual:hover .awards-stage-media {
  position: relative;
  inset: auto;
  display: grid;
  width: min(100%, 760px);
  height: 100%;
  border: 0;
  place-items: center;
  background: transparent;
  box-shadow: none;
}

.awards-stage-media img,
.awards-visual:hover .awards-stage-media img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  filter: saturate(0.96) contrast(1.03) drop-shadow(0 34px 70px rgba(0, 0, 0, 0.72));
}

.awards-visual-glow {
  inset: 13% 8%;
  opacity: 0.52;
  background: radial-gradient(circle at 58% 46%, rgba(201, 146, 90, 0.2), transparent 66%);
}

.contact-section {
  background-color: var(--rd-ink);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 112px 100%;
}

.contact-section::before,
.contact-orbit {
  display: none;
}

/* Project detail pages are image-only galleries. */
.project-showcase-page {
  min-height: 100svh;
  background: var(--rd-ink);
}

.project-showcase-hero {
  position: relative;
  padding: 90px 0 0;
}

.project-showcase-back {
  position: fixed;
  z-index: 12;
  top: 86px;
  left: clamp(22px, 4vw, 70px);
  color: var(--rd-text);
  border: 1px solid var(--rd-line-strong);
  background: rgba(8, 9, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.project-showcase-back:hover {
  color: var(--rd-ink);
  border-color: var(--rd-accent);
  background: var(--rd-accent);
}

.project-showcase-cover {
  display: grid;
  width: 100%;
  height: min(86svh, 920px);
  min-height: 540px;
  margin: 0;
  padding: clamp(28px, 4vw, 68px);
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--rd-line);
  border-bottom: 1px solid var(--rd-line);
  background: var(--rd-panel);
}

.project-showcase-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-image-stream {
  padding: clamp(42px, 4vw, 64px) 0;
}

.project-image-stream-inner {
  width: min(100%, 66.666vw, 1200px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.project-image-grid {
  columns: 2;
  column-gap: clamp(16px, 1.6vw, 24px);
}

.project-image-tile {
  display: block;
  width: 100%;
  margin: 0 0 clamp(16px, 1.6vw, 24px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  break-inside: avoid;
  cursor: zoom-in;
  transition:
    border-color 300ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-image-tile img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-image-tile:hover,
.project-image-tile:focus-visible {
  border-color: transparent;
  transform: none;
}

.project-image-tile:hover img,
.project-image-tile:focus-visible img {
  transform: scale(1.012);
}

.next-project--image-only .next-project-copy {
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: clamp(70px, 8vw, 120px);
}

@media (max-width: 900px) {
  .work-section .work-gallery-card {
    flex-basis: min(88vw, 680px);
    width: min(88vw, 680px);
  }

  .awards-stage {
    min-height: 720px;
  }

  .awards-stage-copy {
    inset: auto 0 0;
    width: 100%;
    padding: 28px 22px 92px;
    background: linear-gradient(0deg, rgba(5, 6, 7, 0.96), rgba(5, 6, 7, 0.72) 68%, transparent);
  }

  .awards-stage-controls {
    left: 22px;
  }

  .awards-visual {
    padding: 28px 22px 230px;
  }

  .awards-stage-media {
    width: min(100%, 620px);
  }

  .project-showcase-hero {
    padding-top: 68px;
  }

  .project-showcase-back {
    top: 78px;
    left: 22px;
  }

  .project-showcase-cover {
    height: auto;
    min-height: 58svh;
    padding: 74px 22px 34px;
  }

  .project-showcase-cover img {
    height: auto;
    max-height: 72svh;
  }

  .project-image-stream {
    padding: 0;
  }

  .project-image-grid {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .work-section .work-gallery-card {
    flex-basis: 88vw;
    width: 88vw;
  }

  .work-section .work-gallery-card .project-image {
    aspect-ratio: 1 / 1;
  }

  .awards-stage {
    min-height: 660px;
  }

  .awards-stage-copy {
    min-height: 0;
    padding: 26px 20px 112px;
  }

  .awards-visual {
    padding: 24px 20px 236px;
  }

  .awards-stage-number {
    font-size: 48px;
  }

  .project-showcase-cover {
    min-height: 52svh;
  }

  .project-image-tile {
    margin-bottom: 0;
  }
}

/* About portrait composition based on the supplied reference. */
.about-profile {
  padding: clamp(94px, 9vw, 142px) 0 clamp(90px, 9vw, 136px);
}

.about-profile .section-shell {
  position: relative;
}

.about-profile-head {
  position: relative;
  z-index: 4;
  display: block;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 16px;
  border-top-color: rgba(244, 239, 231, 0.18);
  border-bottom: 0;
}

.about-profile-head .section-kicker {
  justify-content: flex-start;
}

.about-profile-title {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0 auto clamp(22px, 2.4vw, 34px);
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(64px, 10vw, 148px);
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 0.82;
  text-align: center;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.about-profile-layout {
  display: block;
  max-width: 1040px;
  margin: 0 auto;
}

.about-portrait {
  position: relative;
  top: auto;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.about-portrait-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1880 / 910;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 231, 0.22);
  background: #c9a98f;
  clip-path: none;
}

.about-portrait-frame::after {
  display: none;
}

.about-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.84) contrast(1.01) brightness(1.02);
}

.about-profile-content {
  width: min(100%, 980px);
  margin: 0 auto;
  padding-top: clamp(34px, 4vw, 58px);
}

.about-profile-card {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.about-profile-chip,
.about-profile-question {
  display: none;
}

.about-profile-card .about-profile-summary {
  max-width: 860px;
  margin: 0 auto;
  color: rgba(244, 239, 231, 0.76);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
}

.about-profile-stats,
.about-rows,
.about-profile-actions {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.about-profile-stats {
  margin-top: clamp(36px, 4vw, 56px);
}

.about-profile-actions {
  justify-content: center;
  margin-top: 26px;
}

.about-rows {
  margin-top: 46px;
}

@media (max-width: 900px) {
  .about-profile-title {
    margin-bottom: 22px;
    font-size: clamp(62px, 16vw, 110px);
  }

  .about-profile-layout {
    max-width: 100%;
  }

  .about-portrait-frame {
    height: clamp(240px, 58vw, 420px);
    aspect-ratio: auto;
  }

  .about-portrait-frame img {
    object-position: 56% center;
  }
}

@media (max-width: 640px) {
  .about-profile {
    padding-top: 86px;
  }

  .about-profile-title {
    margin-bottom: 18px;
    font-size: clamp(56px, 17vw, 82px);
    letter-spacing: -0.065em;
  }

  .about-portrait-frame {
    height: 260px;
  }

  .about-profile-content {
    padding-top: 24px;
  }

  .about-profile-card .about-profile-summary {
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
  }

  .about-profile-actions {
    justify-content: stretch;
  }
}

/* Circular portrait background with a split biography panel. */
@media (min-width: 901px) {
  .about-profile {
    min-height: 100svh;
    padding: 0;
    background-color: #08090a;
    background-image:
      linear-gradient(
        90deg,
        transparent 0%,
        transparent 46%,
        rgba(8, 9, 10, 0.12) 56%,
        rgba(8, 9, 10, 0.82) 76%,
        #08090a 100%
      ),
      url("../assets/images/about-portrait-circle-v2.webp");
    background-position: center, left center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .about-profile .section-shell {
    display: grid;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.04fr) minmax(460px, 0.96fr);
    align-content: center;
    align-items: center;
    gap: 0 clamp(48px, 6vw, 106px);
    padding-top: 112px;
    padding-bottom: 86px;
  }

  .about-profile-head {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    width: 100%;
    max-width: 620px;
    padding-top: 0;
    border-top: 0;
  }

  .about-profile-head .section-kicker {
    margin-bottom: 22px;
  }

  .about-profile-layout {
    display: contents;
  }

  .about-portrait {
    display: none;
  }

  .about-profile-content {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: 100%;
    max-width: 620px;
    padding-top: 0;
  }

  .about-profile-title {
    margin: 0 0 clamp(22px, 2.6vw, 38px);
    color: var(--rd-text);
    font-size: clamp(66px, 7.6vw, 116px);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 0.86;
    text-align: left;
  }

  .about-profile-card .about-profile-summary {
    max-width: 580px;
    margin: 0;
    color: rgba(244, 239, 231, 0.74);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.78;
    text-align: left;
  }

  .about-profile-stats,
  .about-rows {
    display: none;
  }

  .about-profile-actions {
    display: grid;
    max-width: 560px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-content: start;
    margin-top: clamp(30px, 3vw, 42px);
  }

  .about-action {
    min-height: 64px;
    justify-content: center;
    padding: 16px 22px;
    border-radius: 0;
    font-size: 13px;
  }

  .about-action--solid {
    color: #0a0908;
    border-color: #968978;
    background: #968978;
  }

  .about-action--solid:hover {
    color: #0a0908;
    border-color: var(--rd-text);
    background: var(--rd-text);
  }

  .about-action:not(.about-action--solid) {
    color: var(--rd-text);
    border-color: rgba(244, 239, 231, 0.26);
    background: rgba(10, 11, 12, 0.72);
  }

  .about-action:not(.about-action--solid):hover {
    color: var(--rd-ink);
    border-color: var(--rd-text);
    background: var(--rd-text);
  }
}

@media (max-width: 900px) {
  .about-profile {
    min-height: 0;
    padding: 86px 0 88px;
    background-color: var(--rd-ink);
    background-image: none;
  }

  .about-profile .section-shell {
    display: block;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .about-profile-head {
    display: block;
    max-width: none;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(244, 239, 231, 0.14);
  }

  .about-profile-layout {
    display: block;
    max-width: 1040px;
    margin: 26px auto 0;
  }

  .about-portrait {
    display: block;
    width: 100%;
  }

  .about-portrait-frame {
    width: 100%;
    height: clamp(230px, 58vw, 430px);
    aspect-ratio: auto;
    border: 1px solid rgba(244, 239, 231, 0.18);
  }

  .about-portrait-frame img {
    object-fit: cover;
    object-position: center center;
  }

  .about-profile-content {
    width: 100%;
    max-width: none;
    padding-top: 30px;
  }

  .about-profile-title {
    margin: 0 0 20px;
    font-size: clamp(54px, 15vw, 94px);
    letter-spacing: -0.07em;
    line-height: 0.88;
    text-align: left;
  }

  .about-profile-card .about-profile-summary {
    max-width: none;
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
  }

  .about-profile-stats,
  .about-rows {
    display: none;
  }

  .about-profile-actions {
    display: grid;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .about-action {
    min-height: 58px;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 0;
  }

  .about-action--solid {
    color: #0a0908;
    border-color: #968978;
    background: #968978;
  }
}

/* Vertical editorial work index. */
.work-section {
  padding: clamp(90px, 9vw, 138px) 0 clamp(120px, 12vw, 184px);
}

.work-gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  padding: 18px 0 0;
  border-top: 1px solid rgba(244, 239, 231, 0.16);
  border-bottom: 0;
}

.work-gallery-title {
  max-width: 1040px;
  margin: 0;
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(58px, 8.6vw, 132px);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.work-gallery-controls,
.work-gallery-dots,
.work-gallery-footer {
  display: none;
}

.project-grid.work-gallery-track.work-story-list {
  position: relative;
  left: auto;
  display: flex;
  flex-direction: column;
  width: min(100%, 880px);
  height: auto;
  min-height: 0;
  gap: 65px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 124px) 0 clamp(40px, 5vw, 76px);
  overflow: visible;
  perspective: none;
  transform: none;
  cursor: default;
  scroll-snap-type: none;
  touch-action: auto;
}

.work-story-list .work-gallery-card,
.work-story-list .work-gallery-card:nth-child(even) {
  position: relative;
  display: grid;
  flex: none;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(0, 7fr) minmax(250px, 3fr);
  grid-template-areas: "image copy";
  gap: 64px;
  align-items: start;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  scroll-snap-align: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.work-story-list .work-gallery-card:nth-child(even) {
  grid-template-columns: minmax(250px, 3fr) minmax(0, 7fr);
  grid-template-areas: "copy image";
}

.work-story-list .work-gallery-card.reveal {
  opacity: 0;
  transform: translate3d(0, 64px, 0);
  transition:
    opacity 820ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1060ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-story-list .work-gallery-card.reveal.is-visible {
  opacity: 1;
  transform:
    translate3d(0, var(--rd-card-y, 0px), 0)
    rotateX(var(--rd-card-rx, 0deg))
    rotateY(var(--rd-card-ry, 0deg));
}

.work-story-list .work-gallery-card::before {
  position: absolute;
  z-index: 4;
  bottom: -60px;
  left: 0;
  display: block;
  width: auto;
  height: auto;
  color: rgba(244, 239, 231, 0.92);
  background: none;
  content: attr(data-index);
  font-family: var(--rd-font);
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 0.72;
  opacity: 0.94;
  pointer-events: none;
  transform: none;
  -webkit-text-stroke: 0;
}

.work-story-list .work-gallery-card:nth-child(even)::before {
  right: 0;
  left: auto;
  text-align: right;
}

.work-story-list .work-gallery-card::after {
  display: none;
}

.work-story-list .work-gallery-card .project-image {
  position: relative;
  inset: auto;
  grid-area: image;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}

.work-story-list .work-gallery-card .project-image img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-drag: none;
  filter: none;
  transform:
    translate3d(
      var(--story-pointer-x, 0px),
      calc(var(--story-scroll-y, 0px) + var(--story-pointer-y, 0px)),
      0
    )
    scale(1.015);
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 420ms ease;
}

.work-story-list .work-gallery-card:hover .project-image img,
.work-story-list .work-gallery-card:focus-visible .project-image img {
  filter: brightness(1.02) saturate(1.03);
  transform: translate3d(0, var(--story-scroll-y, 0px), 0) scale(1.015);
}

.work-story-list .work-gallery-card .project-card-copy,
.work-story-list .work-gallery-card:not(.is-active) .project-card-copy {
  position: relative;
  inset: auto;
  display: block;
  grid-area: copy;
  height: auto;
  min-height: 0;
  padding: 0;
  color: var(--rd-text);
  background: transparent;
  pointer-events: auto;
}

.work-story-list .work-gallery-card .project-card-copy > p:not(.project-description) {
  display: block;
  margin: 0 0 16px;
  color: #968978;
  font-family: var(--rd-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-story-list .work-gallery-card .project-card-copy h3,
.work-story-list .work-gallery-card:not(.is-active) .project-card-copy h3,
.work-story-list .work-gallery-card.is-active .project-card-copy h3,
.work-story-list .work-gallery-card:hover .project-card-copy h3 {
  position: static;
  max-height: none;
  margin: 0;
  overflow: visible;
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(25px, 2.35vw, 40px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.12;
  writing-mode: horizontal-tb;
  transform: none;
}

.work-section .work-story-list .work-gallery-card .project-card-copy > p.project-description {
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(244, 239, 231, 0.82);
  font-family: var(--rd-font);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.62;
}

.work-story-list .work-gallery-card::before,
.work-story-list .work-gallery-card:nth-child(even)::before {
  top: auto;
}

@media (max-width: 900px) {
  .work-gallery-title {
    font-size: clamp(52px, 15vw, 92px);
  }

  .project-grid.work-gallery-track.work-story-list {
    gap: 58px;
    padding-top: 56px;
  }

  .work-story-list .work-gallery-card,
  .work-story-list .work-gallery-card:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "copy";
    gap: 20px;
  }

  .work-story-list .work-gallery-card .project-image {
    width: 66.666%;
    aspect-ratio: 5 / 3;
    justify-self: start;
  }

  .work-section .work-story-list .work-gallery-card .project-card-copy > p.project-description {
    max-width: 560px;
    font-size: 18px;
  }

  .work-story-list .work-gallery-card::before,
  .work-story-list .work-gallery-card:nth-child(even)::before {
    right: auto;
    bottom: -52px;
    left: 0;
    font-size: 56px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .work-section {
    padding-top: 82px;
  }

  .work-gallery-title {
    font-size: clamp(48px, 16vw, 72px);
  }

  .project-grid.work-gallery-track.work-story-list {
    gap: 58px;
    padding-top: 48px;
  }

  .work-story-list .work-gallery-card .project-image {
    width: 66.666%;
    aspect-ratio: 5 / 3;
  }

  .work-story-list .work-gallery-card .project-card-copy h3 {
    font-size: 24px;
  }
}

/* Remove framing from project detail previews and preserve each image ratio. */
.project-showcase-cover {
  width: min(100%, 66.666vw, 1200px);
  height: auto;
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.project-showcase-cover img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.project-image-tile {
  margin-bottom: clamp(16px, 1.6vw, 24px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.project-image-tile:hover,
.project-image-tile:focus-visible {
  border-color: transparent;
  transform: none;
}

.project-image-tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Full-screen DriftWall honors page. */
.awards-section--drift {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.awards-section--drift::before,
.awards-section--drift::after {
  display: none;
}

.awards-section--drift .awards-drift-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  filter: none;
  background: #000;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

.awards-section--drift .drift-wall__tile {
  appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  pointer-events: auto;
}

.awards-section--drift .drift-wall__inner {
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: max(0.72, var(--dw-dim));
  transition:
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.awards-section--drift .drift-wall__tile:hover .drift-wall__inner,
.awards-section--drift .drift-wall__tile:focus-visible .drift-wall__inner {
  border: 0;
  box-shadow: none;
  opacity: 1;
  transform: translate3d(0, -7px, 28px);
}

.awards-section--drift .drift-wall__tile:focus-visible {
  outline: 1px solid var(--rd-accent);
  outline-offset: 3px;
}

.awards-section--drift .awards-drift-wall img {
  object-fit: contain;
  filter: saturate(0.94) contrast(1.025);
}

.awards-section--drift .drift-wall__overlay {
  opacity: 0.16;
  transition: opacity 220ms ease;
}

.awards-section--drift .drift-wall__tile:hover .drift-wall__overlay,
.awards-section--drift .drift-wall__tile:focus-visible .drift-wall__overlay {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .awards-section--drift .drift-wall__inner {
    transition: none;
  }
}

/* Masonry honors page. */
.awards-section--masonry {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: clamp(96px, 8vw, 128px) clamp(18px, 3vw, 46px)
    clamp(104px, 9vw, 144px);
  overflow: hidden;
  background: var(--rd-ink);
  isolation: isolate;
}

.awards-section--masonry::before,
.awards-section--masonry::after {
  display: none;
}

.awards-masonry-title {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto clamp(34px, 4.6vw, 72px);
  color: var(--rd-text);
  font-family: var(--rd-font);
  font-size: clamp(62px, 8vw, 124px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.84;
}

.awards-masonry {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  columns: 4;
  column-gap: clamp(14px, 2vw, 28px);
}

.awards-masonry__item {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0 0 clamp(14px, 2vw, 28px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  break-inside: avoid;
  cursor: zoom-in;
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 64px, 0) scale(0.985);
  transform-origin: center;
  transition:
    opacity 600ms cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 600ms cubic-bezier(0.215, 0.61, 0.355, 1),
    filter 600ms cubic-bezier(0.215, 0.61, 0.355, 1);
  transition-delay: calc(var(--masonry-index) * 50ms);
  will-change: opacity, transform, filter;
}

.awards-masonry__item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.awards-masonry__item:hover,
.awards-masonry__item:focus-visible {
  filter: blur(0);
  transform: scale(0.95);
}

.awards-masonry__item:focus-visible {
  outline: 1px solid var(--rd-accent);
  outline-offset: 5px;
}

.awards-masonry__item img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  user-select: none;
}

@media (max-width: 1100px) {
  .awards-masonry {
    columns: 3;
  }
}

@media (max-width: 700px) {
  .awards-section--masonry {
    padding: 88px 14px 104px;
  }

  .awards-masonry {
    columns: 2;
    column-gap: 12px;
  }

  .awards-masonry__item {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awards-masonry__item {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.qr-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
