:root {
  color-scheme: dark;
  --bg: #020204;
  --text: #f5f3ec;
  --muted: rgba(245, 243, 236, 0.62);
  --faint: rgba(245, 243, 236, 0.18);
  --line: rgba(255, 255, 255, 0.13);
  --accent: #05FA05;
  --accent-2: #7c5cff;
  --panel-x: clamp(20px, 6vw, 96px);
  --glass-tint: linear-gradient(to bottom, rgba(2, 2, 4, 0.74), rgba(2, 2, 4, 0.34));
  --glass-filter: blur(20px) saturate(1.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(124, 92, 255, 0.18), transparent 28vw),
    radial-gradient(circle at 18% 72%, rgba(5, 250, 5, 0.08), transparent 34vw),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::selection {
  background: var(--accent);
  color: #070707;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.home-fluid-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  mix-blend-mode: normal;
}

.home-fluid-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.grain,
.grid,
.scanline,
.cursor-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 2;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22), transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.13), transparent 1px);
  background-size: 4px 4px, 7px 7px;
  mix-blend-mode: overlay;
}

.grid {
  /* Remove the ambient viewport grid; structural rules within content blocks
     (such as the resume rows) remain independent and visible. */
  display: none;
}

.scanline {
  z-index: 2;
  opacity: 0.18;
  background: linear-gradient(to bottom, transparent, rgba(5, 250, 5, 0.12), transparent);
  height: 34vh;
  top: -40vh;
  animation: scan 9s linear infinite;
}

.cursor-field {
  z-index: 2;
  overflow: hidden;
}

.cursor-field span {
  position: absolute;
  left: -260px;
  top: -260px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(5, 250, 5, 0.18), transparent 50%),
    radial-gradient(circle at 62% 44%, rgba(124, 92, 255, 0.18), transparent 46%);
  filter: blur(10px);
  transform: translate3d(50vw, 50vh, 0);
  will-change: transform;
}

@keyframes scan {
  to { transform: translateY(150vh); }
}

@keyframes nav-glow-pulse {
  0% {
    text-shadow: 0 0 0 rgba(5, 250, 5, 0);
    filter: brightness(1);
  }
  45% {
    text-shadow: 0 0 12px rgba(5, 250, 5, 0.84), 0 0 30px rgba(5, 250, 5, 0.34);
    filter: brightness(1.22);
  }
  100% {
    text-shadow: 0 0 8px rgba(5, 250, 5, 0.72), 0 0 20px rgba(5, 250, 5, 0.28);
    filter: brightness(1);
  }
}

@keyframes nav-line-sweep {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  40% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.62;
    transform: scaleX(1);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--panel-x);
  color: #fff;
  background: var(--glass-tint);
  border-bottom: 0;
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  mix-blend-mode: normal;
}

.brand,
nav a,
.scroll-hint,
.work-copy a,
.lab-stack a,
.lab-stack .lab-slot,
.cta {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  gap: 0.46em;
  align-items: center;
  font-weight: 850;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.header-motion-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  margin-right: calc(8px - 0.46em);
}

.brand span:last-child {
  color: inherit;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mobile-menu-toggle {
  display: none;
}

.site-nav a,
.site-nav .nav-label,
.nav-group,
.work-copy a,
.lab-stack a,
.lab-stack .lab-slot {
  position: relative;
}

.site-nav > a::after,
.nav-group > a::after,
.nav-group > .nav-label::after,
.work-copy a::after,
.lab-stack a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}

.site-nav > a:hover::after,
.nav-group:hover > a::after,
.nav-group:hover > .nav-label::after,
.work-copy a:hover::after,
.lab-stack a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-group {
  display: inline-flex;
  align-items: center;
  padding: 18px 0;
}

.nav-group > a,
.nav-group > .nav-label {
  color: inherit;
  cursor: default;
  text-decoration: none;
}

.nav-group > .nav-label {
  text-transform: none;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 260px;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--nav-radar-x, 20%) var(--nav-radar-y, 20%), rgba(5, 250, 5, 0.22), transparent 22%),
    repeating-radial-gradient(circle at var(--nav-radar-x, 20%) var(--nav-radar-y, 20%), transparent 0 22px, rgba(5, 250, 5, 0.08) 23px 24px),
    rgba(3, 3, 6, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-dropdown-wide {
  min-width: 330px;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  line-height: 1.25;
  text-decoration: none;
  transform: none;
  transition: color 180ms ease, opacity 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.nav-dropdown:hover a {
  color: #fff;
}

.nav-dropdown a:hover {
  background: transparent;
  color: var(--accent);
  opacity: 1;
  text-shadow: 0 0 18px rgba(5, 250, 5, 0.7);
  transform: translateX(10px);
}

.side-rail {
  display: none;
}

.side-rail::before {
  content: "";
  width: 1px;
  height: 88px;
  background: var(--line);
}

main {
  position: relative;
  /* Keep page content above the cursor canvas; the project glass can then frost it. */
  z-index: 7;
}

.panel {
  min-height: 100vh;
  padding: clamp(104px, 14vh, 164px) var(--panel-x);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.34fr);
  align-items: end;
  gap: clamp(32px, 8vw, 120px);
}

.hero::after,
.motion-lab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.home-banner-panel {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #020204;
}

.home-banner-panel img {
  display: block;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.home-banner-panel::after {
  content: none;
}

.banner-scroll {
  color: #fff;
}

.hero-copy,
.hero-meta,
.scroll-hint {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 1040px;
  padding-bottom: 8vh;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow:has(+ h1),
.case-hero > .eyebrow {
  text-transform: none;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  max-width: 1040px;
  font-size: clamp(4.6rem, 13.2vw, 13.4rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: rgba(255, 255, 255, 0.48);
}

.intro {
  max-width: 590px;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.hero-meta {
  align-self: center;
  display: grid;
  gap: 1px;
  border-left: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 820;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero-meta span {
  padding: 18px 0 18px 24px;
  border-bottom: 1px solid var(--line);
}

.scroll-hint {
  position: absolute;
  right: var(--panel-x);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-hint::before {
  content: "";
  width: 58px;
  height: 1px;
  background: currentColor;
}

.work-intro {
  display: grid;
  align-content: center;
  justify-items: end;
}

.work-intro > * {
  width: min(760px, 100%);
}

.work-intro h2,
.motion-lab h2,
.closing h2 {
  font-size: clamp(3rem, 8vw, 9.2rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.work-intro p:not(.eyebrow),
.motion-lab p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  line-height: 1.55;
}

.work-sequence {
  position: relative;
}

.work-sequence::before {
  content: "";
  position: absolute;
  left: calc(var(--panel-x) + 18px);
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 4%, var(--line) 96%, transparent);
}

.work-sequence::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.work-item {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(76px, 0.21fr) minmax(220px, 420px) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding-left: calc(var(--panel-x) + 48px);
}

.work-item::before {
  content: "";
  position: absolute;
  left: calc(var(--panel-x) + 12px);
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 8px rgba(5, 250, 5, 0), 0 0 32px rgba(5, 250, 5, 0);
  transform: translateY(-50%);
  transition: border-color 260ms ease, box-shadow 260ms ease;
}

.work-item:hover::before,
.work-item.is-active::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(5, 250, 5, 0.12), 0 0 32px rgba(5, 250, 5, 0.42);
}

.work-count {
  color: rgba(255, 255, 255, 0.42);
  font-size: clamp(1.1rem, 2.6vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.cover-link {
  display: block;
  width: min(36vw, 420px);
  max-width: 100%;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease, opacity 420ms ease;
}

.cover-link img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 64px rgba(0, 0, 0, 0.42));
}

.work-item:hover .cover-link,
.work-item.is-active .cover-link {
  transform: translateX(14px) scale(1.035);
  filter: saturate(1.06) contrast(1.04);
}

.work-copy {
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  width: fit-content;
  min-width: min(300px, 100%);
  max-width: min(560px, 42vw);
  padding: clamp(22px, 3vw, 38px);
  transform: translate3d(0, var(--work-card-y, 0px), 0);
  transition: transform 480ms cubic-bezier(0.18, 0.82, 0.22, 1);
  will-change: transform;
}

.work-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.16);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.work-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-copy h3 {
  max-width: 100%;
  font-size: clamp(2.16rem, 6.1vw, 7.38rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  overflow-wrap: normal;
  word-break: normal;
}

#moneybazaar-app .work-copy h3,
#moneybazaar-web .work-copy h3 {
  white-space: pre-line;
}

.work-copy p:not(.work-kicker) {
  max-width: min(520px, 100%);
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.3vw, 1.12rem);
  line-height: 1.55;
}

.work-copy a {
  display: inline-block;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pair-start::after,
.pair-end::after {
  display: none;
}

.pair-start::after {
  content: "same case page";
  bottom: -9vh;
}

.pair-end::after {
  content: "App + Web";
  top: -9vh;
}

.motion-lab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(300px, 0.48fr);
  align-items: center;
  gap: clamp(36px, 8vw, 120px);
}

.motion-lab > * {
  position: relative;
  z-index: 1;
}

.motion-lab > div:first-child {
  max-width: 820px;
}

.lab-stack {
  display: grid;
  border-top: 1px solid var(--line);
}

.lab-stack a,
.lab-stack .lab-slot {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.15rem, 2vw, 2rem);
  font-weight: 820;
  letter-spacing: -0.035em;
  transition: color 220ms ease, transform 220ms ease;
}

.lab-stack .lab-slot {
  cursor: default;
}

.lab-stack a:hover {
  color: var(--accent);
  transform: translateX(10px);
}

.lab-stack span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.closing h2 {
  max-width: 980px;
}

.cta {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(156px, 18vw, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
  font-weight: 850;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.cta:hover {
  transform: scale(1.05) rotate(-4deg);
  box-shadow: 0 0 80px rgba(5, 250, 5, 0.22);
}

.progress {
  position: fixed;
  left: var(--panel-x);
  right: var(--panel-x);
  bottom: 22px;
  z-index: 9;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(5, 250, 5, 0.82);
}

.load-error {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 42px;
  z-index: 20;
  border: 1px solid rgba(5, 250, 5, 0.36);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: 0.9rem;
}

.case-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 74% 8%, rgba(5, 250, 5, 0.12), transparent 28vw),
    radial-gradient(circle at 10% 34%, rgba(124, 92, 255, 0.16), transparent 34vw),
    var(--bg);
}

.case-page main {
  padding-bottom: 96px;
}

.case-hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(112px, 18vh, 176px) var(--panel-x) clamp(54px, 8vh, 96px);
}

.case-back {
  width: fit-content;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 1180px;
  font-size: clamp(3.42rem, 9vw, 9.9rem);
  line-height: 0.94;
}

.case-hero > p:last-child {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.24rem);
  line-height: 1.62;
}

.case-section {
  padding: clamp(54px, 8vw, 108px) var(--panel-x);
  border-top: 1px solid var(--line);
}

.case-section + .case-section {
  margin-top: clamp(54px, 9vw, 140px);
}

.case-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.5fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 64px);
}

