@import url('https://fonts.googleapis.com/css2?family=Anton&family=Ballet:opsz@16..72&family=Cutive+Mono&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #e7e6e4;
  --text: #2f2d2c;
  --muted: rgba(47, 45, 44, 0.58);
  --red: #cf1f22;
  --line: rgba(47, 45, 44, 0.14);
  --white: #f7f5f1;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Cutive Mono', monospace;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.35s ease-in-out;
  z-index: -3;
}

.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(231, 230, 228, 0.34);
}

.rotor {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: -2;
}

.rotor svg,
.rotor img {
  width: min(63vw, 760px);
  opacity: 0.82;
  animation: spin 24s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.poster-shell,
.section-shell,
.project-shell {
  width: min(100% - 40px, 1380px);
  margin: 0 auto;
  position: relative;
}

.poster-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-label,
.mini-nav a,
.page-code,
.page-foot,
.page-topnote {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.corner-label {
  position: absolute;
  z-index: 3;
}

.corner-top-left { top: 24px; left: 4px; }
.corner-top-right { top: 24px; right: 4px; }
.corner-bottom-left { bottom: 24px; left: 4px; }
.corner-bottom-right { bottom: 24px; right: 4px; }

.home-mark {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

.home-center,
.link-stack {
  position: relative;
  z-index: 2;
  mix-blend-mode: multiply;
}

.home-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.02em;
  width: 100%;
}

.poster-link,
.section-link,
.section-title,
.project-title,
.ghost-word {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.88;
}

.poster-link {
  display: block;
  color: var(--red);
  font-size: clamp(66px, 12vw, 164px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
}

.poster-link:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.is-faded { opacity: 0.18; }

.mini-nav {
  position: absolute;
  top: 22px;
  right: 4px;
  display: flex;
  gap: 14px;
  z-index: 4;
}

.home-utility {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.home-utility a {
  color: var(--muted);
}

.home-utility a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.mini-nav a,
.page-actions a {
  color: var(--text);
  border-bottom: 1px solid transparent;
}

.mini-nav a:hover,
.page-actions a:hover,
.page-actions a.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.section-shell,
.project-shell {
  min-height: 100vh;
  padding: 24px 0 40px;
}

.page-code {
  color: var(--muted);
}

.page-actions {
  position: absolute;
  top: 22px;
  right: 4px;
  display: flex;
  gap: 14px;
  z-index: 4;
}

.section-hero {
  padding-top: 72px;
  text-align: center;
}

.section-title {
  font-size: clamp(74px, 11vw, 148px);
  color: var(--red);
  margin: 0;
  text-align: center;
}

.page-topnote {
  margin-top: 6px;
  color: var(--muted);
  text-align: center;
}

.link-stack {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.01em;
}

.section-link {
  display: block;
  color: var(--red);
  font-size: clamp(52px, 8.8vw, 118px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-align: center;
}

.visual-grid,
.art-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.visual-card,
.art-card,
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  background: rgba(255,255,255,0.15);
}

.visual-card img,
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-card::after,
.project-card::after,
.art-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.40), rgba(0,0,0,0.05) 56%);
}

.visual-card.large { grid-column: span 7; min-height: 460px; }
.visual-card.small { grid-column: span 5; min-height: 460px; }
.visual-card.full { grid-column: span 12; min-height: 520px; }

.tile-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.art-card {
  grid-column: span 6;
  min-height: 380px;
  background: rgba(255,255,255,0.18);
}

.art-card .art-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  filter: none;
}

.art-card::after {
  background: linear-gradient(to top, rgba(255,255,255,0.04), rgba(255,255,255,0));
}

.art-card .ghost-word {
  position: absolute;
  left: 18px;
  top: 20px;
  right: 18px;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.88;
  color: rgba(207, 31, 34, 0.28);
  z-index: 1;
}

.art-card .art-meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.art-card .art-meta strong,
.art-card .art-meta span {
  display: block;
  text-transform: uppercase;
}

.art-card .art-meta strong {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.art-card .art-meta span {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-foot {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.project-hero {
  position: relative;
  min-height: 76vh;
  margin-top: 64px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: end;
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.04));
}

.project-meta {
  position: relative;
  z-index: 2;
  padding: 26px;
  color: var(--white);
}

.project-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  margin-bottom: 10px;
}

.project-title {
  margin: 0;
  font-size: clamp(58px, 10vw, 144px);
}

.project-card.span-4 { grid-column: span 4; min-height: 300px; }
.project-card.span-6 { grid-column: span 6; min-height: 360px; }
.project-card.span-8 { grid-column: span 8; min-height: 360px; }
.project-card.span-12 { grid-column: span 12; min-height: 420px; }

