:root {
  color-scheme: light dark;
  --switcher-height: 64px;
  --a-paper: #f2f1ec;
  --a-paper-strong: #e8e6df;
  --a-ink: #171714;
  --a-muted: #65635d;
  --a-accent: #d23f2b;
  --a-line: rgba(23, 23, 20, 0.2);
  --b-ink: #f2f1eb;
  --b-muted: #b0aea5;
  --b-black: #11110f;
  --b-surface: #1b1b18;
  --b-accent: #d9f45f;
  --b-line: rgba(242, 241, 235, 0.2);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--switcher-height) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--a-paper);
  color: var(--a-ink);
  font-family: "Zen Old Mincho", "Noto Serif TC", serif;
  text-rendering: optimizeLegibility;
}

body[data-direction="b"] {
  background: var(--b-black);
  color: var(--b-ink);
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
a,
[tabindex] {
  outline-offset: 4px;
}

:focus-visible {
  outline: 2px solid currentColor;
}

::selection {
  background: var(--a-accent);
  color: #fffaf5;
}

body[data-direction="b"] ::selection {
  background: var(--b-accent);
  color: var(--b-black);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  min-height: 44px;
  padding: 10px 14px;
  background: #f7f7f5;
  color: #111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.prototype-switcher {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
  align-items: center;
  min-height: var(--switcher-height);
  padding: 8px clamp(16px, 3vw, 42px);
  border-bottom: 1px solid var(--a-line);
  background: rgba(242, 241, 236, 0.96);
  color: var(--a-ink);
  backdrop-filter: blur(16px);
}

body[data-direction="b"] .prototype-switcher {
  border-color: var(--b-line);
  background: rgba(17, 17, 15, 0.94);
  color: var(--b-ink);
}

.switcher-context {
  display: flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.switcher-context strong {
  font-size: 13px;
  letter-spacing: -0.01em;
}

.switcher-context span,
.switcher-note {
  color: var(--a-muted);
  font-size: 11px;
}

body[data-direction="b"] .switcher-context span,
body[data-direction="b"] .switcher-note {
  color: var(--b-muted);
}

.switcher-note {
  justify-self: end;
  margin: 0;
}

.direction-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.direction-tab {
  min-width: 150px;
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.direction-tab[aria-selected="true"] {
  background: var(--a-ink);
  color: var(--a-paper);
}

body[data-direction="b"] .direction-tab[aria-selected="true"] {
  background: var(--b-accent);
  color: var(--b-black);
}

.direction-tab:active,
.nav-action:active,
.hero-actions a:active {
  transform: translateY(1px);
}

.direction[hidden] {
  display: none;
}

.site-nav {
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 64px);
}

.brand-lockup {
  display: flex;
  width: 142px;
  min-height: 44px;
  align-items: center;
}

.brand-lockup img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.site-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}

.site-links :where(a, button),
.nav-action {
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.site-links :where(a, button) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-links :where(a, button):hover {
  text-decoration: underline;
}

.nav-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid currentColor;
}

.hero-intro {
  max-width: 30ch;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.section-intro {
  max-width: 54ch;
  color: inherit;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  opacity: 0.7;
}

.ig-crop {
  background-image: url("./assets/ig-wall.jpg");
  background-repeat: no-repeat;
  background-size: 500% auto;
  background-position: var(--x) var(--y);
}

.crop-dragon {
  --x: 0%;
  --y: 0%;
}

.crop-editorial {
  --x: 50%;
  --y: 0%;
}

.crop-fantasy {
  --x: 0%;
  --y: 8.3%;
}

.crop-scifi {
  --x: 75%;
  --y: 33.3%;
}

.crop-motor {
  --x: 25%;
  --y: 58.2%;
}

.crop-shadow {
  --x: 25%;
  --y: 74.8%;
}

.crop-perfume {
  --x: 75%;
  --y: 74.8%;
}

.crop-cyber {
  --x: 50%;
  --y: 91.4%;
}

.crop-identity {
  --x: 50%;
  --y: 100%;
}

/* Direction A */

.direction-a {
  background: var(--a-paper);
  color: var(--a-ink);
}

.a-nav {
  position: sticky;
  top: var(--switcher-height);
  border-bottom: 1px solid var(--a-line);
  background: rgba(242, 241, 236, 0.94);
  backdrop-filter: blur(14px);
}

.a-nav .nav-action:hover,
.a-primary {
  background: var(--a-accent);
  color: #fffaf5;
}

.a-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(480px, 1.18fr);
  min-height: calc(100dvh - var(--switcher-height) - 72px);
  overflow: hidden;
  border-bottom: 1px solid var(--a-line);
}

.a-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 9vw, 132px) clamp(24px, 5vw, 80px);
}

.a-hero h1 {
  max-width: 10ch;
  margin-bottom: 28px;
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: clamp(62px, 7.2vw, 116px);
  font-stretch: condensed;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 0.82;
}

.a-hero h1 span,
.b-hero h1 span {
  display: block;
  white-space: nowrap;
}

.a-primary {
  border: 1px solid var(--a-accent);
}

.a-secondary {
  border: 1px solid var(--a-ink);
}

.a-secondary:hover {
  background: var(--a-ink);
  color: var(--a-paper);
}

.a-hero-art {
  position: relative;
  min-height: 620px;
  background: var(--a-paper-strong);
}

.a-specimen {
  position: absolute;
  border: 8px solid var(--a-paper);
}

.specimen-main {
  inset: 7% 20% 8% 7%;
}

.specimen-top {
  top: 4%;
  right: 4%;
  width: 31%;
  height: 39%;
}

.specimen-bottom {
  right: 2%;
  bottom: 5%;
  width: 35%;
  height: 43%;
}

.a-art-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  background: var(--a-accent);
  color: #fffaf5;
  font-size: 11px;
  font-weight: 650;
}

.a-site-proof,
.a-featured,
.a-services,
.a-legacy {
  padding: clamp(82px, 11vw, 164px) clamp(22px, 6vw, 96px);
}

.a-site-proof {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(500px, 1.25fr);
  gap: clamp(54px, 9vw, 140px);
}

.proof-statement h2,
.a-featured > h2,
.a-services > h2,
.a-legacy h2,
.a-contact h2 {
  margin-bottom: 28px;
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: clamp(46px, 6.5vw, 100px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.proof-statement p,
.a-legacy p {
  max-width: 46ch;
  color: var(--a-muted);
  font-size: 17px;
  line-height: 1.65;
}

.proof-map {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  border-top: 1px solid var(--a-ink);
}

.proof-map article {
  min-height: 170px;
  padding: 24px 4px 22px;
  border-bottom: 1px solid var(--a-line);
}

.proof-map article:nth-child(odd) {
  padding-right: 28px;
}

.proof-map article:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--a-line);
}

.proof-map .proof-lead {
  grid-column: 1 / -1;
  min-height: 230px;
  padding-left: 0;
  border-left: 0;
}

.proof-map span,
.project-copy span,
.service-sequence span,
.web-case-evidence span {
  color: var(--a-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-map h3 {
  margin: 44px 0 8px;
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.025em;
}

.proof-map p {
  max-width: 50ch;
  margin-bottom: 0;
  color: var(--a-muted);
  line-height: 1.6;
}

.a-featured {
  background: var(--a-paper-strong);
}

.a-featured > h2 {
  max-width: 8ch;
}

.a-project-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 560px 360px;
  gap: 18px;
  margin-top: 64px;
}

.a-project {
  display: grid;
  overflow: hidden;
  background: var(--a-paper);
}

.project-wide {
  grid-row: 1 / 2;
  grid-template-columns: 1.35fr 0.65fr;
}

.project-tall {
  grid-row: 1 / 3;
}

.project-compact {
  grid-template-columns: 0.9fr 1.1fr;
}

.project-image {
  min-height: 300px;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
}

.project-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-copy p {
  margin-bottom: 28px;
  color: var(--a-muted);
  font-size: 13px;
  line-height: 1.5;
}

.a-wall {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(560px, 1.3fr);
  min-height: 820px;
  border-bottom: 1px solid var(--a-line);
}

.wall-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(54px, 7vw, 108px);
}

.wall-copy h2 {
  max-width: 9ch;
  margin-bottom: 28px;
  font-size: clamp(48px, 6vw, 92px);
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.wall-copy p {
  max-width: 38ch;
  color: var(--a-muted);
  line-height: 1.65;
}

.wall-copy a,
.a-legacy .archive-status {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
}

.ig-wall-frame {
  height: 820px;
  overflow: hidden;
  background: #d2d1cc;
}

.ig-wall-frame img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.a-services > h2 {
  max-width: 13ch;
}

.service-composition {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  margin-top: 72px;
  border-top: 1px solid var(--a-ink);
}

.service-major {
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 680px;
  padding: 0 40px 0 0;
  border-right: 1px solid var(--a-line);
}

.service-visual {
  min-height: 460px;
}

.service-major > div:last-child {
  padding-top: 28px;
}

.service-major h3,
.service-minor h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -0.03em;
}

.service-major p,
.service-minor p {
  max-width: 50ch;
  margin-bottom: 0;
  color: var(--a-muted);
  line-height: 1.6;
}

.service-minor {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  border-bottom: 1px solid var(--a-line);
}

.a-legacy {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: end;
  gap: 48px;
  border-top: 1px solid var(--a-line);
}

.a-legacy h2 {
  max-width: 13ch;
}

.a-contact {
  display: flex;
  min-height: 72dvh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(70px, 10vw, 150px) clamp(24px, 6vw, 96px);
  background: var(--a-accent);
  color: #fffaf5;
}

.a-contact p {
  margin-bottom: 24px;
  font-size: 15px;
}

.a-contact h2 {
  max-width: 10ch;
}

.a-contact a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  margin-top: 18px;
  padding: 12px 20px;
  border: 1px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

.a-contact a:hover {
  background: #fffaf5;
  color: var(--a-accent);
}

.a-contact small {
  margin-top: 80px;
}

/* Direction B */

.direction-b {
  overflow-x: clip;
  overflow-y: visible;
  background: var(--b-black);
  color: var(--b-ink);
}

.b-hero {
  position: relative;
  min-height: calc(100dvh - var(--switcher-height));
  overflow: hidden;
  isolation: isolate;
}

.b-nav {
  position: relative;
  z-index: 4;
  border-bottom: 1px solid var(--b-line);
}

.b-nav .brand-lockup img {
  mix-blend-mode: screen;
}

.b-nav .nav-action {
  border-color: var(--b-accent);
  color: var(--b-accent);
}

.b-nav .nav-action:hover {
  background: var(--b-accent);
  color: var(--b-black);
}

.b-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.95fr;
  gap: 2px;
  opacity: 0.9;
}

.film-panel {
  min-height: 100%;
}

.panel-one {
  background-size: 610% auto;
}

.panel-two {
  margin-top: 12vh;
  background-size: 650% auto;
}