.case-section-head h2 {
  font-size: clamp(1.2rem, 3vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.case-section-title-en {
  display: block;
  margin-top: 0.38em;
  color: var(--muted);
  font-size: clamp(0.86rem, 1.08vw, 1.18rem);
  font-weight: 520;
  line-height: 1.72;
  letter-spacing: 0;
}

.section-title-year {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(5, 250, 5, 0.42);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-section-head.is-centered {
  justify-items: center;
  text-align: center;
}

.case-section-head.is-centered > div {
  width: 100%;
}

.case-section-head.is-centered h2 {
  text-align: center;
}

.case-section-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 430;
  line-height: 1.9;
}

.case-gallery {
  --gallery-gap: clamp(10px, 1.2vw, 18px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--gallery-gap);
}

.case-thumb {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  flex: 0 0 calc((100% - (var(--gallery-gap) * 4)) / 5);
  max-width: calc((100% - (var(--gallery-gap) * 4)) / 5);
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
  aspect-ratio: 1 / 0.72;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  outline: none;
}

.case-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 360ms ease, opacity 360ms ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.case-thumb:hover .case-media {
  opacity: 0.82;
  transform: scale(1.04);
}

.case-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.case-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.case-card img,
.case-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 520ms ease, opacity 520ms ease;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent 72%);
}

.case-card span,
.case-card strong {
  position: relative;
  z-index: 1;
}