.project-note {
  margin-top: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 980px) {
  .visual-card.large,
  .visual-card.small,
  .visual-card.full,
  .art-card,
  .project-card.span-4,
  .project-card.span-6,
  .project-card.span-8,
  .project-card.span-12 {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .poster-shell,
  .section-shell,
  .project-shell { width: min(100% - 18px, 1380px); }
  .rotor svg, .rotor img { width: min(88vw, 560px); }
  .poster-shell {
    padding: 72px 16px;
  }
  .home-center {
    padding-top: 0;
    gap: clamp(10px, 2.5vw, 24px);
  }
  .poster-link {
    font-size: clamp(44px, 13vw, 112px);
  }
  .section-title {
    font-size: clamp(62px, 18vw, 110px);
  }
  .section-link {
    font-size: clamp(48px, 15vw, 96px);
  }
  .project-meta { padding: 18px; }
  .project-title { font-size: clamp(42px, 18vw, 88px); }
}

/* --- STAGED FRAME + HOME TYPE REVISION --- */
.mini-nav,
.page-actions,
.corner-label,
.home-mark {
  display: none !important;
}

.site-corner {
  position: fixed;
  z-index: 12;
  padding: 10px 12px;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 27px;
  line-height: 1;
  color: var(--text);
  opacity: 0.82;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.18s ease;
}

.site-corner:hover,
.site-corner.is-active {
  color: var(--red);
  opacity: 1;
  transform: scale(1.06);
}

.site-corner--tl {
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  font-family: 'Ballet', cursive;
  font-size: 33px;
  text-transform: none;
  letter-spacing: 0;
}

.site-corner--tr { top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); }
.site-corner--bl { bottom: max(18px, env(safe-area-inset-bottom)); left: max(18px, env(safe-area-inset-left)); }
.site-corner--br { bottom: max(18px, env(safe-area-inset-bottom)); right: max(18px, env(safe-area-inset-right)); }

.home-center {
  gap: 0.24em;
}

.poster-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.02em 0;
  min-height: 0.92em;
}

.poster-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  flex-wrap: wrap;
}

.poster-word {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.poster-word--anton {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--red);
}

.poster-word--ballet {
  font-family: 'Ballet', cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--red);
  font-size: 1.08em;
  margin-left: 0.02em;
}

.poster-word--anton {
  font-size: 0.86em;
}

.reveal-char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px) scale(0.94) rotate(2deg);
  animation: reveloLikeIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--char-delay, 0ms);
  will-change: transform, opacity, filter;
}

/* After intro animation completes, freeze chars so hover doesn't re-trigger */
body.is-revealed .reveal-char {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

@keyframes reveloLikeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(26px) scale(0.92) rotate(3deg);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1) rotate(0deg);
  }
}


@media (max-width: 900px) {
  .poster-line {
    gap: 0.08em;
  }
}


@media (max-width: 720px) {
  .site-corner {
    padding: 8px 10px;
    font-size: 20px;
    letter-spacing: 0.04em;
  }

  .site-corner--tl {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    font-size: 26px;
  }

  .site-corner--tr { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
  .site-corner--bl { bottom: max(12px, env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); }
  .site-corner--br { bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }

  .poster-link {
    min-height: 1.08em;
  }

  .poster-line {
    flex-wrap: nowrap;
    gap: 0.08em;
    line-height: 0.9;
  }

  .poster-word--ballet {
    font-size: 0.8em;
    margin-top: -0.04em;
  }

  .poster-word--anton {
    font-size: 0.62em;
  }
}

@media (max-width: 480px) {
  .home-center {
    gap: clamp(8px, 2vw, 16px);
    padding-top: 0;
  }
  .poster-link {
    font-size: clamp(70px, 21vw, 101px);
    min-height: 0;
  }
  .poster-word--ballet {
    margin-top: 0;
  }
}

/* ---- WORK PAGE ---- */
.work-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 104px 24px 148px;
}

.work-inner {
  width: min(100%, 1320px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-lede {
  max-width: 1040px;
  margin: 0 0 52px;
  color: rgba(47, 45, 44, 0.96);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.005em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 0 10px rgba(231, 230, 228, 0.82), 0 0 22px rgba(231, 230, 228, 0.66);
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.11em;
  width: 100%;
  mix-blend-mode: multiply;
}

.work-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 7.8vw, 112px);
  line-height: 0.98;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  transition: opacity 0.28s ease;
  white-space: nowrap;
  position: relative;
}

.work-item--static {
  cursor: default;
}