.panel-three {
  margin-bottom: 10vh;
  background-size: 610% auto;
}

.b-hero-scrim,
.contact-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.9) 0%, rgba(17, 17, 15, 0.62) 42%, rgba(17, 17, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 17, 15, 0.72), transparent 60%);
}

.b-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100dvh - var(--switcher-height) - 72px);
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 9vw, 132px) clamp(22px, 6vw, 96px);
}

.b-hero h1 {
  max-width: 12ch;
  margin-bottom: 28px;
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: clamp(68px, 9vw, 144px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 0.78;
}

.b-primary {
  border: 1px solid var(--b-accent);
  background: var(--b-accent);
  color: var(--b-black);
}

.b-secondary {
  border: 1px solid var(--b-ink);
  color: var(--b-ink);
}

.b-secondary:hover {
  background: var(--b-ink);
  color: var(--b-black);
}

.b-web-case,
.b-releases,
.b-services,
.b-archive {
  padding: clamp(92px, 12vw, 176px) clamp(22px, 6vw, 96px);
}

.b-web-case {
  background: var(--b-black);
}

.web-case-head h2,
.b-releases > h2,
.b-wall h2,
.b-service-title h2,
.b-archive h2,
.b-contact h2 {
  margin-bottom: 28px;
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: clamp(50px, 7.5vw, 118px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.web-case-head p,
.b-service-title p,
.b-archive p {
  max-width: 46ch;
  color: var(--b-muted);
  font-size: 17px;
  line-height: 1.65;
}

.web-case-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  align-items: end;
  gap: clamp(36px, 8vw, 120px);
  margin-bottom: clamp(64px, 9vw, 132px);
}

.web-case-head h2 {
  max-width: 11ch;
  margin-bottom: 0;
}

.web-case-stage {
  position: relative;
  min-height: 760px;
  padding: clamp(18px, 3vw, 46px) clamp(18px, 5vw, 78px) 92px;
  border: 1px solid var(--b-line);
  background: var(--b-surface);
}

.web-case-stage figure {
  margin: 0;
}

.web-case-stage img {
  display: block;
  width: 100%;
  border: 1px solid rgba(242, 241, 235, 0.16);
}

.web-case-stage figcaption {
  margin-top: 14px;
  color: var(--b-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.web-desktop-frame {
  width: 87%;
}

.web-mobile-frame {
  position: absolute;
  right: clamp(18px, 3vw, 46px);
  bottom: 30px;
  width: min(23%, 280px);
  padding: 10px;
  background: var(--b-accent);
  color: var(--b-black);
}

.web-mobile-frame figcaption {
  margin: 9px 2px 2px;
  color: var(--b-black);
}

.web-case-evidence {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
  margin-top: clamp(72px, 9vw, 126px);
  border-top: 1px solid var(--b-line);
}

.web-case-evidence article {
  min-height: 310px;
  padding: 28px 28px 30px 0;
  border-right: 1px solid var(--b-line);
}

.web-case-evidence article:not(:first-child) {
  padding-left: 28px;
}

.web-case-evidence article:last-child {
  border-right: 0;
}

.web-case-evidence span {
  color: var(--b-accent);
}

.web-case-evidence h3 {
  max-width: 13ch;
  margin: 104px 0 16px;
  font-size: clamp(24px, 2.6vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.web-case-evidence p {
  max-width: 30ch;
  margin: 0;
  color: var(--b-muted);
  font-size: 15px;
  line-height: 1.6;
}

.b-releases {
  background: var(--b-surface);
}

.b-releases > h2 {
  max-width: 11ch;
}

.release-track {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  grid-template-rows: 510px 360px;
  gap: 28px;
  margin-top: 68px;
}

.release-card {
  position: relative;
  overflow: hidden;
  background: var(--b-black);
}

.release-landscape {
  grid-row: 1 / 2;
}

.release-portrait {
  grid-row: 1 / 3;
}

.release-square {
  grid-column: 1 / 2;
}

.release-image {
  position: absolute;
  inset: 0;
  filter: saturate(0.82) contrast(1.05);
}

.release-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 80px 28px 26px;
  background: linear-gradient(0deg, rgba(17, 17, 15, 0.94), transparent);
}

.release-meta h3 {
  margin-bottom: 8px;
  font-size: clamp(25px, 3vw, 46px);
  letter-spacing: -0.025em;
}

.release-meta p {
  margin-bottom: 0;
  color: var(--b-muted);
  font-size: 13px;
}

.b-wall {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(600px, 1.35fr);
  min-height: 920px;
  padding-left: clamp(22px, 6vw, 96px);
}

.b-wall-heading {
  align-self: center;
  padding: 70px 60px 70px 0;
}

.b-wall h2 {
  max-width: 9ch;
}

.b-wall-heading p {
  max-width: 35ch;
  color: var(--b-muted);
  line-height: 1.65;
}

.b-wall-window {
  height: 920px;
  overflow: hidden;
}

.b-wall-window img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(0.78) contrast(1.08);
}

.b-wall > a {
  position: absolute;
  left: clamp(22px, 6vw, 96px);
  bottom: 84px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--b-accent);
  font-size: 13px;
  font-weight: 700;
}

.b-services {
  background: var(--b-accent);
  color: var(--b-black);
}

.b-service-title h2 {
  max-width: 12ch;
}

.b-service-title p {
  color: rgba(17, 17, 15, 0.72);
}

.service-sequence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: rgba(17, 17, 15, 0.4);
}

.service-sequence article {
  min-height: 330px;
  padding: 30px;
  background: var(--b-accent);
}

.service-sequence article:last-child {
  grid-column: 1 / -1;
  min-height: 260px;
}

.service-sequence article:last-child h3 {
  max-width: 16ch;
  margin-top: 54px;
}

.service-sequence article:last-child p {
  max-width: 48ch;
}

.service-sequence span {
  color: rgba(17, 17, 15, 0.62);
}

.service-sequence h3 {
  margin: 110px 0 16px;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.03em;
}

.service-sequence p {
  margin: 0;
  color: rgba(17, 17, 15, 0.75);
  line-height: 1.55;
}

.b-archive h2 {
  max-width: 10ch;
}

.archive-head {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 0.85fr);
  align-items: end;
  gap: clamp(48px, 9vw, 140px);
}

.archive-head p {
  margin-bottom: 0;
}

.b-archive .archive-status {
  display: inline-block;
  margin-top: 22px;
  color: var(--b-accent);
  font-size: 13px;
  font-weight: 700;
}

.archive-status {
  font-size: 12px;
  font-weight: 700;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 350px 310px 360px;
  gap: 24px;
  margin-top: clamp(68px, 9vw, 120px);
}

.archive-case {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--b-surface);
}

.archive-case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.72) contrast(1.04);
}

.archive-case figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 54px 20px 18px;
  background: linear-gradient(0deg, rgba(17, 17, 15, 0.94), transparent);
}

.archive-case figcaption strong {
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.02em;
}

.archive-case figcaption span {
  color: var(--b-muted);
  font-size: 12px;
  text-align: right;
}

.archive-duopel {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.archive-echarm {
  grid-column: 8 / 13;
  grid-row: 1;
}

.archive-marryu {
  grid-column: 8 / 13;
  grid-row: 2;
}

.archive-gama {
  grid-column: 1 / 13;
  grid-row: 3;
}

.b-contact {
  position: relative;
  display: flex;
  min-height: 82dvh;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(70px, 9vw, 136px) clamp(22px, 6vw, 96px);
}

.contact-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: 290% auto;
  filter: saturate(0.62) contrast(1.1);
}

.contact-scrim {
  background: linear-gradient(0deg, rgba(17, 17, 15, 0.96), rgba(17, 17, 15, 0.15));
}

.contact-copy {
  max-width: 1000px;
}

.contact-copy p {
  margin-bottom: 24px;
  color: var(--b-muted);
}

.b-contact h2 {
  max-width: 11ch;
}

.b-contact a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 20px;
  background: var(--b-accent);
  color: var(--b-black);
  font-weight: 700;
  text-decoration: none;
}