.case-card span {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-card strong {
  max-width: 92%;
  font-size: clamp(1.24rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.case-card:hover img {
  opacity: 0.82;
  transform: scale(1.04);
}

.natural-thumb-page .case-thumb {
  flex-basis: calc((100% - (var(--gallery-gap) * 4)) / 5);
  max-width: calc((100% - (var(--gallery-gap) * 4)) / 5);
  min-width: 0;
  aspect-ratio: auto;
  background: transparent;
}

.natural-thumb-page .case-media {
  height: auto;
  object-fit: contain;
}

.natural-thumb-page .case-thumb:hover .case-media {
  transform: none;
}

.light-case-page {
  background: #fff;
  color: #080808;
}

.light-case-page .site-header {
  color: #050505;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.light-case-page .nav-dropdown {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

.light-case-page .nav-dropdown a {
  color: #050505;
}

.light-case-page .nav-dropdown:hover a {
  color: #050505;
}

.light-case-page .nav-dropdown a:hover {
  color: var(--accent);
}

.light-case-page .grid,
.light-case-page .grain {
  opacity: 0.14;
  filter: invert(1);
}

.light-case-page .case-section,
.light-case-page .case-hero {
  border-color: rgba(0, 0, 0, 0.08);
}

.light-case-page .case-hero h1,
.light-case-page .case-section-head h2 {
  color: #050505;
}

.light-case-page .case-section-title-en,
.light-case-page .case-hero > p:last-child {
  color: rgba(5, 5, 5, 0.64);
}

.case-card-placeholder {
  background:
    linear-gradient(135deg, rgba(5, 250, 5, 0.2), transparent),
    rgba(255, 255, 255, 0.04);
}

.case-empty {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: block;
  padding: 96px clamp(18px, 4vw, 56px) 86px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  overflow: auto;
  pointer-events: none;
  cursor: grab;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.lightbox img {
  display: block;
  width: min(94vw, 1600px);
  max-width: none;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.66);
}

.lightbox button,
.lightbox-count {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.lightbox button {
  cursor: pointer;
}

.lightbox-close {
  right: clamp(18px, 4vw, 56px);
  top: clamp(18px, 4vw, 42px);
  padding: 10px 16px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 58px;
  height: 58px;
  font-size: 2rem;
  font-weight: 850;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: clamp(18px, 4vw, 56px);
}

.lightbox-next {
  right: clamp(18px, 4vw, 56px);
}

.lightbox-count {
  left: 50%;
  bottom: 28px;
  padding: 9px 15px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  pointer-events: none;
}

.lightbox button:hover {
  background: rgba(5, 250, 5, 0.22);
  border-color: rgba(5, 250, 5, 0.48);
}

.lightbox.is-motion {
  display: grid;
  place-items: center;
  padding: 88px clamp(18px, 4vw, 56px);
}

.lightbox.is-motion img {
  width: auto;
  max-width: none;
  max-height: none;
}

.lightbox.is-c4d {
  display: grid;
  place-items: center;
  padding: clamp(72px, 8vh, 96px) clamp(54px, 7vw, 92px) clamp(62px, 8vh, 88px);
  overflow: hidden;
}

.lightbox.is-c4d img {
  width: auto;
  height: auto;
  max-width: min(82vw, 1280px);
  max-height: min(78vh, 840px);
  object-fit: contain;
}

.lightbox.is-c4d.is-portrait img {
  max-width: min(54vw, 620px);
  max-height: min(80vh, 860px);
}

.lightbox.is-c4d.is-panorama img {
  max-width: min(84vw, 1180px);
  max-height: min(62vh, 620px);
}

.lightbox.is-graphic-bento {
  display: grid;
  place-items: center;
  padding: clamp(72px, 8vh, 96px) clamp(42px, 6vw, 86px) clamp(62px, 8vh, 88px);
  overflow: hidden;
}

.lightbox.is-graphic-bento img {
  width: auto;
  height: auto;
  max-width: min(76vw, 1180px);
  max-height: min(76vh, 780px);
  object-fit: contain;
}

.lightbox.is-graphic-moneybazzar {
  display: grid;
  place-items: center;
  padding: clamp(72px, 8vh, 96px) clamp(42px, 6vw, 86px) clamp(62px, 8vh, 88px);
  overflow: hidden;
}

.lightbox.is-graphic-moneybazzar img {
  width: auto;
  height: auto;
  max-width: min(78vw, 1220px);
  max-height: min(76vh, 780px);
  object-fit: contain;
}

.copy-editor {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  font-family: inherit;
}

.copy-editor-toggle {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 250, 5, 0.9);
  color: #041006;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(5, 250, 5, 0.2);
}

.copy-editor-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: none;
  width: min(420px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 120px));
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(12, 12, 14, 0.9);
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(24px);
}

.copy-editor.is-open .copy-editor-panel {
  display: block;
}

.copy-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.copy-editor-head strong {
  font-size: 16px;
}

.copy-editor-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.copy-editor-note {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.55;
}

.copy-editor-list {
  display: grid;
  gap: 12px;
}

.copy-editor-item {
  display: grid;
  gap: 6px;
}

.copy-editor-item span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-editor-item textarea {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.copy-editor-item textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(5, 250, 5, 0.18);
}

.copy-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.copy-editor-actions button,
.copy-editor-import {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.copy-editor-save {
  background: var(--accent) !important;
  color: #041006 !important;
}

.copy-editor-import input {
  display: none;
}

.copy-editor-target {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.copy-editor-text {
  white-space: pre-line;
}

.tashi-talk-page .copy-editor-panel,
.about-fullscreen-page .copy-editor-panel {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: #050505;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.14);
}

.tashi-talk-page .copy-editor-note,
.about-fullscreen-page .copy-editor-note,
.tashi-talk-page .copy-editor-item span,
.about-fullscreen-page .copy-editor-item span {
  color: rgba(0, 0, 0, 0.58);
}

.tashi-talk-page .copy-editor-close,
.about-fullscreen-page .copy-editor-close,
.tashi-talk-page .copy-editor-actions button,
.about-fullscreen-page .copy-editor-actions button,
.tashi-talk-page .copy-editor-import,
.about-fullscreen-page .copy-editor-import {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.06);
  color: #050505;
}

.tashi-talk-page .copy-editor-item textarea,
.about-fullscreen-page .copy-editor-item textarea {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: #050505;
}

.tashi-talk-page .case-hero {
  min-height: 46vh;
}

.tashi-talk-page {
  background: #fff;
  color: #070707;
}

.tashi-talk-page .site-header {
  color: #050505;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.tashi-talk-page .nav-dropdown {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

.tashi-talk-page .nav-dropdown a {
  color: #050505;
}

.tashi-talk-page .nav-dropdown:hover a {
  color: #050505;
}

.tashi-talk-page .nav-dropdown a:hover {
  color: var(--accent);
}

.tashi-talk-page .grid,
.tashi-talk-page .grain {
  opacity: 0.14;
  filter: invert(1);
}

.tashi-talk-page .case-hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.tashi-talk-page .case-hero h1 {
  color: #fff;
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000;
}

.tashi-talk-page .case-hero h1.tashi-talk-word {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 4rem);
  width: min(900px, 100%);
  max-width: 100%;
  font-size: clamp(0.7rem, 1.8vw, 2rem);
  line-height: 1;
  letter-spacing: 0.16em;
}

.tashi-talk-page .case-hero h1.tashi-talk-word span {
  display: block;
}

.tashi-talk-page .case-section {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.about-fullscreen-page {
  background: #fff;
  color: #070707;
}

.about-fullscreen-page main {
  background: #fff;
}

.about-fullscreen-page .site-header {
  position: sticky;
  color: #050505;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.about-fullscreen-page .nav-dropdown {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
}

.about-fullscreen-page .nav-dropdown a {
  color: #050505;
}

.about-fullscreen-page .nav-dropdown:hover a {
  color: #050505;
}

.about-fullscreen-page .nav-dropdown a:hover {
  color: var(--accent);
}

.about-fullscreen-page .grid,
.about-fullscreen-page .grain {
  opacity: 0.14;
  filter: invert(1);
}

.about-fullscreen-page .case-section {
  min-height: 100vh;
  padding-top: 0;
  background: #fff;
  border-top-color: rgba(0, 0, 0, 0.08);
}


.about-fullscreen-page .case-gallery {
  display: block;
}

.about-fullscreen-page .about-static-image {
  aspect-ratio: auto;
  background: #fff;
  border-color: transparent;
  border-radius: 0;
  cursor: default;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: calc(var(--panel-x) * -1);
  margin-right: calc(var(--panel-x) * -1);
  overflow: visible;
  pointer-events: none;
  width: calc(100% + var(--panel-x) * 2);
}

.about-fullscreen-page .about-static-image .case-media {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
}

.about-fullscreen-page .about-static-image:hover .case-media {
  opacity: 1;
  transform: none;
}

.case-hero mark {
  padding: 0 0.14em;
  background: var(--accent);
  color: #070707;
}

.case-section-divider {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(34px, 6vw, 74px);
}

.case-section-divider .eyebrow {
  margin-bottom: 16px;
}

.tashi-talk-hero {
  min-height: 62vh;
  gap: 26px;
  padding-top: clamp(92px, 11vh, 122px);
  padding-bottom: clamp(72px, 10vh, 110px);
}

.tashi-talk-intro {
  justify-self: center;
  width: min(760px, 100%);
  max-width: 760px;
  margin: 0;
  color: #050505;
  text-align: center;
}

.tashi-talk-intro h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.tashi-talk-intro p {
  max-width: 760px;
  margin: 10px auto 0;
  color: rgba(5, 5, 5, 0.72);
  font-size: clamp(0.74rem, 1.02vw, 0.9rem);
  line-height: 1.75;
}

.tashi-talk-intro p:first-of-type {
  white-space: nowrap;
}

.logo-page .case-hero,
.moneybazzar-page .case-hero {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(120px, 16vh, 180px);
}

.logo-page .case-hero h1,
.moneybazzar-page .case-hero h1 {
  margin-inline: auto;
  line-height: 1.02;
}

.moneybazzar-page .case-hero + .case-section {
  padding-top: clamp(90px, 12vw, 180px);
}

.motion-design-page .case-section-head h2,
.c4d-page .case-section-head h2 {
  line-height: 1.12;
}

.c4d-page .c4d-hero {
  position: relative;
  min-height: 86vh;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--bg);
  overflow: hidden;
}

.c4d-page .c4d-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.c4d-page .c4d-hero > h1 {
  position: absolute;
  left: calc((100vw - (10vw + min(44vw, 678px))) / 2);
  top: 50%;
  z-index: 2;
  font-size: clamp(calc(1.03rem + 4px), calc(2.7vw + 4px), calc(2.97rem + 4px));
  font-weight: 500;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.c4d-page .c4d-hero-art {
  position: absolute;
  top: 50%;
  right: 10vw;
  z-index: 1;
  display: block;
  width: min(44vw, 678px);
  height: auto;
  max-width: 678px;
  max-height: min(82%, 655px);
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.graphic-design-page .graphic-hero {
  position: relative;
  min-height: 86vh;
  justify-content: flex-end;
  margin-top: 88px;
  padding: 0 var(--panel-x);
  background: var(--bg);
  overflow: hidden;
}

.graphic-design-page .graphic-hero-art {
  position: absolute;
  z-index: 1;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.graphic-design-page .graphic-hero-art-right {
  top: 0;
  right: 0;
  width: min(62vw, calc((86vh - 140px) * 1.2677), 1596px);
  max-width: 1596px;
}

.graphic-design-page .graphic-hero-art-left {
  left: 120px;
  bottom: 80px;
  width: min(18vw, 280px);
  max-width: 280px;
}

.graphic-design-page {
  --graphic-gallery-width: min(100%, 1320px);
}

.graphic-design-page .graphic-moneybazzar-gallery,
.graphic-design-page .graphic-zcool-gallery,
.graphic-design-page .graphic-bento-gallery {
  width: var(--graphic-gallery-width);
  max-width: var(--graphic-gallery-width);
  margin-inline: auto;
}

.graphic-design-page .case-section-head {
  width: var(--graphic-gallery-width);
  max-width: var(--graphic-gallery-width);
  grid-template-columns: 1fr;
  margin-inline: auto;
}

.graphic-design-page .case-section-head > div {
  width: 100%;
}

.graphic-design-page .graphic-moneybazzar-gallery {
  justify-content: center;
}

.graphic-design-page .graphic-moneybazzar-gallery .case-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.graphic-design-page .graphic-moneybazzar-gallery .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graphic-design-page .graphic-zcool-uniform-thumb {
  aspect-ratio: 1880 / 2976;
  overflow: hidden;
}

.graphic-design-page .graphic-zcool-uniform-thumb .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graphic-design-page .graphic-zcool-gallery {
  justify-content: center;
}

.graphic-design-page .graphic-zcool-row-break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
}

.graphic-design-page .graphic-zcool-landscape-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.graphic-design-page .graphic-zcool-landscape-thumb .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graphic-design-page .graphic-bento-gallery {
  --bento-gap: clamp(10px, 1.15vw, 18px);
  display: block;
  column-count: 3;
  column-gap: var(--bento-gap);
}

.graphic-design-page .graphic-bento-gallery .case-thumb {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  margin: 0 0 var(--bento-gap);
  break-inside: avoid;
  aspect-ratio: auto;
}

.graphic-design-page .graphic-bento-gallery .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(1),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(8),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(13) {
  aspect-ratio: 16 / 9;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(2),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(11),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(17) {
  aspect-ratio: 4 / 3;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(4),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(10),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(15) {
  aspect-ratio: 3 / 4;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(5),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(9),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(19) {
  aspect-ratio: 3 / 2;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(3),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(7),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(12),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(16),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(18),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(20) {
  aspect-ratio: 1 / 1;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(6),
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(7) {
  aspect-ratio: 16 / 9;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(14) {
  aspect-ratio: 3 / 4;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(4) .case-media {
  object-position: 76% center;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(10) .case-media {
  object-position: 18% center;
}

.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(15) .case-media,
.graphic-design-page .graphic-bento-gallery .case-thumb:nth-child(16) .case-media {
  object-position: center;
  transform: scale(1.28);
}

.c4d-page .c4d-01-wide-thumb {
  flex-basis: calc((100% - (var(--gallery-gap) * 4)) / 5);
  max-width: calc((100% - (var(--gallery-gap) * 4)) / 5);
  margin-inline: auto;
  aspect-ratio: auto;
  background: rgba(255, 255, 255, 0.04);
}

.c4d-page .c4d-01-wide-thumb .case-media {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.c4d-page .c4d-01-wide-thumb:hover .case-media {
  transform: none;
}

.c4d-page .c4d-section-02 .case-thumb {
  aspect-ratio: 1 / 1.96;
  background: rgba(255, 255, 255, 0.04);
}

.c4d-page .c4d-section-02 .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c4d-page .c4d-section-02 .case-thumb:hover .case-media {
  transform: scale(1.04);
}

.c4d-page .c4d-thumb-match-04 {
  aspect-ratio: 1 / 1.4;
  background: rgba(255, 255, 255, 0.04);
}

.c4d-page .c4d-thumb-match-04 .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c4d-page .c4d-thumb-match-04:hover .case-media {
  transform: scale(1.04);
}

.c4d-page .c4d-thumb-match-05 {
  aspect-ratio: 1 / 0.56;
  background: rgba(255, 255, 255, 0.04);
}

.c4d-page .c4d-thumb-match-05 .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c4d-page .c4d-thumb-match-05:hover .case-media {
  transform: scale(1.04);
}

.c4d-page .c4d-thumb-match-08 {
  aspect-ratio: 1 / 0.36;
  background: rgba(255, 255, 255, 0.04);
}

.c4d-page .c4d-thumb-match-08 .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c4d-page .c4d-thumb-match-08:hover .case-media {
  transform: scale(1.04);
}

.motion-design-page .motion-shader-hero {
  position: relative;
  min-height: clamp(420px, 56vh, 620px);
  justify-content: center;
  align-items: center;
  padding: clamp(104px, 13vh, 138px) 0 clamp(54px, 7vh, 72px);
  overflow: hidden;
  background: #061a62;
}

.motion-design-page .motion-shader-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.motion-design-page .motion-shader-hero h1 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--panel-x);
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 4.4rem);
  font-weight: 750;
  line-height: 0.96;
  text-align: center;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
}

.experimental-wip-page .case-card {
  min-height: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.experimental-wip-page .case-card::after {
  display: none;
}

.experimental-wip-page .case-card img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  border-radius: 8px;
  transform: none;
}

.experimental-wip-page .case-card:hover img {
  opacity: 1;
  transform: none;
}

.experimental-wip-page .case-card span,
.experimental-wip-page .case-card strong {
  position: static;
}

.experimental-wip-page .case-card span {
  display: block;
  margin-top: 16px;
  color: var(--muted);
}

.experimental-wip-page .case-card strong {
  display: block;
  margin-top: 4px;
}

.tashi-talk-page .case-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(38px, 6vw, 84px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.tashi-talk-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.motion-design-page .motion-gif-gallery .case-thumb,
.tencent-page .case-thumb {
  flex-basis: calc((100% - (var(--gallery-gap) * 4)) / 5);
  max-width: calc((100% - (var(--gallery-gap) * 4)) / 5);
  min-width: 0;
  aspect-ratio: auto;
  background: transparent;
}

.motion-design-page .motion-gif-gallery {
  justify-content: center;
  max-width: 1160px;
  margin-inline: auto;
}

.fixed-five-gallery-page .case-gallery {
  justify-content: center;
  max-width: 1160px;
  margin-inline: auto;
}

.logo-page.fixed-five-gallery-page .case-gallery {
  justify-content: flex-start;
}

.moneybazzar-page.fixed-five-gallery-page .case-gallery {
  justify-content: flex-start;
}

.tencent-operation-page.fixed-five-gallery-page .case-gallery {
  justify-content: flex-start;
}

.chujia-page.fixed-five-gallery-page .case-gallery {
  justify-content: center;
  max-width: 1160px;
  margin-inline: auto;
}

.motion-design-page .motion-gif-gallery .case-thumb {
  flex: 0 0 calc((100% - (var(--gallery-gap) * 4)) / 5);
  max-width: calc((100% - (var(--gallery-gap) * 4)) / 5);
}

.fixed-five-gallery-page .case-thumb {
  flex: 0 0 calc((100% - (var(--gallery-gap) * 4)) / 5);
  max-width: calc((100% - (var(--gallery-gap) * 4)) / 5);
  aspect-ratio: auto;
}

.logo-page.fixed-five-gallery-page .case-thumb {
  aspect-ratio: 1 / 0.68;
}

.chujia-page.fixed-five-gallery-page .case-thumb:nth-child(-n + 5) {
  aspect-ratio: 1196 / 4524;
}

.motion-design-page .motion-gif-gallery .case-media,
.fixed-five-gallery-page .case-media,
.tencent-page .case-media {
  height: auto;
  object-fit: contain;
}

.logo-page.fixed-five-gallery-page .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chujia-page.fixed-five-gallery-page .case-thumb:nth-child(-n + 5) .case-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motion-design-page .motion-gif-gallery .case-thumb:hover .case-media,
.fixed-five-gallery-page .case-thumb:hover .case-media,
.tencent-page .case-thumb:hover .case-media {
  transform: none;
}

.tencent-page .case-thumb {
  border-color: rgba(255, 255, 255, 0.1);
}

.smart-building-page .case-gallery {
  width: min(calc(100% - 48px), 1120px);
  margin-inline: auto;
  justify-content: flex-start;
}

.smart-building-page .case-thumb {
  flex: 0 0 208px;
  max-width: 208px;
}

.weiling-fixed-thumb-page .case-gallery {
  max-width: min(calc(100% - 48px), 1120px);
  margin-inline: auto;
  justify-content: center;
}

.weiling-fixed-thumb-page .case-thumb {
  border: 1px solid #e9eaea;
}

.timeline-page .case-hero {
  min-height: 52vh;
}

.timeline-section {
  position: relative;
  display: grid;
  gap: clamp(36px, 6vw, 74px);
  padding: clamp(54px, 8vw, 108px) var(--panel-x) 140px;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 70px;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(5, 250, 5, 0.72), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(38vw, 460px);
  color: inherit;
  text-decoration: none;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 34px;
  width: clamp(44px, 7vw, 94px);
  height: 1px;
  background: rgba(5, 250, 5, 0.62);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(5, 250, 5, 0.65);
}

.timeline-item.is-left {
  justify-self: start;
  text-align: right;
}

.timeline-item.is-right {
  justify-self: end;
}

.timeline-item.is-left::before {
  right: calc(-1 * clamp(44px, 7vw, 94px));
}

.timeline-item.is-right::before {
  left: calc(-1 * clamp(44px, 7vw, 94px));
}

.timeline-item.is-left::after {
  right: calc(-1 * clamp(44px, 7vw, 94px) - 6px);
}

.timeline-item.is-right::after {
  left: calc(-1 * clamp(44px, 7vw, 94px) - 6px);
}

.timeline-year {
  color: var(--accent);
  font-size: clamp(1.2rem, 3vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.timeline-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 54px rgba(0, 0, 0, 0.42));
}

.timeline-item strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  line-height: 1.2;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    gap: 14px;
    font-size: 0.68rem;
  }

  .side-rail {
    display: none;
  }

  .hero,
  .motion-lab {
    grid-template-columns: 1fr;
  }

  .graphic-design-page .graphic-bento-gallery {
    column-count: 2;
  }

  .hero-meta {
    max-width: 520px;
    align-self: end;
  }

  .work-sequence::before,
  .work-item::before,
  .pair-start::after,
  .pair-end::after {
    display: none;
  }

  .work-item {
    grid-template-columns: 1fr;
    align-content: center;
    padding-left: var(--panel-x);
  }

  .cover-link {
    width: min(74vw, 420px);
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .case-section-head,
  .case-card-grid {
    grid-template-columns: 1fr;
  }

  .case-thumb,
  .natural-thumb-page .case-thumb,
  .motion-design-page .motion-gif-gallery .case-thumb,
  .tencent-page .case-thumb {
    flex-basis: calc((100% - (var(--gallery-gap) * 2)) / 3);
    max-width: calc((100% - (var(--gallery-gap) * 2)) / 3);
  }

  .motion-design-page .motion-gif-gallery .case-thumb {
    flex-basis: calc((100% - (var(--gallery-gap) * 2)) / 3);
    max-width: calc((100% - (var(--gallery-gap) * 2)) / 3);
  }

  .fixed-five-gallery-page .case-thumb {
    flex-basis: calc((100% - (var(--gallery-gap) * 2)) / 3);
    max-width: calc((100% - (var(--gallery-gap) * 2)) / 3);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    gap: 14px;
    padding: 16px var(--panel-x);
  }

  .brand {
    display: inline-flex;
    gap: 12px;
    max-width: calc(100vw - 132px);
    align-items: center;
    font-size: 16px;
    line-height: 1.15;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .header-motion-logo {
    margin-right: 0;
  }

  .brand span {
    min-width: 0;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: 50%;
    right: var(--panel-x);
    z-index: 12;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 24px;
    margin-top: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-menu-toggle span:first-child {
    transform: translateY(-6px);
  }

  .mobile-menu-toggle span:nth-child(2) {
    transform: translateY(0);
  }

  .mobile-menu-toggle span:last-child {
    transform: translateY(6px);
  }

  .mobile-nav-open .mobile-menu-toggle span:first-child {
    transform: rotate(45deg);
  }

  .mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-open .mobile-menu-toggle span:last-child {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: var(--panel-x);
    right: var(--panel-x);
    z-index: 11;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 86px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    padding: 6px var(--panel-x) 18px;
    overflow: auto;
    background: #020204;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a,
  .nav-group > a,
  .nav-group > .nav-label {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .nav-group {
    display: block;
    padding: 0;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px 16px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown a {
    padding: 9px 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    line-height: 1.24;
  }

  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown {
    transform: none;
  }

  .site-nav > a::after,
  .nav-group > a::after,
  .nav-group > .nav-label::after {
    content: none;
  }

  .light-case-page .site-nav,
  .tashi-talk-page .site-nav,
  .about-fullscreen-page .site-nav {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #050505;
    box-shadow: none;
  }

  .light-case-page .site-nav > a,
  .light-case-page .nav-group > a,
  .light-case-page .nav-group > .nav-label,
  .tashi-talk-page .site-nav > a,
  .tashi-talk-page .nav-group > a,
  .tashi-talk-page .nav-group > .nav-label,
  .about-fullscreen-page .site-nav > a,
  .about-fullscreen-page .nav-group > a,
  .about-fullscreen-page .nav-group > .nav-label {
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }

  .light-case-page .nav-dropdown,
  .tashi-talk-page .nav-dropdown,
  .about-fullscreen-page .nav-dropdown {
    background: transparent;
    box-shadow: none;
  }

  .light-case-page .nav-dropdown a,
  .tashi-talk-page .nav-dropdown a,
  .about-fullscreen-page .nav-dropdown a {
    color: rgba(5, 5, 5, 0.74);
  }

  .case-thumb,
  .natural-thumb-page .case-thumb,
  .motion-design-page .motion-gif-gallery .case-thumb,
  .fixed-five-gallery-page .case-thumb,
  .tencent-page .case-thumb {
    flex-basis: calc(50% - 8px);
    max-width: calc(50% - 8px);
    min-width: 0;
  }

  h1 {
    font-size: clamp(4rem, 23vw, 7rem);
  }

  .hero-copy {
    padding-bottom: 20vh;
  }

  .hero-meta {
    display: none;
  }

  .scroll-hint {
    left: var(--panel-x);
    right: auto;
  }

  .work-copy h3,
  .work-intro h2,
  .motion-lab h2,
  .closing h2 {
    letter-spacing: -0.045em;
  }
}

/* Selected work: editorial project showcase. Scoped to the project block only. */
#work.work-sequence {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: clamp(84px, 12vw, 160px) var(--panel-x);
  isolation: auto;
  overflow: visible;
}

#work.work-sequence::after,
#work .work-item::before {
  display: none;
}

#work .work-section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(42px, 6vw, 78px);
  color: rgba(245, 243, 236, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

#work .work-section-heading span {
  color: var(--accent);
}

#work .work-section-heading p {
  margin: 0;
}

#work .work-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(380px, 1.28fr);
  grid-template-areas:
    "number number"
    "copy media";
  align-items: stretch;
  gap: 0 clamp(28px, 5vw, 84px);
  min-height: 0;
  padding: 20px 0 clamp(70px, 10vw, 132px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 1;
}

#work .work-item + .work-item {
  margin-top: 0;
}

#work .work-count {
  grid-area: number;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(20px, 3vw, 38px);
  color: rgba(245, 243, 236, 0.58);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

#work .work-copy {
  grid-area: copy;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 0;
  transform: none;
}

#work .work-copy::before {
  display: none;
}

#work .work-info-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

#work .work-kicker,
#work .work-year {
  margin: 0;
  color: rgba(245, 243, 236, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

#work .work-year {
  color: var(--accent);
  text-align: right;
}

#work .work-copy h3 {
  margin: clamp(22px, 3vw, 42px) 0 0;
  max-width: 620px;
  font-size: clamp(2.2rem, 4.7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

#work .work-description {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(245, 243, 236, 0.66);
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  line-height: 1.7;
}

#work .work-copy a {
  width: fit-content;
  margin-top: auto;
  padding-top: 34px;
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

#work .cover-link {
  grid-area: media;
  position: relative;
  align-self: stretch;
  width: 100%;
  min-height: clamp(300px, 38vw, 600px);
  overflow: hidden;
  background: #111;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
}

#work .cover-link img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
}

#work .work-item:hover .cover-link,
#work .work-item.is-active .cover-link {
  transform: none;
  filter: none;
}

#work .work-item:hover .cover-link img,
#work .work-item.is-active .cover-link img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.05);
}

#work .project-open {
  position: absolute;
  right: 20px;
  top: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 1.3rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
}

#work .project-stage-index {
  position: absolute;
  bottom: 18px;
  left: 20px;
  color: #fff;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.66);
}

#work .work-item:hover .project-open,
#work .work-item.is-active .project-open {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  #work.work-sequence {
    padding-top: 74px;
    padding-bottom: 74px;
  }

  #work .work-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "number"
      "copy"
      "media";
    gap: 28px;
    padding: 18px 0 62px;
  }

  #work .work-copy a {
    margin-top: 28px;
    padding-top: 0;
  }

  #work .cover-link {
    min-height: 0;
    aspect-ratio: 1.18 / 1;
  }

  #work .cover-link img {
    min-height: 0;
  }

  #work .project-open {
    width: 40px;
    height: 40px;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .brand {
    display: inline-flex;
    gap: 12px;
    max-width: calc(100vw - 112px);
    align-items: center;
    white-space: nowrap;
  }

  .header-motion-logo {
    flex: 0 0 auto;
  }
}