.work-item.is-faded {
  opacity: 0.1;
}

.work-split {
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-split--left {
  margin-right: 0.12em;
}

.work-split--right {
  margin-left: 0.12em;
}

.work-outro {
  max-width: 760px;
  margin: 64px 0 0;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  text-align: center;
}

.work-outro a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Zero-width slot — logo floats out of it absolutely */
.work-logo-slot {
  display: inline-block;
  width: 0;
  height: 0;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.work-logo-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-15deg);
  width: 0.6em;
  height: 0.6em;
  border: none;
  border-radius: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.06s,
              opacity 0.32s ease 0.06s;
}

.work-logo-inner::before {
  content: '+';
  font-family: 'Cutive Mono', monospace;
  font-size: 0.52em;
  color: var(--text);
  line-height: 1;
}

/* Real brand logo inside the slot — inline SVG path */
.work-logo-inner svg.work-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
  color: var(--red);
}
.work-logo-inner:has(svg.work-logo-svg)::before {
  display: none;
}

/* Real brand logo — CSS mask from external SVG (no inline bloat) */
.work-logo-inner.has-logo::before {
  display: none;
}
.work-logo-inner.has-logo--lg {
  width: 0.82em;
  height: 0.82em;
}
.work-logo-inner.has-logo::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--red);
  -webkit-mask: var(--logo) no-repeat center / contain;
  mask: var(--logo) no-repeat center / contain;
}