@media (hover: hover) {
  .direction-tab,
  .nav-action,
  .hero-actions a,
  .a-contact a,
  .b-contact a {
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .a-project .project-image,
  .release-card .release-image {
    transition: filter 220ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .a-project:hover .project-image,
  .release-card:hover .release-image {
    filter: saturate(1) contrast(1.02);
    transform: scale(1.015);
  }
}

@media (max-width: 980px) {
  .prototype-switcher {
    grid-template-columns: 1fr auto;
  }

  .switcher-note {
    display: none;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-links {
    display: none;
  }

  .a-hero,
  .a-site-proof,
  .a-wall,
  .b-wall,
  .b-archive {
    grid-template-columns: 1fr;
  }

  .a-hero-copy {
    min-height: 620px;
  }

  .a-hero-art {
    min-height: 720px;
  }

  .a-project-grid,
  .release-track {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 520px 440px;
  }

  .project-wide,
  .release-landscape {
    grid-column: 1 / -1;
  }

  .project-tall,
  .release-portrait {
    grid-row: auto;
  }

  .project-compact,
  .release-square {
    grid-column: auto;
  }

  .project-wide {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .project-tall,
  .project-compact {
    grid-template-columns: 1fr;
  }

  .ig-wall-frame,
  .b-wall-window {
    height: 760px;
  }

  .b-wall {
    padding: 0;
  }

  .b-wall-heading {
    padding: 100px clamp(22px, 6vw, 96px);
  }

  .b-wall > a {
    position: static;
    margin: 28px clamp(22px, 6vw, 96px) 90px;
  }

  .service-sequence {
    grid-template-columns: 1fr 1fr;
  }

  .b-archive {
    gap: 60px;
  }

  .archive-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .archive-grid {
    grid-template-rows: 320px 280px 320px;
  }
}

@media (max-width: 720px) {
  :root {
    --switcher-height: 108px;
  }

  .prototype-switcher {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: var(--switcher-height);
    padding: 10px 14px;
  }

  .switcher-context {
    justify-content: space-between;
  }

  .direction-tabs {
    width: 100%;
  }

  .direction-tab {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
  }

  .site-nav {
    min-height: 64px;
    padding: 8px 16px;
  }

  .brand-lockup {
    width: 112px;
  }

  .brand-lockup img {
    height: 42px;
  }

  .nav-action {
    padding: 9px 11px;
    font-size: 11px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions a {
    flex: 1 1 auto;
  }

  .a-hero-copy {
    min-height: calc(100dvh - var(--switcher-height) - 64px);
    padding: 68px 20px 58px;
  }

  .a-hero h1,
  .b-hero h1 {
    font-size: clamp(50px, 15vw, 76px);
    line-height: 0.84;
  }

  .a-hero-art {
    min-height: 540px;
  }

  .specimen-main {
    inset: 5% 18% 9% 3%;
  }

  .specimen-top {
    right: 2%;
    width: 35%;
  }

  .specimen-bottom {
    width: 39%;
  }

  .a-site-proof,
  .a-featured,
  .a-services,
  .a-legacy,
  .b-web-case,
  .b-releases,
  .b-services,
  .b-archive {
    padding: 86px 18px;
  }

  .proof-statement h2,
  .a-featured > h2,
  .a-services > h2,
  .a-legacy h2,
  .a-contact h2,
  .web-case-head h2,
  .b-releases > h2,
  .b-wall h2,
  .b-service-title h2,
  .b-archive h2,
  .b-contact h2 {
    font-size: clamp(44px, 14vw, 72px);
  }

  .a-site-proof {
    gap: 50px;
  }

  .proof-map {
    grid-template-columns: 1fr;
  }

  .proof-map .proof-lead,
  .proof-map article {
    grid-column: auto;
    min-height: auto;
    padding: 28px 0;
    border-left: 0;
  }

  .proof-map article:nth-child(odd),
  .proof-map article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .proof-map h3 {
    margin-top: 42px;
  }

  .a-project-grid,
  .release-track {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
    margin-top: 46px;
  }

  .a-project,
  .project-wide,
  .project-tall,
  .project-compact {
    grid-template-columns: 1fr;
    grid-row: auto;
  }

  .project-image {
    min-height: 430px;
  }

  .a-wall {
    min-height: 0;
  }

  .wall-copy {
    padding: 86px 18px 58px;
  }

  .ig-wall-frame,
  .b-wall-window {
    height: 640px;
  }

  .service-composition {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .service-major {
    grid-row: auto;
    min-height: 0;
    padding: 0 0 44px;
    border-right: 0;
    border-bottom: 1px solid var(--a-line);
  }

  .service-visual {
    min-height: 430px;
  }

  .service-minor {
    min-height: 260px;
    padding: 34px 0;
  }

  .a-legacy {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
  }

  .a-contact {
    min-height: 72dvh;
    padding: 82px 18px;
  }

  .b-nav {
    position: relative;
  }

  .b-hero-media {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .panel-three {
    display: none;
  }

  .panel-two {
    margin-top: 18vh;
  }

  .b-hero-copy {
    min-height: calc(100dvh - var(--switcher-height) - 64px);
    padding: 64px 18px 58px;
  }

  .web-case-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .web-case-stage {
    min-height: 0;
    padding: 14px 14px 74px;
  }

  .web-desktop-frame {
    width: 100%;
  }

  .web-mobile-frame {
    right: 12px;
    bottom: 18px;
    width: 34%;
    padding: 6px;
  }

  .web-case-evidence {
    grid-template-columns: 1fr;
    margin-top: 72px;
  }

  .web-case-evidence article,
  .web-case-evidence article:not(:first-child) {
    min-height: 0;
    padding: 30px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--b-line);
  }

  .web-case-evidence article:last-child {
    border-bottom: 0;
  }

  .web-case-evidence h3 {
    margin-top: 54px;
  }

  .web-case-evidence p {
    font-size: 16px;
  }

  .release-card {
    min-height: 560px;
  }

  .b-wall-heading {
    padding: 88px 18px 54px;
  }

  .b-wall > a {
    margin: 26px 18px 84px;
  }

  .service-sequence {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .service-sequence article {
    min-height: 260px;
    padding: 26px 0;
  }

  .service-sequence h3 {
    margin-top: 72px;
  }

  .archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 18px;
    margin-top: 58px;
  }

  .archive-duopel,
  .archive-echarm,
  .archive-marryu,
  .archive-gama {
    grid-column: auto;
    grid-row: auto;
    height: 300px;
  }

  .archive-duopel,
  .archive-gama {
    height: 360px;
  }

  .archive-case figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .archive-case figcaption span {
    font-size: 13px;
    text-align: left;
  }

  .archive-image {
    min-height: 520px;
  }

  .b-contact {
    min-height: 78dvh;
    padding: 82px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Client-facing refinement: concealed prototype controls, Silk Veil navigation, and flowing work walls */

:root {
  --switcher-height: 0px;
}

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

.prototype-switcher-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 42;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(242, 241, 235, 0.28);
  border-radius: 0;
  background: rgba(17, 17, 15, 0.72);
  color: var(--b-muted);
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.prototype-switcher-toggle:hover,
.prototype-switcher-toggle[aria-expanded="true"] {
  border-color: var(--b-accent);
  color: var(--b-accent);
}

.prototype-switcher {
  position: fixed;
  inset: auto 16px 62px auto;
  z-index: 41;
  width: min(620px, calc(100vw - 32px));
  min-height: 0;
  grid-template-columns: minmax(160px, 0.8fr) minmax(280px, 1.2fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(242, 241, 235, 0.22);
  background: rgba(17, 17, 15, 0.88);
  color: var(--b-ink);
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.98);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 240ms;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.prototype-switcher.is-open {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
  visibility: visible;
  pointer-events: auto;
}

.prototype-switcher .switcher-note {
  display: none;
}

.silk-filter {
  position: absolute;
  pointer-events: none;
}

.b-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 18;
  overflow: hidden;
  border-bottom: 0;
  background: transparent;
  isolation: isolate;
}

.b-nav::before,
.b-nav::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.b-nav::before {
  z-index: -2;
  background: rgba(12, 13, 12, 0.18);
  backdrop-filter: blur(11px) saturate(104%) contrast(101%);
  -webkit-backdrop-filter: blur(11px) saturate(104%) contrast(101%);
}

.b-nav::after {
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  background: transparent;
}

.b-nav .nav-ripple {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  background: transparent;
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  filter: url(#aurora-gel-distortion);
  -webkit-filter: url(#aurora-gel-distortion);
  opacity: 0.44;
}

.b-nav > * {
  position: relative;
  z-index: 1;
}

.b-nav > .nav-ripple {
  position: absolute;
  z-index: 0;
}

.b-waterfall,
.archive-waterfall {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  padding: 0;
  overflow: visible;
}

.b-waterfall {
  grid-template-columns: minmax(260px, 0.54fr) minmax(0, 1.46fr);
  background: var(--b-surface);
}

.waterfall-copy,
.archive-copy {
  position: relative;
  z-index: 4;
  padding: clamp(110px, 15vh, 180px) 0 clamp(110px, 15vh, 180px) clamp(22px, 6vw, 96px);
}

.waterfall-copy-sticky,
.archive-copy-sticky {
  position: sticky;
  top: clamp(150px, 20vh, 220px);
  max-width: 430px;
  padding-right: clamp(28px, 5vw, 80px);
}

.waterfall-copy-sticky {
  width: clamp(300px, 29vw, 430px);
  max-width: none;
}

.waterfall-copy h2,
.archive-copy h2 {
  max-width: 8.5ch;
  margin-bottom: 28px;
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.waterfall-copy h2 {
  max-width: 5.2em;
}

.waterfall-copy p,
.archive-copy p {
  max-width: 30ch;
  color: var(--b-muted);
  font-size: 17px;
  line-height: 1.8;
}

.waterfall-copy a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 22px;
  color: var(--b-accent);
  font-family: "Marcellus", serif;
  font-size: 12px;
}

.waterfall-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.12fr) minmax(0, 0.78fr);
  grid-template-areas: "far near mid";
  gap: clamp(14px, 1.8vw, 30px);
  padding: clamp(120px, 18vh, 210px) clamp(22px, 3vw, 54px) clamp(140px, 20vh, 240px) 0;
  overflow: hidden;
}

.waterfall-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: clamp(32px, 4.2vw, 64px);
  transform: translate3d(0, var(--column-shift, 0px), 0);
  will-change: transform;
}

.waterfall-column-far {
  grid-area: far;
  z-index: 1;
  padding-top: clamp(210px, 30vh, 360px);
}

.waterfall-column-near {
  grid-area: near;
  z-index: 3;
  padding-top: clamp(28px, 5vh, 74px);
}

.waterfall-column-mid {
  grid-area: mid;
  z-index: 2;
  padding-top: clamp(130px, 19vh, 240px);
}

.waterfall-card {
  position: relative;
  min-width: 0;
  height: 430px;
  margin: 0;
  overflow: hidden;
  background: var(--b-black);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.22);
  transform: translate3d(calc(var(--piece-x, 0%) + var(--perspective-x, 0px)), var(--depth-shift, 0px), 0) scale(var(--piece-scale, 1));
  transform-origin: center;
  will-change: transform;
}

.waterfall-column-far .waterfall-card {
  --piece-scale: 0.82;
  width: 106%;
  opacity: 0.68;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.18);
}

.waterfall-column-near .waterfall-card {
  --piece-scale: 1.08;
  width: 108%;
  box-shadow: 0 44px 132px rgba(0, 0, 0, 0.4);
}

.waterfall-column-mid .waterfall-card {
  --piece-scale: 0.93;
  width: 102%;
  opacity: 0.9;
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.28);
}

.waterfall-card.piece-left {
  --piece-x: -7%;
  transform-origin: left center;
}

.waterfall-card.piece-right {
  --piece-x: 7%;
  transform-origin: right center;
}

.waterfall-card.card-landscape,
.waterfall-card.card-wide {
  height: clamp(290px, 31vw, 450px);
}

.waterfall-card.card-portrait {
  height: clamp(520px, 54vw, 760px);
}

.waterfall-card.card-square {
  height: clamp(380px, 39vw, 560px);
}

.waterfall-card.card-tall {
  height: clamp(580px, 60vw, 820px);
}

.waterfall-card.card-post {
  height: auto;
  aspect-ratio: 4 / 5;
}

.waterfall-card.card-post.is-reel {
  aspect-ratio: 9 / 16;
}

.waterfall-card.card-post.is-reel .waterfall-image img {
  object-fit: cover;
}

.waterfall-image {
  position: absolute;
  inset: -2%;
  overflow: hidden;
  filter: saturate(0.82) contrast(1.06);
  transform: translate3d(var(--media-x, 0px), var(--media-y, 0px), 0) scale(1.04);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease;
  will-change: transform;
}

.waterfall-image.ig-post {
  inset: 0;
  background: var(--b-black);
  transform: none;
}

.waterfall-image.ig-post > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 220ms ease;
}

.waterfall-image.ig-post.is-media-loading > img,
.instagram-tile.is-media-loading > img {
  opacity: 0;
}

.waterfall-image.ig-post.is-media-loading::before,
.instagram-tile.is-media-loading::before {
  position: absolute;
  inset: 0;
  z-index: 6;
  content: "";
  background: #090a09;
}

.waterfall-image.ig-post.is-media-loading::after,
.instagram-tile.is-media-loading::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  width: 18px;
  height: 18px;
  content: "";
  border: 1px solid rgba(242, 241, 235, 0.24);
  border-top-color: var(--b-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: instagram-media-spin 760ms linear infinite;
}

@keyframes instagram-media-spin {
  to { transform: translate(-50%, -50%) rotate(1turn); }
}

.waterfall-card figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 110px 22px 22px;
  background: linear-gradient(0deg, rgba(8, 9, 8, 0.94), transparent);
  pointer-events: none;
}

.waterfall-card figcaption strong {
  font-family: "Marcellus", serif;
  font-size: clamp(23px, 2.4vw, 38px);
  font-weight: 400;
}

.waterfall-card figcaption span {
  color: var(--b-muted);
  font-size: 12px;
}

.b-instagram-rail {
  padding: clamp(92px, 11vw, 150px) 0 clamp(112px, 14vw, 190px);
  overflow: hidden;
  border-top: 1px solid rgba(242, 241, 235, 0.12);
  background: var(--b-black);
  color: var(--b-ink);
}

.instagram-rail-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr) auto;
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
  padding: 0 clamp(22px, 6vw, 96px) clamp(46px, 6vw, 86px);
}

