:root {
  --bg: #f8f8f5;
  --paper: #fffefb;
  --ink: #090909;
  --muted: #66645f;
  --line: rgba(0, 0, 0, 0.88);
  --soft-line: rgba(0, 0, 0, 0.16);
  --gap: clamp(18px, 2.4vw, 34px);
  --outer: clamp(18px, 4vw, 64px);
  --condensed: "Arial Narrow", "HelveticaNeue-CondensedBold", "Helvetica Neue", Arial, sans-serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.4;
  text-rendering: geometricPrecision;
}
body.no-scroll,
body.lightbox-open { overflow: hidden; }

img { display: block; width: 100%; height: auto; }
button, a { color: inherit; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  min-height: 64px;
  background: rgba(248, 248, 245, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand,
.nav-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand {
  min-width: min(42vw, 520px);
  border-right: 1px solid var(--line);
  padding: 12px var(--outer);
  gap: 18px;
}

.brand span {
  font-family: var(--condensed);
  font-size: clamp(18px, 2vw, 32px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.brand small,
.nav-links a,
.hero-kicker,
.category-label,
.section-heading p,
.intro-strip p,
.project-meta span,
.chapter-copy p,
.site-footer,
.filter-button,
.plain-button,
.lightbox-nav,
.lightbox-close {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand small { color: var(--muted); }
.nav-links { display: flex; }
.nav-links a {
  padding: 12px 20px;
  border-left: 1px solid var(--line);
  min-width: 104px;
  justify-content: center;
}
.nav-links a:hover { background: var(--ink); color: var(--bg); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: calc(100vh - 64px);
  position: relative;
  overflow: hidden;
}

.hero-kicker {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
  padding: 14px var(--outer);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-kicker-label {
  position: relative;
  z-index: 2;
  display: inline-block;
}
.hero-kicker-line-field {
  position: absolute !important;
  inset: -70% -6%;
  z-index: 0 !important;
  pointer-events: none;
  overflow: hidden;
}
.hero-kicker-line-field span {
  opacity: calc(var(--o, 1) * 0.62);
  height: var(--weight, 1px);
}

.hero h1 {
  margin: 0;
  padding: clamp(46px, 7vw, 96px) var(--outer);
  font-family: var(--condensed);
  font-size: clamp(68px, 10.6vw, 164px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.86;
  text-transform: uppercase;
  font-stretch: condensed;
  max-width: 100%;
}

.hero-text {
  position: relative;
  border-left: 1px solid var(--line);
  padding: clamp(28px, 5vw, 72px) var(--outer) var(--outer) var(--gap);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-text p {
  max-width: 390px;
  margin: 0 0 32px;
  font-size: clamp(17px, 1.65vw, 24px);
  letter-spacing: -0.025em;
  line-height: 1.14;
}
.text-button {
  width: fit-content;
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}
.text-button:hover { background: var(--ink); color: var(--bg); }

.hero-rules {
  position: absolute;
  inset: auto var(--outer) var(--outer) auto;
  width: min(32vw, 360px);
  height: min(32vw, 360px);
  pointer-events: none;
}
.hero-rules span {
  position: absolute;
  display: block;
  background: var(--line);
}
.hero-rules span:nth-child(1) { top: 0; left: 0; width: 100%; height: 1px; transform: rotate(-8deg); }
.hero-rules span:nth-child(2) { bottom: 18%; left: 16%; width: 84%; height: 1px; transform: rotate(22deg); }
.hero-rules span:nth-child(3) { top: 18%; right: 20%; width: 1px; height: 76%; transform: rotate(12deg); }
.hero-rules span:nth-child(4) { top: 40%; left: 12%; width: 1px; height: 54%; transform: rotate(-22deg); }

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.intro-strip p {
  margin: 0;
  min-height: 68px;
  padding: 18px var(--outer);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.intro-strip p:last-child { border-right: 0; }

.work-section,
.index-section,
.about-section {
  padding: var(--outer);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 70px);
}
.section-heading p { margin: 0; color: var(--muted); }
.section-heading h2,
.about-title h2 {
  margin: 0;
  font-family: var(--condensed);
  text-transform: uppercase;
  font-size: clamp(42px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-button,
.plain-button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 12px;
  cursor: pointer;
}
.filter-button.active,
.filter-button:hover,
.plain-button:hover {
  background: var(--ink);
  color: var(--bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.project-card {
  min-height: 520px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.project-card-button {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  text-align: left;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  cursor: pointer;
}
.project-card-button:hover .card-image-wrap img { transform: scale(1.035); filter: grayscale(0%); }
.project-card-button:hover .card-number { background: var(--ink); color: var(--bg); }
.card-number {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--condensed);
  font-size: 44px;
  line-height: 0.9;
  transition: background 180ms ease, color 180ms ease;
}
.card-image-wrap {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--soft-line) calc(50% - 0.5px), var(--soft-line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--soft-line) calc(50% - 0.5px), var(--soft-line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.card-image-wrap img {
  max-height: 330px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: transform 380ms ease, filter 380ms ease;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.card-copy { border-top: 1px solid var(--line); padding: 18px; }
.card-copy h3 {
  margin: 4px 0 10px;
  font-family: var(--condensed);
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.card-copy p { margin: 0; color: var(--muted); }
.card-copy .category-label { color: var(--ink); margin-bottom: 10px; }

.index-list {
  border-top: 1px solid var(--line);
}
.index-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(180px, 0.35fr);
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 18px 0;
  cursor: pointer;
  align-items: center;
}
.index-row span { font-family: var(--condensed); font-size: 32px; }
.index-row strong {
  font-family: var(--condensed);
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 78px);
  letter-spacing: -0.04em;
  line-height: 0.88;
}
.index-row em {
  font-style: normal;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.index-row:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.1em; }

.about-section { align-items: start; }
.about-title p { margin-top: 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.about-copy {
  border-left: 1px solid var(--line);
  padding-left: var(--gap);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.about-copy p { margin: 0 0 18px; }
.small-note { color: var(--muted); font-size: 0.72em; }

.project-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
}
.project-view[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.project-view-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 58px;
  background: rgba(248, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--outer);
  backdrop-filter: blur(18px);
}
.project-view-bar span { font-family: var(--condensed); font-size: 22px; }
.project-view-inner { padding: 0; }

.project-hero-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  border-bottom: 1px solid var(--line);
}
.project-title-block {
  padding: var(--outer);
  border-right: 1px solid var(--line);
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.project-title-block p:first-child,
.project-meta span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}
.project-title-block h2 {
  margin: 14px 0 18px;
  font-family: var(--condensed);
  text-transform: uppercase;
  font-size: clamp(58px, 10vw, 156px);
  line-height: 0.82;
  letter-spacing: -0.055em;
}
.project-title-block p:last-child {
  max-width: 520px;
  margin: 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.project-hero-image {
  padding: var(--outer);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--soft-line) calc(50% - 0.5px), var(--soft-line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--soft-line) calc(50% - 0.5px), var(--soft-line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.project-hero-image button,
.asset-card button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.project-hero-image img {
  max-height: 72vh;
  object-fit: contain;
  width: auto;
  max-width: 100%;
}
.project-meta,
.project-summary {
  padding: 20px var(--outer);
  border-top: 1px solid var(--line);
}
.project-meta {
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-meta p { margin: 0; }
.project-meta span { display: block; color: var(--muted); margin-bottom: 8px; }
.project-summary p {
  margin: 0;
  max-width: 740px;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.project-chapter {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.chapter-copy {
  position: sticky;
  top: 58px;
  align-self: start;
  padding: var(--outer);
  border-right: 1px solid var(--line);
  min-height: 280px;
}
.chapter-copy p { margin: 0 0 16px; color: var(--muted); }
.chapter-copy h3 {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.asset-card {
  margin: 0;
  background: var(--paper);
  padding: clamp(14px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 280px;
}
.asset-card.wide { grid-column: span 8; }
.asset-card.tall { grid-column: span 4; }
.asset-card.small { grid-column: span 3; min-height: 220px; }
.asset-card img {
  max-height: 72vh;
  object-fit: contain;
  transition: transform 220ms ease;
}
.asset-card button:hover img { transform: scale(1.015); }
.asset-card figcaption {
  border-top: 1px solid var(--soft-line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.project-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--line);
  padding: 1px;
}
.mini-project {
  background: var(--bg);
  border: 0;
  min-width: 68px;
  height: 56px;
  cursor: pointer;
  font-family: var(--condensed);
  font-size: 28px;
}
.mini-project.active,
.mini-project:hover { background: var(--ink); color: var(--bg); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  align-items: center;
  background: rgba(248, 248, 245, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox figure {
  margin: 0;
  height: 100vh;
  padding: 72px 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.lightbox img {
  max-height: calc(100vh - 170px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--soft-line);
}
.lightbox figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  max-width: 880px;
  margin: 0 auto;
}
.lightbox-close,
.lightbox-nav {
  position: relative;
  z-index: 3;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}
.lightbox-nav {
  margin: 0 18px;
  padding: 14px 10px;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--ink); color: var(--bg); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--outer);
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 1120px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-card.wide { grid-column: span 12; }
  .asset-card.tall { grid-column: span 6; }
  .asset-card.small { grid-column: span 4; }
}

@media (max-width: 760px) {
  .site-header { position: relative; flex-direction: column; }
  .brand { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-links a { flex: 1; min-width: 0; }
  .section-grid,
  .project-hero-detail,
  .project-chapter,
  .section-heading { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(58px, 19vw, 112px); line-height: 0.88; }
  .hero-text { border-left: 0; border-top: 1px solid var(--line); }
  .hero-rules { opacity: 0.2; }
  .intro-strip { grid-template-columns: repeat(2, 1fr); }
  .intro-strip p:nth-child(2n) { border-right: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 430px; }
  .index-row { grid-template-columns: 56px 1fr; gap: 12px; }
  .index-row em { grid-column: 2; }
  .about-copy { border-left: 0; padding-left: 0; }
  .project-title-block { border-right: 0; min-height: auto; border-bottom: 1px solid var(--line); }
  .project-hero-image { min-height: auto; }
  .project-meta { border-right: 0; grid-template-columns: 1fr; }
  .chapter-copy { position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  .asset-card.wide,
  .asset-card.tall,
  .asset-card.small { grid-column: span 12; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox-nav { position: fixed; bottom: 18px; margin: 0; }
  .lightbox-nav.prev { left: 18px; }
  .lightbox-nav.next { right: 18px; }
  .lightbox figure { padding: 80px 18px; }
}

/* v4 — restrained looping line motion */
@keyframes heroLineOne {
  0%, 100% { transform: translate3d(-4px, 0, 0) rotate(-8deg) scaleX(0.94); opacity: 0.72; }
  50% { transform: translate3d(18px, -10px, 0) rotate(-5deg) scaleX(1.08); opacity: 1; }
}
@keyframes heroLineTwo {
  0%, 100% { transform: translate3d(10px, 0, 0) rotate(22deg) scaleX(1); opacity: 0.68; }
  50% { transform: translate3d(-18px, 14px, 0) rotate(17deg) scaleX(0.88); opacity: 0.95; }
}
@keyframes heroLineThree {
  0%, 100% { transform: translate3d(0, 10px, 0) rotate(12deg) scaleY(0.94); opacity: 0.78; }
  50% { transform: translate3d(8px, -16px, 0) rotate(16deg) scaleY(1.08); opacity: 1; }
}
@keyframes heroLineFour {
  0%, 100% { transform: translate3d(0, -6px, 0) rotate(-22deg) scaleY(0.9); opacity: 0.62; }
  50% { transform: translate3d(-12px, 12px, 0) rotate(-17deg) scaleY(1.06); opacity: 0.9; }
}

.hero-rules span {
  transform-origin: center;
  will-change: transform, opacity;
}
.hero-rules span:nth-child(1) { animation: heroLineOne 10s ease-in-out infinite; }
.hero-rules span:nth-child(2) { animation: heroLineTwo 12s ease-in-out infinite; }
.hero-rules span:nth-child(3) { animation: heroLineThree 11s ease-in-out infinite; }
.hero-rules span:nth-child(4) { animation: heroLineFour 13s ease-in-out infinite; }

@keyframes editorialVoidDrift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; transform: translate3d(0, 0, 0); }
  50% { background-position: 44px 18px, -32px 26px, 26px -20px, -18px 42px; transform: translate3d(0, -6px, 0); }
  100% { background-position: 88px 36px, -64px 52px, 52px -40px, -36px 84px; transform: translate3d(0, 0, 0); }
}
@keyframes editorialVoidSweep {
  0%, 100% { transform: translate3d(-8%, -4%, 0) rotate(-7deg); opacity: 0.38; }
  50% { transform: translate3d(6%, 5%, 0) rotate(-3deg); opacity: 0.7; }
}

.chapter-grid {
  position: relative;
  gap: 0;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.chapter-grid::before,
.chapter-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.chapter-grid::before {
  background:
    linear-gradient(112deg, transparent 0 30%, rgba(0,0,0,0.62) 30.1% 30.28%, transparent 30.4% 100%),
    linear-gradient(74deg, transparent 0 58%, rgba(0,0,0,0.48) 58.1% 58.28%, transparent 58.4% 100%),
    linear-gradient(0deg, transparent 0 47%, rgba(0,0,0,0.16) 47.05% 47.18%, transparent 47.3% 100%),
    linear-gradient(90deg, transparent 0 64%, rgba(0,0,0,0.13) 64.05% 64.18%, transparent 64.3% 100%);
  background-size: 420px 300px, 360px 280px, 260px 220px, 300px 240px;
  animation: editorialVoidDrift 18s linear infinite;
  opacity: 0.75;
}
.chapter-grid::after {
  width: 54%;
  height: 58%;
  left: auto;
  top: 12%;
  right: 4%;
  border-top: 1px solid rgba(0,0,0,0.82);
  border-left: 1px solid rgba(0,0,0,0.55);
  transform-origin: center;
  animation: editorialVoidSweep 16s ease-in-out infinite;
}
.asset-card {
  position: relative;
  z-index: 1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.asset-card:nth-child(3n) { border-right-color: var(--soft-line); }

.project-hero-image {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.project-hero-image::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 32%, rgba(0,0,0,0.18) 32.08% 32.2%, transparent 32.32% 100%),
    linear-gradient(15deg, transparent 0 72%, rgba(0,0,0,0.14) 72.08% 72.24%, transparent 72.36% 100%);
  background-size: 460px 300px, 520px 340px;
  animation: editorialVoidDrift 24s linear infinite;
  opacity: 0.55;
}
.project-hero-image button { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-rules span,
  .chapter-grid::before,
  .chapter-grid::after,
  .project-hero-image::before,
  .hero-kicker-line-field span {
    animation: none !important;
  }
}

/* v5 — make animated line field continuous across the whole project view */
.project-view {
  isolation: isolate;
}
.project-view::before,
.project-view::after {
  content: "";
  position: fixed;
  inset: 58px 0 0 0;
  z-index: 0;
  pointer-events: none;
}
.project-view::before {
  background:
    linear-gradient(112deg, transparent 0 30%, rgba(0,0,0,0.54) 30.08% 30.2%, transparent 30.32% 100%),
    linear-gradient(74deg, transparent 0 58%, rgba(0,0,0,0.42) 58.08% 58.2%, transparent 58.32% 100%),
    linear-gradient(0deg, transparent 0 47%, rgba(0,0,0,0.11) 47.04% 47.14%, transparent 47.24% 100%),
    linear-gradient(90deg, transparent 0 64%, rgba(0,0,0,0.10) 64.04% 64.14%, transparent 64.24% 100%);
  background-size: 640px 420px, 580px 390px, 390px 310px, 430px 330px;
  animation: editorialVoidDrift 24s linear infinite;
  opacity: 0.58;
}
.project-view::after {
  width: 48vw;
  height: 58vh;
  left: auto;
  top: 16vh;
  right: 3vw;
  inset: auto 3vw auto auto;
  border-top: 1px solid rgba(0,0,0,0.58);
  border-left: 1px solid rgba(0,0,0,0.38);
  transform-origin: center;
  animation: editorialVoidSweep 22s ease-in-out infinite;
  opacity: 0.42;
}
.project-view-bar,
.project-view-inner {
  position: relative;
}
.project-view-bar {
  z-index: 3;
}
.project-view-inner {
  z-index: 1;
  background: transparent;
}
.project-hero-detail,
.project-title-block,
.project-meta,
.project-summary,
.chapter-copy,
.project-switcher {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.project-hero-image,
.chapter-grid {
  position: relative;
  z-index: 1;
  background: transparent;
  overflow: visible;
  isolation: auto;
}
.chapter-grid::before,
.chapter-grid::after {
  content: none;
}
.project-hero-image::before {
  content: none;
}
.asset-card {
  background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .project-view::before,
  .project-view::after {
    animation: none !important;
  }
}

/* v6 — allow the continuous motion field to show through every empty editorial space */
.projectContent,
#projectContent,
.project-view-inner,
.project-chapter,
.chapter-grid {
  background: transparent !important;
}

/* Make the line field denser and more evenly distributed so blank space reads as one continuous layer. */
.project-view::before {
  background:
    linear-gradient(108deg, transparent 0 21%, rgba(0,0,0,0.34) 21.08% 21.22%, transparent 21.34% 100%),
    linear-gradient(73deg, transparent 0 43%, rgba(0,0,0,0.28) 43.08% 43.2%, transparent 43.32% 100%),
    linear-gradient(125deg, transparent 0 68%, rgba(0,0,0,0.24) 68.08% 68.18%, transparent 68.3% 100%),
    linear-gradient(0deg, transparent 0 50%, rgba(0,0,0,0.075) 50.04% 50.12%, transparent 50.22% 100%),
    linear-gradient(90deg, transparent 0 50%, rgba(0,0,0,0.075) 50.04% 50.12%, transparent 50.22% 100%);
  background-size: 520px 360px, 460px 330px, 610px 420px, 285px 250px, 315px 270px;
  opacity: 0.62;
}

.project-view::after {
  width: 64vw;
  height: 74vh;
  right: -2vw;
  top: 10vh;
  border-top-color: rgba(0,0,0,0.46);
  border-left-color: rgba(0,0,0,0.28);
  opacity: 0.36;
}

/* The asset cell itself no longer paints a white rectangle. Only actual images/captions sit on top. */
.asset-card {
  background: transparent !important;
}

.asset-card img {
  position: relative;
  z-index: 1;
  background: var(--paper);
}

.asset-card figcaption {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 100%;
  background: rgba(248, 248, 245, 0.9);
  backdrop-filter: blur(8px);
}

/* Keep text/control modules readable while image-side voids stay animated. */
.chapter-copy,
.project-title-block,
.project-meta,
.project-summary,
.project-switcher,
.project-view-bar {
  background: rgba(248, 248, 245, 0.94) !important;
}

/* v7 — bring continuous line motion directly beside image assets and into empty grid cells */
@keyframes localLineFieldDrift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  50% { background-position: 42px 22px, -30px 36px, 20px -18px, -24px 28px; }
  100% { background-position: 84px 44px, -60px 72px, 40px -36px, -48px 56px; }
}

@keyframes localLineFloat {
  0%, 100% { transform: translate3d(-3%, -2%, 0) rotate(-8deg); opacity: 0.36; }
  50% { transform: translate3d(4%, 3%, 0) rotate(-3deg); opacity: 0.68; }
}

/* Remove remaining opaque chapter/hero fields so the motion layer can be seen inside large blank areas. */
.project-hero-detail,
.project-hero-image,
.project-chapter,
.chapter-grid,
.asset-card {
  background: transparent !important;
}

.chapter-grid {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Local animated field inside every image grid, so empty cells beside images are no longer blank. */
.chapter-grid::before,
.chapter-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.chapter-grid::before {
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(0,0,0,0.32) 18.06% 18.2%, transparent 18.34% 100%),
    linear-gradient(72deg, transparent 0 38%, rgba(0,0,0,0.26) 38.06% 38.18%, transparent 38.32% 100%),
    linear-gradient(128deg, transparent 0 66%, rgba(0,0,0,0.24) 66.06% 66.18%, transparent 66.32% 100%),
    linear-gradient(90deg, transparent 0 50%, rgba(0,0,0,0.07) 50.04% 50.1%, transparent 50.18% 100%);
  background-size: 360px 280px, 420px 310px, 520px 360px, 240px 220px;
  animation: localLineFieldDrift 18s linear infinite;
  opacity: 0.9;
}

.chapter-grid::after {
  inset: 4% 3%;
  width: auto;
  height: auto;
  background:
    linear-gradient(104deg, transparent 0 46%, rgba(0,0,0,0.36) 46.05% 46.18%, transparent 46.32% 100%),
    linear-gradient(76deg, transparent 0 62%, rgba(0,0,0,0.22) 62.05% 62.16%, transparent 62.28% 100%);
  background-size: 520px 420px, 380px 300px;
  animation: localLineFloat 14s ease-in-out infinite;
  opacity: 0.62;
}

.chapter-grid > * {
  position: relative;
  z-index: 1;
}

/* Each image cell also receives subtle side-line motion, visible in padding and around contained images. */
.asset-card {
  overflow: hidden;
  isolation: isolate;
}

.asset-card::before,
.asset-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.asset-card::before {
  background:
    linear-gradient(107deg, transparent 0 22%, rgba(0,0,0,0.26) 22.05% 22.18%, transparent 22.32% 100%),
    linear-gradient(71deg, transparent 0 74%, rgba(0,0,0,0.18) 74.05% 74.17%, transparent 74.3% 100%);
  background-size: 320px 260px, 410px 300px;
  animation: localLineFieldDrift 22s linear infinite;
  opacity: 0.5;
}

.asset-card::after {
  width: 62%;
  height: 72%;
  top: 13%;
  right: -12%;
  left: auto;
  border-top: 1px solid rgba(0,0,0,0.32);
  border-left: 1px solid rgba(0,0,0,0.2);
  transform-origin: center;
  animation: localLineFloat 17s ease-in-out infinite;
  opacity: 0.42;
}

.asset-card button,
.asset-card figcaption,
.asset-card img {
  position: relative;
  z-index: 2;
}

/* Keep the image files readable while allowing lines to sit close to the picture edges. */
.asset-card button {
  background: transparent !important;
}

.asset-card img {
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.025);
}

.asset-card figcaption {
  background: rgba(248, 248, 245, 0.92);
  backdrop-filter: blur(8px);
}

/* For single-image chapters such as the typographic poster, make the empty right side visibly active. */
.project-chapter:has(.asset-card:only-child) .chapter-grid::before {
  opacity: 1;
  background-size: 300px 240px, 360px 280px, 460px 320px, 220px 200px;
}

.project-chapter:has(.asset-card:only-child) .chapter-grid::after {
  opacity: 0.78;
}

@media (prefers-reduced-motion: reduce) {
  .chapter-grid::before,
  .chapter-grid::after,
  .asset-card::before,
  .asset-card::after {
    animation: none !important;
  }
}

/* v8 — replace repeated tiled line textures with unique, continuous, irregular motion fields */
.project-view::before,
.project-view::after,
.chapter-grid::before,
.chapter-grid::after,
.asset-card::before,
.asset-card::after {
  content: none !important;
  display: none !important;
}

#projectContent {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#projectContent > *:not(.free-line-field) {
  position: relative;
  z-index: 1;
}

.free-line-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.project-free-line-field {
  min-height: 100%;
}

.chapter-grid,
.project-hero-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent !important;
}

.chapter-grid > .free-line-field,
.project-hero-image > .free-line-field {
  position: absolute !important;
  inset: -7% -5%;
  z-index: 0 !important;
}

.chapter-grid > *:not(.free-line-field),
.project-hero-image > *:not(.free-line-field) {
  position: relative;
  z-index: 2;
}

.free-line-field span {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--len, 28vw);
  height: var(--weight, 1px);
  background: rgba(0, 0, 0, var(--alpha, 0.22));
  transform-origin: 50% 50%;
  transform: translate3d(-50%, -50%, 0) rotate(var(--r, 0deg)) scaleX(var(--s0, 1));
  animation: irregularLineDrift var(--dur, 20s) cubic-bezier(0.45, 0, 0.25, 1) infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
  opacity: var(--o, 1);
}

.project-free-line-field span {
  width: var(--len, 36vw);
  height: var(--weight, 1px);
  opacity: calc(var(--o, 1) * 0.86);
}

.chapter-line-field span {
  width: var(--len, 30vw);
  height: var(--weight, 1px);
}

.hero-line-field span {
  opacity: calc(var(--o, 1) * 0.78);
}

@keyframes irregularLineDrift {
  0% {
    transform: translate3d(-50%, -50%, 0) rotate(var(--r)) scaleX(var(--s0));
    opacity: calc(var(--o) * 0.70);
  }
  28% {
    transform: translate3d(calc(-50% + var(--dx1)), calc(-50% + var(--dy1)), 0) rotate(calc(var(--r) + var(--dr1))) scaleX(var(--s1));
    opacity: var(--o);
  }
  62% {
    transform: translate3d(calc(-50% + var(--dx2)), calc(-50% + var(--dy2)), 0) rotate(calc(var(--r) + var(--dr2))) scaleX(var(--s2));
    opacity: calc(var(--o) * 0.58);
  }
  100% {
    transform: translate3d(-50%, -50%, 0) rotate(var(--r)) scaleX(var(--s0));
    opacity: calc(var(--o) * 0.70);
  }
}

.asset-card {
  background: transparent !important;
}

.asset-card img {
  background: var(--paper);
}

.asset-card figcaption {
  background: rgba(248, 248, 245, 0.92);
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .free-line-field span {
    animation: none !important;
  }
}


/* v9 — distribute irregular line motion across the full vertical depth of every project page */
#projectContent {
  overflow: hidden;
}

.free-line-field {
  overflow: hidden;
}

.project-free-line-field {
  inset: -2% -4% -2% -4%;
}

.chapter-grid > .free-line-field,
.project-hero-image > .free-line-field {
  inset: -3% -4%;
}

.chapter-line-field span {
  opacity: calc(var(--o, 1) * 0.92);
}

.project-free-line-field span {
  opacity: calc(var(--o, 1) * 0.62);
}

.asset-card img {
  position: relative;
  z-index: 3;
}

.asset-card figcaption {
  position: relative;
  z-index: 3;
}

/* v9.1 — responsive / remote-device stability pass
   Goal: preserve the V9 visual logic while making image, title, and line-field placement
   less dependent on browser-specific layout timing. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --display-stack: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", "HelveticaNeue-CondensedBold", "Helvetica Neue", Arial, sans-serif;
}

.brand span,
.card-number,
.card-copy h3,
.index-row span,
.index-row strong,
.project-view-bar span,
.project-title-block h2,
.mini-project,
.hero h1 {
  font-family: var(--display-stack);
  font-synthesis: none;
}

.hero h1,
.project-title-block h2,
.card-copy h3,
.index-row strong {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

/* Horizontal compression test: keep tracking 75, but visually condense the display titles to 90%. */
.hero h1,
.section-heading h2,
.about-title h2,
.card-copy h3,
.index-row strong,
.project-title-block h2,
.chapter-copy h3,
.photo-series-title,
.photo-project-heading,
.photo-category-title,
.placeholder-title,
.coming-soon-title {
  transform: scaleX(var(--alt-display-condense));
  transform-origin: left center;
}

/* Centered placeholder words should remain visually centered after compression. */
.placeholder-title,
.coming-soon-title {
  transform-origin: center center;
}


.project-grid {
  align-items: stretch;
}

.project-card {
  min-height: clamp(500px, 50vw, 620px);
}

.project-card-button {
  grid-template-rows: auto minmax(280px, 1fr) auto;
}

.card-image-wrap {
  position: relative;
  isolation: isolate;
  min-height: clamp(260px, 24vw, 360px);
  height: 100%;
  padding: clamp(18px, 2vw, 28px);
}

.card-image-wrap::before,
.card-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.card-image-wrap::before {
  background:
    linear-gradient(104deg, transparent 0 21%, rgba(0,0,0,0.19) 21.05% 21.18%, transparent 21.32% 100%),
    linear-gradient(71deg, transparent 0 63%, rgba(0,0,0,0.14) 63.05% 63.17%, transparent 63.3% 100%),
    linear-gradient(132deg, transparent 0 82%, rgba(0,0,0,0.10) 82.05% 82.17%, transparent 82.3% 100%);
  background-size: 390px 280px, 460px 310px, 520px 360px;
  animation: cardPreviewLineDrift 26s linear infinite;
  opacity: 0.72;
}

.card-image-wrap::after {
  inset: 10% 8%;
  border-top: 1px solid rgba(0,0,0,0.18);
  border-left: 1px solid rgba(0,0,0,0.11);
  transform: rotate(-7deg);
  animation: cardPreviewFrameFloat 18s ease-in-out infinite;
  opacity: 0.55;
}

.card-image-wrap img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent !important;
}

@keyframes cardPreviewLineDrift {
  0% { background-position: 0 0, 0 0, 0 0; }
  50% { background-position: 34px 24px, -26px 32px, 18px -22px; }
  100% { background-position: 68px 48px, -52px 64px, 36px -44px; }
}

@keyframes cardPreviewFrameFloat {
  0%, 100% { transform: translate3d(-1%, -1%, 0) rotate(-7deg); opacity: 0.42; }
  50% { transform: translate3d(2%, 1.5%, 0) rotate(-2deg); opacity: 0.72; }
}

.project-title-block h2 {
  max-width: 11ch;
}

.project-hero-detail {
  align-items: stretch;
}

.project-hero-image {
  min-height: min(68vh, 820px);
}

.project-hero-image button {
  min-height: clamp(300px, 52vh, 660px);
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent !important;
}

.chapter-grid {
  align-items: stretch;
}

.asset-card {
  position: relative;
  min-height: clamp(260px, 30vw, 560px);
}

.asset-card button {
  flex: 1 1 auto;
  min-height: clamp(190px, 26vw, 500px);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-card.wide button {
  min-height: clamp(220px, 28vw, 520px);
}

.asset-card.tall button {
  min-height: clamp(330px, 44vw, 720px);
}

.asset-card.small button {
  min-height: clamp(160px, 18vw, 320px);
}

.asset-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent !important;
}

.asset-card figcaption {
  flex: 0 0 auto;
}

.free-line-field {
  contain: paint;
}

.project-free-line-field {
  min-height: 100%;
}

.chapter-grid > .free-line-field,
.project-hero-image > .free-line-field {
  inset: -4% -5%;
}

@media (max-width: 1120px) {
  .project-card {
    min-height: clamp(480px, 62vw, 620px);
  }
  .card-image-wrap {
    min-height: clamp(260px, 34vw, 360px);
  }
}

@media (max-width: 760px) {
  :root {
    --outer: clamp(16px, 5vw, 28px);
  }

  .project-card {
    min-height: auto;
  }

  .project-card-button {
    grid-template-rows: auto auto auto;
  }

  .card-number {
    font-size: clamp(34px, 10vw, 48px);
  }

  .card-image-wrap {
    height: clamp(255px, 72vw, 360px);
    min-height: 255px;
    padding: clamp(16px, 5vw, 24px);
  }

  .card-copy h3 {
    font-size: clamp(26px, 9vw, 42px);
    line-height: 0.94;
    letter-spacing: -0.035em;
  }

  .project-title-block h2 {
    max-width: 12ch;
    font-size: clamp(42px, 13vw, 74px);
    line-height: 0.9;
    letter-spacing: -0.045em;
  }

  .project-title-block p:last-child,
  .project-summary p {
    font-size: clamp(17px, 5vw, 24px);
    line-height: 1.16;
  }

  .project-hero-image {
    min-height: auto;
    padding: var(--outer);
  }

  .project-hero-image button {
    min-height: clamp(260px, 74vw, 520px);
    max-height: none;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .asset-card {
    min-height: auto;
    padding: clamp(14px, 5vw, 24px);
  }

  .asset-card.wide button {
    min-height: clamp(220px, 68vw, 460px);
  }

  .asset-card.tall button {
    min-height: clamp(320px, 112vw, 660px);
  }

  .asset-card.small button {
    min-height: clamp(180px, 54vw, 360px);
  }

  .chapter-copy h3 {
    font-size: clamp(20px, 6.4vw, 32px);
    line-height: 1.12;
  }

  .free-line-field span {
    height: max(var(--weight, 1px), 1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-image-wrap::before,
  .card-image-wrap::after {
    animation: none !important;
  }
}

/* v9.1 final ordering guards: project hero image keeps its own stable frame even though it also uses asset-card. */
.project-hero-image.asset-card button {
  min-height: clamp(300px, 52vh, 660px);
  max-height: 76vh;
}

@media (max-width: 760px) {
  .project-hero-image.asset-card button {
    min-height: clamp(260px, 74vw, 520px);
    max-height: none;
  }
}

/* v9.1.1 — project bar persistence pass
   The project overlay now uses an app-like layout: the top bar is outside the
   scrolling content, so Close + project counter stay reachable at every scroll depth. */
.project-view {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform: none !important;
}

.project-view[aria-hidden="false"] {
  transform: none !important;
}

.project-view-bar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 58px !important;
  z-index: 90 !important;
  width: 100%;
  box-sizing: border-box;
}

.project-view-inner,
#projectContent {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

/* Keep the global irregular-line layer visible behind the current viewport while
   the project content itself scrolls under the fixed bar. Local chapter line fields
   continue to sit near image groups. */
#projectContent > .project-free-line-field {
  position: fixed !important;
  top: 58px !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  inset: 58px 0 0 0 !important;
  z-index: 0 !important;
}

#projectContent > *:not(.free-line-field) {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .project-view-bar {
    flex-basis: 54px !important;
    height: 54px;
  }

  #projectContent > .project-free-line-field {
    top: 54px !important;
    inset: 54px 0 0 0 !important;
  }
}


/* v9.1.2 — content expansion: coming-soon modules + photography project area */
.work-section .section-heading p::after {
  content: " / 17 DESIGN PROJECTS";
}

.coming-soon-cover {
  width: 100%;
  min-height: clamp(220px, 26vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.72);
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--soft-line) calc(50% - 0.5px), var(--soft-line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--soft-line) calc(50% - 0.5px), var(--soft-line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    rgba(248,248,245,0.78);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  position: relative;
  z-index: 2;
}

.coming-soon-cover span {
  font-size: clamp(20px, 3vw, 48px);
  font-family: var(--display-stack);
  font-weight: 700;
  line-height: 0.9;
}

.coming-soon-cover strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.22em;
}

.card-image-wrap.is-coming-soon img {
  display: none;
}

.placeholder-hero .coming-soon-cover,
.placeholder-card .coming-soon-cover {
  min-height: clamp(320px, 42vw, 620px);
}

.photography-section {
  padding: var(--outer);
  border-bottom: 1px solid var(--line);
}

.photography-section .section-heading {
  margin-bottom: clamp(26px, 4vw, 54px);
}

.photography-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.photography-card {
  min-height: clamp(560px, 56vw, 780px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.photography-card-button {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  text-align: left;
  cursor: pointer;
}

.photo-card-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3vw, 46px);
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--soft-line) calc(50% - 0.5px), var(--soft-line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), var(--soft-line) calc(50% - 0.5px), var(--soft-line) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.photo-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(107deg, transparent 0 23%, rgba(0,0,0,0.18) 23.06% 23.18%, transparent 23.32% 100%),
    linear-gradient(70deg, transparent 0 71%, rgba(0,0,0,0.13) 71.06% 71.18%, transparent 71.32% 100%);
  background-size: 520px 360px, 420px 310px;
  animation: cardPreviewLineDrift 30s linear infinite;
  opacity: 0.72;
}

.photo-card-media > img,
.photo-card-media > .coming-soon-cover {
  position: relative;
  z-index: 2;
}

.photo-card-media img {
  width: 100%;
  height: 100%;
  max-height: min(58vh, 620px);
  object-fit: contain;
  object-position: center center;
  filter: grayscale(0%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
  transition: transform 420ms ease;
}

.photography-card-button:hover .photo-card-media img {
  transform: scale(1.022);
}

.photo-card-copy {
  border-top: 1px solid var(--line);
  padding: clamp(20px, 2.8vw, 36px);
  background: rgba(248,248,245,0.94);
}

.photo-card-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.photo-card-copy h3 {
  margin: 0 0 14px;
  font-family: var(--display-stack);
  font-size: clamp(34px, 5vw, 82px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.photo-card-copy span {
  display: block;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.22;
}

/* Photography pages are intentionally more image-led. */
#project-exploring-creative-landscape-photography .asset-card img,
.photography-project .asset-card img {
  max-height: 80vh;
}

@media (min-width: 1121px) {
  .photography-card:first-child {
    grid-column: span 1;
  }
}

@media (max-width: 960px) {
  .photography-grid {
    grid-template-columns: 1fr;
  }

  .photography-card {
    min-height: auto;
  }

  .photography-card-button {
    grid-template-rows: auto auto;
  }

  .photo-card-media {
    min-height: clamp(280px, 76vw, 560px);
  }

  .photo-card-copy h3 {
    font-size: clamp(30px, 10vw, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-card-media::before {
    animation: none !important;
  }
}

/* v9.1.3 — targeted content adjustments */
.asset-card.fair-render {
  grid-column: span 10;
}

.asset-card.fair-render button {
  min-height: clamp(380px, 44vw, 780px);
}

.asset-card.photo-feature {
  grid-column: span 8;
}

.asset-card.photo-feature button {
  min-height: clamp(360px, 42vw, 720px);
}

.photography-project .asset-card.photo-feature img,
#project-exploring-creative-landscape-photography .asset-card.photo-feature img {
  width: 100%;
  max-width: min(100%, 920px);
  max-height: 82vh;
}

@media (max-width: 1120px) {
  .asset-card.fair-render,
  .asset-card.photo-feature {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .asset-card.fair-render button,
  .asset-card.photo-feature button {
    min-height: clamp(260px, 76vw, 520px);
  }
}

/* V9.1.5 - Photography cover hover behavior
   The landscape / creative photography cover follows the design project cards:
   grayscale by default, color only on hover or keyboard focus. */
.photography-card:not(.is-coming-soon) .photo-card-media img {
  filter: grayscale(100%) contrast(1.04);
  transition: filter 420ms ease, transform 420ms ease;
}

.photography-card:not(.is-coming-soon) .photography-card-button:hover .photo-card-media img,
.photography-card:not(.is-coming-soon) .photography-card-button:focus-visible .photo-card-media img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.022);
}


/* V9.1.6 - Photography content and title stability update
   Keep photography project titles word-safe: no mid-word wrapping, with a smaller responsive scale. */
#projectContent.photography-project .project-title-block h2,
.project-view-inner.photography-project .project-title-block h2 {
  font-size: clamp(46px, 5.4vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  max-width: 12.5ch;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-wrap: balance;
}

#projectContent.photography-project .project-title-block,
.project-view-inner.photography-project .project-title-block {
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  #projectContent.photography-project .project-title-block h2,
  .project-view-inner.photography-project .project-title-block h2 {
    font-size: clamp(42px, 8vw, 72px);
    max-width: 13.5ch;
  }
}

@media (max-width: 760px) {
  #projectContent.photography-project .project-title-block h2,
  .project-view-inner.photography-project .project-title-block h2 {
    font-size: clamp(36px, 12vw, 58px);
    max-width: 100%;
    line-height: 0.94;
    letter-spacing: -0.04em;
  }
}


/* V9.1.7 - Global project title scale
   Apply the photography project title rhythm to all project detail titles:
   smaller, word-safe, and less aggressive across desktop and narrow viewports. */
#projectContent .project-title-block h2,
.project-view-inner .project-title-block h2 {
  font-size: clamp(46px, 5.4vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  max-width: 12.5ch;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
  white-space: normal;
}

@media (max-width: 1120px) {
  #projectContent .project-title-block h2,
  .project-view-inner .project-title-block h2 {
    font-size: clamp(42px, 8vw, 72px);
    max-width: 13.5ch;
  }
}

@media (max-width: 760px) {
  #projectContent .project-title-block h2,
  .project-view-inner .project-title-block h2 {
    font-size: clamp(36px, 12vw, 58px);
    max-width: 100%;
    line-height: 0.94;
    letter-spacing: -0.04em;
  }
}

/* =========================================================
   V9.1.7 SIDE TEST — Montserrat-Alt1 SemiBold display headings / 90% width
   Technical validation only. Font files are expected in /fonts.
   Tracking 75 = 0.075em. Optical width is compressed using scaleX(0.9).
   ========================================================= */
@font-face {
  font-family: "Montserrat-Alt1";
  src: url("../fonts/MontserratAlt1-SemiBold.woff2") format("woff2"),
       url("../fonts/MontserratAlt1-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --alt-display: "Montserrat-Alt1", "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --alt-display-tracking: 0.075em;
  --alt-display-condense: 0.9;
}

/* Global large-title font test */
.hero h1,
.section-heading h2,
.about-title h2,
.card-copy h3,
.index-row strong,
.project-title-block h2,
.chapter-copy h3,
.photo-series-title,
.photo-project-heading,
.photo-category-title,
.placeholder-title,
.coming-soon-title {
  font-family: var(--alt-display) !important;
  font-weight: 600 !important;
  letter-spacing: var(--alt-display-tracking) !important;
  font-stretch: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}

/* Scale adjustment for positive tracking */
.hero h1 {
  font-size: clamp(48px, 7.1vw, 118px);
  line-height: 0.92;
  max-width: min(100%, 15ch);
}

.section-heading h2,
.about-title h2 {
  font-size: clamp(34px, 5.8vw, 84px);
  line-height: 0.98;
  max-width: 18ch;
}

.card-copy h3 {
  font-size: clamp(20px, 2.35vw, 34px);
  line-height: 1.02;
}

.index-row strong {
  font-size: clamp(24px, 3.8vw, 56px);
  line-height: 1;
}

#projectContent .project-title-block h2,
.project-view-inner .project-title-block h2 {
  font-size: clamp(34px, 4.25vw, 68px);
  line-height: 1;
  max-width: 18ch;
}

.chapter-copy h3 {
  font-size: clamp(28px, 4.6vw, 72px);
  line-height: 1;
}

/* The wide tracking needs a bit more breathing room in project cards. */
.card-copy {
  padding-right: clamp(18px, 2.2vw, 30px);
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: clamp(42px, 8.2vw, 86px);
    max-width: 14ch;
  }
  .section-heading h2,
  .about-title h2 {
    font-size: clamp(32px, 6vw, 70px);
    max-width: 16ch;
  }
  #projectContent .project-title-block h2,
  .project-view-inner .project-title-block h2 {
    font-size: clamp(32px, 6.4vw, 58px);
    max-width: 16ch;
  }
}

@media (max-width: 760px) {
  :root { --alt-display-tracking: 0.055em; }
  .hero h1,
  .section-heading h2,
  .about-title h2,
  #projectContent .project-title-block h2,
  .project-view-inner .project-title-block h2 {
    max-width: 100%;
  }
  .card-copy h3 {
    font-size: clamp(19px, 6vw, 30px);
  }
}


/* =========================================================
   V9.1.7 SIDE TEST — Montserrat refinement pass 02
   Keep the technical font test on display titles, but restore
   in-project chapter notes to the V9.1.7 original reading style.
   Also make the Selected Design Works heading smaller and single-line.
   ========================================================= */

/* Restore image/chapter description typography to V9.1.7 baseline. */
#projectContent .chapter-copy h3,
.project-view-inner .chapter-copy h3 {
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  font-size: clamp(21px, 2.4vw, 38px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  transform: none !important;
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}

@media (max-width: 760px) {
  #projectContent .chapter-copy h3,
  .project-view-inner .chapter-copy h3 {
    font-size: clamp(20px, 6.4vw, 32px) !important;
    line-height: 1.12 !important;
  }
}

/* Selected Design Works should read as one restrained line in the font test. */
.work-section .section-heading h2 {
  font-size: clamp(30px, 4.7vw, 72px) !important;
  line-height: 0.96 !important;
  max-width: none !important;
  width: max-content;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  transform: scaleX(var(--alt-display-condense)) !important;
  transform-origin: left center !important;
}

@media (max-width: 900px) {
  .work-section .section-heading h2 {
    font-size: clamp(28px, 6vw, 54px) !important;
    width: auto;
    white-space: normal !important;
    text-wrap: balance !important;
  }
}


/* =========================================================
   V9.1.7 SIDE TEST — Montserrat refinement pass 03
   1) Apply Montserrat-Alt1 SemiBold / tracking 75 / 90% width
      to the two Image Studies category-card titles.
   2) Keep the photography project internal hero title within
      the left text column, using complete-word wrapping.
   ========================================================= */

/* Image Studies / Photography Projects card titles */
.photography-section .photo-card-copy h3,
.photography-grid .photo-card-copy h3 {
  font-family: var(--alt-display) !important;
  font-weight: 600 !important;
  letter-spacing: var(--alt-display-tracking) !important;
  line-height: 1.02 !important;
  text-transform: uppercase !important;
  transform: scaleX(var(--alt-display-condense)) !important;
  transform-origin: left center !important;
  font-size: clamp(28px, 3.9vw, 60px) !important;
  max-width: 100% !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}

@media (max-width: 1120px) {
  .photography-section .photo-card-copy h3,
  .photography-grid .photo-card-copy h3 {
    font-size: clamp(26px, 5.2vw, 48px) !important;
    letter-spacing: 0.06em !important;
  }
}

@media (max-width: 760px) {
  .photography-section .photo-card-copy h3,
  .photography-grid .photo-card-copy h3 {
    font-size: clamp(24px, 7.5vw, 38px) !important;
    letter-spacing: 0.045em !important;
    transform: scaleX(0.94) !important;
  }
}

/* Photography project detail hero title: smaller and column-safe. */
#projectContent.photography-project .project-title-block h2,
.project-view-inner.photography-project .project-title-block h2 {
  font-family: var(--alt-display) !important;
  font-weight: 600 !important;
  letter-spacing: var(--alt-display-tracking) !important;
  transform: scaleX(var(--alt-display-condense)) !important;
  transform-origin: left center !important;
  font-size: clamp(32px, 3.85vw, 60px) !important;
  line-height: 1.03 !important;
  max-width: 11.6ch !important;
  width: 11.6ch !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: balance;
}

@media (max-width: 1120px) {
  #projectContent.photography-project .project-title-block h2,
  .project-view-inner.photography-project .project-title-block h2 {
    font-size: clamp(30px, 5.3vw, 50px) !important;
    max-width: 100% !important;
    width: 100% !important;
    letter-spacing: 0.06em !important;
  }
}

@media (max-width: 760px) {
  #projectContent.photography-project .project-title-block h2,
  .project-view-inner.photography-project .project-title-block h2 {
    font-size: clamp(28px, 8vw, 42px) !important;
    line-height: 1.05 !important;
    letter-spacing: 0.045em !important;
    transform: scaleX(0.94) !important;
  }
}


/* =========================================================
   V9.1.9 — UI/UX avatar row adjustment
   Keep the UI/UX avatar studies in one horizontal row on desktop.
   ========================================================= */
.asset-card.full {
  grid-column: span 12;
}
.asset-card.full button {
  min-height: clamp(220px, 28vw, 520px);
}
.asset-card.uiux-avatar {
  grid-column: span 3;
  min-height: clamp(380px, 36vw, 620px);
  padding: clamp(10px, 1.5vw, 22px);
}
.asset-card.uiux-avatar button {
  min-height: clamp(310px, 31vw, 540px);
  max-height: 70vh;
}
.asset-card.uiux-avatar img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  max-height: 100%;
}
.asset-card.uiux-avatar figcaption {
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1120px) {
  .asset-card.uiux-avatar {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .asset-card.full,
  .asset-card.uiux-avatar {
    grid-column: span 12;
  }
}


/* =========================================================
   V9.1.10 from V9.1.9 — UI/UX Q1/Q2 row pairing test
   Only changes the Demokratische Kiosk UI/UX question layout:
   Q1 = two images in one row, Q2 = two images in one row.
   Keeps the V9.1.9 avatar row and all mainline typography/line systems.
   ========================================================= */
.asset-card.uiux-question-pair {
  grid-column: span 6;
  min-height: clamp(380px, 42vw, 640px);
  padding: clamp(14px, 1.8vw, 28px);
}
.asset-card.uiux-question-pair button {
  min-height: clamp(320px, 38vw, 600px);
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.asset-card.uiux-question-pair img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}
.asset-card.uiux-question-pair figcaption {
  font-size: 12px;
  line-height: 1.35;
}
@media (max-width: 760px) {
  .asset-card.uiux-question-pair {
    grid-column: span 12;
  }
}

/* V9.1.10b about-profile test */
.about-profile-copy {
  font-size: clamp(15px, 1.45vw, 21px);
  line-height: 1.34;
  letter-spacing: -0.012em;
  max-width: 980px;
}
.about-profile-copy .about-lead {
  font-size: clamp(22px, 2.25vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: clamp(26px, 4vw, 46px);
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.about-facts div {
  padding: 14px 16px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 86px;
}
.about-facts span {
  display: block;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.about-facts strong {
  display: block;
  font-weight: 400;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.18;
}
.about-profile-copy em { font-style: italic; }

@media (max-width: 760px) {
  .about-facts { grid-template-columns: 1fr; }
  .about-profile-copy .about-lead { font-size: clamp(21px, 6.4vw, 30px); }
}

/* V9.1.10c about avatar placement */
.about-profile-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 3vw, 42px);
}
.about-avatar {
  width: clamp(150px, 22vw, 280px);
  aspect-ratio: 1 / 1;
  margin: clamp(8px, 1.6vw, 18px) 0 clamp(4px, 1vw, 12px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  flex: none;
}
.about-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(100%);
}
@media (max-width: 760px) {
  .about-profile-title {
    gap: 20px;
  }
  .about-avatar {
    width: min(52vw, 220px);
  }
}


/* V9.1.10f — About section: mirrored homepage rule motif */
.about-hero-rules {
  position: relative;
  width: min(72%, 430px);
  height: clamp(150px, 20vw, 270px);
  margin-top: clamp(-10px, -0.8vw, -4px);
  pointer-events: none;
  overflow: visible;
  transform: scaleX(-1);
  transform-origin: center;
  opacity: 0.98;
}
.about-hero-rules span {
  position: absolute;
  display: block;
  background: var(--line);
  transform-origin: center;
  will-change: transform, opacity;
}
.about-hero-rules span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  animation: heroLineOne 10s ease-in-out infinite;
}
.about-hero-rules span:nth-child(2) {
  bottom: 18%;
  left: 16%;
  width: 84%;
  height: 1px;
  animation: heroLineTwo 12s ease-in-out infinite;
}
.about-hero-rules span:nth-child(3) {
  top: 18%;
  right: 20%;
  width: 1px;
  height: 76%;
  animation: heroLineThree 11s ease-in-out infinite;
}
.about-hero-rules span:nth-child(4) {
  top: 40%;
  left: 12%;
  width: 1px;
  height: 54%;
  animation: heroLineFour 13s ease-in-out infinite;
}
@media (max-width: 760px) {
  .about-hero-rules {
    width: min(90%, 360px);
    height: 150px;
  }
}


/* =========================================================
   V9.1.10i — Archive Index restructuring
   Rebuild the Contents section as a grouped, text-led archive index.
   This affects the index page only and keeps project pages / motion backgrounds unchanged.
   ========================================================= */
.index-section {
  padding-top: clamp(42px, 6vw, 92px);
}

.index-section .section-heading {
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 58px);
}

.index-section .section-heading h2 {
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  font-size: clamp(34px, 5.2vw, 78px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.035em !important;
  transform: none !important;
  max-width: none !important;
  width: auto !important;
  white-space: normal !important;
}

.index-list {
  border-top: 1px solid var(--line);
}

.archive-index-group {
  border-bottom: 1px solid var(--line);
}

.archive-index-group-header {
  min-height: clamp(58px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(90px, 0.12fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--gap);
  border-bottom: 1px solid var(--soft-line);
  padding: 0;
}

.archive-index-group-header span,
.archive-index-group-header em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-index-group-header em {
  color: var(--ink);
}

.archive-index-group-list {
  display: grid;
}

.archive-index-row {
  appearance: none;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(54px, 0.08fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  padding: clamp(18px, 2.5vw, 34px) 0;
  cursor: pointer;
  color: var(--ink);
}

.archive-index-row:last-child {
  border-bottom: 0;
}

.archive-index-row:hover,
.archive-index-row:focus-visible {
  background: rgba(0, 0, 0, 0.025);
}

.archive-index-row:hover .archive-index-title,
.archive-index-row:focus-visible .archive-index-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.archive-index-no {
  font-family: var(--sans) !important;
  font-size: clamp(18px, 1.5vw, 24px) !important;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.archive-index-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(280px, 0.45fr) minmax(260px, 0.42fr);
  gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}

.archive-index-title,
.archive-index-description {
  font-family: var(--sans) !important;
  transform: none !important;
  letter-spacing: -0.025em !important;
  font-size: clamp(18px, 1.7vw, 27px) !important;
  line-height: 1.16 !important;
  text-transform: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.archive-index-title {
  font-weight: 520;
}

.archive-index-description {
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

.archive-index-meta {
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.archive-index-meta div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
}

.archive-index-meta dt,
.archive-index-meta dd {
  margin: 0;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.22;
}

.archive-index-meta dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 10px;
  padding-top: 0.3em;
}

.archive-index-meta dd {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .archive-index-body {
    grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  }
  .archive-index-meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .archive-index-meta div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 760px) {
  .index-section .section-heading {
    grid-template-columns: 1fr;
  }
  .archive-index-group-header {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .archive-index-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 18px 0 22px;
  }
  .archive-index-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .archive-index-title,
  .archive-index-description {
    font-size: clamp(17px, 5.2vw, 22px) !important;
    letter-spacing: -0.02em !important;
  }
  .archive-index-meta {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   V9.1.10j — Archive Index title refinement
   Keep the archive list typography unchanged, remove the small FAST INDEX label,
   and make the standalone ARCHIVE INDEX heading centered in Montserrat-Alt1.
   ========================================================= */
.index-section .section-heading,
.index-section .index-heading-clean {
  display: block !important;
  text-align: center !important;
  margin-bottom: clamp(30px, 4vw, 58px) !important;
}

.index-section .section-heading p {
  display: none !important;
}

.index-section .section-heading h2,
.index-section .index-heading-clean h2 {
  font-family: var(--alt-display) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: var(--alt-display-tracking) !important;
  font-size: clamp(34px, 5.2vw, 78px) !important;
  line-height: 0.98 !important;
  transform: scaleX(var(--alt-display-condense)) !important;
  transform-origin: center center !important;
  max-width: none !important;
  width: auto !important;
  margin-inline: auto !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
}

@media (max-width: 760px) {
  .index-section .section-heading h2,
  .index-section .index-heading-clean h2 {
    font-size: clamp(30px, 10vw, 52px) !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }
}

/* =========================================================
   V9.1.10j SIDE TEST — Andromeda display title system
   Technical validation only.
   Replace Montserrat-Alt1 title usage with Andromeda.
   VA 25 = 0.025em tracking.
   Width compression changed from 90% to 100%.
   Font file expected in /fonts as Andromeda-eR2n.woff2.
   ========================================================= */
@font-face {
  font-family: "Andromeda";
  src: url("../fonts/Andromeda-eR2n.woff2") format("woff2"),
       url("../fonts/Andromeda-eR2n.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --alt-display: "Andromeda", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --alt-display-tracking: 0.025em;
  --alt-display-condense: 1;
}

/* Replace all former Montserrat-Alt1 display-title surfaces with Andromeda. */
.hero h1,
.section-heading h2,
.about-title h2,
.card-copy h3,
.index-row strong,
.project-title-block h2,
.chapter-copy h3,
.photo-series-title,
.photo-project-heading,
.photo-category-title,
.placeholder-title,
.coming-soon-title,
.photography-section .photo-card-copy h3,
.photography-grid .photo-card-copy h3,
.index-section .section-heading h2,
.index-section .index-heading-clean h2 {
  font-family: var(--alt-display) !important;
  font-weight: 500 !important;
  letter-spacing: var(--alt-display-tracking) !important;
  transform: scaleX(1) !important;
  font-stretch: normal !important;
}

/* Keep centered titles centered now that there is no horizontal compression. */
.placeholder-title,
.coming-soon-title,
.index-section .section-heading h2,
.index-section .index-heading-clean h2 {
  transform-origin: center center !important;
}

/* Keep left-column project and card titles anchored from the left. */
.hero h1,
.section-heading h2,
.about-title h2,
.card-copy h3,
.index-row strong,
.project-title-block h2,
.chapter-copy h3,
.photo-series-title,
.photo-project-heading,
.photo-category-title,
.photography-section .photo-card-copy h3,
.photography-grid .photo-card-copy h3 {
  transform-origin: left center !important;
}

/* Override earlier mobile-specific title compression rules. */
@media (max-width: 1120px) {
  .photography-section .photo-card-copy h3,
  .photography-grid .photo-card-copy h3,
  #projectContent.photography-project .project-title-block h2,
  .project-view-inner.photography-project .project-title-block h2 {
    letter-spacing: var(--alt-display-tracking) !important;
    transform: scaleX(1) !important;
  }
}

@media (max-width: 760px) {
  :root { --alt-display-tracking: 0.025em; }

  .hero h1,
  .section-heading h2,
  .about-title h2,
  .card-copy h3,
  .index-row strong,
  .project-title-block h2,
  .chapter-copy h3,
  .photo-series-title,
  .photo-project-heading,
  .photo-category-title,
  .placeholder-title,
  .coming-soon-title,
  .photography-section .photo-card-copy h3,
  .photography-grid .photo-card-copy h3,
  #projectContent.photography-project .project-title-block h2,
  .project-view-inner.photography-project .project-title-block h2,
  .index-section .section-heading h2,
  .index-section .index-heading-clean h2 {
    letter-spacing: var(--alt-display-tracking) !important;
    transform: scaleX(1) !important;
  }
}


/* v9.1.10k — Project 03 typographic poster detail layout
   Main poster is enlarged slightly, while four detail crops occupy the right-side empty area. */
#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .chapter-grid {
  grid-template-columns: minmax(300px, 1.08fr) minmax(180px, 0.64fr) minmax(180px, 0.64fr);
  grid-auto-rows: minmax(260px, auto);
  align-items: stretch;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-main {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: clamp(620px, 62vw, 920px);
  padding: clamp(18px, 2vw, 34px);
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-main button {
  min-height: clamp(560px, 56vw, 820px);
  max-height: none;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail {
  grid-column: auto;
  grid-row: auto;
  min-height: clamp(270px, 28vw, 430px);
  padding: clamp(12px, 1.4vw, 22px);
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail button {
  min-height: clamp(190px, 20vw, 320px);
  max-height: 38vh;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail figcaption {
  font-size: 12px;
  line-height: 1.28;
}

@media (max-width: 1180px) {
  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .chapter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .chapter-grid {
    grid-template-columns: 1fr;
  }

  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-main,
  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
  }

  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-main button,
  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail button {
    min-height: clamp(240px, 74vw, 520px);
    max-height: none;
  }
}


/* v9.1.10l — Project 03 poster detail layout refinement
   Main poster stays enlarged on the left; the four detail crops form one right-side column with a single shared caption. */
#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .chapter-grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(230px, 0.55fr) !important;
  grid-template-rows: repeat(4, minmax(120px, 1fr)) auto !important;
  align-items: stretch;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-main {
  grid-column: 1 !important;
  grid-row: 1 / 6 !important;
  min-height: clamp(660px, 60vw, 940px) !important;
  padding: clamp(18px, 2vw, 34px);
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-main button {
  min-height: clamp(600px, 56vw, 860px) !important;
  max-height: none;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail {
  grid-column: 2 !important;
  min-height: clamp(130px, 12vw, 210px) !important;
  padding: clamp(8px, 1vw, 16px) !important;
  gap: 0;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail:nth-of-type(2) { grid-row: 1 !important; }
#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail:nth-of-type(3) { grid-row: 2 !important; }
#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail:nth-of-type(4) { grid-row: 3 !important; }
#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail:nth-of-type(5) { grid-row: 4 !important; }

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail button {
  min-height: clamp(100px, 9.2vw, 178px) !important;
  max-height: none !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail figcaption {
  display: none !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .poster-detail-shared-caption {
  grid-column: 2 !important;
  grid-row: 5 !important;
  margin: 0;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
  padding: 12px clamp(12px, 1.2vw, 18px);
  border-top: 1px solid var(--soft-line);
  min-height: 52px;
}

@media (max-width: 1180px) {
  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .chapter-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }

  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-main,
  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail,
  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .poster-detail-shared-caption {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  #projectContent[data-project-id="typographic-poster"] .project-chapter:first-of-type .asset-card.poster-detail figcaption {
    display: none !important;
  }
}

/* v9.1.10m — Project 03 detail layout hard fix
   Use a dedicated right-side panel so detail crops no longer inherit individual captions. */
#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .chapter-grid.poster-detail-composition {
  grid-template-columns: minmax(360px, 1.08fr) minmax(250px, 0.62fr) !important;
  grid-template-rows: auto !important;
  align-items: stretch !important;
  gap: 1px !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .asset-card.poster-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-height: clamp(690px, 58vw, 940px) !important;
  padding: clamp(18px, 2vw, 34px) !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .asset-card.poster-main button {
  min-height: clamp(620px, 54vw, 860px) !important;
  max-height: none !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(690px, 58vw, 940px);
  background: var(--line);
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-crop-grid {
  display: grid;
  grid-template-rows: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel .asset-card.poster-detail {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
  padding: clamp(8px, 1vw, 15px) !important;
  gap: 0 !important;
  background: var(--paper);
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel .asset-card.poster-detail button {
  min-height: clamp(118px, 11vw, 190px) !important;
  max-height: none !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel .asset-card.poster-detail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel .asset-card.poster-detail figcaption {
  display: none !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-shared-caption {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: 0 !important;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  padding: 13px clamp(12px, 1.2vw, 18px);
  border-top: 1px solid var(--soft-line);
  min-height: 62px;
}

@media (max-width: 1180px) {
  #projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .chapter-grid.poster-detail-composition {
    grid-template-columns: 1fr !important;
  }
  #projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel,
  #projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .asset-card.poster-main {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  #projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-crop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 760px) {
  #projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-crop-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  #projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel,
  #projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .asset-card.poster-main {
    min-height: auto !important;
  }
}


/* v9.1.10n — Project 03 detail crop frame cleanup
   Remove the black frame/gutters from the four right-side detail crops while preserving the shared caption layout. */
#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel,
#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-crop-grid {
  background: transparent !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-crop-grid {
  gap: clamp(10px, 1.1vw, 18px) !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel .asset-card.poster-detail {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel .asset-card.poster-detail button {
  background: transparent !important;
}

#projectContent[data-project-id="typographic-poster"] .project-chapter.poster-detail-chapter .poster-detail-panel .asset-card.poster-detail img {
  background: transparent !important;
}

/* v9.1.10p — Project 05 vector portrait detail layout
   Add a right-side detail column for eye, face, and construction crops without changing the rest of the project system. */
#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .chapter-grid.pure-art-detail-composition {
  grid-template-columns: minmax(420px, 1.06fr) minmax(220px, 0.46fr) !important;
  grid-template-rows: auto !important;
  align-items: stretch !important;
  gap: clamp(18px, 2vw, 34px) !important;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .asset-card.vector-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-height: clamp(620px, 54vw, 900px) !important;
  padding: clamp(18px, 2vw, 34px) !important;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .asset-card.vector-main button {
  min-height: clamp(560px, 50vw, 820px) !important;
  max-height: none !important;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .asset-card.vector-main img {
  object-fit: contain !important;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(620px, 54vw, 900px);
  align-self: stretch;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-crop-grid {
  display: grid;
  grid-template-rows: 0.78fr 0.78fr 1.2fr;
  gap: clamp(16px, 1.35vw, 24px);
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-panel .asset-card.vector-detail {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-panel .asset-card.vector-detail button {
  min-height: clamp(130px, 13vw, 220px) !important;
  max-height: none !important;
  background: transparent !important;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-panel .asset-card.vector-detail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent !important;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-panel .asset-card.vector-detail figcaption {
  display: none !important;
}

#projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-shared-caption {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: clamp(12px, 1vw, 18px) 0 0 !important;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
}

@media (max-width: 1180px) {
  #projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .chapter-grid.pure-art-detail-composition {
    grid-template-columns: 1fr !important;
  }
  #projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-panel,
  #projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .asset-card.vector-main {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  #projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-crop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(160px, 1fr);
  }
}

@media (max-width: 760px) {
  #projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-crop-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  #projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .pure-art-detail-panel,
  #projectContent[data-project-id="pure-art-vector"] .project-chapter.pure-art-detail-chapter .asset-card.vector-main {
    min-height: auto !important;
  }
}


/* v9.1.10r — Project 06 safety poster refinement
   Arrange early sketches into balanced pairs and add a right-side detail column for the final yellow poster. */
#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-early-chapter .chapter-grid.safety-early-composition {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  gap: 1px !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-early-chapter .asset-card.safety-early-item {
  grid-column: auto !important;
  min-height: clamp(520px, 44vw, 760px) !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-early-chapter .asset-card.safety-early-item button {
  min-height: clamp(430px, 38vw, 640px) !important;
  max-height: none !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-early-chapter .asset-card.safety-early-item img {
  object-fit: contain !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .chapter-grid.safety-resolved-composition {
  grid-template-columns: minmax(420px, 1.06fr) minmax(220px, 0.46fr) !important;
  grid-template-rows: auto !important;
  align-items: stretch !important;
  gap: clamp(18px, 2vw, 34px) !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .asset-card.safety-final-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-height: clamp(700px, 60vw, 980px) !important;
  padding: clamp(18px, 2vw, 34px) !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .asset-card.safety-final-main button {
  min-height: clamp(640px, 55vw, 900px) !important;
  max-height: none !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .asset-card.safety-final-main img {
  object-fit: contain !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(700px, 60vw, 980px);
  align-self: stretch;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-crop-grid {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.15vw, 22px);
  min-height: 0;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-panel .asset-card.safety-detail {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-panel .asset-card.safety-detail button {
  min-height: clamp(150px, 16vw, 250px) !important;
  max-height: none !important;
  background: transparent !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-panel .asset-card.safety-detail img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: transparent !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-panel .asset-card.safety-detail figcaption {
  display: none !important;
}

#projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-shared-caption {
  grid-column: auto !important;
  grid-row: auto !important;
  margin: clamp(12px, 1vw, 18px) 0 0 !important;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
}

@media (max-width: 1180px) {
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .chapter-grid.safety-resolved-composition {
    grid-template-columns: 1fr !important;
  }
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-panel,
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .asset-card.safety-final-main {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-crop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(160px, 1fr);
  }
}

@media (max-width: 760px) {
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-early-chapter .chapter-grid.safety-early-composition,
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-crop-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
  }
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-early-chapter .asset-card.safety-early-item,
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .safety-detail-panel,
  #projectContent[data-project-id="safety-awareness-poster"] .project-chapter.safety-resolved-chapter .asset-card.safety-final-main {
    min-height: auto !important;
  }
}


/* v9.1.10t — Project 10 BAUHAUS layout correction
   The previous selector used :first-of-type, but the project hero is also a section,
   so the rule could miss the first chapter and leave the vertical piece in the wrong row.
   This targets the Bauhaus chapter cards directly: the wide alternative wordmark gets
   its own full row, then the two vertical compositions sit together in a 6/6 row. */
#projectContent[data-project-id="bauhaus-65th-anniversary-ad"] .project-chapter .asset-card.bauhaus-wide-full {
  grid-column: span 12 !important;
}

#projectContent[data-project-id="bauhaus-65th-anniversary-ad"] .project-chapter .asset-card.bauhaus-bottom-pair {
  grid-column: span 6 !important;
}

#projectContent[data-project-id="bauhaus-65th-anniversary-ad"] .project-chapter .asset-card.bauhaus-bottom-pair button {
  min-height: clamp(500px, 44vw, 760px) !important;
  max-height: none !important;
}

#projectContent[data-project-id="bauhaus-65th-anniversary-ad"] .project-chapter .asset-card.bauhaus-bottom-pair img {
  object-fit: contain !important;
}

@media (max-width: 760px) {
  #projectContent[data-project-id="bauhaus-65th-anniversary-ad"] .project-chapter .asset-card.bauhaus-wide-full,
  #projectContent[data-project-id="bauhaus-65th-anniversary-ad"] .project-chapter .asset-card.bauhaus-bottom-pair {
    grid-column: span 12 !important;
  }
  #projectContent[data-project-id="bauhaus-65th-anniversary-ad"] .project-chapter .asset-card.bauhaus-bottom-pair button {
    min-height: clamp(420px, 92vw, 680px) !important;
  }
}


/* =========================================================
   V9.1.10u — Bilingual EN/DE and Chakra Petch title system
   All former Andromeda display surfaces now use Chakra Petch.
   Font file expected in /fonts as ChakraPetch-Regular.woff2.
   ========================================================= */
@font-face {
  font-family: "Chakra Petch Portfolio";
  src: url("../fonts/ChakraPetch-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --alt-display: "Chakra Petch Portfolio", "Chakra Petch", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --alt-display-tracking: 0.025em;
  --alt-display-condense: 1;
}

/* Language switcher in the top navigation */
.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 96px;
  padding: 12px 18px;
  border-left: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lang-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
  letter-spacing: inherit;
  opacity: 0.42;
}
.lang-button.active { opacity: 1; }
.lang-button:hover { opacity: 1; }

/* Make German text safer inside the existing frames. */
body[data-lang="de"] {
  hyphens: auto;
}
body[data-lang="de"] .project-title-block h2,
body[data-lang="de"] .card-copy h3,
body[data-lang="de"] .photography-section .photo-card-copy h3,
body[data-lang="de"] .photography-grid .photo-card-copy h3,
body[data-lang="de"] .index-section .section-heading h2,
body[data-lang="de"] .about-title h2,
body[data-lang="de"] .section-heading h2 {
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  max-width: 100% !important;
}
body[data-lang="de"] .card-copy h3 {
  font-size: clamp(18px, 2.05vw, 31px) !important;
  line-height: 1.04 !important;
}
body[data-lang="de"] #projectContent .project-title-block h2,
body[data-lang="de"] .project-view-inner .project-title-block h2 {
  font-size: clamp(30px, 3.75vw, 60px) !important;
  line-height: 1.02 !important;
}
body[data-lang="de"] .chapter-copy h3,
body[data-lang="de"] #projectContent .chapter-copy h3,
body[data-lang="de"] .project-view-inner .chapter-copy h3 {
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
  text-wrap: balance;
}
body[data-lang="de"] .archive-index-title,
body[data-lang="de"] .archive-index-description,
body[data-lang="de"] .project-summary p,
body[data-lang="de"] .about-copy p,
body[data-lang="de"] .about-facts strong,
body[data-lang="de"] figcaption {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-width: 900px) {
  .language-toggle { min-width: 82px; padding: 12px 12px; }
}
@media (max-width: 760px) {
  .language-toggle { border-left: 1px solid var(--line); }
  body[data-lang="de"] .card-copy h3 {
    font-size: clamp(18px, 5.4vw, 28px) !important;
  }
}

/* =========================================================
   V9.1.10u-font-fix — language-isolated title fonts
   EN/default: Andromeda. DE: Chakra Petch.
   This block only overrides display/title typography surfaces;
   images, backgrounds, and animated line-field rules are untouched.
   ========================================================= */
@font-face {
  font-family: "Andromeda Portfolio";
  src: url("../fonts/Andromeda-eR2n.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Chakra Petch Portfolio";
  src: url("../fonts/ChakraPetch-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --title-display-en: "Andromeda Portfolio", "Andromeda", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --title-display-de: "Chakra Petch Portfolio", "Chakra Petch", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --alt-display: var(--title-display-en);
  --alt-display-tracking: 0.025em;
  --alt-display-condense: 1;
}

body:not([data-lang="de"]),
body[data-lang="en"] {
  --alt-display: var(--title-display-en);
  --alt-display-tracking: 0.025em;
  --alt-display-condense: 1;
}

body[data-lang="de"] {
  --alt-display: var(--title-display-de);
  --alt-display-tracking: 0.025em;
  --alt-display-condense: 1;
}

/* Display headings and project-title surfaces only. */
.hero h1,
.section-heading h2,
.about-title h2,
.card-copy h3,
.photography-section .photo-card-copy h3,
.photography-grid .photo-card-copy h3,
.index-row strong,
.archive-index-title,
.project-title-block h2,
#projectContent .project-title-block h2,
.project-view-inner .project-title-block h2,
.photo-series-title,
.photo-project-heading,
.photo-category-title,
.placeholder-title,
.coming-soon-title,
.index-section .section-heading h2,
.index-section .index-heading-clean h2 {
  font-family: var(--alt-display) !important;
  letter-spacing: var(--alt-display-tracking) !important;
  transform: scaleX(var(--alt-display-condense)) !important;
}



/* =========================================================
   Final targeted fix — DE landscape detail title + Index font reset
   Keeps the DE→EN refresh behavior and all layout rules unchanged.
   ========================================================= */
#projectContent[data-project-id="exploring-creative-landscape-photography"] .project-title-block h2.landscape-de-title,
.project-view-inner[data-project-id="exploring-creative-landscape-photography"] .project-title-block h2.landscape-de-title {
  display: block !important;
  font-family: var(--title-display-de) !important;
  font-size: clamp(30px, 2.55vw, 44px) !important;
  line-height: 1.08 !important;
  letter-spacing: var(--alt-display-tracking) !important;
  transform: none !important;
  max-width: 100% !important;
  width: 100% !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: auto !important;
}

#projectContent[data-project-id="exploring-creative-landscape-photography"] .project-title-block h2.landscape-de-title span,
.project-view-inner[data-project-id="exploring-creative-landscape-photography"] .project-title-block h2.landscape-de-title span {
  display: block !important;
  white-space: nowrap !important;
}

.index-section .section-heading h2,
.index-section .index-heading-clean h2,
.index-section .archive-index-title,
.index-section .index-row strong {
  font-family: var(--sans) !important;
  transform: none !important;
  font-stretch: normal !important;
}

.index-section .section-heading h2,
.index-section .index-heading-clean h2 {
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
  text-transform: uppercase !important;
}

.index-section .archive-index-title,
.index-section .index-row strong {
  font-weight: 520 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}