/* Desktop hover: words split, logo appears */
@media (hover: hover) {
  .work-item:hover .work-split--left {
    transform: translateX(-0.5em);
  }
  .work-item:hover .work-split--right {
    transform: translateX(0.5em);
  }
  .work-item:hover .work-logo-inner {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ---- PRIVACY SWAP PAGE ---- */
.privacy-swap-shell {
  width: min(100% - 40px, 1380px);
  margin: 0 auto;
  padding: 0 0 140px;
}

.case-fixed-line,
.case-back,
.privacy-swap-tagline,
.privacy-swap-gallery-note,
.privacy-swap-lightbox-close {
  color: rgba(47, 45, 44, 0.96);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.005em;
  text-shadow: 0 0 10px rgba(231, 230, 228, 0.82), 0 0 22px rgba(231, 230, 228, 0.66);
}

.case-fixed-line {
  position: fixed;
  left: 50%;
  z-index: 11;
  width: min(100% - 220px, 1080px);
  transform: translateX(-50%);
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}

.case-fixed-line--top {
  top: 78px;
}

.case-fixed-line--bottom {
  bottom: 28px;
}

.case-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(64, 60, 58, 0.18);
  background: rgba(255, 255, 255, 0.24);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.case-back--end {
  min-width: 88px;
}

.case-back:hover {
  color: var(--red);
  border-color: rgba(178, 33, 32, 0.26);
  background: rgba(255, 255, 255, 0.42);
}

.privacy-swap-hero {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 152px 0 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.privacy-swap-tagline,
.privacy-swap-gallery-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.privacy-swap-video-frame {
  width: min(100%, 1040px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(64, 60, 58, 0.18);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 80px rgba(47, 45, 44, 0.12);
  overflow: hidden;
  position: relative;
}

.privacy-swap-video-frame iframe,
.privacy-swap-video-launch,
.privacy-swap-video-poster {
  width: 100%;
  height: 100%;
  display: block;
}

.privacy-swap-video-frame iframe {
  border: 0;
}

.privacy-swap-video-launch {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.privacy-swap-video-poster {
  object-fit: cover;
}

.privacy-swap-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid rgba(64, 60, 58, 0.18);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(47, 45, 44, 0.96);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(47, 45, 44, 0.12);
}

.privacy-swap-gallery-section {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.case-wide-link {
  width: min(100%, 1040px);
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(64, 60, 58, 0.18);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 42px rgba(47, 45, 44, 0.12);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.case-wide-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(47, 45, 44, 0.16);
}

.case-wide-link img {
  width: 100%;
  height: auto;
  display: block;
}

.recollection-video-block {
  width: min(100%, 1040px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.recollection-video-label {
  margin: 0;
  color: rgba(47, 45, 44, 0.96);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(231, 230, 228, 0.82), 0 0 22px rgba(231, 230, 228, 0.66);
}

.recollection-note {
  width: min(100%, 1040px);
  margin: 0;
  color: rgba(47, 45, 44, 0.88);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: 0 0 10px rgba(231, 230, 228, 0.82), 0 0 22px rgba(231, 230, 228, 0.66);
}

.privacy-swap-endnav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.privacy-swap-grid {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.privacy-swap-tile {
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(64, 60, 58, 0.18);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 42px rgba(47, 45, 44, 0.12);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.privacy-swap-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(47, 45, 44, 0.16);
}

.privacy-swap-tile img {
  width: 100%;
  height: auto;
  display: block;
}

.privacy-swap-tile--board {
  grid-column: 1 / -1;
}

.privacy-swap-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(231, 230, 228, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 24px;
}

.privacy-swap-lightbox[hidden] {
  display: none !important;
}

.privacy-swap-lightbox-inner {
  max-width: min(94vw, 1440px);
  max-height: calc(100vh - 112px);
}

.privacy-swap-lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 112px);
  width: auto;
  height: auto;
  display: block;
  border: 1px solid rgba(64, 60, 58, 0.18);
  box-shadow: 0 24px 80px rgba(47, 45, 44, 0.16);
}

.privacy-swap-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  border: 1px solid rgba(64, 60, 58, 0.18);
  background: rgba(255, 255, 255, 0.4);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.privacy-swap-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(64, 60, 58, 0.18);
  background: rgba(255, 255, 255, 0.4);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.privacy-swap-lightbox-prev {
  left: 24px;
}

.privacy-swap-lightbox-next {
  right: 24px;
}

body.lightbox-open {
  overflow: hidden;
}

/* Mobile: clean list, no split effect */
@media (max-width: 767px) {
  .work-shell {
    padding: 84px 20px 60px;
    align-items: center;
  }

  .work-inner {
    align-items: center;
  }

  .work-lede {
    max-width: none;
    margin-bottom: 28px;
    font-size: 12px;
    line-height: 1.38;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 0 8px rgba(231, 230, 228, 0.86), 0 0 16px rgba(231, 230, 228, 0.68);
  }

  .work-list {
    align-items: center;
    gap: 0.07em;
  }

  .work-list .work-item {
    font-size: clamp(28px, 8.8vw, 64px);
    white-space: normal;
    display: block;
    line-height: 1.02;
    text-align: center;
    width: 100%;
  }

  .work-split--left {
    margin-right: 0;
  }

  .work-split--right {
    margin-left: 0;
  }

  .work-split--left::after {
    content: ' ';
  }

  .work-logo-slot,
  .work-logo-inner {
    display: none;
  }

  .work-split--right {
    display: inline;
  }

  .work-split--left {
    display: inline;
  }

  .work-outro {
    margin-top: 32px;
    font-size: 13px;
    line-height: 1.38;
    text-align: center;
  }

  .privacy-swap-shell {
    width: min(100% - 18px, 1380px);
    padding-bottom: 120px;
  }

  .case-fixed-line,
  .case-back,
  .privacy-swap-tagline,
  .privacy-swap-gallery-note,
  .privacy-swap-lightbox-close {
    font-size: 13px;
    line-height: 1.62;
  }

  .case-fixed-line {
    width: min(100% - 44px, 1080px);
  }

  .case-fixed-line--top {
    top: 58px;
  }

  .case-fixed-line--bottom {
    bottom: 16px;
  }

  .privacy-swap-hero {
    padding: 112px 0 76px;
    min-height: auto;
    gap: 18px;
  }

  .privacy-swap-video-frame {
    width: 100%;
  }

  .privacy-swap-video-play {
    padding: 12px 14px;
    font-size: 12px;
  }

  .privacy-swap-tagline {
    max-width: 280px;
  }

  .privacy-swap-gallery-section {
    padding-top: 12px;
    gap: 14px;
  }

  .case-wide-link,
  .recollection-video-block {
    width: 100%;
  }

  .privacy-swap-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .privacy-swap-endnav {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  .privacy-swap-lightbox {
    padding: 64px 12px 12px;
  }

  .privacy-swap-lightbox-inner,
  .privacy-swap-lightbox-image {
    max-height: calc(100vh - 88px);
  }

  .privacy-swap-lightbox-close {
    top: 14px;
    right: 12px;
  }

  .privacy-swap-lightbox-nav {
    top: auto;
    bottom: 14px;
    transform: none;
    padding: 8px 10px;
    font-size: 12px;
  }

  .privacy-swap-lightbox-prev {
    left: 12px;
  }

  .privacy-swap-lightbox-next {
    right: 12px;
  }
}

@media (max-height: 980px) and (min-width: 768px) {
  .case-fixed-line {
    font-size: 14px;
    line-height: 1.55;
  }

  .case-fixed-line--top {
    top: 64px;
  }

  .case-fixed-line--bottom {
    bottom: 20px;
  }

  .privacy-swap-hero {
    padding: 136px 0 94px;
  }
}