.instagram-rail-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.instagram-rail-copy p {
  max-width: 34ch;
  margin: 0;
  color: var(--b-muted);
  font-size: 15px;
  line-height: 1.75;
}

.instagram-rail-copy a {
  min-height: 44px;
  color: var(--b-accent);
  font-family: "Marcellus", serif;
  font-size: 12px;
  line-height: 44px;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  white-space: nowrap;
}

.instagram-rail-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: none;
  scrollbar-color: rgba(242, 241, 235, 0.34) transparent;
  scrollbar-width: thin;
}

.instagram-rail-track {
  display: grid;
  width: max-content;
  grid-auto-columns: clamp(180px, 18vw, 292px);
  grid-auto-flow: column;
  gap: clamp(8px, 1vw, 16px);
  padding: 0 clamp(22px, 6vw, 96px) 18px;
}

.instagram-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: #090a09;
  filter: grayscale(1) saturate(0.1) contrast(0.92);
  opacity: 0.7;
  transform: translateZ(0) scale(1);
  transition: filter 360ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  scroll-snap-align: start;
}

.instagram-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 220ms ease;
}

.instagram-rail-track[data-feed-source="instagram"] .instagram-tile img {
  object-fit: cover;
}

.instagram-tile:focus-visible {
  z-index: 2;
  outline: 2px solid var(--b-accent);
  outline-offset: -4px;
  filter: grayscale(0) saturate(1) contrast(1.02);
  opacity: 1;
}

.instagram-carousel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: rgba(17, 17, 15, 0.76);
  color: var(--b-ink);
  pointer-events: none;
}

.instagram-carousel-badge svg {
  width: 18px;
  height: 18px;
}

.archive-waterfall {
  background: var(--b-black);
}

.archive-flow {
  column-count: 2;
  column-gap: clamp(18px, 2.5vw, 38px);
  padding: clamp(120px, 18vh, 210px) clamp(22px, 5vw, 80px) clamp(140px, 20vh, 240px) 0;
}

.archive-filters {
  display: flex;
  max-width: 34rem;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 34px;
  pointer-events: auto;
}

.archive-filters button {
  position: relative;
  min-height: 38px;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  color: var(--b-muted);
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 180ms ease;
}

.archive-filters button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--b-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 160ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-filters button:hover,
.archive-filters button[aria-pressed="true"] {
  color: var(--b-ink);
}

.archive-filters button[aria-pressed="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.archive-filters button:focus-visible {
  outline: 2px solid var(--b-accent);
  outline-offset: 5px;
}

.archive-filter-status {
  min-height: 1.6em;
  margin: 12px 0 0;
  color: var(--b-muted);
  font-family: "Marcellus", serif;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.archive-flow .archive-case[hidden] {
  display: none !important;
}

.archive-flow .archive-case {
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 650;
  margin: 0 0 clamp(22px, 3vw, 46px);
  break-inside: avoid;
  grid-column: auto;
  grid-row: auto;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, var(--depth-shift, 0px), 0);
  will-change: transform;
}

.archive-flow .archive-case > img {
  position: absolute;
  /* Overscan by one physical pixel so fractional masonry dimensions never
     reveal the graphite surface between the image and its bottom gradient. */
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.74) contrast(1.05);
  transform: none;
  transition: filter 220ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-flow .archive-case figcaption {
  right: -2px;
  bottom: -2px;
  left: -2px;
  padding-bottom: 20px;
  z-index: 3;
  backface-visibility: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.colorful-hover-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: var(--b-black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.colorful-hover-canvas-archive {
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
}

.colorful-hover-canvas.is-active.is-ready {
  opacity: 1;
}

.contact-studio-image {
  background: url("./assets/contact-studio.png") center / cover no-repeat;
  filter: saturate(0.7) contrast(1.08);
}

@media (hover: hover) and (pointer: fine) {
  .waterfall-card,
  .archive-flow .archive-case {
    cursor: crosshair;
  }

  .waterfall-card:hover .waterfall-image,
  .archive-flow .archive-case:hover > img {
    filter: saturate(1) contrast(1.02);
  }

  .instagram-tile:hover {
    z-index: 2;
    filter: grayscale(0) saturate(1) contrast(1.02);
    opacity: 1;
    transform: translateZ(0) scale(1.025);
  }
}

@media (max-width: 980px) {
  .b-waterfall,
  .archive-waterfall {
    grid-template-columns: minmax(230px, 0.58fr) minmax(0, 1.42fr);
  }

  .waterfall-copy,
  .archive-copy {
    padding-left: 28px;
  }

  .waterfall-copy-sticky,
  .archive-copy-sticky {
    padding-right: 28px;
  }

  .waterfall-copy-sticky {
    width: clamp(280px, 34vw, 360px);
  }

  .waterfall-flow,
  .archive-flow {
    padding-right: 28px;
  }

  .waterfall-flow {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas: "near mid";
  }

  .waterfall-column-far {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  .waterfall-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
    gap: 34px 24px;
  }

  .waterfall-column,
  .waterfall-column-far {
    display: contents;
  }

  .waterfall-column-near .waterfall-card,
  .waterfall-column-mid .waterfall-card,
  .waterfall-column-far .waterfall-card {
    --piece-x: 0%;
    width: 100%;
  }

  .waterfall-column-near .waterfall-card {
    --piece-scale: 1.02;
  }

  .waterfall-column-mid .waterfall-card {
    --piece-scale: 0.96;
  }

  .waterfall-column-far .waterfall-card {
    --piece-scale: 0.9;
  }
}

@media (max-width: 720px) {
  :root {
    --switcher-height: 0px;
  }

  .prototype-switcher-toggle {
    right: 10px;
    bottom: 10px;
  }

  .prototype-switcher {
    inset: auto 10px 56px;
    width: auto;
    grid-template-columns: 1fr;
  }

  .b-nav::before {
    background: rgba(12, 13, 12, 0.2);
    backdrop-filter: blur(11px) saturate(103%) contrast(101%);
    -webkit-backdrop-filter: blur(11px) saturate(103%) contrast(101%);
  }

  .b-nav .nav-ripple {
    opacity: 0.36;
  }

  .b-waterfall,
  .archive-waterfall {
    display: block;
  }

  .waterfall-copy,
  .archive-copy {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 108px 18px 28px;
    background: linear-gradient(180deg, rgba(27, 27, 24, 0.98) 0%, rgba(27, 27, 24, 0.92) 78%, transparent 100%);
    pointer-events: none;
  }

  .archive-copy {
    background: linear-gradient(180deg, rgba(17, 17, 15, 0.98) 0%, rgba(17, 17, 15, 0.92) 78%, transparent 100%);
  }

  .waterfall-copy-sticky,
  .archive-copy-sticky {
    position: static;
    width: auto;
    max-width: none;
    padding: 0;
  }

  .waterfall-copy h2,
  .archive-copy h2 {
    max-width: 10ch;
    margin-bottom: 16px;
    font-size: clamp(42px, 12vw, 60px);
  }

  .waterfall-copy p,
  .archive-copy p {
    max-width: 34ch;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.65;
  }

  .archive-filters {
    gap: 4px 14px;
    margin-top: 18px;
  }

  .archive-filters button {
    min-height: 34px;
    font-size: 10px;
  }

  .archive-filter-status {
    display: none;
  }

  .waterfall-copy a {
    display: none;
  }

  .waterfall-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: none;
    gap: 10px;
    padding: 28px 10px 92px;
  }

  .waterfall-column {
    display: contents;
    transform: none !important;
  }

  .waterfall-column-far {
    display: contents;
  }

  .waterfall-card,
  .waterfall-card.card-landscape,
  .waterfall-card.card-wide,
  .waterfall-card.card-square {
    --piece-scale: 1;
    --piece-x: 0%;
    width: 100%;
    height: 230px;
    margin: 0;
    opacity: 1;
  }

  .waterfall-card.card-portrait,
  .waterfall-card.card-tall {
    height: 360px;
  }

  .waterfall-card.card-post {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .waterfall-card.card-post.is-reel {
    aspect-ratio: 9 / 16;
  }

  .waterfall-card figcaption {
    padding: 70px 12px 12px;
  }

  .waterfall-card figcaption strong {
    font-size: 18px;
  }

  .waterfall-card figcaption span {
    display: none;
  }

  .b-instagram-rail {
    padding: 82px 0 102px;
  }

  .instagram-rail-copy {
    display: block;
    padding: 0 18px 36px;
  }

  .instagram-rail-copy h2 {
    max-width: 10ch;
    margin-bottom: 22px;
    font-size: clamp(40px, 12vw, 58px);
  }

  .instagram-rail-copy p {
    margin-bottom: 18px;
  }

  .instagram-rail-track {
    grid-template-rows: repeat(2, min(51vw, 195px));
    grid-auto-columns: min(40.8vw, 156px);
    grid-auto-flow: column;
    padding-inline: 18px;
  }

  .instagram-rail-viewport {
    scroll-snap-type: x proximity;
  }

  .instagram-tile {
    filter: grayscale(0.88) saturate(0.18) contrast(0.94);
    opacity: 0.8;
  }

  .archive-flow {
    column-gap: 10px;
    padding: 28px 10px 92px;
  }

  .archive-flow .archive-case {
    height: auto;
    aspect-ratio: 600 / 650;
    margin-bottom: 10px;
    transform: none !important;
  }

  .archive-flow .archive-case figcaption {
    padding: 48px 10px 10px;
  }

  .archive-flow .archive-case figcaption strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .colorful-hover-canvas {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waterfall-column,
  .waterfall-card,
  .archive-flow .archive-case,
  .waterfall-image,
  .archive-flow .archive-case > img {
    transform: none !important;
    will-change: auto;
  }

  .colorful-hover-canvas {
    display: none;
  }

  .instagram-tile {
    transform: none !important;
    transition: filter 120ms ease, opacity 120ms ease;
  }
}

/* Selected B direction: cinematic scroll prototype */

.direction-b,
.direction-b p,
.direction-b .studio-step p,
.direction-b .release-meta p {
  font-family: "Zen Old Mincho", "Noto Serif TC", serif;
}

.direction-b h1,
.direction-b h2,
.direction-b .site-nav,
.direction-b .hero-actions,
.direction-b .release-meta h3,
.direction-b .archive-case figcaption,
.direction-b .web-case-evidence span,
.direction-b .service-sequence span,
.direction-b .contact-copy > p,
.direction-b .kv-reveal p,
.direction-b .kv-scroll-cue,
.prototype-switcher,
.direction-tabs {
  font-family: "Marcellus", "Zen Old Mincho", serif;
}

.a-nav .brand-lockup img {
  filter: invert(1);
  mix-blend-mode: normal;
}

.b-nav .brand-lockup img {
  filter: none;
  mix-blend-mode: normal;
}

.b-kv {
  height: 178dvh;
  min-height: 1120px;
  overflow: visible;
  background: var(--kv-black);
}

.kv-sticky {
  position: sticky;
  top: var(--switcher-height);
  height: calc(100dvh - var(--switcher-height));
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #080908;
}

.b-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  width: 100%;
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(5, 6, 5, 0.6), transparent);
}

.b-nav .brand-lockup {
  width: 132px;
}

.b-nav .site-links :where(a, button),
.b-nav .nav-action {
  letter-spacing: 0.03em;
}

.kv-video {
  position: absolute;
  inset: -4%;
  z-index: -4;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.76) contrast(1.08) brightness(0.84);
  transform: translate3d(0, var(--kv-y, 0px), 0) scale(var(--kv-scale, 1.04));
  transform-origin: center;
  will-change: transform;
}