/* Resume-content modules */
.resume-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.resume-shell,
.contact-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - (var(--panel-x) * 2)));
  margin: 0 auto;
  padding: 172px 0 120px;
}

.resume-hero {
  display: grid;
  gap: 16px;
  min-height: 42vh;
  align-content: end;
  padding: 40px 0 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.resume-hero h1,
.resume-hero h2,
.contact-copy h1,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(4.4rem, 12vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
}

.resume-hero > p:last-child {
  max-width: 580px;
  margin: 0;
  color: rgba(245, 243, 236, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.7;
}

.timeline {
  padding: 88px 0 36px;
}

.timeline > .eyebrow,
.resume-two-column .eyebrow {
  margin-bottom: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline-date,
.resume-project > span {
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.timeline-item h2,
.timeline-item h3,
.resume-two-column h2,
.resume-two-column h3,
.resume-project h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3.1vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.timeline-item h2 span,
.timeline-item h3 span {
  color: rgba(245, 243, 236, 0.56);
  font-weight: 500;
}

.timeline-item p,
.resume-two-column p,
.resume-project p,
.contact-copy > p {
  max-width: 780px;
  margin: 0 0 12px;
  color: rgba(245, 243, 236, 0.76);
  font-size: 1rem;
  line-height: 1.8;
}

.resume-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  padding: 70px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.resume-two-column h2:not(:first-of-type),
.resume-two-column h3:not(:first-of-type) {
  margin-top: 42px;
}

.resume-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(245, 243, 236, 0.78);
  line-height: 1.55;
}

.resume-list li::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent);
}

.resume-projects {
  padding-top: 16px;
}

.resume-project {
  display: grid;
  grid-template-columns: minmax(90px, 0.15fr) minmax(0, 1fr);
  gap: 26px;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  scroll-margin-top: 110px;
}

.resume-project .eyebrow {
  margin-bottom: 14px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  align-items: stretch;
  gap: clamp(34px, 7vw, 110px);
  min-height: 100vh;
}

.contact-photo {
  min-height: 620px;
  overflow: hidden;
  background: #191919;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.contact-copy {
  align-self: center;
  padding: 42px 0;
}

.contact-copy .eyebrow {
  margin-bottom: 20px;
}

.contact-copy > p {
  margin-top: 30px;
  font-size: 1.08rem;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 38px;
}

.contact-links a,
.contact-links span {
  color: var(--text);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-qr {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-top: 42px;
}

.contact-qr img {
  width: 122px;
  height: 122px;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.contact-qr p {
  margin: 0 0 8px;
  color: rgba(245, 243, 236, 0.64);
}

/* Homepage anchors retain the standalone-page content but stay in one scroll. */
#experience,
#contact {
  scroll-margin-top: 104px;
}

@media (max-width: 760px) {
  .resume-shell,
  .contact-shell {
    width: min(100% - 40px, 620px);
    padding-top: 116px;
    padding-bottom: 72px;
  }

  .resume-hero {
    min-height: 32vh;
    padding-bottom: 50px;
  }

  .timeline {
    padding-top: 54px;
  }

  .timeline-item,
  .resume-project,
  .resume-two-column,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .resume-project {
    gap: 14px;
    padding: 30px 0;
  }

  .resume-two-column {
    gap: 54px;
    padding-top: 54px;
  }

  .contact-shell {
    gap: 30px;
  }

  .contact-photo {
    min-height: 450px;
  }
}

/* Experience: a two-column resume composition over the original ambient scene. */
#experience.resume-shell {
  position: relative;
  isolation: auto;
  width: 100%;
  margin: 0;
  padding: 71.1px;
  overflow: hidden;
}

#experience.resume-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--glass-tint);
  border-block: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  pointer-events: none;
}

