:root {
  --shell: min(1440px, calc(100vw - 80px));
  --ink: #0d0d0c;
  --paper: #f1eadf;
  --red: #ed3c2b;
  --acid: #d8ff55;
  --line-light: rgba(13, 13, 12, 0.18);
  --page-bg: #0b0b0a;
  --page-fg: #f2eadf;
  --muted: #a59d92;
  --accent: #ed3c2b;
  --accent-2: #d8ff55;
  --panel: #171714;
  --panel-2: #22201d;
  --line: rgba(242, 234, 223, 0.18);
  --line-strong: rgba(242, 234, 223, 0.34);
  --nav-bg: rgba(11, 11, 10, 0.86);
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --mono: "SFMono-Regular", "SF Mono", "Menlo", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--page-fg);
  background: var(--page-bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    color 260ms ease,
    background 260ms ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  color: #111;
  background: var(--accent-2);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.version-rail {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  height: 38px;
  padding: 0 24px;
  align-items: center;
  color: #f4efe7;
  background: #0b0b0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.rail-home {
  justify-self: start;
}

.rail-name {
  justify-self: center;
  color: rgba(255, 255, 255, 0.58);
}

.rail-switcher {
  display: flex;
  gap: 4px;
  justify-self: end;
}

.rail-switcher a {
  display: grid;
  width: 26px;
  height: 23px;
  color: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.18);
  place-items: center;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.rail-switcher a:hover,
.rail-switcher a.is-active {
  color: #0b0b0a;
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.nav-shell {
  position: fixed;
  z-index: 200;
  top: 38px;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  align-items: center;
  color: var(--page-fg);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: max-content;
}

.brand-logo {
  width: 42px;
  height: 24px;
  object-fit: contain;
  transition: filter 160ms ease;
}

.brand > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand small {
  color: var(--muted);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.primary-nav {
  display: flex;
  gap: 30px;
  justify-self: center;
}

.primary-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 11px;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover {
  color: var(--page-fg);
}

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-action {
  display: inline-flex;
  gap: 16px;
  justify-self: end;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  font-size: 10px;
}

.nav-action:hover {
  color: #111;
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.hero {
  position: relative;
  width: var(--shell);
  min-height: min(980px, 100svh);
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 7.7vw, 122px);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.hero-copy h1 em,
.hero-copy h1 span {
  color: var(--accent);
  font-style: normal;
}

.hero-side > p,
.section-head > p,
.case-heading > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero-links,
.contact-row > div {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-link {
  display: inline-flex;
  gap: 24px;
  min-height: 50px;
  padding: 14px 18px;
  align-items: center;
  color: var(--button-fg, #111);
  background: var(--button-bg, #f2eadf);
  font-size: 11px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.main-link:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
}

.text-link {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 10px;
}

.hero-art {
  position: relative;
}

.art-main,
.art-side {
  position: absolute;
  margin: 0;
  overflow: hidden;
}

.art-main img,
.art-side img,
.work-image img,
.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-main figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
  padding: 24px;
  align-items: center;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  font-family: var(--serif);
  font-size: 20px;
}

.art-main figcaption span {
  font-family: var(--mono);
  font-size: 9px;
}

.hero-stat {
  position: absolute;
  z-index: 5;
}

.hero-stat > span,
.metric-band span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-stat strong small,
.metric-band strong small {
  margin-left: 3px;
  font-family: var(--sans);
  font-size: 12px;
}

.hero-stat p {
  margin: 7px 0 0;
  font-size: 8px;
}

.scroll-word {
  position: absolute;
  right: 0;
  bottom: 34px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}

.metric-band > div {
  min-height: 150px;
  padding: 27px;
  border-right: 1px solid var(--line);
}

.metric-band > div:last-child {
  border-right: 0;
}

.metric-band span {
  display: block;
  color: var(--muted);
}

.metric-band strong {
  display: block;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-pad {
  width: var(--shell);
  margin: 0 auto;
  padding: 130px 0;
}

.section-label {
  margin: 0 0 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-head h2,
.case-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6.2vw, 96px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.section-head h2 span,
.case-heading h2 span,
.about h2 span,
.contact h2 span {
  color: var(--accent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 74px;
}

.service-grid article {
  position: relative;
  min-height: 430px;
  padding: 28px;
  border: 1px solid var(--line);
}

.service-grid article + article {
  border-left: 0;
}

.service-no {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.service-grid article > p:first-of-type {
  margin: 84px 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.service-grid h3 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.service-grid article > p:not(:first-of-type) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.service-grid small {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.6;
}

.section-head-row {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 80px;
  align-items: end;
}

.section-head-row > p {
  max-width: 470px;
  margin: 0 0 8px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.work-card {
  grid-column: span 4;
  min-height: 590px;
  background: var(--panel);
}

.work-featured {
  grid-column: span 6;
}

.work-card:nth-child(2) {
  grid-column: span 3;
}

.work-card:nth-child(3) {
  grid-column: span 3;
}

.work-card:nth-child(4) {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  min-height: 450px;
}

.work-image {
  position: relative;
  height: 440px;
  overflow: hidden;
}

.work-featured .work-image,
.work-card:nth-child(2) .work-image,
.work-card:nth-child(3) .work-image {
  height: 440px;
}

.work-card:nth-child(4) .work-image {
  height: 100%;
}

.work-image img {
  transition: transform 500ms ease;
}

.work-card:hover .work-image img {
  transform: scale(1.035);
}

.work-image > span {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-family: var(--mono);
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.work-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 24px;
}

.work-copy > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.work-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.work-copy > div {
  align-self: end;
}

.work-copy > div strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.work-copy > div span {
  color: var(--muted);
  font-size: 7px;
}

.work-card:nth-child(4) .work-copy {
  display: flex;
  gap: 18px;
  padding: 40px;
  flex-direction: column;
  justify-content: flex-end;
}

.work-card:nth-child(4) .work-copy h3 {
  font-size: 44px;
}

.case-heading {
  max-width: 760px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  margin-top: 72px;
  align-items: start;
}

.case-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.case-card > img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
}

.case-card > div {
  padding: 28px;
}

.case-card > div > p:first-child {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 9px;
}

.case-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.case-card > div > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.case-wide {
  margin-top: 90px;
}

.about {
  position: relative;
  overflow: hidden;
}

.about::after {
  position: absolute;
  right: -6vw;
  bottom: -20vw;
  width: 46vw;
  height: 46vw;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 9vw;
  align-items: start;
}

.about-grid > div > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.about-points > div {
  padding: 23px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-points strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}

.about-points span {
  color: var(--muted);
  font-size: 9px;
}

.contact {
  position: relative;
}

.contact-row {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 28px 40px;
  align-items: center;
  border-top: 1px solid var(--line);
}

footer p,
footer > a:last-child {
  color: var(--muted);
  font-size: 8px;
}

footer > a:last-child {
  justify-self: end;
}

/* 01 - Cinema Noir */

body[data-theme="v1"] {
  --page-bg: #0b0b0a;
  --page-fg: #f2eadf;
  --muted: #a59d92;
  --accent: #ed3c2b;
  --accent-2: #d8ff55;
  --panel: #171714;
  --line: rgba(242, 234, 223, 0.16);
  --line-strong: rgba(242, 234, 223, 0.3);
  --nav-bg: rgba(11, 11, 10, 0.82);
  --button-bg: #f2eadf;
  --button-fg: #0b0b0a;
}

body[data-theme="v1"] .hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: 40px;
  padding: 172px 0 90px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 35%, rgba(237, 60, 43, 0.19), transparent 26%),
    radial-gradient(circle at 14% 12%, rgba(237, 60, 43, 0.07), transparent 24%);
}

body[data-theme="v1"] .eyebrow {
  position: absolute;
  top: 112px;
  left: 0;
  width: 100%;
}

body[data-theme="v1"] .hero-copy {
  align-self: center;
}

body[data-theme="v1"] .hero-side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  margin-top: 38px;
  align-items: end;
}

body[data-theme="v1"] .hero-side > p {
  max-width: 540px;
  margin: 0;
}

body[data-theme="v1"] .hero-art {
  height: 660px;
}

body[data-theme="v1"] .art-main {
  z-index: 3;
  top: 0;
  left: 24%;
  width: 50%;
  height: 620px;
  transform: rotate(1.2deg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
}

body[data-theme="v1"] .art-side {
  opacity: 0.74;
  filter: saturate(0.74);
}

body[data-theme="v1"] .art-side-a {
  top: 70px;
  left: 0;
  width: 34%;
  height: 465px;
  transform: rotate(-8deg);
}

body[data-theme="v1"] .art-side-b {
  top: 46px;
  right: 0;
  width: 33%;
  height: 470px;
  transform: rotate(8deg);
}

body[data-theme="v1"] .hero-stat {
  bottom: 8px;
  left: 4%;
  width: 225px;
  padding: 19px;
  color: #111;
  background: #f2eadf;
}

body[data-theme="v1"] .hero-stat p {
  color: #6c665c;
}

body[data-theme="v1"] .metric-band {
  color: #111;
  background: #d8ff55;
}

body[data-theme="v1"] .metric-band span {
  color: rgba(17, 17, 17, 0.58);
}

body[data-theme="v1"] .metric-band > div {
  border-color: rgba(17, 17, 17, 0.2);
}

body[data-theme="v1"] .section-head {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 80px;
  align-items: end;
}

body[data-theme="v1"] .section-head .section-label {
  grid-column: 1 / -1;
}

body[data-theme="v1"] .section-head > p:last-child {
  max-width: 440px;
  margin: 0 0 6px;
}

body[data-theme="v1"] .service-grid article:nth-child(2) {
  background: #151512;
}

body[data-theme="v1"] .service-grid article:nth-child(3) {
  color: #111;
  background: #ed3c2b;
  border-color: #ed3c2b;
}

body[data-theme="v1"] .service-grid article:nth-child(3) p,
body[data-theme="v1"] .service-grid article:nth-child(3) small {
  color: rgba(17, 17, 17, 0.6);
}

body[data-theme="v1"] .service-grid article:nth-child(3) small {
  border-color: rgba(17, 17, 17, 0.25);
}

body[data-theme="v1"] .service-grid article:nth-child(3) .service-no {
  color: #f2eadf;
}

body[data-theme="v1"] .works {
  width: 100%;
  padding-inline: max(40px, calc((100vw - 1440px) / 2));
  background: #131310;
}

body[data-theme="v1"] .case-card:first-child {
  margin-top: 70px;
}

body[data-theme="v1"] .about {
  background: linear-gradient(120deg, rgba(237, 60, 43, 0.06), transparent 40%);
}

body[data-theme="v1"] .contact {
  color: #111;
  background: #ed3c2b;
}

body[data-theme="v1"] .contact .section-label,
body[data-theme="v1"] .contact p {
  color: rgba(17, 17, 17, 0.58);
}

body[data-theme="v1"] .contact h2 span {
  color: #f2eadf;
}

body[data-theme="v1"] .contact .main-link {
  color: #f2eadf;
  background: #111;
}

body[data-theme="v1"] .contact .text-link {
  color: #111;
}

/* 02 - Ivory Gallery */

body[data-theme="v2"] {
  --page-bg: #f3eee4;
  --page-fg: #17241d;
  --muted: #6d746c;
  --accent: #245d43;
  --accent-2: #d8c5a2;
  --panel: #e8e0d3;
  --line: rgba(23, 36, 29, 0.17);
  --line-strong: rgba(23, 36, 29, 0.34);
  --nav-bg: rgba(243, 238, 228, 0.9);
  --button-bg: #17241d;
  --button-fg: #f3eee4;
}

body[data-theme="v2"] .brand-logo {
  filter: invert(1);
}

body[data-theme="v2"] .version-rail {
  color: #17241d;
  background: #e1d6c5;
  border-bottom-color: rgba(23, 36, 29, 0.14);
}

body[data-theme="v2"] .rail-name {
  color: rgba(23, 36, 29, 0.62);
}

body[data-theme="v2"] .rail-switcher a {
  color: rgba(23, 36, 29, 0.58);
  border-color: rgba(23, 36, 29, 0.22);
}

body[data-theme="v2"] .nav-shell {
  border-bottom-color: transparent;
}

body[data-theme="v2"] .hero {
  display: block;
  padding: 182px 0 70px;
  overflow: hidden;
}

body[data-theme="v2"] .eyebrow {
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

body[data-theme="v2"] .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

body[data-theme="v2"] .hero-copy h1 {
  max-width: 1100px;
  margin-inline: auto;
  font-size: clamp(72px, 8.9vw, 140px);
  line-height: 0.9;
}

body[data-theme="v2"] .hero-side {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
}

body[data-theme="v2"] .hero-side > p {
  max-width: 560px;
  margin: 0;
}

body[data-theme="v2"] .hero-links {
  justify-content: center;
  margin-top: 30px;
}

body[data-theme="v2"] .hero-art {
  display: grid;
  grid-template-columns: 0.74fr 1.1fr 0.74fr;
  gap: 14px;
  height: 520px;
  margin-top: 58px;
  align-items: end;
}

body[data-theme="v2"] .art-main,
body[data-theme="v2"] .art-side {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  transform: none;
}

body[data-theme="v2"] .art-main {
  z-index: 2;
  height: 520px;
}

body[data-theme="v2"] .art-side {
  height: 415px;
  opacity: 1;
  filter: none;
}

body[data-theme="v2"] .art-side-a {
  order: -1;
}

body[data-theme="v2"] .hero-stat {
  right: 3%;
  bottom: 20px;
  width: 220px;
  padding: 20px;
  color: #f3eee4;
  background: #245d43;
}

body[data-theme="v2"] .hero-stat p {
  color: rgba(243, 238, 228, 0.66);
}

body[data-theme="v2"] .scroll-word {
  display: none;
}

body[data-theme="v2"] .metric-band {
  color: #f3eee4;
  background: #245d43;
  border-top: 1px solid #245d43;
}

body[data-theme="v2"] .metric-band span {
  color: rgba(243, 238, 228, 0.6);
}

body[data-theme="v2"] .metric-band > div {
  border-color: rgba(243, 238, 228, 0.2);
}

body[data-theme="v2"] .section-head {
  display: grid;
  grid-template-columns: 0.45fr 1.1fr 0.45fr;
  gap: 50px;
  align-items: end;
}

body[data-theme="v2"] .section-head > p:last-child {
  margin: 0 0 7px;
}

body[data-theme="v2"] .service-grid {
  grid-template-columns: 1fr;
  margin-top: 55px;
  border-top: 1px solid var(--line);
}

body[data-theme="v2"] .service-grid article {
  display: grid;
  grid-template-columns: 70px 180px 1fr 1.2fr;
  gap: 24px;
  min-height: 150px;
  padding: 32px 0;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--line);
}

body[data-theme="v2"] .service-grid article + article {
  border-left: 0;
}

body[data-theme="v2"] .service-grid article > p:first-of-type {
  margin: 4px 0 0;
}

body[data-theme="v2"] .service-grid h3 {
  margin: 0;
}

body[data-theme="v2"] .service-grid article > p:not(:first-of-type) {
  margin: 4px 0 0;
}

body[data-theme="v2"] .service-grid small {
  position: static;
  padding: 4px 0 0;
  border-top: 0;
}

body[data-theme="v2"] .works {
  color: #f3eee4;
  background: #17241d;
  width: 100%;
  padding-inline: max(40px, calc((100vw - 1440px) / 2));
}

body[data-theme="v2"] .section-head-row {
  grid-template-columns: 1.2fr 0.8fr;
}

body[data-theme="v2"] .work-grid {
  gap: 26px;
}

body[data-theme="v2"] .work-card {
  background: #213229;
}

body[data-theme="v2"] .work-card:nth-child(4) {
  display: block;
  min-height: 590px;
}

body[data-theme="v2"] .work-card:nth-child(4) .work-image {
  height: 440px;
}

body[data-theme="v2"] .work-card:nth-child(4) .work-copy {
  display: grid;
  padding: 24px;
}

body[data-theme="v2"] .case-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

body[data-theme="v2"] .case-wide {
  margin-top: 120px;
}

body[data-theme="v2"] .case-card {
  background: #e8e0d3;
}

body[data-theme="v2"] .case-card > img {
  aspect-ratio: 0.82;
}

body[data-theme="v2"] .about {
  background: #e8e0d3;
}

body[data-theme="v2"] .about::after {
  border-color: rgba(23, 36, 29, 0.16);
}

body[data-theme="v2"] .contact {
  color: #f3eee4;
  background: #245d43;
}

body[data-theme="v2"] .contact .section-label,
body[data-theme="v2"] .contact p {
  color: rgba(243, 238, 228, 0.65);
}

body[data-theme="v2"] .contact h2 span {
  color: #d8c5a2;
}

body[data-theme="v2"] .contact .main-link {
  color: #17241d;
  background: #f3eee4;
}

body[data-theme="v2"] .contact .text-link {
  color: #f3eee4;
}

body[data-theme="v2"] footer {
  color: #f3eee4;
  background: #17241d;
  border-color: rgba(243, 238, 228, 0.15);
}

body[data-theme="v2"] footer .brand-logo {
  filter: none;
}

body[data-theme="v2"] footer .brand small,
body[data-theme="v2"] footer p,
body[data-theme="v2"] footer > a:last-child {
  color: rgba(243, 238, 228, 0.56);
}

/* 03 - Cobalt Grid */

body[data-theme="v3"] {
  --page-bg: #1737df;
  --page-fg: #f8f8f4;
  --muted: #bebff2;
  --accent: #f2ff46;
  --accent-2: #f2ff46;
  --panel: #0e0e0e;
  --line: rgba(255, 255, 255, 0.27);
  --line-strong: rgba(255, 255, 255, 0.52);
  --nav-bg: rgba(23, 55, 223, 0.9);
  --button-bg: #f2ff46;
  --button-fg: #0e0e0e;
}

body[data-theme="v3"] .nav-shell {
  left: 0;
  top: 38px;
  width: 100%;
  border-color: rgba(255, 255, 255, 0.25);
}

body[data-theme="v3"] .hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-height: 780px;
  padding: 146px 0 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

body[data-theme="v3"] .eyebrow {
  grid-column: 1 / -1;
  padding: 0 24px;
}

body[data-theme="v3"] .hero-copy {
  grid-column: 1 / 8;
  padding: 20px 24px 64px;
  border-right: 1px solid var(--line);
}

body[data-theme="v3"] .hero-copy h1 {
  max-width: 780px;
  font-family: var(--sans);
  font-size: clamp(68px, 8vw, 126px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.085em;
}

body[data-theme="v3"] .hero-copy h1 em {
  color: #f2ff46;
}

body[data-theme="v3"] .hero-side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-top: 42px;
  align-items: end;
}

body[data-theme="v3"] .hero-side > p {
  max-width: 490px;
  margin: 0;
  color: #d9dcff;
}

body[data-theme="v3"] .hero-art {
  grid-column: 8 / -1;
  min-height: 650px;
  background: #f3f1e8;
}

body[data-theme="v3"] .art-main {
  top: 0;
  right: 0;
  left: 0;
  height: 555px;
}

body[data-theme="v3"] .art-main img {
  object-position: center 25%;
}

body[data-theme="v3"] .art-main figcaption {
  color: #111;
  background: #f2ff46;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
}

body[data-theme="v3"] .art-side {
  display: none;
}

body[data-theme="v3"] .hero-stat {
  right: 24px;
  bottom: 25px;
  width: 250px;
  padding: 20px;
  color: #111;
  background: #f3f1e8;
  border: 1px solid #111;
}

body[data-theme="v3"] .hero-stat p {
  color: #666;
}

body[data-theme="v3"] .scroll-word {
  right: 10px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.55);
}

body[data-theme="v3"] .metric-band {
  color: #111;
  background: #f2ff46;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

body[data-theme="v3"] .metric-band span {
  color: rgba(17, 17, 17, 0.55);
}

body[data-theme="v3"] .metric-band > div {
  border-color: rgba(17, 17, 17, 0.22);
}

body[data-theme="v3"] .section-pad {
  width: 100%;
  padding-inline: max(40px, calc((100vw - 1440px) / 2));
}

body[data-theme="v3"] .services {
  color: #111;
  background: #f3f1e8;
}

body[data-theme="v3"] .section-head {
  display: grid;
  grid-template-columns: 0.35fr 1fr 0.42fr;
  gap: 38px;
  align-items: end;
}

body[data-theme="v3"] .section-head .section-label {
  color: #1737df;
}

body[data-theme="v3"] .section-head > p:last-child {
  margin: 0;
}

body[data-theme="v3"] .services .section-head h2 {
  font-family: var(--sans);
  font-weight: 800;
}

body[data-theme="v3"] .services .section-head h2 span {
  color: #1737df;
}

body[data-theme="v3"] .service-grid {
  gap: 18px;
}

body[data-theme="v3"] .service-grid article {
  color: #111;
  background: #fff;
  border: 2px solid #111;
  border-left: 2px solid #111;
}

body[data-theme="v3"] .service-grid article:nth-child(2) {
  transform: translateY(20px);
}

body[data-theme="v3"] .service-grid article:nth-child(4) {
  transform: translateY(20px);
}

body[data-theme="v3"] .service-grid article > p,
body[data-theme="v3"] .service-grid small {
  color: #5e5e58;
}

body[data-theme="v3"] .service-grid article > p:first-of-type {
  font-family: var(--mono);
}

body[data-theme="v3"] .service-grid h3 {
  font-family: var(--sans);
  font-weight: 800;
}

body[data-theme="v3"] .service-no {
  color: #1737df;
}

body[data-theme="v3"] .works {
  color: #fff;
  background: #0e0e0e;
}

body[data-theme="v3"] .section-head-row {
  grid-template-columns: 1fr 0.48fr;
}

body[data-theme="v3"] .section-head h2,
body[data-theme="v3"] .case-heading h2,
body[data-theme="v3"] .about h2,
body[data-theme="v3"] .contact h2 {
  font-family: var(--sans);
  font-weight: 800;
}

body[data-theme="v3"] .work-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body[data-theme="v3"] .case-heading {
  max-width: 1000px;
}

body[data-theme="v3"] .cases {
  color: #111;
  background: #f2ff46;
}

body[data-theme="v3"] .case-card {
  color: #fff;
  border: 1px solid #111;
  background: #111;
}

body[data-theme="v3"] .case-card > img {
  border-bottom: 1px solid #111;
}

body[data-theme="v3"] .about {
  color: #111;
  background: #f3f1e8;
}

body[data-theme="v3"] .about .section-label,
body[data-theme="v3"] .about h2 span {
  color: #1737df;
}

body[data-theme="v3"] .about-grid > div > p {
  color: #5b5b55;
}

body[data-theme="v3"] .about-points {
  border-color: rgba(17, 17, 17, 0.2);
}

body[data-theme="v3"] .about-points > div {
  border-color: rgba(17, 17, 17, 0.2);
}

body[data-theme="v3"] .about-points span {
  color: #62625c;
}

body[data-theme="v3"] .contact {
  color: #fff;
  background: #1737df;
}

body[data-theme="v3"] .contact h2 span {
  color: #f2ff46;
}

body[data-theme="v3"] .contact .section-label,
body[data-theme="v3"] .contact p {
  color: #c3c7ff;
}

body[data-theme="v3"] .contact .main-link {
  color: #111;
  background: #f2ff46;
}

body[data-theme="v3"] .contact .text-link {
  color: #fff;
}

body[data-theme="v3"] footer {
  color: #111;
  background: #f3f1e8;
  border-color: #111;
}

body[data-theme="v3"] footer .brand-logo {
  filter: invert(1);
}

body[data-theme="v3"] footer .brand small,
body[data-theme="v3"] footer p,
body[data-theme="v3"] footer > a:last-child {
  color: #5d5d57;
}

/* 04 - Bordeaux Stage */

body[data-theme="v4"] {
  --page-bg: #2a0714;
  --page-fg: #f1e5d2;
  --muted: #bba99a;
  --accent: #c8a46a;
  --accent-2: #f1e5d2;
  --panel: #3a0d1d;
  --line: rgba(241, 229, 210, 0.18);
  --line-strong: rgba(200, 164, 106, 0.55);
  --nav-bg: rgba(42, 7, 20, 0.87);
  --button-bg: #c8a46a;
  --button-fg: #2a0714;
}

body[data-theme="v4"] .version-rail {
  color: #2a0714;
  background: #c8a46a;
  border-bottom-color: rgba(42, 7, 20, 0.22);
}

body[data-theme="v4"] .rail-name {
  color: rgba(42, 7, 20, 0.62);
}

body[data-theme="v4"] .rail-switcher a {
  color: rgba(42, 7, 20, 0.66);
  border-color: rgba(42, 7, 20, 0.3);
}

body[data-theme="v4"] .rail-switcher a:hover,
body[data-theme="v4"] .rail-switcher a.is-active {
  color: #f1e5d2;
  border-color: #2a0714;
  background: #2a0714;
}

body[data-theme="v4"] .hero {
  display: block;
  padding: 190px 0 90px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 31%, rgba(200, 164, 106, 0.12), transparent 27%),
    linear-gradient(180deg, #2a0714, #390c1d);
}

body[data-theme="v4"] .eyebrow {
  justify-content: center;
  gap: 30px;
}

body[data-theme="v4"] .hero-copy {
  max-width: 1140px;
  margin: 0 auto;
}

body[data-theme="v4"] .hero-copy h1 {
  max-width: 1000px;
  margin: 0 auto;
  font-size: clamp(72px, 9vw, 142px);
}

body[data-theme="v4"] .hero-copy h1 em {
  color: #c8a46a;
}

body[data-theme="v4"] .hero-side {
  display: flex;
  gap: 26px;
  justify-content: center;
  align-items: center;
  margin-top: 34px;
}

body[data-theme="v4"] .hero-side > p {
  max-width: 540px;
  margin: 0;
}

body[data-theme="v4"] .hero-links {
  justify-content: center;
  margin-top: 30px;
}

body[data-theme="v4"] .hero-art {
  display: grid;
  grid-template-columns: 0.74fr 1.28fr 0.74fr;
  gap: 16px;
  height: 520px;
  margin-top: 60px;
  align-items: end;
}

body[data-theme="v4"] .art-main,
body[data-theme="v4"] .art-side {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  transform: none;
}

body[data-theme="v4"] .art-main {
  z-index: 2;
  height: 520px;
  border: 1px solid rgba(200, 164, 106, 0.55);
}

body[data-theme="v4"] .art-side {
  height: 430px;
  opacity: 0.8;
  filter: sepia(0.2) saturate(0.7);
}

body[data-theme="v4"] .art-side-a {
  order: -1;
}

body[data-theme="v4"] .hero-stat {
  right: 2%;
  bottom: 18px;
  width: 235px;
  padding: 20px;
  color: #2a0714;
  background: #c8a46a;
}

body[data-theme="v4"] .hero-stat p {
  color: rgba(42, 7, 20, 0.62);
}

body[data-theme="v4"] .scroll-word {
  display: none;
}

body[data-theme="v4"] .metric-band {
  color: #2a0714;
  background: #c8a46a;
}

body[data-theme="v4"] .metric-band span {
  color: rgba(42, 7, 20, 0.6);
}

body[data-theme="v4"] .metric-band > div {
  border-color: rgba(42, 7, 20, 0.22);
}

body[data-theme="v4"] .services {
  color: #2a0714;
  background: #f1e5d2;
}

body[data-theme="v4"] .section-head {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 70px;
  align-items: end;
}

body[data-theme="v4"] .section-head .section-label {
  grid-column: 1 / -1;
  color: #8b604b;
}

body[data-theme="v4"] .section-head > p:last-child {
  margin: 0;
  color: #7a675e;
}

body[data-theme="v4"] .services .section-head h2 span {
  color: #8b4e35;
}

body[data-theme="v4"] .service-grid {
  gap: 16px;
}

body[data-theme="v4"] .service-grid article {
  color: #2a0714;
  background: #eadbc4;
  border-color: rgba(42, 7, 20, 0.2);
}

body[data-theme="v4"] .service-grid article > p,
body[data-theme="v4"] .service-grid small {
  color: #7a675e;
}

body[data-theme="v4"] .service-grid article:nth-child(2) {
  color: #f1e5d2;
  background: #4b1025;
}

body[data-theme="v4"] .service-grid article:nth-child(2) > p,
body[data-theme="v4"] .service-grid article:nth-child(2) small {
  color: #bca998;
}

body[data-theme="v4"] .works {
  width: 100%;
  padding-inline: max(40px, calc((100vw - 1440px) / 2));
  background: #1f0610;
}

body[data-theme="v4"] .section-head-row {
  grid-template-columns: 1.2fr 0.8fr;
}

body[data-theme="v4"] .work-card {
  border: 1px solid rgba(200, 164, 106, 0.3);
}

body[data-theme="v4"] .case-grid {
  gap: 60px;
}

body[data-theme="v4"] .case-wide {
  margin-top: 110px;
}

body[data-theme="v4"] .cases {
  background: #f1e5d2;
  color: #2a0714;
}

body[data-theme="v4"] .cases .section-label {
  color: #8b604b;
}

body[data-theme="v4"] .case-card {
  background: #eadbc4;
  border: 1px solid rgba(42, 7, 20, 0.16);
}

body[data-theme="v4"] .case-card > div > p:last-child {
  color: #7a675e;
}

body[data-theme="v4"] .about {
  background: #2a0714;
}

body[data-theme="v4"] .contact {
  color: #2a0714;
  background: #c8a46a;
}

body[data-theme="v4"] .contact .section-label,
body[data-theme="v4"] .contact p {
  color: rgba(42, 7, 20, 0.62);
}

body[data-theme="v4"] .contact h2 span {
  color: #f1e5d2;
}

body[data-theme="v4"] .contact .main-link {
  color: #f1e5d2;
  background: #2a0714;
}

body[data-theme="v4"] .contact .text-link {
  color: #2a0714;
}

body[data-theme="v4"] footer {
  background: #1f0610;
  border-color: rgba(200, 164, 106, 0.25);
}

/* 05 - Mono Editorial */

body[data-theme="v5"] {
  --page-bg: #e9e8e2;
  --page-fg: #11110f;
  --muted: #676760;
  --accent: #5e6b00;
  --accent-2: #b9ff2e;
  --panel: #dcdbd3;
  --line: rgba(17, 17, 15, 0.18);
  --line-strong: rgba(17, 17, 15, 0.38);
  --nav-bg: rgba(233, 232, 226, 0.92);
  --button-bg: #11110f;
  --button-fg: #e9e8e2;
}

body[data-theme="v5"] .brand-logo {
  filter: invert(1);
}

body[data-theme="v5"] .version-rail {
  color: #11110f;
  background: #b9ff2e;
  border-bottom-color: rgba(17, 17, 15, 0.3);
}

body[data-theme="v5"] .rail-name {
  color: rgba(17, 17, 15, 0.62);
}

body[data-theme="v5"] .rail-switcher a {
  color: rgba(17, 17, 15, 0.55);
  border-color: rgba(17, 17, 15, 0.28);
}

body[data-theme="v5"] .rail-switcher a:hover,
body[data-theme="v5"] .rail-switcher a.is-active {
  color: #e9e8e2;
  border-color: #11110f;
  background: #11110f;
}

body[data-theme="v5"] .nav-shell {
  border-bottom-color: rgba(17, 17, 15, 0.16);
}

body[data-theme="v5"] .hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  min-height: 850px;
  padding: 148px 0 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

body[data-theme="v5"] .eyebrow {
  grid-column: 1 / -1;
  padding: 0 20px;
}

body[data-theme="v5"] .hero-copy {
  grid-column: 1 / -1;
  padding: 20px;
}

body[data-theme="v5"] .hero-copy h1 {
  max-width: 1180px;
  font-family: var(--sans);
  font-size: clamp(78px, 10.7vw, 170px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.095em;
  text-transform: uppercase;
}

body[data-theme="v5"] .hero-copy h1 em {
  color: #11110f;
  background: #b9ff2e;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body[data-theme="v5"] .hero-side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  max-width: 100%;
  margin-top: 36px;
  align-items: end;
}

body[data-theme="v5"] .hero-side > p {
  max-width: 580px;
  margin: 0;
}

body[data-theme="v5"] .hero-art {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 0;
  min-height: 420px;
  margin-top: 45px;
  border-top: 1px solid var(--line);
}

body[data-theme="v5"] .art-main,
body[data-theme="v5"] .art-side {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  height: 420px;
  transform: none;
}

body[data-theme="v5"] .art-main {
  border-right: 1px solid var(--line);
}

body[data-theme="v5"] .art-side {
  border-right: 1px solid var(--line);
  opacity: 1;
  filter: grayscale(1);
}

body[data-theme="v5"] .art-side-b {
  border-right: 0;
}

body[data-theme="v5"] .hero-stat {
  right: 18px;
  bottom: 18px;
  width: 220px;
  padding: 18px;
  color: #111;
  background: #b9ff2e;
}

body[data-theme="v5"] .hero-stat p {
  color: #4f5800;
}

body[data-theme="v5"] .scroll-word {
  display: none;
}

body[data-theme="v5"] .metric-band {
  color: #e9e8e2;
  background: #11110f;
}

body[data-theme="v5"] .metric-band span {
  color: #a8a8a0;
}

body[data-theme="v5"] .metric-band > div {
  border-color: rgba(233, 232, 226, 0.18);
}

body[data-theme="v5"] .services {
  color: #e9e8e2;
  background: #11110f;
}

body[data-theme="v5"] .section-head {
  display: grid;
  grid-template-columns: 0.38fr 1fr 0.5fr;
  gap: 32px;
  align-items: end;
}

body[data-theme="v5"] .section-head h2,
body[data-theme="v5"] .case-heading h2,
body[data-theme="v5"] .about h2,
body[data-theme="v5"] .contact h2 {
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -0.075em;
}

body[data-theme="v5"] .section-head .section-label {
  color: #b9ff2e;
}

body[data-theme="v5"] .section-head > p:last-child {
  margin: 0;
  color: #a8a8a0;
}

body[data-theme="v5"] .service-grid {
  gap: 0;
  border-top: 1px solid rgba(233, 232, 226, 0.22);
  border-bottom: 1px solid rgba(233, 232, 226, 0.22);
}

body[data-theme="v5"] .service-grid article {
  border-color: rgba(233, 232, 226, 0.22);
}

body[data-theme="v5"] .service-grid article > p,
body[data-theme="v5"] .service-grid small {
  color: #9a9a92;
}

body[data-theme="v5"] .service-grid article:nth-child(3) {
  color: #111;
  background: #b9ff2e;
}

body[data-theme="v5"] .service-grid article:nth-child(3) > p,
body[data-theme="v5"] .service-grid article:nth-child(3) small {
  color: #4d5800;
}

body[data-theme="v5"] .service-grid article:nth-child(3) .service-no {
  color: #111;
}

body[data-theme="v5"] .service-grid h3 {
  font-family: var(--sans);
  font-weight: 800;
}

body[data-theme="v5"] .works {
  background: #e9e8e2;
  color: #111;
}

body[data-theme="v5"] .section-head-row {
  grid-template-columns: 1fr 0.5fr;
}

body[data-theme="v5"] .work-card {
  background: #dcdbd3;
  border: 1px solid #111;
}

body[data-theme="v5"] .work-copy h3 {
  font-family: var(--sans);
  font-weight: 800;
}

body[data-theme="v5"] .cases {
  color: #111;
  background: #b9ff2e;
}

body[data-theme="v5"] .cases .section-label {
  color: #4f5800;
}

body[data-theme="v5"] .case-card {
  background: #111;
  border: 1px solid #111;
}

body[data-theme="v5"] .case-card > div {
  color: #e9e8e2;
}

body[data-theme="v5"] .case-card h3 {
  font-family: var(--sans);
  font-weight: 800;
}

body[data-theme="v5"] .about {
  color: #e9e8e2;
  background: #11110f;
}

body[data-theme="v5"] .about h2 span {
  color: #b9ff2e;
}

body[data-theme="v5"] .contact {
  color: #111;
  background: #b9ff2e;
}

body[data-theme="v5"] .contact .section-label,
body[data-theme="v5"] .contact p {
  color: #4f5800;
}

body[data-theme="v5"] .contact h2 span {
  color: #e9e8e2;
}

body[data-theme="v5"] .contact .main-link {
  color: #b9ff2e;
  background: #111;
}

body[data-theme="v5"] .contact .text-link {
  color: #111;
}

body[data-theme="v5"] footer {
  color: #e9e8e2;
  background: #11110f;
  border-color: rgba(233, 232, 226, 0.18);
}

body[data-theme="v5"] footer .brand-logo {
  filter: none;
}

body[data-theme="v5"] footer .brand small,
body[data-theme="v5"] footer p,
body[data-theme="v5"] footer > a:last-child {
  color: #9a9a92;
}

@media (max-width: 1080px) {
  :root {
    --shell: calc(100vw - 48px);
  }

  .primary-nav {
    gap: 18px;
  }

  body[data-theme="v1"] .hero-copy h1,
  body[data-theme="v2"] .hero-copy h1,
  body[data-theme="v4"] .hero-copy h1 {
    font-size: clamp(64px, 8.5vw, 92px);
  }

  body[data-theme="v3"] .hero {
    grid-template-columns: repeat(10, 1fr);
  }

  body[data-theme="v3"] .hero-copy {
    grid-column: 1 / 7;
  }

  body[data-theme="v3"] .hero-art {
    grid-column: 7 / -1;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid article:nth-child(3) {
    border-left: 1px solid var(--line);
    border-top: 0;
  }

  .service-grid article:nth-child(4) {
    border-left: 0;
  }

  body[data-theme="v2"] .service-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme="v2"] .service-grid article:nth-child(n) {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-theme="v3"] .service-grid {
    display: grid;
    gap: 14px;
  }

  body[data-theme="v3"] .service-grid article:nth-child(n) {
    transform: none;
    border: 2px solid #111;
  }

  .work-card,
  .work-featured,
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4) {
    grid-column: span 6;
    display: block;
    min-height: 0;
  }

  .work-card:nth-child(4) .work-image {
    height: 440px;
  }

  .work-card:nth-child(4) .work-copy {
    display: grid;
    padding: 24px;
  }

  .work-card:nth-child(4) .work-copy h3 {
    font-size: 28px;
  }

  .about-grid {
    gap: 50px;
  }

  body[data-theme="v3"] .section-head,
  body[data-theme="v5"] .section-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  .version-rail {
    grid-template-columns: 1fr auto;
    padding-inline: 14px;
  }

  .rail-name {
    display: none;
  }

  .rail-switcher {
    grid-column: 2;
  }

  .rail-switcher a {
    width: 24px;
  }

  .nav-shell {
    top: 38px;
    grid-template-columns: 1fr auto;
    height: 66px;
    padding-inline: 14px;
  }

  .primary-nav {
    display: none;
  }

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

  .brand-logo {
    width: 36px;
    height: 22px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 5.5px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy h1,
  body[data-theme="v1"] .hero-copy h1,
  body[data-theme="v2"] .hero-copy h1,
  body[data-theme="v3"] .hero-copy h1,
  body[data-theme="v4"] .hero-copy h1,
  body[data-theme="v5"] .hero-copy h1 {
    font-size: clamp(50px, 15vw, 72px);
    line-height: 0.92;
  }

  .eyebrow {
    margin-bottom: 28px;
  }

  .hero-side,
  body[data-theme="v1"] .hero-side,
  body[data-theme="v3"] .hero-side,
  body[data-theme="v5"] .hero-side {
    display: block;
    margin-top: 27px;
  }

  .hero-side > p {
    font-size: 13px;
  }

  .hero-links {
    margin-top: 25px;
  }

  body[data-theme="v1"] .hero {
    display: block;
    padding: 132px 0 70px;
    overflow: hidden;
  }

  body[data-theme="v1"] .eyebrow {
    position: static;
    margin-bottom: 26px;
  }

  body[data-theme="v1"] .hero-art {
    height: 475px;
    margin-top: 42px;
  }

  body[data-theme="v1"] .art-main {
    left: 20%;
    width: 55%;
    height: 440px;
  }

  body[data-theme="v1"] .art-side-a,
  body[data-theme="v1"] .art-side-b {
    height: 330px;
  }

  body[data-theme="v1"] .hero-stat {
    bottom: -3px;
    width: 190px;
  }

  body[data-theme="v2"] .hero,
  body[data-theme="v4"] .hero {
    padding: 132px 0 58px;
  }

  body[data-theme="v2"] .hero-side,
  body[data-theme="v4"] .hero-side {
    display: block;
    margin-top: 25px;
  }

  body[data-theme="v2"] .hero-side > p,
  body[data-theme="v4"] .hero-side > p {
    margin-inline: auto;
  }

  body[data-theme="v2"] .hero-art,
  body[data-theme="v4"] .hero-art {
    height: 420px;
    gap: 8px;
    margin-top: 40px;
  }

  body[data-theme="v2"] .art-main,
  body[data-theme="v4"] .art-main {
    height: 420px;
  }

  body[data-theme="v2"] .art-side,
  body[data-theme="v4"] .art-side {
    height: 325px;
  }

  body[data-theme="v2"] .hero-stat,
  body[data-theme="v4"] .hero-stat {
    right: 0;
    width: 180px;
  }

  body[data-theme="v3"] .hero,
  body[data-theme="v5"] .hero {
    display: block;
    padding: 132px 0 0;
  }

  body[data-theme="v3"] .eyebrow,
  body[data-theme="v3"] .hero-copy,
  body[data-theme="v3"] .hero-art,
  body[data-theme="v5"] .eyebrow,
  body[data-theme="v5"] .hero-copy,
  body[data-theme="v5"] .hero-art {
    padding-right: 16px;
    padding-left: 16px;
  }

  body[data-theme="v3"] .hero-copy {
    padding-bottom: 50px;
    border-right: 0;
  }

  body[data-theme="v3"] .hero-art {
    min-height: 460px;
  }

  body[data-theme="v3"] .art-main {
    height: 420px;
  }

  body[data-theme="v5"] .hero-art {
    grid-template-columns: 1.25fr 0.75fr;
    min-height: 330px;
    margin-top: 30px;
  }

  body[data-theme="v5"] .art-main,
  body[data-theme="v5"] .art-side {
    height: 330px;
  }

  body[data-theme="v5"] .art-side-b {
    display: none;
  }

  .metric-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-band > div {
    min-height: 130px;
    padding: 20px;
  }

  .metric-band > div:nth-child(2) {
    border-right: 0;
  }

  .metric-band > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .metric-band strong {
    font-size: 38px;
  }

  .section-pad {
    padding: 86px 0;
  }

  .section-head,
  body[data-theme="v1"] .section-head,
  body[data-theme="v2"] .section-head,
  body[data-theme="v3"] .section-head,
  body[data-theme="v4"] .section-head,
  body[data-theme="v5"] .section-head,
  .section-head-row {
    display: block;
  }

  .section-label {
    margin-bottom: 18px;
  }

  .section-head h2,
  .case-heading h2,
  .about h2,
  .contact h2 {
    font-size: clamp(43px, 12.5vw, 64px);
  }

  .section-head > p:last-child {
    margin-top: 26px;
  }

  .service-grid,
  body[data-theme="v2"] .service-grid {
    display: block;
    margin-top: 44px;
  }

  .service-grid article,
  body[data-theme="v2"] .service-grid article {
    display: block;
    min-height: 330px;
    padding: 24px;
    border: 1px solid var(--line);
    border-bottom: 0;
  }

  .service-grid article:last-child {
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:nth-child(n) {
    transform: none;
  }

  .service-grid article > p:first-of-type {
    margin-top: 50px;
  }

  body[data-theme="v2"] .service-grid article > p:first-of-type {
    margin-top: 50px;
  }

  body[data-theme="v2"] .service-grid small,
  .service-grid small {
    position: static;
    display: block;
    margin-top: 25px;
  }

  .work-grid {
    display: block;
    margin-top: 42px;
  }

  .work-card,
  .work-featured,
  .work-card:nth-child(2),
  .work-card:nth-child(3),
  .work-card:nth-child(4) {
    margin-bottom: 16px;
  }

  .work-image,
  .work-featured .work-image,
  .work-card:nth-child(2) .work-image,
  .work-card:nth-child(3) .work-image,
  .work-card:nth-child(4) .work-image {
    height: 410px;
  }

  .case-grid,
  body[data-theme="v2"] .case-grid,
  body[data-theme="v4"] .case-grid {
    display: block;
    margin-top: 42px;
  }

  .case-card {
    margin: 0 0 45px;
  }

  .case-wide,
  body[data-theme="v1"] .case-card:first-child,
  body[data-theme="v2"] .case-wide,
  body[data-theme="v4"] .case-wide {
    margin-top: 0;
  }

  .about-grid {
    display: block;
  }

  .about-grid > div {
    margin-top: 35px;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 40px;
  }

  .contact-row > div {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 16px;
  }

  footer > a:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Production site */

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

body {
  --motion-ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

body.menu-open {
  overflow: hidden;
}

body[data-theme="v1"] .nav-shell {
  top: 0;
  height: 84px;
  z-index: 240;
  background: rgba(11, 11, 10, 0.9);
}

body[data-theme="v1"] .nav-shell.is-scrolled {
  background: rgba(11, 11, 10, 0.97);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

.mobile-drawer {
  display: none;
}

body[data-theme="v1"] .hero {
  padding-top: 154px;
}

.work-card[role="button"] {
  cursor: pointer;
  transition:
    transform 220ms var(--motion-ease),
    border-color 220ms ease;
}

.work-card[role="button"]:hover {
  transform: translateY(-5px);
}

.work-card[role="button"]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

body[data-theme="v1"] .work-card:nth-child(5),
body[data-theme="v1"] .work-card:nth-child(6) {
  grid-column: span 6;
  min-height: 510px;
}

body[data-theme="v1"] .case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

body[data-theme="v1"] .case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

body[data-theme="v1"] .case-card > div {
  flex: 1;
}

body[data-theme="v1"] .case-card > img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
}

body[data-theme="v1"] .case-card.case-wide,
body[data-theme="v1"] .case-card:first-child {
  margin-top: 0;
}

body[data-theme="v1"] .work-card:nth-child(5) .work-image,
body[data-theme="v1"] .work-card:nth-child(6) .work-image {
  height: 380px;
}

.delivery-band {
  margin-top: 52px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(237, 60, 43, 0.12), transparent 34%),
    #141411;
}

.delivery-title {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-end;
  padding: 34px;
  border-bottom: 1px solid var(--line);
}

.delivery-title > p {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.delivery-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-align: right;
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery-steps li {
  min-height: 185px;
  padding: 25px 20px;
  border-right: 1px solid var(--line);
}

.delivery-steps li:last-child {
  border-right: 0;
}

.delivery-steps span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.delivery-steps strong {
  display: block;
  margin-top: 42px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.delivery-steps p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.qualification-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.qualification-line span {
  padding: 17px 22px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.qualification-line span:last-child {
  border-right: 0;
}

.metric-band strong b {
  font: inherit;
  letter-spacing: inherit;
}

/* Project brief on the cinema-black production site */

.project-brief {
  width: 100%;
  padding-inline: max(40px, calc((100vw - 1440px) / 2));
  color: var(--ink);
  background: var(--paper);
}

.brief-heading {
  display: grid;
  grid-template-columns: 1.18fr 0.62fr;
  gap: 8vw;
  align-items: end;
}

.brief-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6.2vw, 96px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.brief-heading h2 span {
  color: var(--red);
}

.brief-heading > div:last-child > p {
  margin: 0 0 28px;
  color: #6d665d;
  font-size: 14px;
  line-height: 1.85;
}

.project-brief .main-link {
  color: var(--paper);
  background: var(--ink);
}

.project-brief .main-link:hover {
  color: var(--ink);
  background: var(--acid);
}

.brief-layout {
  display: grid;
  grid-template-columns: 0.34fr 1.66fr;
  margin-top: 70px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.brief-number {
  display: grid;
  min-height: 560px;
  color: var(--red);
  background: #e8ded0;
  font-family: var(--serif);
  font-size: clamp(130px, 16vw, 238px);
  font-weight: 600;
  line-height: 0.7;
  letter-spacing: -0.1em;
  place-items: center;
  border-right: 1px solid var(--line-light);
}

.brief-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-list li {
  display: flex;
  gap: 18px;
  min-height: 112px;
  padding: 22px 24px;
  align-items: flex-start;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background: rgba(250, 246, 239, 0.45);
}

.brief-list li > span {
  padding-top: 3px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
}

.brief-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.brief-list p {
  margin: 9px 0 0;
  color: #6d665d;
  font-size: 10px;
  line-height: 1.6;
}

/* Detail dialog */

.work-dialog {
  width: min(1040px, calc(100vw - 48px));
  max-height: min(760px, calc(100svh - 48px));
  padding: 0;
  color: var(--paper);
  border: 1px solid var(--line);
  background: #171714;
}

.work-dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
}

.work-dialog[open] {
  animation: dialog-in 260ms ease both;
}

.dialog-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--paper);
  border: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.76);
  font-size: 27px;
  cursor: pointer;
  place-items: center;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 620px;
}

.dialog-cover {
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}

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

.dialog-content {
  padding: 64px 54px 46px;
}

.dialog-label {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dialog-content h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.dialog-tags {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.dialog-description {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.dialog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.dialog-metrics strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.dialog-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.dialog-source {
  margin: 34px 0 0;
  color: rgba(242, 234, 223, 0.36);
  font-size: 8px;
}

.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 680ms ease,
    transform 680ms var(--motion-ease);
}

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

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  body[data-theme="v1"] .work-card:nth-child(5),
  body[data-theme="v1"] .work-card:nth-child(6) {
    grid-column: span 6;
    min-height: 0;
  }

  .delivery-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .delivery-steps li:nth-child(3) {
    border-right: 0;
  }

  .delivery-steps li:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .brief-heading {
    gap: 50px;
  }

  .brief-layout {
    grid-template-columns: 0.4fr 1.6fr;
  }
}

@media (max-width: 760px) {
  body[data-theme="v1"] .nav-shell {
    top: 0;
    grid-template-columns: 1fr auto;
    height: 70px;
    padding-inline: 14px;
  }

  body[data-theme="v1"] .primary-nav,
  body[data-theme="v1"] .nav-action {
    display: none;
  }

  body[data-theme="v1"] .brand,
  .nav-menu-toggle {
    position: relative;
    z-index: 3;
  }

  .nav-menu-toggle {
    display: flex;
    gap: 11px;
    align-items: center;
    color: var(--paper);
    border: 0;
    background: transparent;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .nav-menu-toggle i {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-menu-toggle i:first-child {
    margin-left: -18px;
    transform: translateY(-3px);
  }

  .nav-menu-toggle[aria-expanded="true"] i {
    margin-left: 0;
  }

  .nav-menu-toggle[aria-expanded="true"] i:first-child {
    transform: translate(9px, 3px) rotate(45deg);
  }

  .nav-menu-toggle[aria-expanded="true"] i:last-child {
    transform: translate(-9px, -3px) rotate(-45deg);
  }

  .mobile-drawer {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    display: flex;
    width: 100vw;
    height: 100svh;
    padding: 110px 18px 38px;
    flex-direction: column;
    justify-content: center;
    color: var(--paper);
    background: #0b0b0a;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 220ms ease,
      transform 220ms ease;
  }

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

  .mobile-drawer a {
    display: flex;
    gap: 16px;
    padding: 15px 0;
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(28px, 8vw, 40px);
  }

  .mobile-drawer a span {
    color: var(--red);
    font-family: var(--mono);
    font-size: 8px;
  }

  body[data-theme="v1"] .hero {
    padding-top: 116px;
  }

  .delivery-title {
    display: block;
    padding: 26px;
  }

  .delivery-title > p {
    margin-bottom: 20px;
  }

  .delivery-title h3 {
    font-size: 31px;
    text-align: left;
  }

  .delivery-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery-steps li {
    min-height: 150px;
    border-bottom: 1px solid var(--line);
  }

  .delivery-steps li:nth-child(2n) {
    border-right: 0;
  }

  .delivery-steps li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .delivery-steps strong {
    margin-top: 28px;
  }

  .qualification-line {
    grid-template-columns: 1fr;
  }

  .qualification-line span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .qualification-line span:last-child {
    border-bottom: 0;
  }

  body[data-theme="v1"] .work-card:nth-child(5) .work-image,
  body[data-theme="v1"] .work-card:nth-child(6) .work-image {
    height: 410px;
  }

  .project-brief {
    padding: 90px 14px;
  }

  .brief-heading {
    display: block;
  }

  .brief-heading h2 {
    font-size: clamp(45px, 13vw, 63px);
  }

  .brief-heading > div:last-child {
    margin-top: 28px;
  }

  .brief-layout {
    display: block;
    margin-top: 48px;
  }

  .brief-number {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .brief-list {
    grid-template-columns: 1fr;
  }

  .brief-list li {
    min-height: 104px;
    padding: 20px 18px;
  }

  .work-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    overflow-y: auto;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-cover {
    min-height: 360px;
    max-height: 360px;
  }

  .dialog-cover img {
    object-position: center 24%;
  }

  .dialog-content {
    padding: 38px 24px 32px;
  }

  .dialog-content h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .dialog-metrics {
    gap: 10px;
  }

  .dialog-metrics strong {
    font-size: 22px;
  }
}