.kv-poster {
  position: absolute;
  inset: -4%;
  z-index: -3;
  width: 108%;
  height: 108%;
  background: url("./assets/hero-poster.png") center / cover no-repeat;
  filter: saturate(0.76) contrast(1.08) brightness(0.84);
  opacity: 1;
  transform: translate3d(0, var(--kv-y, 0px), 0) scale(var(--kv-scale, 1.04));
  transition: opacity 480ms ease;
  transform-origin: center;
  will-change: opacity, transform;
}

.b-kv.is-video-live .kv-poster {
  opacity: 0;
}

.b-hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.9) 0%, rgba(5, 6, 5, 0.54) 46%, rgba(5, 6, 5, 0.16) 78%),
    linear-gradient(0deg, rgba(5, 6, 5, 0.82), transparent 56%);
}

.b-hero-copy {
  z-index: 2;
  min-height: 100%;
  max-width: 1200px;
  padding: clamp(110px, 14vh, 160px) clamp(22px, 6vw, 96px) clamp(70px, 8vh, 110px);
  opacity: var(--kv-main-opacity, 1);
  transform: translate3d(0, var(--kv-main-y, 0px), 0);
  will-change: opacity, transform;
}

.b-hero h1 {
  max-width: 11ch;
  margin-bottom: 34px;
  font-family: "Marcellus", "Zen Old Mincho", serif;
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.b-hero .hero-intro {
  max-width: 36ch;
  margin-bottom: 0;
  text-shadow: 0 1px 28px rgba(0, 0, 0, 0.65);
}

.kv-reveal {
  position: absolute;
  right: clamp(22px, 6vw, 96px);
  bottom: clamp(72px, 10vh, 120px);
  z-index: 3;
  display: grid;
  max-width: 660px;
  gap: 12px;
  padding-left: clamp(24px, 4vw, 60px);
  border-left: 1px solid var(--b-accent);
  opacity: var(--kv-reveal-opacity, 0);
  transform: translate3d(0, var(--kv-reveal-y, 40px), 0);
  will-change: opacity, transform;
}

.kv-reveal p {
  margin: 0;
  color: var(--b-accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kv-reveal strong {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.kv-scroll-cue {
  position: absolute;
  left: clamp(22px, 6vw, 96px);
  bottom: 28px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kv-scroll-cue::before {
  display: inline-block;
  width: 48px;
  height: 1px;
  margin-right: 12px;
  background: currentColor;
  content: "";
  vertical-align: middle;
}

.b-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(54px, 8vw, 132px);
  padding: 0 clamp(22px, 6vw, 96px) 0 0;
  border-bottom: 1px solid var(--b-line);
  background: #11110f;
}

.studio-visual {
  position: sticky;
  top: 72px;
  height: calc(100dvh - 72px);
  min-height: 0;
  max-height: none;
  align-self: start;
  overflow: hidden;
  background: #20211e;
}

.studio-image {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 620ms ease, transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-image::after {
  position: absolute;
  inset: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.16);
  content: "";
  pointer-events: none;
}

.studio-image-index {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  padding: 7px 9px;
  background: var(--b-accent);
  color: var(--b-black);
  font-family: "Marcellus", serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.studio-story {
  min-width: 0;
}

.studio-step {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(100px, 14vh, 170px) 0;
  opacity: 0.34;
  transition: opacity 420ms ease;
}

.studio-step.is-active {
  opacity: 1;
}

.studio-step h2,
.studio-step p {
  transform: translate3d(0, 0, 0);
  clip-path: inset(-0.08em -0.08em -0.12em -0.08em);
  filter: blur(0);
  transition:
    opacity 420ms ease,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 680ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms ease;
}

.studio-step p {
  transition-delay: 90ms;
}

.text-motion-ready .studio-step.is-before h2,
.text-motion-ready .studio-step.is-before p {
  opacity: 0;
  transform: translate3d(0, 0.72em, 0);
  clip-path: inset(0 0 100% 0);
  filter: blur(7px);
  transition-delay: 0ms;
}

.text-motion-ready .studio-step.is-past h2,
.text-motion-ready .studio-step.is-past p {
  opacity: 0;
  transform: translate3d(0, -0.48em, 0);
  clip-path: inset(100% 0 0 0);
  filter: blur(4px);
  transition-duration: 300ms;
  transition-delay: 0ms;
}

[data-text-motion] {
  transform: translate3d(0, 0, 0);
  clip-path: inset(-0.08em -0.08em -0.12em -0.08em);
  filter: blur(0);
  transition:
    opacity 420ms ease,
    transform 640ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 640ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms ease;
  transition-delay: calc(var(--text-motion-order, 0) * 70ms);
}

.text-motion-ready [data-text-motion-group].is-before [data-text-motion] {
  opacity: 0;
  transform: translate3d(0, 1em, 0);
  clip-path: inset(0 0 100% 0);
  filter: blur(6px);
  transition-delay: 0ms;
}

.text-motion-ready [data-text-motion-group].is-past [data-text-motion] {
  opacity: 0;
  transform: translate3d(0, -0.64em, 0);
  clip-path: inset(100% 0 0 0);
  filter: blur(3px);
  transition-duration: 280ms;
  transition-delay: 0ms;
}

.studio-step h2 {
  max-width: 10ch;
  margin-bottom: 34px;
  font-family: "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.studio-step p {
  max-width: 34ch;
  margin: 0;
  color: var(--b-muted);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.9;
}

.web-case-head h2,
.b-releases > h2,
.b-wall h2,
.b-service-title h2,
.b-archive h2,
.b-contact h2 {
  font-family: "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.96;
}

.release-track {
  position: relative;
  display: block;
  height: 980px;
  margin-top: 76px;
}

.release-card {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  transform: translate3d(var(--float-x, 0px), var(--float-y, 0px), 0);
  will-change: transform;
}

.release-landscape {
  top: 0;
  left: 0;
  width: 58%;
  height: 440px;
}

.release-portrait {
  top: 122px;
  right: 0;
  width: 34%;
  height: 650px;
}

.release-square {
  top: 552px;
  left: 17%;
  width: 43%;
  height: 380px;
}

.release-image {
  overflow: hidden;
}

.release-image::after {
  position: absolute;
  inset: -3%;
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  clip-path: inset(34% 0 34% 0);
  content: "";
  opacity: var(--ghost-opacity, 0);
  transform: translate3d(var(--ghost-x, 0px), var(--ghost-y, 0px), 0);
  transition: opacity 180ms ease;
  pointer-events: none;
}

@media (max-width: 980px) {
  .b-studio {
    gap: 48px;
    padding: 0 28px 0 0;
  }

  .studio-visual {
    min-height: 480px;
  }

  .release-track {
    height: 900px;
  }

  .release-landscape {
    width: 62%;
  }

  .release-portrait {
    width: 37%;
  }

  .release-square {
    left: 8%;
    width: 50%;
  }
}

@media (max-width: 720px) {
  .b-kv {
    height: 158dvh;
    min-height: 1040px;
  }

  .kv-sticky {
    min-height: 560px;
  }

  .b-nav {
    position: absolute;
  }

  .b-nav .brand-lockup {
    width: 100px;
  }

  .kv-video {
    object-position: 58% center;
  }

  .b-hero-copy {
    min-height: 100%;
    padding: 104px 18px 78px;
  }

  .b-hero h1 {
    font-size: clamp(48px, 14vw, 66px);
    line-height: 0.94;
  }

  .b-hero h1 span {
    white-space: normal;
  }

  .hero-actions a {
    flex: 1 1 100%;
  }

  .kv-reveal {
    right: 18px;
    bottom: 84px;
    left: 18px;
    padding-left: 20px;
  }

  .kv-reveal strong {
    font-size: 24px;
  }

  .kv-scroll-cue {
    left: 18px;
    bottom: 24px;
  }

  .b-studio {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .studio-visual {
    top: calc(var(--switcher-height) + 16px);
    z-index: 3;
    width: 100%;
    height: 49dvh;
    min-height: 360px;
    max-height: 520px;
    margin-top: 54px;
  }

  .studio-image-index {
    right: 12px;
    bottom: 12px;
  }

  .studio-story {
    position: relative;
    z-index: 4;
    margin-top: -30dvh;
  }

  .studio-step {
    position: relative;
    z-index: 4;
    min-height: 78dvh;
    justify-content: flex-end;
    padding: 42dvh 18px 30dvh;
  }

  .studio-image::after {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .studio-step h2 {
    max-width: 12ch;
    font-size: clamp(42px, 12vw, 60px);
  }

  .studio-step p {
    font-size: 16px;
    line-height: 1.8;
  }

  .release-track {
    display: grid;
    height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 46px;
  }

  .release-card,
  .release-landscape,
  .release-portrait,
  .release-square {
    position: relative;
    inset: auto;
    width: 100%;
    height: min(132vw, 560px);
    min-height: 460px;
    transform: none !important;
  }

  .release-landscape {
    height: min(88vw, 430px);
  }

  .release-image::after {
    display: none;
  }
}

/* Persistent utilities and the final brand ledger. */
.scroll-top-control {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 42;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(242, 241, 235, 0.22);
  border-radius: 0;
  background: rgba(27, 28, 25, 0.48);
  color: rgba(242, 241, 235, 0.66);
  cursor: pointer;
  opacity: 0.82;
  backdrop-filter: blur(10px) saturate(82%);
  -webkit-backdrop-filter: blur(10px) saturate(82%);
  transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.scroll-top-control:hover,
.scroll-top-control:focus-visible,
.scroll-top-control.is-active {
  border-color: rgba(242, 241, 235, 0.46);
  background: rgba(27, 28, 25, 0.66);
  color: var(--b-ink);
  opacity: 0.94;
}

.scroll-top-control:focus-visible {
  outline: 1px solid rgba(242, 241, 235, 0.5);
  outline-offset: 3px;
}

.scroll-top-control:active {
  transform: translateY(1px);
}

.waterfall-card {
  rotate: var(--gallery-rotation, 0deg);
  transition: rotate 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.waterfall-column-near .waterfall-card.gallery-tail-quiet {
  --piece-scale: 0.9;
  --piece-x: 72%;
  z-index: 4;
  align-self: flex-end;
  width: 92%;
  margin-top: calc(-80px - clamp(220px, 18vw, 320px));
  transform-origin: right center;
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.28);
}

.site-footer {
  display: grid;
  gap: clamp(30px, 3vw, 48px);
  padding: clamp(52px, 5.5vw, 82px) clamp(22px, 6vw, 96px) clamp(34px, 4vw, 58px);
  border-top: 1px solid var(--b-line);
  background: var(--b-black);
  color: var(--b-ink);
}

.site-footer-intro {
  display: grid;
  grid-template-columns: minmax(142px, 168px) minmax(0, 1fr);
  gap: clamp(34px, 4.2vw, 68px);
  align-items: center;
  width: min(100%, 860px);
  margin-inline: auto;
}

.site-footer-brand {
  display: block;
  width: 100%;
}

.site-footer-brand img {
  width: 100%;
  height: auto;
}

.site-footer-manifesto {
  max-width: 62ch;
  margin: 0;
  color: var(--b-ink);
  font: 400 clamp(13px, 1vw, 15px) / 1.46 "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  letter-spacing: -0.012em;
}

.site-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px clamp(22px, 3vw, 54px);
  width: min(100%, 800px);
  margin-inline: auto;
  align-content: center;
}

.site-footer-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  color: var(--b-muted);
  font: 400 12px / 1.35 "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--b-accent);
}

.site-footer-links a:active {
  transform: translateY(1px);
}

.site-footer-links svg {
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .site-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 560px);
  }

  .site-footer-links a {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .scroll-top-control {
    right: 10px;
    bottom: 10px;
  }

  .waterfall-card {
    rotate: 0deg;
  }

  .waterfall-column-near .waterfall-card.gallery-tail-quiet {
    --piece-scale: 1;
    --piece-x: 0%;
    width: 100%;
    margin-top: 0;
  }

  .b-waterfall .waterfall-flow {
    display: block;
    column-count: 2;
    column-gap: 10px;
    padding: 28px 10px 92px;
  }

  .b-waterfall .waterfall-column,
  .b-waterfall .waterfall-column-far {
    display: contents;
    transform: none !important;
  }

  .b-waterfall .waterfall-card,
  .b-waterfall .waterfall-card.card-post,
  .b-waterfall .waterfall-card.card-post.is-reel {
    display: inline-block;
    width: 100%;
    height: auto;
    margin: 0 0 10px;
    opacity: 1;
    break-inside: avoid;
    transform: none !important;
    vertical-align: top;
  }

  .b-waterfall .waterfall-card .waterfall-image {
    inset: 0;
    transform: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 52px 18px 42px;
  }

  .site-footer-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer-brand {
    width: 142px;
  }

  .site-footer-manifesto {
    max-width: 38ch;
    font-size: 14px;
  }

  .site-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    width: 100%;
  }

  .site-footer-links a {
    min-width: 0;
    font-size: 11px;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .waterfall-card {
    rotate: 0deg !important;
  }
}

/* Gallery focus system: centered identity, active anchors, optical depth, and full-frame lightbox. */

.direction-b .b-nav {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.b-nav .site-links {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.b-nav .brand-lockup {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

.b-nav .nav-action {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  appearance: none;
  background: transparent;
  color: var(--b-accent);
  font-family: "Marcellus", serif;
  cursor: pointer;
}

.b-nav .site-links :where(a, button) {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--b-muted);
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.b-nav .site-links :where(a, button)::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--b-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 160ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.b-nav .site-links :where(a, button):hover,
.b-nav .site-links :where(a, button).is-active,
.b-nav .site-links :where(a, button)[aria-current="location"] {
  color: var(--b-ink);
  text-decoration: none;
}

.b-nav .site-links :where(a, button).is-active::after,
.b-nav .site-links :where(a, button)[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.waterfall-column-far .waterfall-image {
  filter: saturate(0.68) contrast(1.02);
}

.waterfall-column-mid .waterfall-image {
  filter: saturate(0.78) contrast(1.04);
}

.waterfall-column-near .waterfall-image {
  filter: blur(0) saturate(0.88) contrast(1.06);
}

.waterfall-card:hover .waterfall-image,
.waterfall-card:focus-within .waterfall-image {
  filter: blur(0) saturate(1) contrast(1.03);
}

@media (hover: hover) and (pointer: fine) {
  .waterfall-card:hover .waterfall-image.ig-post,
  .waterfall-card:focus-within .waterfall-image.ig-post {
    transform: translateZ(0) scale(1.025);
  }

  .archive-flow .archive-case:hover > img,
  .archive-flow .archive-case:focus-within > img,
  .archive-flow .archive-case:hover > .colorful-hover-canvas,
  .archive-flow .archive-case:focus-within > .colorful-hover-canvas {
    transform: translateZ(0) scale(1.025);
  }
}

.work-lightbox-trigger {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  cursor: zoom-in;
}

.work-lightbox-trigger:focus-visible {
  outline: 2px solid var(--b-accent);
  outline-offset: -5px;
}

.instagram-rail-viewport {
  scrollbar-width: none;
}

.instagram-rail-viewport::-webkit-scrollbar {
  display: none;
}

body.work-lightbox-open {
  overflow: hidden;
}

.work-lightbox {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--b-ink);
}

.work-lightbox::backdrop {
  background: rgba(5, 6, 5, 0.9);
  backdrop-filter: blur(18px) saturate(70%);
  -webkit-backdrop-filter: blur(18px) saturate(70%);
}

.work-lightbox-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: clamp(74px, 8vh, 96px) clamp(18px, 6vw, 96px) clamp(28px, 5vh, 64px);
  background: rgba(17, 17, 15, 0.72);
  opacity: 0;
  transition: opacity 260ms ease;
}

.work-lightbox.is-visible .work-lightbox-shell {
  opacity: 1;
}

.work-lightbox-close {
  position: absolute;
  top: 18px;
  right: clamp(18px, 4vw, 64px);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 241, 235, 0.26);
  border-radius: 0;
  background: rgba(27, 28, 25, 0.48);
  color: rgba(242, 241, 235, 0.76);
  cursor: pointer;
  backdrop-filter: blur(10px) saturate(82%);
  -webkit-backdrop-filter: blur(10px) saturate(82%);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.work-lightbox-close::before,
.work-lightbox-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.work-lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.work-lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.work-lightbox-close:hover,
.work-lightbox-close:focus-visible {
  border-color: rgba(242, 241, 235, 0.5);
  background: rgba(27, 28, 25, 0.68);
  color: var(--b-ink);
}

.work-lightbox-close:focus-visible {
  outline: 0;
}

.work-lightbox-figure {
  display: grid;
  width: min(100%, 880px);
  max-height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vh, 30px);
  margin: 0;
}

.work-lightbox-media {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #090a09;
}

/* Keep image and carousel lightboxes visually anchored while each slide loads.
   Archive cases and reels retain their purpose-built scrolling/video frames. */
.work-lightbox:not(.is-archive-work):not(.is-video-work) .work-lightbox-figure {
  width: min(100%, 720px);
}

.work-lightbox:not(.is-archive-work):not(.is-video-work) .work-lightbox-media {
  width: 100%;
  height: min(62dvh, 700px);
}

.work-lightbox-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  place-items: center;
  align-content: center;
  pointer-events: none;
  background: #090a09;
  color: var(--b-muted);
  font: 600 10px/1 "Marcellus", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-lightbox-loading span {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(242, 241, 235, 0.24);
  border-top-color: var(--b-accent);
  border-radius: 50%;
  animation: work-lightbox-spin 760ms linear infinite;
}

.work-lightbox-loading[hidden] {
  display: none;
}

@keyframes work-lightbox-spin {
  to { transform: rotate(1turn); }
}

.work-lightbox-carousel-controls {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--b-black);
  background: var(--b-accent);
}

.work-lightbox-carousel-controls:has(> :not([hidden])) {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.work-lightbox-carousel-controls button,
.work-lightbox-carousel-controls span {
  display: grid;
  min-width: 44px;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: 600 12px/1 "Marcellus", serif;
}

.work-lightbox-carousel-controls button {
  cursor: pointer;
}

.work-lightbox-carousel-controls button:hover,
.work-lightbox-carousel-controls button:focus-visible {
  outline: 0;
  background: var(--b-black);
  color: var(--b-accent);
}

.work-lightbox-carousel-controls button:disabled {
  cursor: default;
  opacity: 0.34;
}

.work-lightbox-carousel-controls [hidden] {
  display: none;
}

.work-lightbox-media:focus,
.work-lightbox-media:focus-visible {
  outline: 0;
}

.work-lightbox-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(68dvh, 760px);
  object-fit: contain;
  filter: blur(10px) saturate(0.7);
  opacity: 0;
  transform: scale(0.965);
  transition: filter 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 360ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-lightbox:not(.is-archive-work):not(.is-video-work) .work-lightbox-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.work-lightbox-media video,
.work-lightbox.is-video-fallback .work-lightbox-media img {
  display: block;
  width: auto;
  max-width: min(100%, 430px);
  height: min(72dvh, 800px);
  max-height: 100%;
  aspect-ratio: 9 / 16;
  background: #080908;
  object-fit: contain;
}

.work-lightbox-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--b-ink);
  text-decoration: none;
}

.work-lightbox-video-fallback-play {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(242, 241, 235, 0.58);
  border-radius: 50%;
  background: rgba(12, 13, 12, 0.68);
  transition: background-color 180ms ease, transform 180ms ease;
}

.work-lightbox-video-fallback-play svg {
  margin-inline-start: 3px;
}

.work-lightbox-video-fallback-label {
  position: absolute;
  bottom: 18px;
  padding: 10px 14px;
  background: rgba(12, 13, 12, 0.76);
  font: 400 12px/1 "Marcellus", serif;
  letter-spacing: 0.025em;
}

.work-lightbox-video-fallback:hover .work-lightbox-video-fallback-play,
.work-lightbox-video-fallback:focus-visible .work-lightbox-video-fallback-play {
  background: rgba(12, 13, 12, 0.9);
  transform: scale(1.06);
}

.work-lightbox-video-fallback:focus-visible {
  outline: 1px solid rgba(242, 241, 235, 0.72);
  outline-offset: -1px;
}

.work-lightbox-media video[hidden],
.work-lightbox-video-fallback[hidden],
.work-lightbox-media img[hidden] {
  display: none;
}

.work-lightbox.is-video-work .work-lightbox-figure {
  width: min(100%, 760px);
}

.work-lightbox.is-visible .work-lightbox-media img {
  filter: blur(0) saturate(1);
  opacity: 1;
  transform: scale(1);
}

.work-lightbox figcaption {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1.2fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--b-line);
}

.work-lightbox h2 {
  margin: 0;
  font-family: "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.work-lightbox p {
  max-width: 58ch;
  margin: 0;
  color: var(--b-muted);
  font: 400 15px/1.7 "Zen Old Mincho", "Noto Serif TC", serif;
}

/* Instagram captions can be much longer than the lightbox composition.
   Keep the media and title stable while preserving the complete source copy. */
.work-lightbox:not(.is-archive-work) [data-lightbox-description] {
  max-block-size: min(18dvh, 164px);
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 12px;
  scrollbar-color: rgba(242, 241, 235, 0.44) transparent;
  scrollbar-width: thin;
}

.work-lightbox:not(.is-archive-work) [data-lightbox-description]::-webkit-scrollbar {
  width: 4px;
}

.work-lightbox:not(.is-archive-work) [data-lightbox-description]::-webkit-scrollbar-thumb {
  background: rgba(242, 241, 235, 0.44);
}

.work-lightbox:not(.is-archive-work) [data-lightbox-description]:focus-visible {
  outline: 1px solid var(--b-accent);
  outline-offset: 4px;
}

.archive-lightbox-trigger {
  cursor: zoom-in;
}

.work-lightbox.is-archive-work .work-lightbox-figure {
  display: grid;
  width: min(100%, 1320px);
  height: calc(100dvh - clamp(102px, 13vh, 160px));
  min-height: 0;
  max-height: 100%;
  grid-template-columns: minmax(236px, 320px) minmax(0, 1fr) 5px;
  grid-template-rows: minmax(0, 1fr);
  column-gap: clamp(16px, 2.5vw, 34px);
  align-items: stretch;
  overflow: hidden;
}

.work-lightbox.is-archive-work .work-lightbox-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  background: var(--b-black);
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.work-lightbox.is-archive-work .work-lightbox-media::-webkit-scrollbar {
  display: none;
}

.work-lightbox-scrollbar {
  position: static;
  grid-column: 3;
  grid-row: 1;
  z-index: 3;
  align-self: stretch;
  width: 5px;
  min-height: 0;
  border: 0;
  background: rgba(242, 241, 235, 0.14);
  cursor: ns-resize;
  touch-action: none;
}

.work-lightbox-scrollbar[hidden] {
  display: none;
}

.work-lightbox-scrollbar span {
  display: block;
  width: 100%;
  min-height: 32px;
  background: var(--b-accent);
  transition: background-color 160ms ease, width 160ms ease, margin 160ms ease;
}

.work-lightbox-scrollbar:hover span,
.work-lightbox-scrollbar:focus-visible span {
  background: var(--b-ink);
  width: 7px;
  margin-left: -1px;
}

.work-lightbox-scrollbar:focus-visible {
  outline: 1px solid var(--b-accent);
  outline-offset: 3px;
}

.work-lightbox.is-archive-work .work-lightbox-media img {
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.work-lightbox.is-archive-work figcaption {
  position: static;
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: auto;
  padding-top: 18px;
  border-top: 0;
}

.work-lightbox.is-archive-work figcaption h2 {
  margin-bottom: 18px;
}

.work-lightbox-category {
  margin: 0 0 20px;
  color: var(--b-accent);
  font: 400 11px/1.2 "Marcellus", serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-lightbox-launch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100%, 240px);
  margin-top: 36px;
  padding: 11px 14px;
  border: 1px solid var(--b-accent);
  color: var(--b-accent);
  font: 400 13px/1 "Marcellus", serif;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.work-lightbox-launch[hidden] {
  display: none;
}

.work-lightbox-launch svg {
  width: 16px;
  height: 16px;
}

.work-lightbox-launch:hover,
.work-lightbox-launch:focus-visible {
  background: var(--b-accent);
  color: var(--b-black);
  outline: 0;
}

@media (max-width: 980px) {
  .direction-b .b-nav .site-links {
    display: flex;
  }
}

@media (max-width: 720px) {
  .direction-b .b-nav {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    padding-inline: 12px;
  }

  .b-nav .site-links {
    gap: 9px;
  }

  .b-nav .site-links :where(a, button) {
    min-height: 42px;
    font-size: 9px;
  }

  .b-nav .brand-lockup {
    width: 82px;
  }

  .b-nav .nav-action {
    min-height: 42px;
    padding: 8px 9px;
    font-size: 9px;
    white-space: nowrap;
  }

  .waterfall-column-far .waterfall-image,
  .waterfall-column-mid .waterfall-image,
  .waterfall-column-near .waterfall-image {
    filter: saturate(0.88) contrast(1.04);
  }

  .work-lightbox-shell {
    --lightbox-bottom-clearance: max(84px, calc(env(safe-area-inset-bottom) + 28px));
    padding: 18px 16px var(--lightbox-bottom-clearance);
  }

  .work-lightbox-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
  }

  .work-lightbox-figure {
    gap: 16px;
  }

  .work-lightbox-media img {
    max-height: 60dvh;
  }

  .work-lightbox:not(.is-archive-work):not(.is-video-work) .work-lightbox-media {
    height: clamp(240px, calc(100dvh - 330px), 460px);
  }

  .work-lightbox-media video,
  .work-lightbox.is-video-fallback .work-lightbox-media img {
    width: auto;
    max-width: 100%;
    height: min(66dvh, calc(100dvh - 235px), calc((100vw - 32px) * 16 / 9));
    max-height: none;
  }

  .work-lightbox-video-fallback-play {
    width: 62px;
    height: 62px;
  }

  .work-lightbox figcaption {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
  }

  .work-lightbox h2 {
    font-size: 28px;
  }

  .work-lightbox p {
    font-size: 13px;
  }

  .work-lightbox:not(.is-archive-work) [data-lightbox-description] {
    max-block-size: min(14dvh, 112px);
    padding-inline-end: 10px;
  }

  .work-lightbox.is-archive-work .work-lightbox-figure {
    display: grid;
    /* The bounded media row owns both the long artwork and its dedicated
       track, so the scroll affordance never covers the artwork. */
    height: calc(100dvh - 98px);
    min-height: 0;
    max-height: none;
    align-self: stretch;
    grid-template-columns: minmax(0, 1fr) 4px;
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 14px;
  }

  .work-lightbox.is-archive-work figcaption {
    position: static;
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    padding-top: 12px;
    border-top: 0;
  }

  .work-lightbox.is-archive-work figcaption h2 {
    margin-bottom: 8px;
  }

  .work-lightbox.is-archive-work .work-lightbox-media {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .work-lightbox-scrollbar {
    grid-column: 2;
    grid-row: 2;
    width: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-lightbox-shell,
  .work-lightbox-media img {
    transform: none;
    transition-duration: 120ms;
  }

  .waterfall-column-far .waterfall-image,
  .waterfall-column-mid .waterfall-image,
  .waterfall-column-near .waterfall-image {
    filter: saturate(0.88) contrast(1.04);
  }
}

/* Project inquiry — an editorial overlay that moves from pricing ledger to proposal sheet. */

body.project-dialog-open {
  overflow: hidden;
}

.contact-project-open {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 20px;
  border: 1px solid var(--b-accent);
  border-radius: 0;
  background: var(--b-accent);
  color: var(--b-black);
  font: 700 16px/1.2 "Marcellus", "Zen Old Mincho", serif;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-project-open:hover {
  border-color: var(--b-ink);
  background: var(--b-ink);
}

.contact-project-open:active {
  transform: translateY(1px);
}

.project-dialog {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: block;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--b-ink);
}

.project-dialog[hidden] {
  display: none !important;
}

.project-dialog-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--b-black);
  clip-path: inset(100% 0 0);
  transform: translate3d(0, 36px, 0);
  transition: clip-path 760ms cubic-bezier(0.16, 1, 0.3, 1), transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-dialog.is-visible .project-dialog-shell {
  clip-path: inset(0);
  transform: none;
}

.project-dialog-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(242, 241, 235, 0.18);
  background: rgba(12, 13, 12, 0.9);
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
}

.project-dialog-brand {
  display: block;
  width: 132px;
  pointer-events: none;
}

.project-dialog-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.project-dialog-close {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 241, 235, 0.26);
  border-radius: 0;
  background: rgba(27, 28, 25, 0.48);
  color: rgba(242, 241, 235, 0.76);
  cursor: pointer;
  backdrop-filter: blur(10px) saturate(82%);
  -webkit-backdrop-filter: blur(10px) saturate(82%);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.project-dialog-close::before,
.project-dialog-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 1px;
  background: currentColor;
  content: "";
}

.project-dialog-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-dialog-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-dialog-close:hover,
.project-dialog-close:focus-visible {
  border-color: rgba(242, 241, 235, 0.5);
  background: rgba(27, 28, 25, 0.68);
  color: var(--b-ink);
}

.project-dialog-close:focus-visible {
  outline: 0;
}

.project-dialog-scroll {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--b-accent) var(--b-black);
  scrollbar-width: thin;
}

.project-dialog-scroll::-webkit-scrollbar {
  width: 8px;
}

.project-dialog-scroll::-webkit-scrollbar-track {
  background: var(--b-black);
}

.project-dialog-scroll::-webkit-scrollbar-thumb {
  background: var(--b-accent);
}

.project-pricing {
  min-height: 100dvh;
  padding: clamp(132px, 17vh, 190px) clamp(22px, 6vw, 96px) clamp(92px, 12vh, 140px);
  background:
    linear-gradient(112deg, rgba(217, 244, 95, 0.04), transparent 33%),
    var(--b-black);
}

.project-pricing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(42px, 9vw, 150px);
  align-items: end;
  margin-bottom: clamp(72px, 10vh, 116px);
}