#experience .experience-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
  width: min(1380px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.19);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

#experience .cv-profile,
#experience .cv-resume {
  min-width: 0;
  padding: clamp(34px, 4.5vw, 70px) clamp(24px, 4vw, 66px);
}

#experience .cv-profile {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

#experience .eyebrow,
#experience .cv-resume-heading span {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#experience .cv-identity {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: clamp(32px, 5vw, 72px);
}

#experience .cv-identity img {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.78) contrast(1.04);
}

#experience .cv-identity h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.3rem, 4.5vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

#experience .cv-identity h2 span {
  display: block;
  margin-top: 7px;
  color: rgba(245, 243, 236, 0.62);
  font-size: 0.45em;
  font-weight: 650;
  letter-spacing: -0.035em;
}

#experience .cv-identity div > p {
  margin: 15px 0 0;
  color: rgba(245, 243, 236, 0.76);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#experience .cv-summary {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

#experience .cv-summary p,
#experience .cv-profile-block > p:not(.eyebrow),
#experience .cv-role > p:not(.timeline-date) {
  margin: 0;
  color: rgba(245, 243, 236, 0.75);
  font-size: 0.98rem;
  line-height: 1.72;
}

#experience .cv-profile-block {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#experience .cv-profile-block h3 {
  margin: 24px 0 12px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
}

