/*
 * V47 — pure-white product media with cache-busted assets.
 * Product canvases are deliberately white across catalogue, detail,
 * workplace-area, series and homepage collection views.
 */
:root {
  --product-canvas: #ffffff;
}

.product-card-image,
.detail-image,
.office-area-product,
.series-detail-image,
.collection-image {
  background: #ffffff !important;
}

.product-card-image img,
.detail-image img,
.office-area-product img,
.series-detail-image img,
.collection-image img {
  background: #ffffff !important;
  mix-blend-mode: normal !important;
}


/* V48 final white-canvas enforcement */
.collection-card .collection-image,
.collection-card .collection-image img,
.product-card .product-card-image,
.product-card .product-card-image img,
.detail-image,
.detail-image img,
.office-area-product,
.office-area-product img,
.series-detail-image,
.series-detail-image img {
  background-color: #ffffff !important;
}

/* V49 — completed project references */
.projects-intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.projects-intro-inner {
  align-items: center;
  display: grid;
  gap: 35px;
  grid-template-columns: 1fr auto;
}

.projects-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
  max-width: 940px;
}

.projects-intro span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.projects-section,
.home-projects {
  background: var(--paper);
}

.projects-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.projects-filters button {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 39px;
  padding: 0 15px;
  font-size: 9px;
  font-weight: 800;
}

.projects-filters button.active,
.projects-filters button:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.projects-count {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-reference-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-reference-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: box-shadow .25s, transform .25s;
}

.project-reference-card:hover {
  box-shadow: 0 20px 48px #423d3417;
  transform: translateY(-4px);
}

.project-reference-media {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  display: block;
  overflow: hidden;
  position: relative;
}

.project-reference-media img {
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
  width: 100%;
}

.project-reference-card:hover .project-reference-media img {
  transform: scale(1.025);
}

.project-reference-sector {
  background: #fbfaf7ed;
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  left: 16px;
  letter-spacing: .12em;
  padding: 9px 11px;
  position: absolute;
  text-transform: uppercase;
  top: 16px;
}

[dir="rtl"] .project-reference-sector {
  left: auto;
  right: 16px;
}

.project-reference-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 29px 26px;
}

.project-reference-copy > span {
  color: #586970;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-reference-copy h3 {
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.06;
  margin: 17px 0 13px;
}

.project-reference-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.project-reference-copy b {
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 17px;
}

.home-project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.45fr 1fr 1fr;
}

.home-project-grid .project-reference-card:first-child .project-reference-media {
  aspect-ratio: 1.45 / 1;
}

.home-project-grid .project-reference-card:not(:first-child) .project-reference-media {
  aspect-ratio: 1.15 / 1;
}

.home-project-grid .project-reference-copy {
  padding: 24px 24px 23px;
}

.home-project-grid .project-reference-copy h3 {
  font-size: clamp(25px, 2.4vw, 37px);
}

.project-detail-hero {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 50px 0 82px;
}

.project-breadcrumbs {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
  margin-bottom: 47px;
  text-transform: uppercase;
}

.project-breadcrumbs a:hover {
  color: var(--green);
}

.project-detail-hero-grid {
  align-items: end;
  display: grid;
  gap: 75px;
  grid-template-columns: 1.08fr .92fr;
}

.project-detail-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.project-detail-copy h1 {
  font-family: var(--serif);
  font-size: clamp(50px, 5.7vw, 82px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .98;
  margin: 0;
}

.project-detail-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
  margin: 28px 0 0;
}

