/* Portfolio refinement: editorial hierarchy, complete artwork, restrained motion. */
:root {
  --page: #f7f7f5;
  --paper: #fff;
  --ink: #17191c;
  --muted: #656a70;
  --line: #d9dcde;
  --blue: #1f39e8;
  --glass-fill: rgba(255, 255, 255, 0.64);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 8px 28px rgba(29, 37, 49, 0.08), inset 0 1px rgba(255, 255, 255, 0.78);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --card-radius: 10px;
  --bg: var(--page);
  --surface: var(--paper);
  --soft: #eef0f2;
  --header: rgba(247, 247, 245, 0.78);
}
:root[data-theme="dark"] {
  --page: #101215;
  --paper: #171a1e;
  --ink: #f2f3f4;
  --muted: #a4abb2;
  --line: #353a40;
  --blue: #8192ff;
  --glass-fill: rgba(255, 255, 255, 0.075);
  --glass-edge: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.12);
  --bg: var(--page);
  --surface: var(--paper);
  --soft: #22272d;
  --header: rgba(16, 18, 21, 0.8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --page: #101215;
    --paper: #171a1e;
    --ink: #f2f3f4;
    --muted: #a4abb2;
    --line: #353a40;
    --blue: #8192ff;
    --glass-fill: rgba(255, 255, 255, 0.075);
    --glass-edge: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.12);
    --bg: var(--page);
    --surface: var(--paper);
    --soft: #22272d;
    --header: rgba(16, 18, 21, 0.8);
  }
}
html {
  scroll-padding-top: 24px;
}
body {
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
}
.wrap {
  width: min(calc(100% - 96px), 1280px);
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 72px;
  gap: 32px;
}
.brand-symbol {
  border-radius: 12px;
}
.nav {
  gap: 32px;
}
.nav a {
  transition: color 180ms ease;
}
.nav a:hover {
  color: var(--ink);
}

/* Frosted controls retain a visible edge and focus ring in both themes. */
.button-primary,
.theme-toggle,
.filter,
.contact-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  background: var(--glass-fill);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  transition:
    transform 200ms var(--ease-out),
    background-color 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}
.button-primary::before,
.theme-toggle::before,
.filter::before,
.contact-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.27), transparent 42%);
}
.button-primary {
  min-width: 184px;
  min-height: 52px;
  padding: 12px 19px 12px 22px;
  border-color: var(--line);
}
.button-primary:hover,
.theme-toggle:hover,
.filter:hover,
.contact-link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(29, 37, 49, 0.13),
    inset 0 1px rgba(255, 255, 255, 0.82);
}
.button-primary:active,
.theme-toggle:active,
.filter:active,
.contact-link:active {
  transform: translateY(0) scale(0.98);
}
.theme-toggle {
  min-height: 38px;
  padding: 7px 12px;
  border-color: var(--line);
}
.filter {
  border-color: var(--line);
  padding: 9px 17px;
  min-height: 38px;
}

.filter.is-active span {
  color: inherit;
  opacity: 0.7;
}

