:root {
  --paper: #f6f5ed;
  --ink: #2B2B2B;
  --olive: #888467;
  --accent: #9c7947;
  --accent-dark: #62584C;
  /* Subtle hero grain. Set to 0 to disable; default is 4%. */
  --hero-grain-opacity: 0.04;
  --line: #dedbc8;
  --white: #fff;
  --body: 'effra-cc','Lato',Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
}

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

button,input,textarea {
  font: inherit;
}

button,a,input,textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 10px;
  background: var(--paper);
  z-index: 20;
}

.skip:focus {
  top: 10px;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  min-height: 86px;
  padding: 20px 24px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav a,.footer a {
  position: relative;
}

.nav a:after,.footer a:after {
  content: '';
  height: 1px;
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}

.nav a:hover:after,.footer a:hover:after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 640px;
  height: 62.97vw;
  max-height: 1100px;
  color: var(--paper);
  background: #2B2B2B;
}

.hero-media {
  position: absolute;
  width: 123.046875%;
  height: auto;
  max-width: none;
  left: -8.98736%;
  top: -.39636vw;
  z-index: -2;
}

/* Fixed-size grain beneath the text and dark overlay. */
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/film-grain.svg');
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: var(--hero-grain-opacity);
  mix-blend-mode: soft-light;
  z-index: -1;
  pointer-events: none;
}

.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43,43,43,.28);
  z-index: -1;
  pointer-events: none;
}

.hero .nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.hero-content {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: min(680px,65%);
  text-align: center;
}

.logo {
  display: block;
  width: 94px;
  height: 94px;
  margin: 0 auto 22px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: .08em;
  margin: 0 0 6px;
}

.role {
  font-size: 12px;
  letter-spacing: .24em;
  font-weight: 200;
  margin: 0 0 34px;
}

.tagline {
  font-family: 'Fraunces',Georgia,serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 22px;
  letter-spacing: 0;
}

.intro {
  font-size: 16px;
  line-height: 1.97;
  font-weight: 200;
}

.intro p {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border: 1px solid var(--olive);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s,color .2s,border-color .2s;
}

.hero .button {
  background: transparent;
  border-color: var(--paper);
  margin-top: 34px;
  min-width: 290px;
}

.hero .button:hover {
  background: var(--accent-dark);
  color: var(--paper);
  border-color: var(--accent-dark);
}

.button:hover {
  background: #39352f;
  border-color: var(--accent);
}

.section-title {
  text-align: center;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 54px;
}

.work {
  padding: 66px 4.6875% 88px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 66px 24px;
}

.card {
  text-align: center;
  display: block;
}

.card-image {
  background: white;
  padding: 10%;
  box-shadow: 0 2px 8px #2b2b2b0b;
  aspect-ratio: 379/281;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .4s;
}

.card h3 {
  font-size: 14px;
  line-height: 1.35;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0;
  max-width: 300px;
  min-height: 2.7em;
  margin: 22px auto 6px;
}

.card p {
  font-size: 14px;
  color: var(--olive);
  margin: 0;
  letter-spacing: 0;
}

.card:hover img,.card:focus-visible img {
  filter: grayscale(0);
}

.why {
  background: var(--ink);
  padding: 54px 6.25% 60px;
}

.why .section-title {
  padding-bottom: 40px;
  border-bottom: 1px solid #55534b;
  margin-bottom: 46px;
}

.stats {
  max-width: 1680px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  text-align: center;
  gap: 24px;
}

.stat strong {
  display: block;
  font-weight: 100;
  font-size: 72px;
  line-height: 1.1;
  color: var(--accent);
}

.stat span {
  display: block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  margin-top: 16px;
}

.contact {
  padding: 62px 24px 80px;
}

.contact .section-title {
  margin-bottom: 40px;
}

.contact form {
  max-width: 620px;
  margin: auto;
}