.project-facts {
  background: var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-facts article {
  background: var(--white);
  min-height: 120px;
  padding: 23px;
}

.project-facts span {
  color: var(--muted);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.project-facts strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.project-gallery {
  background: var(--paper);
}

.project-gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-gallery figure {
  background: var(--white);
  border: 1px solid var(--line);
  margin: 0;
}

.project-gallery figure:first-child:nth-last-child(3) {
  grid-column: 1 / -1;
}

.project-gallery img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.project-gallery figcaption {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
  padding: 14px 16px;
  text-transform: uppercase;
}

.project-disclaimer {
  border-top: 1px solid #ffffff29;
  color: #ffffff8a;
  font-size: 9px;
  grid-column: 1 / -1;
  line-height: 1.65;
  margin: 26px 0 0;
  padding-top: 20px;
}

@media (max-width: 980px) {
  .home-project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-project-grid .project-reference-card:first-child {
    grid-column: 1 / -1;
  }

  .project-detail-hero-grid {
    gap: 45px;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .projects-intro-inner,
  .project-reference-grid,
  .home-project-grid,
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-project-grid .project-reference-card:first-child,
  .project-gallery figure:first-child:nth-last-child(3) {
    grid-column: auto;
  }

  .projects-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-facts {
    grid-template-columns: 1fr 1fr;
  }

  .project-detail-hero {
    padding: 35px 0 60px;
  }
}

/* V51 — uniform project image system */
.home-project-unified-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-project-unified-grid figure {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.home-project-unified-grid img {
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
  width: 100%;
}

.home-project-unified-grid figure:hover img {
  transform: scale(1.018);
}

.home-project-overlay {
  background: linear-gradient(0deg, #132024dc 0%, #13202499 38%, transparent 78%);
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  left: 0;
  min-height: 45%;
  padding: 58px 18px 16px;
  position: absolute;
  right: 0;
}

.home-project-overlay small {
  color: #ffffffb8;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-project-overlay strong {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 400;
  line-height: 1.12;
  margin-top: 6px;
}

.home-project-index {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
}

.home-project-index article {
  border-inline-end: 1px solid var(--line);
  min-width: 0;
  padding: 25px 23px 27px;
}

.home-project-index article:first-child {
  border-inline-start: 1px solid var(--line);
}

.home-project-index span {
  color: #586970;
  display: block;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.home-project-index h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 15px 0 12px;
}

.home-project-index p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .home-project-unified-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-project-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-project-index article:nth-child(2) {
    border-inline-end: 0;
  }

  .home-project-index article:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 580px) {
  .home-project-unified-grid,
  .home-project-index {
    grid-template-columns: 1fr;
  }

  .home-project-unified-grid {
    gap: 10px;
  }

  .home-project-index article {
    border-inline: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .home-project-index article:first-child {
    border-top: 0;
  }
}

/* V50 — homepage-only editorial project gallery */
.home-projects {
  background: var(--white);
}

.home-projects .section-heading {
  margin-bottom: 72px;
}

.home-projects .split-heading > p {
  max-width: 520px;
}

.home-case {
  border-top: 1px solid var(--line);
  padding: 54px 0 68px;
}

.home-case-heading {
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  margin-bottom: 31px;
}

.home-case-meta {
  color: #586970;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.65;
  text-transform: uppercase;
}

.home-case-heading h3 {
  font-family: var(--serif);
  font-size: clamp(35px, 4.1vw, 60px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 12px 0 0;
}

.home-case-heading p {
  align-self: end;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 5px;
  max-width: 640px;
}

.home-case-gallery {
  display: grid;
  gap: 12px;
}

.home-case-gallery figure {
  background: var(--surface);
  margin: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.home-case-gallery img {
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
  width: 100%;
}

.home-case-gallery figure:hover img {
  transform: scale(1.018);
}

.home-case-gallery figcaption {
  background: linear-gradient(0deg, #152124b8, transparent);
  bottom: 0;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  left: 0;
  letter-spacing: .1em;
  padding: 42px 17px 14px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
}

.home-case-gallery.count-3 {
  grid-template-columns: 1.55fr .8fr;
  grid-template-rows: repeat(2, 220px);
}

.home-case-gallery.count-3 figure:first-child {
  grid-row: 1 / 3;
}

.home-case-gallery.count-4 {
  grid-template-columns: 1.55fr .8fr;
  grid-template-rows: repeat(3, 170px);
}

.home-case-gallery.count-4 figure:first-child {
  grid-row: 1 / 4;
}

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

.home-case-pair .home-case {
  border-top: 0;
  min-width: 0;
  padding-bottom: 0;
}

.home-case-pair .home-case:first-child {
  border-inline-end: 1px solid var(--line);
  padding-inline-end: 28px;
}

.home-case-pair .home-case:last-child {
  padding-inline-start: 28px;
}

.home-case-pair .home-case-heading {
  display: block;
  min-height: 190px;
}

.home-case-pair .home-case-heading h3 {
  font-size: clamp(31px, 3.1vw, 47px);
}

.home-case-pair .home-case-heading p {
  margin-top: 18px;
}

.home-case-gallery.count-1 {
  grid-template-columns: 1fr;
}

.home-case-gallery.count-1 figure {
  aspect-ratio: 16 / 10;
}

.home-project-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 70px 0 0;
  padding-top: 23px;
}

@media (max-width: 900px) {
  .home-case-heading {
    gap: 25px;
    grid-template-columns: 1fr;
  }

  .home-case-gallery.count-3,
  .home-case-gallery.count-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .home-case-gallery.count-3 figure:first-child,
  .home-case-gallery.count-4 figure:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .home-case-gallery.count-3 figure,
  .home-case-gallery.count-4 figure {
    aspect-ratio: 4 / 3;
  }

  .home-case-gallery.count-3 figure:first-child,
  .home-case-gallery.count-4 figure:first-child {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 680px) {
  .home-projects .section-heading {
    margin-bottom: 42px;
  }

  .home-case {
    padding: 42px 0 52px;
  }

  .home-case-gallery.count-3,
  .home-case-gallery.count-4,
  .home-case-pair {
    grid-template-columns: 1fr;
  }

  .home-case-gallery.count-3 figure,
  .home-case-gallery.count-4 figure,
  .home-case-gallery.count-3 figure:first-child,
  .home-case-gallery.count-4 figure:first-child {
    aspect-ratio: 4 / 3;
    grid-column: auto;
  }

  .home-case-pair .home-case {
    border-inline-end: 0;
    padding-inline: 0;
  }

  .home-case-pair .home-case:last-child {
    border-top: 1px solid var(--line);
  }

  .home-case-pair .home-case-heading {
    min-height: 0;
  }
}