.button-primary:focus-visible,
.theme-toggle:focus-visible,
.filter:focus-visible,
.contact-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* A clear introduction followed by one large, uncropped visual. */
.hero {
  min-height: min(780px, calc(100svh - 72px));
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: 1fr auto;
  gap: 44px 7%;
  padding-top: 74px;
  padding-bottom: 24px;
}
.hero-copy {
  padding-bottom: 0;
}
.hero-persona {
  margin-bottom: 50px;
  max-width: none;
}
.hero-persona img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}
.hero-persona strong {
  font-size: 15px;
}
.hero-persona > div span,
.hero-persona-location {
  font-size: 10px;
}
.hero-eyebrow {
  margin: 0 0 23px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.hero-eyebrow span {
  margin: 0 9px;
  color: var(--line);
}
.hero h1 {
  font-size: clamp(62px, 6.4vw, 94px);
  margin-bottom: 29px;
  line-height: 1.13;
  letter-spacing: -0.075em;
}
.hero h1 em {
  color: var(--blue) !important;
}
.hero-title-line {
  display: block;
  animation: title-enter 560ms var(--ease-out) both;
}
.hero-title-line:first-child {
  animation-delay: 150ms;
}
.hero-title-line:last-child {
  animation-delay: 230ms;
}
@keyframes title-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.hero-intro {
  font-size: 17px;
  line-height: 1.85;
  max-width: 510px;
}
.hero-actions {
  margin-top: 36px;
  gap: 28px;
}
.hero-showcase {
  align-self: center;
}
.hero-showcase-top {
  font-size: 10px;
  letter-spacing: 0.15em;
}
.hero-showcase-main {
  aspect-ratio: 1895/830;
}
.hero-showcase-main img {
  object-fit: contain;
}
.hero-showcase-caption {
  border-bottom: 0;
  padding: 17px 0 0;
}
.hero-showcase-caption strong {
  font-size: 16px;
}
.hero-showcase-caption div span {
  font-size: 12px;
}
.hero-showcase-mini {
  display: none;
}
.hero-bottom {
  font-size: 11px;
  padding-top: 17px;
}
.hero-copy > * {
  animation: hero-rise 720ms var(--ease-out) both;
}
.hero-copy > .hero-persona {
  animation-delay: 40ms;
}
.hero-copy > .hero-eyebrow {
  animation-delay: 100ms;
}
.hero-copy > h1 {
  animation: none;
}
.hero-copy > .hero-intro {
  animation-delay: 240ms;
}
.hero-copy > .hero-actions {
  animation-delay: 320ms;
}
.hero-showcase {
  animation: hero-rise 850ms var(--ease-out) 200ms both;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.section {
  padding: 128px 0;
}
.work-section {
  background: var(--paper);
}
.section-heading {
  margin-bottom: 42px;
  align-items: end;
}
.section-index {
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-bottom: 19px;
}
.section-heading h2,
.about-grid h2 {
  font-size: clamp(48px, 5.2vw, 72px);
  line-height: 1.16;
}
.section-lead {
  max-width: 390px;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 3px;
}
.section-lead small {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}
.filter-row {
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 20px;
}
.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px 28px;
}
.work-section .project,
.work-section .project-feature,
:root[data-theme="dark"] .work-section .project,
:root[data-theme="dark"] .work-section .project-feature {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
  isolation: auto;
  transform: none;
  border: 0;
  box-shadow: none;
}
.work-section .project[hidden],
.work-section .project-feature[hidden] {
  display: none;
}
.work-section .project::after {
  display: none;
}
.work-section .project:hover,
.work-section .project-feature:hover {
  background: transparent;
  transform: none;
}
.work-section .project-art,
:root[data-theme="dark"] .work-section .project-art {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
  transform: none;
  background: #e8ebed;
}
.work-section .project:hover .project-art {
  transform: none;
}
.work-section .project-top,
.work-section .project-feature .project-top {
  padding: 17px 0 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.work-section .project-content {
  display: grid;
  grid-template-columns: 37px 1fr;
  gap: 15px;
  align-items: start;
}
.work-section .project-number,
.work-section .project-feature .project-number {
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.55;
}
.work-section .project-content > div:last-child,
.work-section .project-feature .project-content > div:last-child {
  max-width: 100%;
}
.work-section .project-kicker,
.work-section .project-feature .project-kicker {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin: 0 0 7px;
}
.work-section .project h3 {
  font-size: clamp(30px, 3vw, 43px);
  margin: 0 0 11px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.work-section .project p:not(.project-kicker),
.work-section .project-feature p:not(.project-kicker) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.work-section .tags {
  margin-top: 17px;
  gap: 6px;
}
.work-section .tags span,
.work-section .project-feature .tags span {
  padding: 3px 9px;
  border-color: var(--line);
  color: var(--muted);
  font-size: 10px;
}
.work-section .project-feature {
  grid-column: 1/-1;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  grid-template-rows: auto 1fr;
  gap: 0 42px;
  align-items: stretch;
}
.work-section .project-feature .project-art {
  grid-column: 1;
  grid-row: 1/3;
  align-self: start;
}
.work-section .project-feature .project-top {
  grid-column: 2;
  grid-row: 1;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.work-section .project-feature .project-content {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  padding-bottom: 10px;
}
.work-section .project-feature h3 {
  font-size: clamp(34px, 3.5vw, 50px);
}

.visual-spotlight {
  margin: 102px 0 0;
  padding: 28px 0;
  min-height: 360px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
}
.spotlight-copy h3 {
  font-size: clamp(36px, 4vw, 55px);
}
.spotlight-index,
.spotlight-copy h3 em {
  color: var(--blue);
}
.spotlight-image img {
  object-fit: contain;
  height: auto;
}
.spotlight-tags span {
  color: var(--muted);
}
.artwork-gallery {
  margin-top: 116px;
}
.gallery-heading {
  align-items: start;
}
.gallery-heading h3 {
  font-size: clamp(31px, 3vw, 42px);
}
.gallery-landscape {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.gallery-grid figure:last-child:nth-child(odd) {
  grid-column: 1/-1;
}

.about-section {
  background: var(--page);
}
.about-grid {
  grid-template-columns: 0.95fr 1.05fr;
  gap: 8%;
}
.about-content {
  padding-top: 34px;
}
.about-statement {
  font-size: clamp(24px, 2.4vw, 34px);
}
.capabilities {
  margin-top: 46px;
}
.tools-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 8%;
  margin-top: 80px;
  padding-top: 31px;
  border-top: 1px solid var(--line);
}
.tools-heading h3 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.tools-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.tools-groups {
  display: grid;
  gap: 26px;
}
.tools-group h4 {
  margin: 0 0 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.tools-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tools-group li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.tools-context {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.experience-section {
  background: var(--paper);
}
.timeline li {
  grid-template-columns: 210px 1fr 90px;
  padding: 29px 0;
}
.contact-section {
  background: #161a1e;
  padding: 120px 0;
}
.contact-inner h2 {
  font-size: clamp(56px, 7vw, 100px);
}
.contact-inner h2 em {
  color: #a9bdd4;
}
.contact-link {
  border-radius: 100px;
  padding: 14px 21px;
  gap: 38px;
  font-size: clamp(18px, 2vw, 26px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.contact-link::before {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.18), transparent 55%);
}
.site-footer {
  background: #161a1e;
}

/* Motion resembles a calm editorial reveal: opacity and transform only. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.project.reveal {
  transform: translate3d(0, 12px, 0);
  transition-duration: 450ms;
}
.project.reveal.is-visible {
  transform: translate3d(0, 0, 0);
}
.project.reveal .project-art {
  transform: scale(1.02);
  transition: transform 600ms var(--ease-out);
}
.project.reveal.is-visible .project-art {
  transform: scale(1);
}
.project:nth-child(2n).reveal {
  transition-delay: 80ms;
}
.hero-showcase-main img,
.spotlight-image img {
  transition: transform 450ms var(--ease-out);
}
.hero-showcase-main:hover img,
.spotlight-image:hover img {
  transform: scale(1.015);
}

@media (max-width: 1050px) {
  .wrap {
    width: min(calc(100% - 64px), 1280px);
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 34px 4%;
  }
  .hero h1 {
    font-size: clamp(54px, 6.7vw, 78px);
  }
  .hero-intro {
    font-size: 15px;
  }
  .work-section .project-feature {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0 28px;
  }
  .visual-spotlight {
    gap: 36px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 40px), 1280px);
  }
  .header-inner {
    height: 62px;
    gap: 18px;
  }
  .brand span:last-child {
    display: none;
  }
  .brand-symbol {
    width: 35px;
    height: 35px;
  }
  .nav {
    margin-left: auto;
    gap: 18px;
  }
  .nav a {
    font-size: 12px;
  }
  .theme-toggle {
    min-height: 35px;
    padding: 6px 10px;
  }
  .theme-label {
    display: none;
  }
  html {
    scroll-padding-top: 74px;
  }
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 39px;
    padding-top: 48px;
    padding-bottom: 23px;
  }
  .hero-persona {
    margin-bottom: 37px;
  }
  .hero-persona img {
    width: 51px;
    height: 51px;
  }
  .hero-persona-location {
    display: none;
  }
  .hero-eyebrow {
    margin-bottom: 17px;
  }
  .hero h1 {
    font-size: clamp(49px, 10.8vw, 75px);
    margin-bottom: 23px;
  }
  .hero-intro {
    font-size: 15px;
  }
  .hero-actions {
    margin-top: 26px;
  }
  .hero-showcase {
    width: 100%;
  }
  .hero-showcase-caption {
    padding-top: 13px;
  }
  .hero-bottom {
    width: 100%;
  }
  .section {
    padding: 88px 0;
  }
  .section-heading {
    display: block;
    margin-bottom: 34px;
  }
  .section-heading h2,
  .about-grid h2 {
    font-size: clamp(46px, 9vw, 62px);
  }
  .section-lead {
    margin: 19px 0 0;
    max-width: 540px;
  }
  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
  }
  .filter-row::-webkit-scrollbar {
    display: none;
  }
  .filter {
    flex: none;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 43px;
  }
  .work-section .project-feature {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0;
  }
  .work-section .project-feature .project-art,
  .work-section .project-feature .project-top,
  .work-section .project-feature .project-content {
    grid-column: 1;
    grid-row: auto;
  }
  .work-section .project-feature .project-top {
    padding: 17px 0 10px;
  }
  .work-section .project-feature .project-content {
    padding-bottom: 0;
  }
  .work-section .project h3,
  .work-section .project-feature h3 {
    font-size: clamp(31px, 6vw, 41px);
  }
  .visual-spotlight {
    margin-top: 80px;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 26px 0;
  }
  .spotlight-image {
    grid-row: 1;
  }
  .spotlight-copy {
    grid-row: 2;
    padding: 0 0 5px;
  }
  .spotlight-index {
    margin-bottom: 15px;
  }
  .spotlight-copy h3 {
    font-size: clamp(37px, 7vw, 50px);
  }
  .artwork-gallery {
    margin-top: 85px;
  }
  .gallery-heading {
    display: block;
  }
  .gallery-description {
    margin-top: 15px;
    max-width: 550px;
  }
  .gallery-landscape,
  .gallery-square,
  .gallery-portrait {
    grid-template-columns: 1fr;
  }
  .gallery-grid figure:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .about-content {
    padding-top: 0;
  }
  .tools-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 58px;
  }
  .tools-groups {
    gap: 25px;
  }
  .timeline li {
    grid-template-columns: 1fr auto;
    gap: 6px;
    padding: 25px 0;
  }
  .timeline .time {
    grid-column: 1/3;
  }
  .timeline li > div {
    grid-column: 1;
  }
  .time-tag {
    grid-column: 2;
    grid-row: 2;
  }
  .contact-section {
    padding: 90px 0;
  }
  .contact-inner h2 {
    font-size: clamp(49px, 9.5vw, 75px);
  }
}
@media (max-width: 430px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header-inner {
    gap: 10px;
  }
  .nav {
    gap: 12px;
  }
  .nav a {
    font-size: 11px;
  }
  .hero h1 {
    font-size: clamp(46px, 11.5vw, 54px);
  }
  .hero-actions {
    gap: 18px;
  }
  .button-primary {
    min-width: 160px;
  }
  .work-section .project-content {
    grid-template-columns: 29px 1fr;
    gap: 12px;
  }
  .work-section .project-number {
    font-size: 18px;
  }
  .work-section .project h3 {
    font-size: 30px;
  }
  .contact-link {
    font-size: 17px;
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-copy > *,
  .hero-showcase,
  .hero-title-line {
    animation: none;
  }
  .reveal,
  .project.reveal .project-art,
  .button-primary,
  .theme-toggle,
  .filter,
  .contact-link,
  .hero-showcase-main img,
  .spotlight-image img {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
  .button-primary:hover,
  .theme-toggle:hover,
  .filter:hover,
  .contact-link:hover,
  .hero-showcase-main:hover img,
  .spotlight-image:hover img {
    transform: none;
  }
}

/* Project posters: keep the imagery as the canvas and place case information on a readable mask. */
.work-section .project,
.work-section .project-feature,
:root[data-theme="dark"] .work-section .project,
:root[data-theme="dark"] .work-section .project-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  padding: 25px 29px 28px;
  overflow: hidden;
  background: #172029;
  color: #fff;
  border: 0;
}
.work-section .project-feature,
:root[data-theme="dark"] .work-section .project-feature {
  grid-column: 1/-1;
  min-height: 475px;
  padding: 31px 35px 36px;
}
.work-section .project[hidden],
.work-section .project-feature[hidden] {
  display: none;
}
.work-section .project:hover,
.work-section .project-feature:hover,
:root[data-theme="dark"] .work-section .project:hover,
:root[data-theme="dark"] .work-section .project-feature:hover {
  background: #172029;
}
.work-section .project-art,
:root[data-theme="dark"] .work-section .project-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(0.85);
  background: #172029;
}
.work-section .project::after,
.work-section .project-feature::after,
:root[data-theme="dark"] .work-section .project::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 21, 0.52) 0%,
    rgba(8, 14, 21, 0.08) 30%,
    rgba(8, 14, 21, 0.66) 62%,
    rgba(8, 14, 21, 0.94) 100%
  );
}
.work-section .project-feature::after,
:root[data-theme="dark"] .work-section .project-feature::after {
  background:
    linear-gradient(
      90deg,
      rgba(8, 14, 21, 0.94) 0%,
      rgba(8, 14, 21, 0.82) 31%,
      rgba(8, 14, 21, 0.42) 58%,
      rgba(8, 14, 21, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(8, 14, 21, 0.45), transparent 65%);
}
.work-section .project-top,
.work-section .project-feature .project-top,
:root[data-theme="dark"] .work-section .project-top,
:root[data-theme="dark"] .work-section .project-feature .project-top {
  position: relative;
  z-index: 1;
  grid-column: auto;
  grid-row: auto;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
}
.work-section .project-content,
.work-section .project-feature .project-content {
  position: relative;
  z-index: 1;
  grid-column: auto;
  grid-row: auto;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  align-items: start;
  align-self: auto;
  margin-top: auto;
  padding: 0;
}
.work-section .project-content > div:last-child {
  max-width: 470px;
}
.work-section .project-feature .project-content > div:last-child {
  max-width: 580px;
}
.work-section .project-number,
.work-section .project-feature .project-number,
:root[data-theme="dark"] .work-section .project-number,
:root[data-theme="dark"] .work-section .project-feature .project-number {
  color: rgba(255, 255, 255, 0.56);
  font-size: 43px;
  line-height: 1;
  font-weight: 500;
}
.work-section .project-feature .project-number {
  font-size: 58px;
}
.work-section .project-kicker,
.work-section .project-feature .project-kicker,
:root[data-theme="dark"] .work-section .project-kicker,
:root[data-theme="dark"] .work-section .project-feature .project-kicker {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  margin-bottom: 10px;
}
.work-section .project h3,
.work-section .project-feature h3 {
  color: #fff;
  font-size: clamp(31px, 3.2vw, 44px);
  margin-bottom: 12px;
}
.work-section .project-feature h3 {
  font-size: clamp(43px, 4.4vw, 62px);
}
.work-section .project p:not(.project-kicker),
.work-section .project-feature p:not(.project-kicker),
:root[data-theme="dark"] .work-section .project p:not(.project-kicker),
:root[data-theme="dark"] .work-section .project-feature p:not(.project-kicker) {
  color: rgba(255, 255, 255, 0.87);
  font-size: 14px;
  line-height: 1.72;
}
.work-section .project .tags span,
.work-section .project-feature .tags span,
:root[data-theme="dark"] .work-section .project .tags span,
:root[data-theme="dark"] .work-section .project-feature .tags span {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.45);
}
.work-section .project-grid {
  gap: 18px;
}
.work-section .project.reveal .project-art {
  transform: scale(1.02);
  transition: transform 600ms var(--ease-out);
}
.work-section .project.reveal.is-visible .project-art {
  transform: scale(1);
}
.work-section .project.reveal.is-visible:hover .project-art {
  transform: scale(1.02);
  transition-duration: 380ms;
}
.work-section .project::after,
.work-section .project-feature::after {
  transition: opacity 380ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .work-section .project:hover::after,
  .work-section .project-feature:hover::after {
    opacity: 0.9;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .work-section .project,
  :root:not([data-theme]) .work-section .project-feature {
    display: flex;
    background: #172029;
    color: #fff;
  }
  :root:not([data-theme]) .work-section .project-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    opacity: 1;
    filter: saturate(0.85);
  }
  :root:not([data-theme]) .work-section .project::after {
    display: block;
    background: linear-gradient(
      180deg,
      rgba(8, 14, 21, 0.52) 0%,
      rgba(8, 14, 21, 0.08) 30%,
      rgba(8, 14, 21, 0.66) 62%,
      rgba(8, 14, 21, 0.94) 100%
    );
  }
  :root:not([data-theme]) .work-section .project-feature::after {
    background:
      linear-gradient(
        90deg,
        rgba(8, 14, 21, 0.94) 0%,
        rgba(8, 14, 21, 0.82) 31%,
        rgba(8, 14, 21, 0.42) 58%,
        rgba(8, 14, 21, 0.12) 100%
      ),
      linear-gradient(0deg, rgba(8, 14, 21, 0.45), transparent 65%);
  }
  :root:not([data-theme]) .work-section .project-top,
  :root:not([data-theme]) .work-section .project-kicker,
  :root:not([data-theme]) .work-section .project p:not(.project-kicker) {
    color: rgba(255, 255, 255, 0.87);
  }
  :root:not([data-theme]) .work-section .project-number {
    color: rgba(255, 255, 255, 0.56);
  }
  :root:not([data-theme]) .work-section .project .tags span {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.45);
  }
}
@media (max-width: 760px) {
  .work-section .project-grid {
    gap: 13px;
  }
  .work-section .project,
  .work-section .project-feature,
  :root[data-theme="dark"] .work-section .project,
  :root[data-theme="dark"] .work-section .project-feature {
    grid-column: auto;
    min-height: 390px;
    padding: 22px;
  }
  .work-section .project-feature::after,
  :root[data-theme="dark"] .work-section .project-feature::after {
    background: linear-gradient(
      180deg,
      rgba(8, 14, 21, 0.49) 0%,
      rgba(8, 14, 21, 0.08) 25%,
      rgba(8, 14, 21, 0.73) 58%,
      rgba(8, 14, 21, 0.95) 100%
    );
  }
  .work-section .project-content,
  .work-section .project-feature .project-content {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }
  .work-section .project-number,
  .work-section .project-feature .project-number {
    font-size: 32px;
  }
  .work-section .project h3,
  .work-section .project-feature h3 {
    font-size: clamp(30px, 6vw, 39px);
  }
}
@media (max-width: 430px) {
  .work-section .project,
  .work-section .project-feature,
  :root[data-theme="dark"] .work-section .project,
  :root[data-theme="dark"] .work-section .project-feature {
    min-height: 390px;
    padding: 19px;
  }
  .work-section .project-content,
  .work-section .project-feature .project-content {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 10px;
  }
  .work-section .project-number,
  .work-section .project-feature .project-number {
    font-size: 25px;
  }
  .work-section .project h3,
  .work-section .project-feature h3 {
    font-size: 29px;
  }
  .work-section .project p:not(.project-kicker) {
    font-size: 13px;
    line-height: 1.6;
  }
  .work-section .tags {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project.reveal,
  .project.reveal.is-visible {
    transform: none;
    transition: none;
  }
  .work-section .project.reveal .project-art,
  .work-section .project.reveal.is-visible .project-art,
  .work-section .project.reveal.is-visible:hover .project-art {
    transform: none;
    transition: none;
  }
  .work-section .project::after,
  .work-section .project-feature::after {
    transition: none;
  }
}
.work-section .project[hidden],
:root[data-theme="dark"] .work-section .project[hidden],
:root:not([data-theme]) .work-section .project[hidden] {
  display: none;
}

/* Style 2: editorial name and a lightweight, draggable portfolio badge. */
.brand span:last-child {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.hero-v2 {
  display: block;
  width: 100%;
  min-height: calc(100svh - 72px);
  padding: 0 0 20px;
  overflow: hidden;
}
.hero-v2-meta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-top: 36px;
}
.hero-v2-meta p {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.hero-v2-meta p:last-child {
  text-align: right;
}
.hero-v2-meta strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.hero-v2-meta span {
  color: var(--muted);
  letter-spacing: 0;
}
.hero-v2-stage {
  position: relative;
  height: clamp(480px, 59svh, 610px);
  overflow: hidden;
}
.hero-v2 h1 {
  position: absolute;
  z-index: 1;
  top: 55%;
  left: 50%;
  width: max-content;
  margin: 0;
  transform: translate(-50%, -50%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(116px, 15.5vw, 250px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--ink);
  animation: hero-name-in 650ms var(--ease-out) both;
}
@keyframes hero-name-in {
  from {
    opacity: 0;
    transform: translate(-50%, -44%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.badge-rig {
  position: absolute;
  z-index: 2;
  top: -54px;
  left: 50%;
  width: 270px;
  height: 520px;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  animation: badge-fade 650ms ease 120ms both;
}
.badge-rig.is-dragging {
  cursor: grabbing;
}
@keyframes badge-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.badge-strap {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 270px;
  height: 215px;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(8px 7px 6px rgba(0, 0, 0, 0.14));
}
/* The poster is a capture of the settled 3D scene at matching viewport sizes. */
.badge-enhanced .badge-rig {
  opacity: 0;
  pointer-events: none;
  animation: none;
}
.badge-poster {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: none;
  pointer-events: none;
}
.badge-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.badge-enhanced .badge-poster {
  display: block;
}
.badge-enhanced .badge-3d-ready .badge-poster {
  display: none;
}
.strap-base,
.strap-weave,
.strap-stitch {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.strap-base {
  stroke: url(#strap-fabric);
  stroke-width: 12;
}
.strap-weave {
  stroke: url(#strap-weave);
  stroke-width: 10.4;
  opacity: 0.68;
}
.strap-stitch {
  stroke: #89989d;
  stroke-width: 0.42;
  stroke-dasharray: 1 2.7;
  opacity: 0.35;
}
.strap-word {
  fill: #a8b6b9;
  stroke: #152127;
  stroke-width: 0.15px;
  paint-order: stroke fill;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.48px;
  opacity: 0.75;
  pointer-events: none;
}
.badge-joint {
  filter: drop-shadow(1px 2px 1px rgba(23, 32, 39, 0.2));
}
.badge-card {
  position: absolute;
  top: 172px;
  left: 12px;
  width: 246px;
  height: 329px;
  padding: 8px;
  border: 1px solid rgba(112, 126, 137, 0.3);
  border-radius: 16px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.025) 28%,
    rgba(255, 255, 255, 0.05) 76%,
    rgba(190, 205, 211, 0.025)
  );
  box-shadow:
    0 16px 38px rgba(15, 25, 36, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-origin: 50% 0;
  will-change: transform;
}
.badge-shell-rim {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(239, 246, 248, 0.32);
  border-radius: 13px;
  box-shadow: inset 0 0 0 0.5px rgba(103, 121, 131, 0.12);
  pointer-events: none;
}
.badge-weld {
  position: absolute;
  top: 33px;
  left: 8px;
  right: 8px;
  height: 3px;
  border-top: 1px solid rgba(239, 245, 246, 0.34);
  border-bottom: 1px solid rgba(99, 113, 120, 0.14);
  pointer-events: none;
}
.badge-card::before,
.badge-card::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(107, 119, 133, 0.42);
  border-radius: 50%;
  box-shadow: inset 0 1px 3px rgba(80, 94, 110, 0.12);
}
.badge-card::before {
  left: 25px;
}
.badge-card::after {
  right: 25px;
}
:root[data-theme="dark"] .badge-card::before,
:root[data-theme="dark"] .badge-card::after {
  border-color: rgba(218, 230, 234, 0.58);
  box-shadow:
    inset 0 1px 3px rgba(15, 21, 26, 0.34),
    0 0 0 1px rgba(20, 28, 32, 0.12);
}
.badge-hole {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 34px;
  height: 8px;
  border: 1px solid rgba(91, 106, 115, 0.38);
  border-radius: 100px;
  transform: translateX(-50%);
  background: rgba(237, 242, 244, 0.3);
  box-shadow:
    inset 0 1px 2px rgba(59, 77, 87, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.42);
}
.badge-hole::after {
  content: "";
  position: absolute;
  inset: 1px 3px;
  border-radius: inherit;
  border-top: 1px solid rgba(96, 112, 122, 0.35);
}
.badge-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100% - 37px);
  margin-top: 37px;
  padding: 15px 15px 13px;
  border: 1px solid #dfe2e3;
  border-radius: var(--card-radius);
  background: #fdfdfb;
  color: #111317;
  box-shadow: 0 2px 6px rgba(24, 32, 42, 0.07);
}
.badge-paper-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #767a82;
}
.badge-paper > strong {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0;
}
.badge-paper > strong em {
  position: relative;
  margin-top: -7px;
  font-size: 33px;
  font-style: normal;
  color: #1f39e8;
}
.badge-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 72px;
  margin-top: auto;
  padding: 13px 48px 0 0;
  border-top: 1px solid #d9dcdf;
}
.badge-meta span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-style: italic;
  color: #7a8087;
}
.badge-meta b {
  font-size: 8px;
  line-height: 1.15;
  white-space: nowrap;
}
.badge-meta small {
  font-size: 7px;
  color: #687078;
  white-space: nowrap;
}
.badge-email {
  width: max-content;
  max-width: 100%;
  margin-top: 2px;
  color: #243bf0;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.badge-email:focus-visible,
.badge-tag:focus-visible {
  outline: 2px solid #243bf0;
  outline-offset: 2px;
}
.badge-portrait-button {
  position: absolute;
  right: 0;
  bottom: -22px;
  width: 82px;
  height: 82px;
  padding: 0;
  border: 1px solid #d8dcdf;
  border-radius: 5px;
  background: #eef0f1;
  overflow: hidden;
  cursor: zoom-in;
}
.badge-portrait-button:focus-visible {
  outline: 2px solid #1f39e8;
  outline-offset: 3px;
}
.badge-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 21%;
  filter: grayscale(0.3);
  transition:
    filter 180ms ease,
    transform 220ms ease;
}
.badge-portrait-button:hover .badge-portrait {
  filter: grayscale(0);
  transform: scale(1.045);
}
.badge-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  padding: 0 5px;
  border-radius: 2px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.badge-tag:nth-child(1) {
  background: #121620;
  color: #fff;
}
.badge-tag:nth-child(2) {
  background: #1f39e8;
  color: #fff;
}
.badge-tag:nth-child(3) {
  border: 1px solid #1f39e8;
  color: #1f39e8;
}
.portrait-viewer {
  width: max-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 52px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
  animation: portrait-open 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.portrait-viewer::backdrop {
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.portrait-viewer > img {
  display: block;
  width: min(88vw, 520px);
  height: auto;
  max-height: min(62svh, 520px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}
.portrait-viewer > p {
  margin: 13px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
}
.portrait-viewer > p span {
  color: #aeb8c2;
}
.portrait-contact {
  display: grid;
  gap: 7px;
  width: min(88vw, 520px);
  margin-top: 14px;
}
.portrait-contact > a,
.portrait-contact > button {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.portrait-contact strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portrait-contact span:last-child {
  color: #bdc8d6;
  text-align: right;
  white-space: nowrap;
}
.portrait-contact > a:hover,
.portrait-contact > button:hover {
  background: rgba(255, 255, 255, 0.17);
}
.portrait-contact > a:focus-visible,
.portrait-contact > button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.portrait-copy-status {
  display: block;
  min-height: 19px;
  margin-top: 6px;
  color: #dce6f1;
  font-size: 11px;
  text-align: center;
}
@media (max-width: 390px) {
  .portrait-contact > a,
  .portrait-contact > button {
    grid-template-columns: 72px minmax(0, 1fr) 42px;
    gap: 5px;
    padding-inline: 9px;
  }
  .portrait-contact strong {
    font-size: 12px;
  }
  .portrait-contact span:first-child {
    white-space: nowrap;
  }
}
.portrait-viewer-close {
  position: absolute;
  top: -49px;
  right: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 39, 48, 0.58);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
}
.portrait-viewer-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
body.portrait-open {
  overflow: hidden;
}
@keyframes portrait-open {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.badge-hint {
  position: absolute;
  right: max(48px, calc((100vw - 1280px) / 2));
  bottom: 37px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero-v2-footer {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.72fr);
  align-items: end;
  gap: 8%;
  padding-top: 12px;
}
.hero-v2-label {
  margin: 0 0 17px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.hero-v2-footer h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.055em;
}
.hero-v2-footer h2 em {
  font-style: normal;
  color: var(--blue);
}
.hero-v2-cn {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.hero-v2-summary > p {
  max-width: 480px;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.6;
}
.hero-v2-summary > p[lang] {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.hero-v2 .hero-actions {
  margin-top: 23px;
  gap: 24px;
}
.hero-v2 .button-primary {
  min-width: 168px;
}
.hero-v2 .hero-bottom {
  width: min(calc(100% - 96px), 1280px);
  margin-top: 48px;
  padding-top: 16px;
}
.section-translation {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}
.section-lead small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.about-content > p[lang] {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.contact-inner .section-translation {
  color: #b9c2cc;
  margin: 12px 0 18px;
}
.filter small {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 400;
  color: inherit;
  opacity: 0.65;
}
.work-section .project h3 span,
.work-section .project-feature h3 span {
  display: block;
  margin-top: 5px;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.8);
}
.spotlight-copy h3 span {
  display: block;
  margin-top: 11px;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--muted);
}
.gallery-heading h3 span {
  display: block;
  margin-top: 7px;
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--muted);
}
.work-section .project-description small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1050px) {
  .hero-v2 h1 {
    font-size: clamp(105px, 16vw, 185px);
  }
  .hero-v2-footer {
    grid-template-columns: 1fr 1fr;
    gap: 5%;
  }
  .hero-v2-footer h2 {
    font-size: clamp(42px, 5vw, 60px);
  }
}
@media (max-width: 760px) {
  .brand span:last-child {
    display: none;
  }
  .hero-v2 {
    display: block;
    min-height: 0;
    padding: 0 0 23px;
  }
  .hero-v2-meta {
    padding-top: 31px;
  }
  .hero-v2-meta p,
  .hero-v2-meta strong {
    font-size: 9px;
  }
  .hero-v2-stage {
    height: 440px;
    min-height: 0;
  }
  .hero-v2 h1 {
    top: 58%;
    font-size: clamp(92px, 20vw, 140px);
  }
  .badge-rig {
    scale: 0.84;
    top: -52px;
  }
  .badge-hint {
    right: 20px;
    bottom: 12px;
    font-size: 9px;
  }
  .hero-v2-footer {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 10px;
  }
  .hero-v2-footer h2 {
    font-size: clamp(44px, 9vw, 62px);
  }
  .hero-v2-summary > p {
    font-size: 15px;
  }
  .hero-v2 .hero-bottom {
    width: min(calc(100% - 40px), 1280px);
    margin-top: 37px;
  }
  .section-heading h2,
  .about-grid h2 {
    font-size: clamp(43px, 8vw, 62px);
  }
}
@media (max-width: 430px) {
  .nav {
    gap: 11px;
  }
  .nav a {
    font-size: 10px;
  }
  .hero-v2-meta {
    gap: 14px;
  }
  .hero-v2-meta p {
    max-width: 48%;
  }
  .hero-v2-stage {
    height: 408px;
  }
  .hero-v2 h1 {
    font-size: 86px;
  }
  .badge-rig {
    scale: 0.76;
  }
  .badge-hint {
    display: none;
  }
  .hero-v2-footer h2 {
    font-size: 44px;
  }
  .hero-v2 .hero-bottom {
    width: calc(100% - 36px);
  }
  .nav a {
    font-size: 11px;
    padding-block: 9px;
  }
  .work-section .project-description small {
    font-size: 11px;
    line-height: 1.45;
  }
}
@media (max-width: 600px) {
  .hero-v2 {
    padding-bottom: 12px;
  }
  .hero-v2-meta {
    padding-top: 18px;
  }
  .hero-v2-stage {
    height: clamp(240px, 35svh, 305px);
  }
  .hero-v2 h1 {
    top: 57%;
    font-size: clamp(46px, 12vw, 68px);
    letter-spacing: 0;
  }
  .badge-rig {
    top: -51px;
    scale: 0.64;
  }
  .hero-v2-footer {
    gap: 12px;
    padding-top: 4px;
  }
  .hero-v2-label {
    margin-bottom: 9px;
  }
  .hero-v2-footer h2 {
    font-size: clamp(36px, 9vw, 44px);
  }
  .hero-v2-cn {
    margin-top: 7px;
  }
  .hero-v2-summary > p {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.48;
  }
  .hero-v2-summary > p[lang] {
    font-size: 12px;
    line-height: 1.5;
  }
  .hero-v2 .hero-actions {
    margin-top: 12px;
  }
  .hero-v2 .hero-bottom {
    margin-top: 17px;
    padding-top: 11px;
  }
  .filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .filter {
    width: 100%;
    justify-content: center;
  }
  .work-section .project-content,
  .work-section .project-feature .project-content {
    display: block;
  }
  .work-section .project-number,
  .work-section .project-feature .project-number,
  :root[data-theme="dark"] .work-section .project-number,
  :root[data-theme="dark"] .work-section .project-feature .project-number {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.9);
  }
}
@media (max-width: 600px) {
  .hero-v2 {
    position: relative;
    height: 100svh;
    min-height: 0;
    padding: 0;
  }
  .hero-v2-meta {
    position: relative;
    z-index: 3;
    display: block;
    padding-top: 20px;
  }
  .hero-v2-meta p {
    max-width: none;
  }
  .hero-v2-meta p:last-child {
    margin-top: 20px;
  }
  .hero-v2-stage {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  .hero-v2 h1 {
    top: auto;
    bottom: 24px;
    left: 18px;
    width: calc(100% - 36px);
    transform: none;
    font-size: clamp(67px, 20vw, 88px);
    line-height: 0.89;
    white-space: normal;
    animation: mobile-name-in 600ms var(--ease-out) both;
  }
  .hero-v2 h1 span {
    display: block;
  }
  .badge-rig {
    top: -82px;
    left: calc(50% + 54px);
    scale: 1.4;
  }
  .badge-strap {
    display: block;
  }
  .badge-strap .strap-base {
    stroke-width: 16px;
  }
  .badge-strap .strap-weave {
    stroke-width: 13px;
  }
  .hero-v2-footer,
  .hero-v2 .hero-bottom,
  .badge-hint {
    display: none;
  }
  @keyframes mobile-name-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  .badge-rig {
    top: -4px;
    left: calc(50% - 8px);
    scale: 0.94;
  }
  .hero-v2 h1 {
    bottom: 12px;
    font-size: clamp(56px, 18vw, 72px);
  }
}
@media (max-width: 360px) and (max-height: 620px) {
  .hero-v2 h1 {
    font-size: clamp(48px, 15.5vw, 56px);
  }
}
/* The top line reads like the reference editorial introduction; the theme control floats independently. */
.hero-v2 {
  position: relative;
}
.hero-v2-meta strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.hero-v2-meta p {
  font-size: 11px;
  letter-spacing: 0;
}
.hero-v2-meta p:last-child {
  padding-top: 43px;
}
.hero-v2-meta a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-v2-meta a:hover {
  color: var(--blue);
}
@media (min-width: 601px) {
  .hero-v2 {
    height: 100svh;
    min-height: 620px;
    padding: 0;
  }
  .hero-v2-meta {
    position: relative;
    z-index: 3;
    padding-top: 38px;
  }
  .hero-v2-stage {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .hero-v2 h1 {
    top: 70%;
    font-size: clamp(100px, 16.5vw, 420px);
  }
  .badge-rig {
    top: 15px;
    left: calc(50% + 34px);
    scale: 1.25;
  }
  .hero-v2-footer,
  .hero-v2 .hero-bottom {
    display: none;
  }
  .badge-hint {
    bottom: 26px;
  }
}
@media (min-width: 601px) and (max-height: 700px) {
  .badge-rig {
    top: -24px;
    left: 50%;
    scale: 1;
  }
  .hero-v2 h1 {
    top: 70%;
    font-size: clamp(130px, 17vw, 220px);
  }
}
@media (min-width: 601px) and (max-width: 900px) and (min-height: 900px) {
  .hero-v2 h1 {
    top: 62%;
    font-size: clamp(112px, 15vw, 145px);
  }
}
@media (min-width: 1200px) {
  .hero-v2-meta {
    width: 100%;
    max-width: none;
    padding-inline: clamp(48px, 5vw, 128px);
  }
  .badge-hint {
    right: clamp(48px, 5vw, 128px);
  }
}
@media (min-width: 1600px) {
  .hero-v2 h1 {
    top: 75%;
    font-size: clamp(270px, 16.5vw, 420px);
  }
  .badge-rig {
    top: 24px;
    scale: 1.5;
  }
}
@media (min-width: 2200px) {
  .badge-rig {
    top: 28px;
    scale: 1.8;
  }
}
@media (max-width: 600px) {
  .hero-v2-meta {
    padding-top: 39px;
  }
  .hero-v2-meta strong {
    font-size: 16px;
    line-height: 1.16;
  }
  .hero-v2-meta p {
    font-size: 11px;
  }
  .hero-v2-meta p:first-child {
    max-width: 135px;
  }
  .hero-v2-meta p:last-child {
    max-width: 150px;
    margin: 3px 0 0 auto;
    padding-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2 h1,
  .badge-rig {
    animation: none;
  }
  .badge-card {
    will-change: auto;
  }
  .badge-portrait,
  .portrait-viewer {
    animation: none;
    transition: none;
  }
}

/* A single physical scene supplies geometry, motion and all cast shadows. */
.badge-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.badge-hitbox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.badge-hitbox[data-cursor="zoom"] {
  cursor: zoom-in;
}
.badge-hitbox[data-cursor="link"] {
  cursor: pointer;
}
.badge-hitbox.is-dragging {
  cursor: grabbing;
}
.badge-3d-ready .badge-rig {
  opacity: 0 !important;
  pointer-events: none;
  animation: none;
}
.badge-3d-ready .badge-rig * {
  pointer-events: none;
}
.badge-keyboard-focus .badge-hitbox {
  outline: 2px solid #263df0;
  outline-offset: 4px;
}

/* One 10px radius across controls and image surfaces, based on the badge insert. */
.skip-link,
.brand-symbol,
.button,
.theme-toggle,
.filter,
.contact-link,
.badge-portrait-button,
.badge-tag,
.portrait-viewer-close,
.portrait-contact > a,
.portrait-contact > button,
.tools-group li,
.tags span,
.spotlight-tags span {
  border-radius: var(--card-radius);
}
.hero-persona img,
.badge-portrait,
.portrait-viewer > img,
.work-section .project,
.work-section .project-art,
.visual-spotlight,
.spotlight-image,
.spotlight-image img,
.artwork-gallery .gallery-grid figure img {
  border-radius: var(--card-radius);
}

/* Complete compositions: one shared baseline, no mixed-ratio rows or image crop. */
.artwork-gallery .gallery-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}
.artwork-gallery .gallery-grid figure {
  min-width: 0;
  margin: 0;
  grid-column: 1/-1;
}
.artwork-gallery .gallery-grid figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.artwork-gallery .gallery-grid figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.gallery-group + .gallery-group {
  margin-top: 56px;
}
.timeline li {
  grid-template-columns: 180px minmax(0, 1fr) 90px;
  gap: 24px;
  padding: 25px 0;
}
.experience-section .section-heading {
  margin-bottom: 32px;
}

/* Liquid glass: optical edges and translucent body; no continuously running effect. */
:root {
  --hero-blue: #243bf0;
  --glass-duration: 180ms;
}
.contact-inner h2 em {
  color: var(--hero-blue);
}
.contact-section {
  background: var(--page);
  color: var(--ink);
}
.contact-section .section-index,
.contact-section p {
  color: var(--muted);
}
.contact-section h2 {
  color: var(--ink);
}
:is(
  .button,
  .theme-toggle,
  .filter,
  .contact-link,
  .portrait-viewer-close,
  .portrait-contact > a,
  .portrait-contact > button
) {
  --control-tint: rgba(255, 255, 255, 0.12);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(140, 150, 164, 0.28);
  border-radius: var(--card-radius);
  --control-surface:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.015) 55%,
      rgba(255, 255, 255, 0.035)
    ),
    var(--control-tint);
  background: var(--control-surface);
  color: var(--ink);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 16px rgba(12, 18, 30, 0.08);
  transition:
    transform var(--glass-duration) var(--ease-out),
    box-shadow var(--glass-duration) ease,
    background-color var(--glass-duration) ease;
}
:is(
  .button,
  .theme-toggle,
  .filter,
  .contact-link,
  .portrait-viewer-close,
  .portrait-contact > a,
  .portrait-contact > button
)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.045),
    transparent 32% 80%,
    rgba(255, 255, 255, 0.02)
  );
}
:is(
  .button,
  .theme-toggle,
  .filter,
  .contact-link,
  .portrait-viewer-close,
  .portrait-contact > a,
  .portrait-contact > button
)::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: none;
}
.filter.is-active {
  --control-tint: rgba(36, 59, 240, 0.86);
  color: #fff;
  border-color: var(--hero-blue);
  font-weight: 700;
}
.filter.is-active span {
  opacity: 1;
}
.contact-link {
  color: var(--ink);
}
.portrait-viewer-close,
.portrait-contact > a,
.portrait-contact > button {
  --control-tint: rgba(31, 38, 49, 0.32);
  color: #fff;
}
:root[data-theme="dark"] :is(.button, .theme-toggle, .filter, .contact-link) {
  --control-tint: rgba(24, 29, 39, 0.2);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.16);
}
:root[data-theme="dark"] .filter.is-active {
  --control-tint: rgba(36, 59, 240, 0.86);
  color: #fff;
  border-color: var(--hero-blue);
}
@media (hover: hover) {
  :is(
    .button,
    .theme-toggle,
    .filter,
    .contact-link,
    .portrait-viewer-close,
    .portrait-contact > a,
    .portrait-contact > button
  ):hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 6px 20px rgba(12, 18, 30, 0.12);
  }
}
:is(
  .button,
  .theme-toggle,
  .filter,
  .contact-link,
  .portrait-viewer-close,
  .portrait-contact > a,
  .portrait-contact > button
):active {
  transform: scale(0.98);
  transition-duration: 90ms;
}
:is(
  .button,
  .theme-toggle,
  .filter,
  .contact-link,
  .portrait-viewer-close,
  .portrait-contact > a,
  .portrait-contact > button
):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
:is(
  .button,
  .theme-toggle,
  .filter,
  .contact-link,
  .portrait-viewer-close,
  .portrait-contact > a,
  .portrait-contact > button
):disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 600px) {
  .timeline li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding: 22px 0;
  }
  .timeline .time {
    grid-column: 1;
    grid-row: 1;
  }
  .timeline li > div {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .timeline .time-tag {
    grid-column: 2;
    grid-row: 1;
  }
  .artwork-gallery .gallery-grid {
    gap: 28px;
  }
  .artwork-gallery .gallery-grid figcaption {
    display: grid;
    gap: 4px;
    margin-top: 10px;
  }
  .filter,
  .theme-toggle {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(
    .button,
    .theme-toggle,
    .filter,
    .contact-link,
    .portrait-viewer-close,
    .portrait-contact > a,
    .portrait-contact > button
  ) {
    transition: none;
  }
}

.filter.is-active,
.portrait-contact > a:hover,
.portrait-contact > button:hover {
  background: var(--control-surface);
}

/* Morphicons controls stay above the scene, outside the hero's clipping context. */
.morph-icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  overflow: visible;
  pointer-events: none;
}
.floating-controls {
  position: fixed;
  z-index: 80;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-controls .floating-control {
  display: grid;
  place-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  overflow: visible;
  --control-tint: rgba(247, 247, 245, 0.4);
  --control-surface:
    linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.035) 42%,
      rgba(255, 255, 255, 0.015) 75%
    ),
    var(--control-tint);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 1px 0 0 rgba(255, 255, 255, 0.055),
    0 5px 18px rgba(12, 18, 30, 0.11);
}
:root[data-theme="dark"] .floating-controls .floating-control {
  --control-tint: rgba(16, 18, 21, 0.55);
  color: var(--ink);
}
.floating-control[data-tooltip]::after {
  content: attr(data-tooltip);
  inset: auto calc(100% + 12px) auto auto;
  top: 50%;
  transform: translate(4px, -50%);
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms;
}
.floating-control:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.spotlight-copy .spotlight-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 48px;
  padding: 12px 16px;
  margin-top: 24px;
  border: 1px solid var(--glass-edge);
  text-decoration: none;
  border-radius: var(--card-radius);
  font-size: 13px;
  line-height: 1.5;
}
.spotlight-copy .spotlight-link span {
  font-size: inherit;
}
.spotlight-link .morph-icon {
  width: 20px;
  height: 20px;
}
@media (hover: hover) {
  .floating-control:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }
}
@media (max-width: 600px) {
  .floating-controls {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .floating-controls .floating-control {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .site-footer .wrap {
    padding-right: 58px;
  }
  .floating-control[data-tooltip]::after {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-control[data-tooltip]::after {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Keep the close action equally inset from the photo's top and right edges. */
.portrait-viewer .portrait-viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.24);
  --control-tint: rgba(20, 27, 35, 0.54);
  color: #fff;
  transition: opacity 150ms ease;
}
.portrait-viewer.is-entering .portrait-viewer-close {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .portrait-viewer .portrait-viewer-close {
    transition: none;
  }
}

/* Contact: editorial email action with a scannable, unmodified QR source. */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 288px);
  align-items: end;
  gap: clamp(48px, 8vw, 128px);
}
.contact-main {
  min-width: 0;
}
.contact-main h2 {
  margin-bottom: 24px;
}
.contact-main .contact-intro {
  margin: 24px 0 42px;
  font-size: 15px;
  line-height: 1.7;
}
.contact-email-block {
  max-width: 540px;
}
.contact-method-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
}
.contact-method-label span {
  letter-spacing: 0.04em;
}
.contact-email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 2px 0 7px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: clamp(18px, 1.75vw, 22px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}
.contact-email-link span {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform 180ms ease;
}
.contact-email-link:hover {
  color: var(--hero-blue);
}
.contact-email-link:hover span {
  transform: translate(2px, -2px);
}
.contact-copy-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease;
}
.contact-copy-button:hover {
  color: var(--hero-blue);
}
.contact-email-link:focus-visible,
.contact-copy-button:focus-visible {
  outline: 2px solid var(--hero-blue);
  outline-offset: 4px;
}
.contact-copy-status {
  display: block;
  min-height: 20px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 20px;
}
.contact-qr-panel {
  justify-self: end;
  width: 100%;
  max-width: 288px;
}
.contact-qr-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(70, 80, 92, 0.18);
  border-radius: var(--card-radius);
  background:
    linear-gradient(
      145deg,
      rgba(191, 201, 215, 0.4),
      rgba(229, 235, 243, 0.2) 54%,
      rgba(190, 202, 217, 0.28)
    ),
    rgba(223, 230, 239, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 12px 32px rgba(18, 26, 40, 0.08);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
}
.contact-qr-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 157.36%;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.15);
  transform: translate(-51.2%, -61.4%);
}
:root[data-theme="dark"] .contact-qr-frame {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.035) 54%,
      rgba(255, 255, 255, 0.07)
    ),
    rgba(16, 20, 26, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 32px rgba(0, 0, 0, 0.16);
}
:root[data-theme="dark"] .contact-qr-frame img {
  mix-blend-mode: screen;
  filter: invert(1) contrast(1.15);
}
.contact-qr-frame:focus-visible {
  outline: 2px solid var(--hero-blue);
  outline-offset: 4px;
}
.contact-qr-caption {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .contact-main .contact-intro {
    margin-bottom: 28px;
  }
  .contact-qr-panel {
    justify-self: start;
    max-width: 280px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 430px) {
  .contact-email-link {
    font-size: 18px;
    gap: 9px;
  }
  .contact-qr-panel {
    max-width: 270px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-email-link,
  .contact-email-link span,
  .contact-copy-button {
    transition: none;
  }
}

/* Reserve only the projected badge for touch; surrounding space still scrolls. */
.badge-hitbox {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

/* iOS permission retry uses the same glass component as the other fixed controls. */
.motion-permission-control[hidden] {
  display: none !important;
}