.contact input,.contact textarea {
  border: 1px solid var(--line);
  background: white;
  width: 100%;
  padding: 12px 18px;
  border-radius: 0;
  display: block;
  margin-bottom: 18px;
  font-weight: 200;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s;
}

.contact textarea {
  resize: vertical;
  min-height: 220px;
}

.contact input:focus,.contact textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.contact input::placeholder,.contact textarea::placeholder {
  color: #817d6a;
  opacity: 1;
}

.contact .button {
  display: flex;
  min-width: 290px;
  margin: 44px auto 0;
}

.form-status {
  text-align: center;
  font-size: 14px;
}

.footer {
  background: var(--ink);
  color: #c1bea7;
  padding: 31px 4.6875%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 200;
}

.footer p {
  margin: 0;
}

.footer-divider {
  display: inline-block;
  margin-inline: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.project-header {
  background: #2B2B2B;
}

.project-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  min-height: 88px;
  padding: 20px;
  background: #fff;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--olive);
  letter-spacing: 0;
}

.project-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.arrow {
  position: relative;
  top: -2px;
  flex-shrink: 0;
  width: 28px;
  height: 14px;
  transition: transform .2s;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.1;
}

.previous:hover .arrow {
  transform: translateX(-4px);
  color: var(--accent);
}

.next:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

.project-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100px;
  padding: 28px 10%;
  border-bottom: 1px solid var(--line);
}

.project-heading h1,.project-heading h2 {
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
}

.project-heading>a {
  position: absolute;
  right: 4%;
  font-size: 12px;
  color: var(--olive);
  font-weight: 200;
}

.module-row {
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
}

.module {
  grid-column: span var(--span,12);
  min-width: 0;
  background: var(--paper);
}

.module img {
  display: block;
  width: 100%;
  height: auto;
}

.module.media {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module.media img {
  object-fit: contain;
}

.module.copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px,4vw,80px);
}

.copy-inner {
  max-width: 600px;
}

.copy h2 {
  font-size: 22px;
  font-weight: 400;
  margin-top: 0;
}

.copy p {
  font-size: 16px;
  line-height: 1.65;
}

.module.video {
  background: #008ed1;
}

.module video {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.presentation {
  background: white;
  padding: 40px 5%;
  text-align: center;
}

.presentation iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
  margin-bottom: 15px;
}

.presentation a {
  color: var(--olive);
  text-decoration: underline;
}

.project-note {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--olive);
}

.disabled-link {
  opacity: .65;
  cursor: default;
}

.notice {
  font-size: 13px;
  color: var(--olive);
  text-align: center;
}

.menu-button {
  display: none;
}

@media(min-width:1800px) {
  .hero-content {
    top: 22%;
    width: 720px;
  }
  .hero-media {
    top: calc(-.39636 * 1800px / 100);
  }
  .work {
    padding-top: 80px;
  }
  .cards {
    column-gap: 36px;
    row-gap: 85px;
  }
  .card h3 {
    max-width: 360px;
  }
  .hero {
    max-height: none;
  }
  .hero .logo {
    width: 110px;
    height: 110px;
  }
}

@media(max-width:900px) {
  .nav {
    gap: 24px;
    font-size: 11px;
  }
  .hero {
    height: 760px;
  }
  .hero-media {
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: 48% center;
  }
  .hero-content {
    width: 70%;
    top: 20%;
  }
  .cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .section-title {
    font-size: 18px;
  }
  .project-nav {
    gap: 25px;
  }
  .stat strong {
    font-size: 60px;
  }
}