#experience .cv-summary + .cv-profile-block > p:not(.eyebrow) {
  /* Academic details need a slower, easier-to-scan cadence than body copy. */
  line-height: 1.9;
}

#experience .cv-summary + .cv-profile-block {
  /* Keep the lower breathing room explicit at every viewport, including
     the single-column layout where flex auto-spacing is unavailable. */
  padding-bottom: 49px;
}

#experience .cv-profile-block .resume-list {
  gap: 10px;
  margin-top: 24px;
  font-size: 0.95rem;
}

#experience .cv-resume-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

#experience .cv-resume-heading p {
  margin: 0;
  color: rgba(245, 243, 236, 0.52);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#experience .cv-role {
  display: grid;
  grid-template-columns: minmax(128px, 0.32fr) minmax(0, 0.78fr) minmax(0, 1.25fr);
  column-gap: clamp(18px, 3vw, 44px);
  align-items: start;
  padding: clamp(30px, 4vw, 52px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

#experience .cv-role .timeline-date {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 0.67rem;
  line-height: 1.4;
}

#experience .cv-role h3,
#experience .cv-role h4 {
  grid-column: 2;
  margin: 0;
}

#experience .cv-role h3 {
  color: var(--text);
  font-size: clamp(1.08rem, 1.7vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

#experience .cv-role h4 {
  margin-top: 9px;
  color: rgba(245, 243, 236, 0.55);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

#experience .cv-role > p:not(.timeline-date) {
  grid-column: 3;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

#experience .cv-role > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  #experience .experience-layout {
    grid-template-columns: 1fr;
  }

  #experience .cv-profile {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  #experience .cv-role {
    grid-template-columns: minmax(130px, 0.34fr) minmax(0, 0.66fr);
    row-gap: 10px;
  }

  #experience .cv-role > p:not(.timeline-date) {
    grid-column: 1 / -1;
    margin-top: 14px;
  }
}

@media (min-width: 861px) and (max-width: 1300px) {
  #experience .cv-role {
    grid-template-columns: minmax(126px, 0.3fr) minmax(0, 0.7fr);
    row-gap: 10px;
  }

  #experience .cv-role > p:not(.timeline-date) {
    grid-column: 1 / -1;
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  #experience.resume-shell {
    padding: 92px 20px;
  }

  #experience .cv-profile,
  #experience .cv-resume {
    padding: 34px 22px;
  }

  #experience .cv-identity {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    margin-top: 34px;
  }

  #experience .cv-identity img {
    width: 76px;
    height: 76px;
  }

  #experience .cv-resume-heading {
    display: grid;
    gap: 9px;
  }

  #experience .cv-role {
    display: block;
  }

  #experience .cv-role .timeline-date {
    margin-bottom: 16px;
  }

  #experience .cv-role h4 {
    margin-bottom: 22px;
  }

  #experience .cv-role > p:not(.timeline-date) + p {
    margin-top: 12px;
  }
}

/* Compact career rows: dates belong to the role metadata, not a separate column. */
#experience .cv-role {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  padding: clamp(26px, 3vw, 38px) 0;
}

#experience .cv-role h3 {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

#experience .cv-role h4 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  color: rgba(245, 243, 236, 0.6);
  font-size: 0.76rem;
}

#experience .cv-role .timeline-date {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  white-space: nowrap;
}

#experience .cv-role > p:not(.timeline-date) {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  max-width: 780px;
  font-size: 0.94rem;
  line-height: 1.62;
}

#experience .cv-role > p:not(.timeline-date) + p {
  margin-top: 2px;
}

@media (max-width: 560px) {
  #experience .cv-role {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  #experience .cv-role h3,
  #experience .cv-role h4,
  #experience .cv-role .timeline-date,
  #experience .cv-role > p:not(.timeline-date) {
    grid-column: 1;
    grid-row: auto;
  }

  #experience .cv-role .timeline-date {
    order: 3;
  }

  #experience .cv-role > p:not(.timeline-date) {
    order: 4;
    margin-top: 8px;
  }
}

/* Resume details use a compact brief-style header plus scannable responsibility points. */
#experience .cv-role {
  display: block;
  padding: clamp(28px, 3vw, 40px) 0;
}

#experience .cv-role > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

#experience .cv-role > header h3 {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  flex: 1 1 auto;
  gap: 0 0.3em;
  min-width: 0;
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.02rem, 1.45vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

#experience .cv-role > header h3 span {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
}

#experience .cv-role > header h3 .cv-company {
  color: var(--accent);
  font-weight: 700;
}

#experience .cv-role > header h3 .cv-role-title {
  color: rgba(245, 243, 236, 0.86);
}

#experience .cv-role > header .timeline-date {
  flex: 0 0 auto;
  margin: 0;
  color: rgba(245, 243, 236, 0.94);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

#experience .cv-role-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

#experience .cv-role-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  color: rgba(245, 243, 236, 0.78);
  font-size: 0.94rem;
  line-height: 1.62;
}

#experience .cv-role-points li::before {
  content: "•";
  color: var(--accent);
  font-weight: 900;
}

#experience .cv-role-points strong {
  color: var(--text);
  font-weight: 800;
}

#experience .cv-role-points span {
  grid-column: 2;
}

@media (min-width: 861px) {
  #experience .cv-profile {
    display: flex;
    flex-direction: column;
  }

  #experience .cv-summary + .cv-profile-block {
    /* The first rule aligns with the first career divider; each text group
       now leaves the same visual breath before its following rule. */
    margin-top: 49px;
    padding-top: 48px;
  }

  #experience .cv-summary + .cv-profile-block h3 {
    margin-top: 24px;
    /* A school name and its degree are one information unit. */
    margin-bottom: 12px;
  }

  #experience .cv-summary + .cv-profile-block h3 + p + h3 {
    margin-top: 48px;
  }

  #experience .cv-profile .cv-profile-block:last-child {
    margin-top: auto;
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 0;
  }
}

#experience .cv-role:last-child {
  border-bottom: 0;
}

@media (max-width: 560px) {
  #experience .cv-role > header {
    display: grid;
    gap: 10px;
  }

  #experience .cv-role > header .timeline-date {
    justify-self: start;
  }

  #experience .cv-role-points {
    gap: 12px;
    margin-top: 20px;
  }

  #experience .cv-role-points li {
    font-size: 0.91rem;
  }
}

@media (max-width: 860px) {
  #experience .cv-role > header h3 {
    display: flex;
    white-space: nowrap;
    gap: 0 0.3em;
  }

  #experience .cv-role > header h3 span {
    white-space: nowrap;
  }

  #experience .cv-role > header h3 .cv-company,
  #experience .cv-role > header h3 .cv-role-title {
    display: block;
    white-space: nowrap;
  }
}

/* At intermediate widths, keep each title unit intact and stack the two
   units before the date can force a mid-name line break. */
@media (max-width: 1300px) {
  #experience .cv-role > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    row-gap: 8px;
  }

  #experience .cv-role > header h3 {
    display: flex;
    gap: 0 0.3em;
    white-space: nowrap;
  }

  #experience .cv-role > header h3 span {
    white-space: nowrap;
  }

  #experience .cv-role > header .timeline-date {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
}