.project-pricing-intro h2,
.project-inquiry-copy h2 {
  max-width: 10ch;
  margin: 0;
  font-family: "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  font-size: clamp(52px, 7.6vw, 96px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

.project-pricing-intro p,
.project-inquiry-copy p {
  max-width: 38ch;
  margin: 0;
  color: var(--b-muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.85;
}

.pricing-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--b-line);
  border-bottom: 1px solid var(--b-line);
}

.pricing-entry {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: clamp(30px, 4vw, 58px) clamp(22px, 3vw, 44px);
  border-right: 1px solid var(--b-line);
  background: transparent;
  color: var(--b-ink);
  transition: background-color 320ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms ease;
}

.pricing-entry:last-child {
  border-right: 0;
}

.pricing-entry-featured {
  background: transparent;
  color: var(--b-ink);
}

.pricing-entry h3 {
  min-height: 2.8em;
  margin: 0 0 44px;
  font-family: "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.35;
}

.pricing-value {
  display: flex;
  align-items: baseline;
  margin: 0 0 38px;
  color: inherit;
  font-family: "Marcellus", serif;
  font-variant-numeric: lining-nums tabular-nums;
}

.pricing-value span {
  margin-right: 8px;
  font-size: 15px;
}

.pricing-value strong {
  font-size: clamp(50px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.pricing-value-custom strong {
  font-family: "Zen Old Mincho", "Noto Serif TC", serif;
  font-size: clamp(42px, 4.2vw, 64px);
  letter-spacing: -0.03em;
}

.pricing-value small {
  margin-left: 8px;
  font-size: 14px;
}

.pricing-entry ul {
  display: grid;
  gap: 10px;
  margin: 0 0 46px;
  padding: 0;
  color: var(--b-muted);
  font-size: 15px;
  line-height: 1.6;
  list-style: none;
}

.pricing-entry-featured ul {
  color: var(--b-muted);
}

.pricing-entry li::before {
  margin-right: 9px;
  content: "—";
}

.pricing-entry button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 18px;
  border: 1px solid var(--b-ink);
  border-radius: 0;
  background: transparent;
  color: var(--b-ink);
  font: 400 13px/1.2 "Marcellus", serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.pricing-entry button:hover {
  background: var(--b-ink);
  color: var(--b-black);
}

.pricing-entry-featured button {
  border-color: var(--b-ink);
  color: var(--b-ink);
}

.pricing-entry-featured button:hover {
  background: var(--b-ink);
  color: var(--b-black);
}

@media (hover: hover) and (pointer: fine) {
  .pricing-entry:hover {
    background: var(--b-accent);
    color: var(--b-black);
  }

  .pricing-entry:hover ul {
    color: rgba(17, 17, 15, 0.72);
  }

  .pricing-entry:hover button {
    border-color: var(--b-black);
    color: var(--b-black);
  }

  .pricing-entry:hover button:hover {
    background: var(--b-black);
    color: var(--b-accent);
  }
}

.pricing-entry:focus-within {
  background: var(--b-accent);
  color: var(--b-black);
}

.pricing-entry:focus-within ul {
  color: rgba(17, 17, 15, 0.72);
}

.pricing-entry:focus-within button {
  border-color: var(--b-black);
  color: var(--b-black);
}

.project-inquiry {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 9vw, 150px);
  min-height: 100dvh;
  padding: clamp(120px, 16vh, 180px) clamp(22px, 6vw, 96px);
  background: var(--b-ink);
  color: var(--b-black);
}

.project-inquiry-copy {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 120px;
  height: max-content;
}

.project-inquiry-copy h2 {
  max-width: 8ch;
  font-size: clamp(50px, 6vw, 88px);
}

.project-inquiry-copy p {
  margin-top: 34px;
  color: rgba(17, 17, 15, 0.68);
}

.project-form-stage {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  align-self: start;
}

.project-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  align-self: start;
  width: 100%;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-form[hidden] {
  display: none !important;
}

.project-form.is-complete {
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, -14px, 0);
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 10px;
  font-family: "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.38);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--b-black);
  font: 400 16px/1.6 "Zen Old Mincho", "Noto Serif TC", serif;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field textarea::placeholder {
  color: rgba(17, 17, 15, 0.68);
  opacity: 1;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--b-black);
  box-shadow: 0 1px 0 var(--b-black);
}