@media(max-width:600px) {
  .nav {
    min-height: 74px;
    gap: 15px;
    padding: 22px 14px;
    font-size: 10px;
    letter-spacing: .14em;
    flex-wrap: wrap;
  }
  .hero {
    height: auto;
    min-height: 820px;
  }
  .hero:after {
    background: rgba(43,43,43,.3);
  }
  .hero-content {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    padding: 145px 28px 90px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .logo {
    width: 84px;
    height: 84px;
  }
  .tagline {
    font-size: 23px;
  }
  .intro {
    font-size: 16px;
  }
  .hero .button {
    min-width: 0;
    width: 100%;
    max-width: 290px;
    margin-top: 24px;
  }
  .role {
    margin-bottom: 28px;
  }
  .work {
    padding: 50px 24px 60px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .card h3 {
    min-height: 0;
    margin-top: 20px;
  }
  .section-title {
    font-size: 16px;
    margin-bottom: 34px;
  }
  .stats {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why {
    padding: 44px 24px;
  }
  .why .section-title {
    padding-bottom: 28px;
    margin-bottom: 36px;
  }
  .stat strong {
    font-size: 66px;
  }
  .contact {
    padding: 48px 24px 60px;
  }
  .contact .button {
    min-width: 0;
    width: 100%;
  }
  .footer {
    padding: 31px 24px;
    align-items: flex-start;
    font-size: 12px;
  }
  .project-nav {
    gap: 12px;
    justify-content: space-between;
    font-size: 10px;
    padding: 14px;
  }
  .project-nav a {
    gap: 5px;
  }
  .arrow {
    width: 19px;
  }
  .project-heading {
    padding: 25px 24px;
    min-height: 90px;
  }
  .project-heading h1,.project-heading h2 {
    font-size: 17px;
  }
  .project-heading>a {
    display: none;
  }
  .module-row {
    display: block;
  }
  .module.copy {
    padding: 32px 24px;
  }
  .module video {
    max-height: none;
  }
  .presentation {
    padding: 24px 0;
  }
  .presentation iframe {
    aspect-ratio: 4/3;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    transition: none!important;
    animation: none!important;
  }
}

/* Project canvases are white; the homepage retains its off-white paper tone. */
.project-page,
.project-page .module {
  background-color: #fff;
}

.maxsold-page .module-row {
  align-items: stretch;
}

.maxsold-page .group {
  min-width: 0;
}

.maxsold-page .copy {
  padding: 0;
  display: block;
}

.maxsold-page .copy-inner {
  max-width: none;
}

.maxsold-page .copy h2 {
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 400;
}

.maxsold-page .copy p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.maxsold-page .goals-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 7% 13%;
  background: #fff url('assets/maxsold/Background X.svg') center / 90% auto no-repeat;
}

.maxsold-page .goals-panel .module {
  background: transparent;
}

.maxsold-page .video {
  display: flex;
  align-items: center;
  background: #2B2B2B;
  min-height: 38vw;
}

.maxsold-page .video video {
  max-height: none;
}

.maxsold-page .context-panel {
  padding: 32px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.maxsold-page .favicons {
  width: 100%;
  max-width: 280px;
}

.maxsold-page .context-panel > .copy:last-child {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.maxsold-page .logo-stack {
  display: flex;
  flex-direction: column;
}

.maxsold-page .logo-stack .media {
  flex: 1;
  min-height: 120px;
  padding: 24px;
}

.maxsold-page .logo-stack img {
  width: 23.333%;
  max-width: 188px;
  min-width: 110px;
}

.maxsold-page .logo-light { background: #f4f4f4; }
.maxsold-page .logo-navy { background: #001d4d; }
.maxsold-page .logo-charcoal { background: #2B2B2B; }

.maxsold-page .text-band {
  padding: 48px 13.125%;
}

.maxsold-page .derived-palettes,
.maxsold-page .proposed-palettes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 15%;
}

.maxsold-page .derived-palettes > .media {
  width: 75%;
  max-width: 360px;
}

.maxsold-page .proposed-palettes > .media {
  width: 56.25%;
  max-width: 270px;
}

.maxsold-page .proposed-logos {
  padding: 64px 0;
}

.maxsold-page .brand-sheet {
  padding: 24px 21.5% 40px;
}

.maxsold-page .project-heading h2 {
  font-size: 14px;
}

.maxsold-page .project-heading:has(h2) {
  min-height: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.maxsold-page .presentation-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ededed;
  color: #2B2B2B;
  font-size: 14px;
}

@media (max-width: 600px) {
  .maxsold-page .goals-panel,
  .maxsold-page .context-panel,
  .maxsold-page .text-band,
  .maxsold-page .derived-palettes,
  .maxsold-page .proposed-palettes {
    padding: 32px 24px;
  }

  .maxsold-page .goals-panel { min-height: 360px; }
  .maxsold-page .logo-stack .media { min-height: 120px; }
  .maxsold-page .proposed-logos,
  .maxsold-page .brand-sheet { padding: 24px; }
  .maxsold-page .derived-palettes > .media { max-width: 360px; }
  .maxsold-page .proposed-palettes > .media { max-width: 280px; }
  .maxsold-page .video { min-height: 0; }
}

/* Preserve the published player proportions, including its navigation bar. */
.maxsold-page .presentation {
  padding: 0;
  background: #fff;
}

.maxsold-page .presentation iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 569;
  margin: 0;
}

.maxsold-page .presentation > a {
  display: inline-block;
  margin: 16px 24px;
}

/* Full-width dividers and warm section separators from the project mockup. */
.project-page .project-nav {
  border-bottom: 1px solid var(--line);
}

.maxsold-page .text-band,
.maxsold-page .project-heading:has(h2) {
  background-color: var(--paper);
}

.maxsold-page .text-band .module {
  background: transparent;
}

.maxsold-page .proposed-logos img {
  width: 33.333%;
  max-width: none;
}

/* Crop only the spare boards above and below the vases. */
.maxsold-page .decorations-crop {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  align-self: start;
}

.maxsold-page .decorations-crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 600px) {
  .maxsold-page .proposed-logos img { width: 80%; max-width: none; }
  .maxsold-page .derived-palettes > .media { width: 75%; }
  .maxsold-page .proposed-palettes > .media { width: 56.25%; }
}

/* Keep the long narrative paragraphs readable on wide displays. */
.maxsold-page .text-band {
  padding: 48px 24px;
}

.maxsold-page .text-band .copy-inner {
  width: 50vw;
  text-align: left;
  margin-inline: auto;
}

.maxsold-page .typography-sheet {
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .maxsold-page .text-band .copy-inner {
    width: 100%;
    max-width: 640px;
  }
}

@media (max-width: 600px) {
  .maxsold-page .typography-sheet { padding-bottom: 48px; }
  .maxsold-page .text-band { padding: 32px 24px; }
}

/* Extra breathing room around the complete colour palette artwork. */
.maxsold-page .palette-sheet {
  padding-top: 48px;
  padding-bottom: 80px;
}

@media (max-width: 600px) {
  .maxsold-page .proposed-logos,
  .maxsold-page .palette-sheet {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Books: compact, lazy-loaded previews with untouched originals on demand. */
:is(.books-page, .gallery-page) .book-preview {
  padding: 28px 24px;
  text-align: center;
}

.book-open {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-inline: auto;
  cursor: zoom-in;
}

:is(.books-page, .gallery-page) .book-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(860px, 100%);
  max-height: 700px;
  margin-inline: auto;
  object-fit: contain;
}

.book-viewer-open { overflow: hidden; }

.book-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 64px 64px 72px;
  margin: 0;
  border: 0;
  background: #2B2B2B;
  color: var(--paper);
}

.book-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-viewer::backdrop { background: #2B2B2B; }

.book-viewer-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.book-viewer button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  cursor: pointer;
}

.book-viewer-close { top: 12px; right: 16px; }
.book-viewer-prev { left: 8px; top: calc(50% - 24px); }
.book-viewer-next { right: 8px; top: calc(50% - 24px); }

.book-viewer-bottom {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
}

.book-original-link { text-decoration: underline; }

@media (max-width: 600px) {
  :is(.books-page, .gallery-page) .book-preview { padding: 18px 16px; }
  .book-viewer { padding: 64px 48px 80px; }
  .book-viewer-bottom { gap: 12px; font-size: 12px; }
}

/* Separate the final project navigation from the image feed. */
.project-page main + .project-nav {
  border-top: 1px solid var(--line);
}

/* Reusable single-column project text and section headings. */
.project-page .section-copy {
  background: var(--paper);
  padding: 36px 24px;
}

.section-copy-inner {
  width: min(100%, 860px);
  margin-inline: auto;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}

.section-copy-inner h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}

.section-copy-inner p { margin: 0; }
.section-copy-inner p + p { margin-top: 12px; }
.section-copy-inner a { text-decoration: underline; text-underline-offset: 4px; }
.section-copy-inner a:hover { color: var(--accent); }

/* Multi-column galleries keep the saved image order, read left to right. */
.gallery-columns .module-row {
  align-items: start;
}

.project-page .image-bordered img {
  border: 1px solid var(--line);
}

/* Restaurant photographs use the original file at its natural responsive size. */
.project-page .full-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
}

/* A deck image and its link form one white section between beige headings. */
.gallery-page .deck-preview {
  padding-top: 56px;
  padding-bottom: 56px;
}

.deck-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0;
}

.deck-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

@media (max-width: 1024px) {
  .gallery-columns .module-row {
    display: block;
  }
}

@media (max-width: 700px) {
  .gallery-page .deck-preview {
    padding-top: 36px;
    padding-bottom: 36px;
  }
}

/* Shared bounded grids: horizontal and vertical gutters stay equal on 4K. */
.compact-grid .project-gallery {
  --gallery-gap: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-gap);
  width: min(calc(100% - 48px), 1720px);
  margin: 48px auto;
  align-items: start;
}
.compact-grid .project-gallery > .module-row { display: contents; }
.compact-grid .project-gallery .module { grid-column: auto; }
.compact-grid .project-gallery .section-copy { grid-column: 1 / -1; }
.compact-grid .project-gallery .book-preview { padding: 0; }
.compact-grid .book-preview img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}
.project-todezzz .project-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1500px;
}
/* A white 4:5 canvas adds side space without cropping the clothing. */
.project-todezzz .portrait-canvas .book-open {
  aspect-ratio: 4 / 5;
  background: #fff;
  border: 1px solid var(--line);
}
.project-todezzz .portrait-canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}
.project-exportpackers .export-first .book-open {
  aspect-ratio: 1600 / 1273;
  overflow: hidden;
}
.project-exportpackers .export-first img {
  height: 100%;
  object-fit: cover;
}
.project-exportpackers :is(.align-inner-left, .align-inner-right) img {
  width: auto;
  height: min(35vw, 700px);
  max-width: 100%;
  object-fit: contain;
  margin: 0;
}
.project-exportpackers .align-inner-left .book-open { justify-content: flex-end; }
.project-exportpackers .align-inner-right .book-open { justify-content: flex-start; }
.project-calendar .project-gallery { width: min(50vw, 1920px); }
.project-calendar .project-gallery .calendar-hero { grid-column: 1 / -1; }
.project-calendar .calendar-hero .book-open {
  aspect-ratio: 1600 / 1065;
  overflow: hidden;
}
.project-calendar .calendar-hero img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-baroqme .project-gallery { max-width: 1600px; }
.project-watchfaces .project-gallery { max-width: 1000px; }
.project-watchfaces .book-preview img {
  width: auto;
  max-width: 100%;
  max-height: 700px;
}
/* Identical muted brown hover treatment for both homepage buttons. */
.hero .button:hover,
.contact .button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--paper);
}
@media (max-width: 1024px) {
  .compact-grid .project-gallery {
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 48px), 860px);
    --gallery-gap: 32px;
    margin-block: 32px;
  }
  .project-todezzz .portrait-canvas .book-open { max-width: 480px; }
  .project-exportpackers :is(.align-inner-left, .align-inner-right) .book-open {
    justify-content: center;
  }
  .project-exportpackers :is(.align-inner-left, .align-inner-right) img {
    height: auto;
    max-height: 700px;
  }
}