@media (max-width: 560px) {
  #experience .cv-role > header {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  #experience .cv-role > header h3 {
    font-size: clamp(0.9rem, 4.2vw, 1.2rem);
    letter-spacing: -0.055em;
  }

  #experience .cv-role > header .timeline-date {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Selected work: one wide project card per viewport. */
#work.work-sequence {
  width: min(1440px, 100%);
  padding: 88px var(--panel-x) 120px;
}

#work .work-section-heading {
  width: min(1240px, 100%);
  margin: 0 auto clamp(34px, 4vw, 58px);
}

#work .work-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "copy";
  width: min(1240px, 100%);
  min-height: min(850px, calc(100svh - 116px));
  margin: 0 auto clamp(70px, 9vw, 128px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  /* Keep the card shell transparent so the footer's glass can pick up a
     hint of the stage beneath it instead of reading as a solid black slab. */
  background: rgba(10, 11, 13, 0.34);
  box-shadow: 0 36px 92px rgba(0, 0, 0, 0.34);
  scroll-margin-top: 112px;
}

#work .work-item + .work-item {
  margin-top: 0;
}

#work .work-count {
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  left: clamp(22px, 3vw, 42px);
  z-index: 3;
  display: block;
  margin: 0;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.66);
}

#work .cover-link {
  grid-area: media;
  min-height: 0;
  height: auto;
  aspect-ratio: 2.15 / 1;
  background: #0a0b0d;
}

#work .cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 32%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

#work .cover-link img {
  min-height: 0;
  filter: saturate(0.88) contrast(1.04);
}

#work .project-open {
  display: none;
}

#work .project-stage-index {
  z-index: 2;
  bottom: 20px;
  left: clamp(22px, 3vw, 42px);
}

#work .work-copy {
  grid-area: copy;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title action"
    "description action";
  column-gap: 36px;
  row-gap: 0;
  min-height: clamp(280px, 25vw, 350px);
  padding: clamp(28px, 4vw, 52px) clamp(26px, 4.5vw, 64px);
  background: linear-gradient(135deg, rgba(23, 24, 27, 0.98), rgba(9, 10, 12, 0.98));
}

#work .work-info-top {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

#work .work-kicker,
#work .work-year {
  color: rgba(245, 243, 236, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

#work .work-year {
  color: var(--accent);
}

#work .work-copy h3 {
  grid-area: title;
  align-self: end;
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

#work .work-description {
  grid-area: description;
  align-self: start;
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(245, 243, 236, 0.64);
  font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

#work .work-copy a {
  grid-area: action;
  align-self: end;
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 22%, #3d4851 0%, #202830 56%, #14191f 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  color: transparent;
  font-size: 0;
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

#work .work-copy a::before {
  content: "";
  place-self: center;
  width: 30px;
  height: 30px;
  transform: translateY(1px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f3ec' stroke-width='3.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 19 5M9 5h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
}

#work .work-copy a::after {
  display: none;
}

#work .work-item:hover .cover-link img,
#work .work-item.is-active .cover-link img {
  transform: scale(1.035);
}

#work .work-item:hover .work-copy a,
#work .work-item.is-active .work-copy a,
#work .work-copy a:focus-visible {
  background: radial-gradient(circle at 32% 22%, #4a5660 0%, #27313a 56%, #181e25 100%);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  #work.work-sequence {
    padding: 74px 20px 84px;
  }

  #work .work-item {
    min-height: 0;
    margin-bottom: 64px;
    border-radius: 12px;
  }

  #work .cover-link {
    aspect-ratio: 1.35 / 1;
  }

  #work .work-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "description"
      "action";
    min-height: 0;
    padding: 28px 24px;
  }

  #work .work-copy h3 {
    margin-top: 0;
    font-size: clamp(2.2rem, 12vw, 4.1rem);
  }

  #work .work-description {
    margin-top: 18px;
  }

  #work .work-copy a {
    width: 52px;
    height: 52px;
    margin-top: 28px;
  }
}

/* Project index: preserve the supplied cover artwork at its native aspect
   ratio while retaining the original card metadata, title, and action. */
#work .work-item {
  display: grid;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  /* Keep the card outline quiet at its lower edge so it does not read as an
     extra divider before the following section. */
  border-bottom-color: transparent;
  border-radius: 18px;
  /* The card itself must stay clear as well; otherwise a translucent footer
     still composites over an opaque black parent and cannot look like glass. */
  background: rgba(10, 11, 13, 0.14);
  box-shadow: 0 36px 92px rgba(0, 0, 0, 0.34);
}

#work .work-copy {
  display: grid;
  grid-template-areas:
    "meta meta"
    "title action"
    "description action";
}

#work .work-copy h3 {
  margin: clamp(26px, 4vw, 50px) 0 0;
}

#work .work-count,
#work .project-stage-index {
  display: block;
}

#work .cover-link {
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  overflow: hidden;
  background: #0a0b0d;
  z-index: 1;
}

#work .cover-link img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  filter: none;
  transform: none;
}

#work .work-item:hover .cover-link img,
#work .work-item.is-active .cover-link img {
  filter: none;
  transform: none;
}

@media (max-width: 760px) {
  #work .work-copy {
    grid-template-areas:
      "meta"
      "title"
      "description"
      "action";
  }

  #work .work-copy h3 {
    margin-top: 30px;
  }
}

/* The footer uses compact project tags in place of the old kicker row and
   descriptive paragraph. */
#work .work-copy {
  grid-template-areas:
    "title action"
    "tags action";
}

#work .work-info-top {
  display: none;
}

#work .work-copy h3 {
  margin: 0;
}

#work .work-tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  align-self: start;
  gap: 10px;
  margin-top: 22px;
}

#work .work-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(245, 243, 236, 0.78);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 760px) {
  #work .work-copy {
    grid-template-areas:
      "title"
      "tags"
      "action";
  }

  #work .work-copy h3 {
    margin-top: 0;
  }

  #work .work-tags {
    margin-top: 18px;
  }
}

/* Compact frosted-glass project footers: the image remains the hero while
   title, tags and action occupy one deliberate information layer. */
#work .work-copy {
  position: relative;
  z-index: 2;
  isolation: isolate;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 126px;
  height: 126px;
  /* Keep the cover at its complete supplied dimensions. The glass begins only
     after the artwork, where it lightly refracts the ambient stage behind. */
  margin-top: 0;
  margin-bottom: 0;
  transform: none;
  padding: 18px clamp(22px, 3.1vw, 40px) 16px;
  /* A light, smoky glass: deliberately translucent, with just enough blur
     for the artwork and ambient stage to remain subtly perceptible. */
  background:
    linear-gradient(112deg, rgba(23, 27, 32, 0.38), rgba(7, 9, 12, 0.18) 64%, rgba(4, 6, 9, 0.27)),
    rgba(5, 7, 9, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 -12px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

#work .work-copy::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.075), transparent 28%, transparent 73%, rgba(5, 250, 5, 0.032)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%);
}

#work .work-copy > * {
  position: relative;
  z-index: 1;
}

#work .work-copy h3 {
  align-self: end;
  font-size: clamp(21px, 1.5vw, 24px);
  line-height: 0.98;
  position: relative;
  top: -16px;
}

#work .work-tags {
  align-self: start;
  gap: 7px;
  margin-top: 9px;
  position: relative;
  top: -4px;
}

#work .work-tags span {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(245, 243, 236, 0.78);
  font-size: 11px;
  font-weight: 540;
  letter-spacing: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#work .work-copy a {
  position: relative;
  align-self: end;
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  border: 1.5px solid rgba(245, 243, 236, 0.42);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* The action aligns to the visual centre of the compact tag row. */
  transform: translateY(-8px);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

#work .work-copy a::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: 0;
  /* Use the circle's actual centre rather than grid placement or optical offsets. */
  transform: translate(-50%, -50%);
}

#work .work-item:hover .work-copy a,
#work .work-item.is-active .work-copy a,
#work .work-copy a:focus-visible,
#work .work-copy a:active {
  border-color: var(--accent);
  /* Keep the centre open so the control remains a simple outlined arrow. */
  background: transparent;
  box-shadow: 0 0 16px rgba(5, 250, 5, 0.16);
  transform: translateY(-8px);
}

#work .work-copy a:active::before {
  filter: none;
}

@media (max-width: 760px) {
  #work .work-copy {
    /* On compact cards the full cover remains unobstructed and is itself the
       tap target, so the desktop glass overlap is intentionally removed. */
    margin-top: 0;
    margin-bottom: 0;
    transform: none;
    height: auto;
    grid-template-areas:
      "title"
      "tags";
    grid-template-rows: auto auto;
    min-height: 0;
    gap: 0;
    padding: 28px 24px 30px;
  }

  /* The full cover remains the touch target on compact screens, so an
     isolated round action creates a misleading empty row and is removed. */
  #work .work-copy a {
    display: none;
  }

  #work .work-copy h3 {
    top: 0;
    margin: 0;
    font-size: clamp(1.55rem, 6.8vw, 2.25rem);
    line-height: 1;
  }
}