.project-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.project-captcha {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  padding: 14px 0;
  border-top: 1px solid rgba(17, 17, 15, 0.28);
  border-bottom: 1px solid rgba(17, 17, 15, 0.28);
}

.project-captcha .h-captcha {
  flex: 0 0 auto;
  min-width: 303px;
  min-height: 78px;
}

.project-captcha p {
  max-width: 39ch;
  margin: 0;
  color: rgba(17, 17, 15, 0.66);
  font-size: 12px;
  line-height: 1.6;
}

.project-captcha p strong {
  display: block;
  margin-bottom: 4px;
  color: var(--b-black);
  font-weight: 600;
}

.project-form-footer {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
}

.project-form-footer p {
  max-width: 46ch;
  margin: 0;
  color: rgba(17, 17, 15, 0.62);
  font-size: 12px;
  line-height: 1.7;
}

.project-submit {
  display: inline-flex;
  min-width: 230px;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 18px;
  border: 1px solid var(--b-black);
  border-radius: 0;
  background: var(--b-black);
  color: var(--b-ink);
  font: 400 14px/1.2 "Marcellus", serif;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.project-submit:hover:not(:disabled) {
  background: var(--b-accent);
  color: var(--b-black);
}

.project-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.project-form-status {
  min-height: 26px;
  margin: -12px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.project-form-status.is-success {
  color: #315c16;
}

.project-form-status.is-error {
  color: #8d211a;
}

.project-form-complete {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 28px 24px;
  align-content: start;
  min-height: 0;
  align-self: start;
  width: 100%;
  padding: clamp(16px, 2vw, 32px) 0;
  border-top: 1px solid rgba(17, 17, 15, 0.28);
  border-bottom: 1px solid rgba(17, 17, 15, 0.28);
  color: var(--b-black);
  outline: 0;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.project-form-complete.is-visible {
  animation: project-form-complete-arrive 460ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-form-complete-mark {
  display: grid;
  grid-row: span 2;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(17, 17, 15, 0.56);
}

.project-form-complete-mark svg {
  width: 46px;
  height: 46px;
}

.project-form-complete-mark path {
  stroke: #315c16;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
  stroke-dasharray: 54;
  stroke-dashoffset: 54;
}

.project-form-complete.is-visible .project-form-complete-mark path {
  animation: project-form-complete-tick 340ms 140ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-form-complete-copy h3 {
  margin: 0;
  color: #315c16;
  font-family: "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-form-complete-copy p {
  max-width: 30ch;
  margin: 14px 0 0;
  color: rgba(17, 17, 15, 0.68);
  font-size: 16px;
  line-height: 1.75;
}

.project-form-restart {
  grid-column: 2;
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--b-black);
  font: 600 13px/1.2 "Marcellus", "Zen Old Mincho", "Noto Serif TC", serif;
  cursor: pointer;
}

.project-form-restart:hover,
.project-form-restart:focus-visible {
  color: #315c16;
}

.project-form-restart:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

@keyframes project-form-complete-arrive {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes project-form-complete-tick {
  to {
    stroke-dashoffset: 0;
  }
}

.project-dialog ::selection {
  background: var(--b-accent);
  color: var(--b-black);
}

@media (max-width: 980px) {
  .pricing-entry {
    min-height: 500px;
    padding-inline: 22px;
  }

  .pricing-entry h3 {
    font-size: 24px;
  }

  .pricing-value strong {
    font-size: 48px;
  }

  .project-inquiry {
    gap: 54px;
  }
}

@media (max-width: 720px) {
  .project-dialog-header {
    min-height: 64px;
    padding: 8px 12px 8px 18px;
  }

  .project-dialog-brand {
    position: absolute;
    left: 50%;
    width: 100px;
    transform: translateX(-50%);
  }

  .project-dialog-close {
    width: 46px;
    height: 46px;
    margin-left: auto;
  }

  .project-pricing {
    padding: 110px 18px 72px;
  }

  .project-pricing-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }

  .project-pricing-intro h2,
  .project-inquiry-copy h2 {
    max-width: 9ch;
    font-size: clamp(46px, 13vw, 64px);
  }

  .pricing-ledger {
    grid-template-columns: 1fr;
  }

  .pricing-entry {
    min-height: 0;
    padding: 38px 18px 42px;
    border-right: 0;
    border-bottom: 1px solid var(--b-line);
  }

  .pricing-entry:last-child {
    border-bottom: 0;
  }

  .pricing-entry h3 {
    min-height: 0;
    margin-bottom: 32px;
  }

  .pricing-value {
    margin-bottom: 30px;
  }

  .pricing-entry ul {
    margin-bottom: 34px;
  }

  .project-inquiry {
    display: block;
    min-height: 0;
    padding: 94px 18px 78px;
  }

  .project-inquiry-copy {
    grid-column: auto;
    grid-row: auto;
    position: static;
    margin-bottom: 62px;
  }

  .project-form-stage {
    grid-column: auto;
    grid-row: auto;
  }

  .project-form {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .project-form-complete {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 22px 16px;
    min-height: 0;
    padding-block: 16px;
  }

  .project-form-complete-mark {
    width: 58px;
    height: 58px;
  }

  .project-form-complete-mark svg {
    width: 38px;
    height: 38px;
  }

  .project-form-complete-copy h3 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .project-form-restart {
    grid-column: 1 / -1;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .project-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .project-captcha {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .project-captcha .h-captcha {
    min-width: 0;
  }

  .project-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-dialog-shell {
    clip-path: none;
    transform: none;
    transition: none;
  }

  .project-form,
  .project-form-complete {
    transition: none;
    transform: none;
  }

  .project-form-complete.is-visible,
  .project-form-complete.is-visible .project-form-complete-mark path {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* Keep the Silk Veil navigation fixed after the cinematic prototype layer. */
.direction-b .b-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 18;
  overflow: hidden;
  border-bottom: 0;
  background: transparent;
  isolation: isolate;
}

@media (max-width: 720px) {
  .direction-b .b-nav {
    position: fixed;
  }

  .text-motion-ready .studio-step.is-before h2,
  .text-motion-ready .studio-step.is-before p,
  .text-motion-ready [data-text-motion-group].is-before [data-text-motion] {
    transform: translate3d(0, 0.58em, 0);
    filter: blur(4px);
  }

  .text-motion-ready .studio-step.is-past h2,
  .text-motion-ready .studio-step.is-past p,
  .text-motion-ready [data-text-motion-group].is-past [data-text-motion] {
    transform: translate3d(0, -0.36em, 0);
    filter: blur(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kv-video,
  .kv-poster,
  .b-hero-copy,
  .kv-reveal,
  .release-card,
  .studio-image {
    transform: none !important;
    will-change: auto;
  }

  .b-hero-copy {
    opacity: 1 !important;
  }

  .kv-reveal {
    opacity: 1 !important;
  }

  .studio-step {
    opacity: 1;
  }

  .studio-step h2,
  .studio-step p,
  [data-text-motion] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    transition: opacity 160ms ease !important;
  }

  .release-image::after {
    display: none;
  }
}