/* All artwork uses one quiet border; Watchfaces deliberately stays borderless. */
.project-page .module img,
.card:not([data-project="watchfaces"]) .card-image {
  border: 1px solid var(--line);
}
.project-watchfaces .module img { border: 0; }
.project-social .module img { border: 0; }
.project-todezzz .portrait-canvas img { border: 0; }
.project-calendar .calendar-hero .book-open,
.project-exportpackers .export-first .book-open { border: 1px solid var(--line); }
.project-calendar .calendar-hero img,
.project-exportpackers .export-first img { border: 0; }

/* Intro bands belong to the page, outside the constrained image grids. */
.project-page main > .section-copy {
  width: 100%;
  margin: 0;
}

/* Independent columns remove empty rows, while book groups never split. */
.independent-columns .project-gallery {
  --gallery-gap: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-gap);
  width: min(calc(100% - 48px), 1720px);
  margin: 48px auto;
  align-items: start;
}
.independent-columns .project-gallery > .module-row { display: contents; }
.independent-columns .project-gallery .flow-column {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
  min-width: 0;
}
.independent-columns .book-preview { padding: 0; }
.books-page .book-set {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.books-page .flow-column { gap: 56px; }
.books-page .flow-column:first-child .book-open { justify-content: flex-end; }
.books-page .flow-column:last-child .book-open { justify-content: flex-start; }
.books-page .flow-column .book-preview img {
  margin: 0;
  max-width: 100%;
}
.project-baroqme .project-gallery { max-width: 1600px; }
.project-watchfaces .project-gallery { max-width: 1190px; }
.project-watchfaces .book-preview img { max-height: 840px; }

@media (max-width: 1024px) {
  .independent-columns .project-gallery {
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 48px), 860px);
    --gallery-gap: 32px;
    margin-block: 32px;
  }
  .books-page .flow-column:first-child .book-open,
  .books-page .flow-column:last-child .book-open { justify-content: center; }
}