/* Homepage contact: a single, centered closing note. */
#contact.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: clamp(96px, 10vw, 150px) var(--panel-x);
  place-items: center;
}

#contact .contact-copy {
  display: flex;
  width: min(100%, 560px);
  align-items: center;
  flex-direction: column;
  padding: 0;
  text-align: center;
}

#contact .contact-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

#contact .contact-links {
  display: grid;
  width: 100%;
  gap: 38px;
  margin-top: clamp(56px, 6vw, 88px);
}

#contact .contact-method,
#contact .contact-qr {
  display: flex;
  align-items: center;
  flex-direction: column;
}

#contact .contact-method {
  gap: 12px;
}

#contact .contact-method strong,
#contact .contact-qr strong {
  color: #fff;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  font-weight: 750;
  line-height: 1.2;
}

#contact .contact-method a {
  color: rgba(245, 243, 236, 0.76);
  font-size: clamp(1.06rem, 1.65vw, 1.42rem);
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease;
}

#contact .contact-method a:hover,
#contact .contact-method a:focus-visible {
  color: var(--accent);
}

#contact .contact-qr {
  gap: 16px;
  margin-top: 48px;
}

#contact .contact-qr img {
  width: clamp(148px, 11vw, 220px);
  height: auto;
  margin: 0;
  background: #fff;
}

#contact .contact-qr span {
  color: rgba(245, 243, 236, 0.58);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  #contact.contact-shell {
    min-height: 0;
    padding: 100px 20px;
  }

  #contact .contact-links {
    gap: 30px;
    margin-top: 52px;
  }

  #contact .contact-qr {
    margin-top: 42px;
  }
}

/* Beyond the interface: two opposing, continuous card tracks. */
#lab.motion-lab {
  display: block;
  min-height: auto;
  padding: clamp(96px, 11vw, 164px) 0;
  overflow: hidden;
}

/* Let the ambient background and cursor effect pass through this section
   directly; the design-outside area intentionally has no frosted veil. */
#lab.motion-lab::after {
  display: none;
}

#lab .lab-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "eyebrow"
    "title"
    "themes";
  align-items: start;
  justify-items: center;
  text-align: center;
  row-gap: clamp(14px, 1.8vw, 24px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 var(--panel-x);
}

#lab .lab-intro .eyebrow {
  grid-area: eyebrow;
}

#lab .lab-intro h2 {
  grid-area: title;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.8rem, 7vw, 8.1rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

#lab .lab-intro .lab-themes {
  grid-area: themes;
  max-width: none;
  margin: 0;
  color: rgba(245, 243, 236, 0.62);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

#lab .lab-intro .lab-themes .lab-theme {
  color: var(--accent);
}

#lab .lab-intro .lab-themes .lab-divider {
  padding: 0 0.22em;
  color: var(--text);
}

#lab .lab-marquee {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: clamp(54px, 7vw, 96px);
}

#lab .lab-marquee-row {
  width: 100%;
  overflow: hidden;
  content-visibility: auto;
  contain: layout paint style;
  contain-intrinsic-size: auto 272px;
}

#lab .lab-marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 0 8px;
  contain: layout paint;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

#lab .lab-marquee-row-forward .lab-marquee-track {
  animation: lab-track-forward 46s linear infinite;
}

#lab .lab-marquee-row-reverse .lab-marquee-track {
  animation: lab-track-reverse 52s linear infinite;
}

#lab .lab-marquee:hover .lab-marquee-track,
#lab .lab-marquee:focus-within .lab-marquee-track {
  animation-play-state: paused;
}

#lab .lab-card {
  display: block;
  width: clamp(270px, 28vw, 420px);
  aspect-ratio: 1.55 / 1;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #0c0e11;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  cursor: default;
  contain: layout paint;
}

#lab .lab-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Present the supplied photographs faithfully, without a darkening or colour treatment. */
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@keyframes lab-track-forward {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes lab-track-reverse {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 760px) {
  #lab.motion-lab {
    padding: 88px 0 96px;
  }

  #lab .lab-intro h2 {
    font-size: clamp(3.5rem, 17vw, 5.6rem);
  }

  #lab .lab-intro {
    row-gap: 16px;
  }

  #lab .lab-intro .lab-themes {
    margin: 0;
    font-size: clamp(0.82rem, 3.5vw, 0.98rem);
    text-align: center;
    white-space: normal;
  }

  #lab .lab-marquee {
    gap: 12px;
    margin-top: 48px;
  }

  #lab .lab-marquee-track {
    gap: 12px;
  }

  #lab .lab-card {
    width: min(76vw, 330px);
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lab .lab-marquee-track {
    animation-play-state: paused;
    transform: none;
  }
}

/* Visual project: source pages are presented in their supplied order without
   cropping, overlays, or editorial reinterpretation. */
.visual-project-page {
  margin: 0;
  background: #000;
}

.visual-project-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  height: 105px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(32px, 4vw, 56px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.94), rgba(10, 10, 12, 0.78));
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.visual-project-header a {
  color: inherit;
  text-decoration: none;
}

.visual-project-header a:hover {
  color: var(--accent);
}

.visual-project-pages {
  width: min(100% - clamp(40px, 8vw, 154px), 1920px);
  margin: 105px auto 0;
}

.visual-project-pages img {
  display: block;
  width: 100%;
  height: auto;
}

.visual-project-to-top {
  position: fixed;
  right: clamp(20px, 3vw, 46px);
  bottom: clamp(20px, 3vw, 46px);
  z-index: 10;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(245, 243, 236, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  color: #0a0a0c;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.visual-project-to-top:hover,
.visual-project-to-top:focus-visible {
  background: var(--accent);
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  .visual-project-header {
    height: 72px;
    padding: 0 20px;
    font-size: 0.65rem;
  }

  .visual-project-to-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .visual-project-pages {
    width: calc(100% - 24px);
    margin-top: 72px;
  }
}

/* Mobile project cards: keep the cover and frosted footer as one continuous
   surface, then give the compact title/tag stack a little more breathing room. */
@media (max-width: 760px) {
  #work .work-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "copy";
    grid-template-rows: auto auto;
    row-gap: 0;
  }

  #work .cover-link {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    line-height: 0;
  }

  #work .cover-link img {
    display: block;
    width: 100%;
    height: auto;
  }

  #work .work-copy {
    display: grid;
    grid-template-areas: "title" "tags";
    grid-template-rows: auto auto;
    align-content: start;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 20px 20px 20px;
    gap: 0;
    transform: none;
    border-top: 0;
    background:
      linear-gradient(112deg, rgba(23, 27, 32, 0.38), rgba(7, 9, 12, 0.18) 64%, rgba(4, 6, 9, 0.27)),
      rgba(5, 7, 9, 0.1);
  }

  #work .work-copy h3 {
    top: 0;
    margin: 0;
    font-size: clamp(1.3rem, 5.2vw, 1.72rem);
    line-height: 1.08;
    /* Keep the title optically centred in the compact frosted footer while
       preserving the breathing room before the tag row. */
    transform: none;
  }

  #work .work-tags {
    top: 0;
    gap: 6px;
    margin-top: 16px;
  }

  #work .work-tags span {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
    line-height: 1;
  }
}

/* Resume rhythm: use one shared distance from the last line of copy to every
   divider at every viewport. Do not let flex auto-spacing stretch a section. */
#experience {
  --resume-divider-gap: 32px;
}

#experience .cv-summary + .cv-profile-block,
#experience .cv-profile .cv-profile-block:last-child {
  margin-top: var(--resume-divider-gap);
}

#experience .cv-profile-block {
  padding-top: 24px;
}

#experience .cv-profile .cv-profile-block:last-child {
  margin-top: var(--resume-divider-gap);
  padding-top: 24px;
  padding-bottom: 0;
}

#experience .cv-role {
  padding-top: var(--resume-divider-gap);
  padding-bottom: var(--resume-divider-gap);
}

@media (max-width: 860px) {
  #experience .cv-profile {
    display: block;
    padding-bottom: 32px;
  }

  #experience .cv-profile-block,
  #experience .cv-summary + .cv-profile-block,
  #experience .cv-profile .cv-profile-block:last-child {
    margin-top: var(--resume-divider-gap);
    padding-top: 24px;
    padding-bottom: 0;
  }

  #experience .cv-role {
    padding-top: var(--resume-divider-gap);
    padding-bottom: var(--resume-divider-gap);
  }
}

@media (min-width: 861px) {
  #experience .cv-profile {
    display: block;
    padding-bottom: 32px;
  }

  #experience .cv-profile-block,
  #experience .cv-summary + .cv-profile-block,
  #experience .cv-profile .cv-profile-block:last-child {
    margin-top: var(--resume-divider-gap);
    padding-top: 24px;
    padding-bottom: 0;
  }

  #experience .cv-role {
    padding-top: var(--resume-divider-gap);
    padding-bottom: var(--resume-divider-gap);
  }
}