/* Roll-up banner: two landscape mockups left, the tall artwork right. */
.project-viewdance .flow-column:first-child .book-open { justify-content: flex-end; }
.project-viewdance .flow-column:last-child .book-open { justify-content: flex-start; }
.project-viewdance .flow-column .book-preview img {
  width: auto;
  max-width: 100%;
  max-height: 900px;
  margin: 0;
}
@media (max-width: 1024px) {
  .project-viewdance .flow-column:first-child .book-open,
  .project-viewdance .flow-column:last-child .book-open { justify-content: center; }
}

/* V19: consistent book gaps and the continuous, borderless MaxSold layout. */
.books-page .flow-column,
.books-page .book-set { gap: var(--gallery-gap); }
.maxsold-page .module img { border: 0; }

/* Viewdance roll-up columns share their top and bottom edges, without cropping. */
.project-viewdance .project-gallery {
  grid-template-columns: minmax(0, calc((100% - var(--gallery-gap)) * 0.4553944677 - var(--gallery-gap) * 0.3415458508)) minmax(0, 1fr);
}
.project-viewdance .flow-column .book-open { border: 1px solid var(--line); }
.project-viewdance .flow-column .book-preview img {
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  object-fit: contain;
}
.project-viewdance .flow-column:first-child .book-preview:first-child .book-open { aspect-ratio: 1.4081408141; }
.project-viewdance .flow-column:first-child .book-preview:last-child .book-open { aspect-ratio: 1.1307420495; }
.project-viewdance .flow-column:last-child .book-open { aspect-ratio: 0.7500000000; }

:is(.project-program, .project-posters) .flow-column:first-child .book-open { justify-content: flex-end; }
:is(.project-program, .project-posters) .flow-column:last-child .book-open { justify-content: flex-start; }
:is(.project-program, .project-posters) .flow-column img { margin: 0; max-width: 100%; }
@media (max-width: 1024px) {
  .project-viewdance .project-gallery { grid-template-columns: minmax(0, 1fr); }
  :is(.project-program, .project-posters) .flow-column .book-open { justify-content: center; }
}

/* V20: grouped artwork within full-width section headings. */
.project-page .section-layout {
  --layout-gap: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--layout-gap);
  width: min(calc(100% - 48px), 1720px);
  margin: 48px auto;
}
.section-layout > .module { grid-column: auto; }
.section-layout > .layout-wide { grid-column: 1 / -1; }
.project-page .section-layout .book-preview { padding: 0; }
.project-page .section-layout .book-preview img {
  width: 100%; height: auto; max-width: 100%; max-height: none;
}
.project-page .section-layout .layout-natural img { width: auto; max-width: min(100%, 860px); }
.project-page .equal-flyer {
  grid-template-columns: minmax(0, calc((100% - var(--layout-gap)) * var(--left-share) - var(--layout-gap) * var(--gap-share))) minmax(0, 1fr);
  align-items: start;
}
.flyer-left { display: flex; flex-direction: column; gap: var(--layout-gap); }
.project-page .source-collage {
  display: flex; flex-direction: column; gap: 12px;
  width: min(calc(100% - 48px), 1720px);
  margin: 48px auto;
}
.source-collage .collage-line { display: grid; gap: 12px; min-height: 0; }
.collage-one { grid-template-columns: 546fr 363fr 442fr; aspect-ratio: 1375 / 274; }
.collage-two { grid-template-columns: 502fr 217fr 196fr 424fr; aspect-ratio: 1375 / 282; }
.collage-three { grid-template-columns: 908fr 455fr; aspect-ratio: 1375 / 303; }
.project-page .source-collage .book-preview { grid-column: auto; padding: 0; min-height: 0; }
.source-collage .book-open { height: 100%; }
.project-page .source-collage .book-preview img {
  width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover;
}
.source-collage .collage-two > :nth-child(2) img { object-fit: contain; }
@media (max-width: 1024px) {
  .project-page .section-layout { --layout-gap: 32px; grid-template-columns: minmax(0, 1fr); }
  .source-collage .collage-line { grid-template-columns: repeat(2, minmax(0, 1fr)); aspect-ratio: auto; }
  .project-page .source-collage .book-preview img { height: auto; object-fit: contain; }
}
@media (max-width: 600px) {
  .source-collage .collage-line { grid-template-columns: minmax(0, 1fr); }
}
.equal-flyer { --left-share: 0.4522578421; --gap-share: 0.3309203723; }
.source-collage .collage-line { grid-template-rows: minmax(0, 1fr); }

/* V21: door hanger scale and brochure mockup crops. Originals stay intact. */
/* V22: balanced mockups, text width and matching standalone image widths. */
.honor-intro .section-copy-inner { width: min(100%, 1120px); }
.project-page .section-layout .honor-sky-crop .book-open {
  aspect-ratio: 1600 / 960;
}
.project-page .section-layout .gyro-grey-crop .book-open {
  aspect-ratio: 1600 / 1253;
}
.project-page .section-layout :is(.honor-sky-crop, .gyro-grey-crop) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gallery-page .book-preview.magazine-ad-matched img {
  width: min(100%, 981.25px);
  max-width: 100%;
  max-height: none;
}
.project-program .program-black-crop .book-open {
  aspect-ratio: 1600 / 1000;
  border: 1px solid var(--line);
}
.project-program .book-preview.program-black-crop img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border: 0;
}
.project-program .book-preview.program-blue-poster img {
  width: 100%;
  max-width: 100%;
  max-height: none;
}
.project-page .section-layout.door-hanger-layout {
  width: min(calc(75% - 36px), 1290px);
}
.gallery-page .book-preview.meating-flyer img {
  max-width: min(1075px, 100%);
  max-height: 875px;
}
.project-page .section-layout .brochure-wood-crop .book-open {
  aspect-ratio: 1600 / 1247;
}
.project-page .section-layout .brochure-grey-crop .book-open {
  aspect-ratio: 1600 / 1237;
}
.project-page .section-layout :is(.brochure-wood-crop, .brochure-grey-crop) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Trim mostly the left wood background and the right grey background. */
.project-page .section-layout .brochure-wood-crop img { object-position: 90% center; }
.project-page .section-layout .brochure-grey-crop img { object-position: 25% center; }
@media (max-width: 1024px) {
  .project-page .section-layout.door-hanger-layout {
    width: min(calc(100% - 48px), 860px);
  }
}

/* V23: balanced social media composition and bottom-only spread crop. */
.project-social .section-layout { width: min(calc(82% - 39.36px), 1410.4px); }
.project-program .program-black-crop .book-open { aspect-ratio: 1600 / 969; overflow: hidden; display: block; }
.project-program .book-preview.program-black-crop img { width: 100%; height: auto; transform: translateY(-8.333333%); }
.case-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .case-cards { grid-template-columns: 1fr; } }

/* Typography scale: section headings stay above preview titles. */
.section-title, .project-heading h1, .project-heading h2, .section-copy-inner h2 { font-size:24px; }
.copy h2 { font-size:26.4px; }
.card h3 { font-size:17.5px; min-height:0; margin-bottom:6px; }
@media(max-width:900px) { .section-title { font-size:21.6px; } }
@media(max-width:600px) { .section-title, .project-heading h1, .project-heading h2, .section-copy-inner h2 { font-size:19.2px; } .copy h2 { font-size:21px; } }

/* New portfolio previews. The two white images need a visible edge inside the mat. */
.card:is([data-project="exportpackers"],[data-project="todezzz"]) .card-image img { outline:1px solid #c6c6c6; outline-offset:-1px; }
.generative-art[hidden] { display:none; }
/* The current four cases keep two columns; additional cases naturally form 3 + 3. */
@media(min-width:901px) { .case-cards-expanded { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* Reserved navigation item follows the visibility of its future section. */
.nav a[hidden] { display:none !important; }

/* V29: compact gallery rhythm and shared internal portfolio heading scale. */
.cards { row-gap:46.2px; }
#work:has(+ .case-studies) { padding-bottom:58.67px; }
#work + .case-studies { padding-top:44px; position:relative; }
#work + .case-studies::before { content:''; position:absolute; top:0; left:4.6875%; right:4.6875%; height:1px; background:var(--line); }
.project-page .section-copy-inner, .project-page .copy p { line-height:1.6; }
.project-page .section-copy:has(h2) { min-height:80px; padding:28px 10%; display:flex; align-items:center; }
.project-page .section-copy-inner h2, .project-page .project-heading h2 { font-size:14px; line-height:1.4; font-weight:400; text-transform:uppercase; }
.project-page .section-copy:has(h2) .section-copy-inner { width:100%; max-width:none; }
.project-page .supporting-description p, .project-page .shoot-description p { font-size:16px; line-height:1.6; }
.project-collateral .book-preview:is(.meating-flyer,.magazine-ad-matched) { padding-block:48px; }
.project-page .borderless-collage img, .project-page .borderless-collage .book-open { border:0; outline:0; }
@media(min-width:1800px) {
 .cards { row-gap:59.5px; }
 #work + .case-studies { padding-top:53.33px; }
}
@media(max-width:600px) {
 .cards { row-gap:32.2px; }
 #work:has(+ .case-studies) { padding-bottom:40px; }
 #work + .case-studies { padding-top:33.33px; }
 #work + .case-studies::before { left:24px; right:24px; }
 .project-page .section-copy:has(h2) { padding:25px 24px; }
}

/* V30: center the Huawei source-image caption, retaining paragraph typography. */
.project-page .supporting-description .section-copy-inner { text-align:center; }
