.product-photo {
  background: #b4141c;
  color: #fff;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.product-photo span {
  font: 500 clamp(2.6rem, 5vw, 6rem)/1.05 "Manrope", sans-serif;
  letter-spacing: -.055em;
  border-bottom: 1px solid rgba(255,255,255,.36);
  padding: .18em 0;
}

.product-photo span:nth-child(2),
.product-photo span:nth-child(4) {
  text-align: right;
  color: #f4b2b5;
}

@media (max-width: 580px) {
  .product-photo { padding: 2.5rem 1.5rem; }
}

/* Madsen Design logo palette */
:root {
  --red: #0877ad;
  --red-dark: #075f8a;
  --brand-blue: #0877ad;
  --brand-green: #9bd750;
  --brand-orange: #ff8126;
  --paper: #f6f7f5;
  --line: #d7dde0;
}

.eyebrow.light { color: #d8f3b5; }
.stat-card { background: var(--brand-orange); }
.proof-strip strong:nth-child(1) { color: #fff; }
.vs-section { background: var(--brand-blue); }
.vs-details { background: #075f8a; }
.vs-panel p:not(.eyebrow) { color: #d9edf7; }
.vs-details p { color: #d5e9f2; }
.range-card span { color: #d8f3b5; }
.case-facts strong { color: var(--brand-orange); }
.projects-section { background: #f1f4f3; }

/* Make it clear that the homepage figures describe VS */
.proof-strip .proof-strip-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.35rem;
  border-right: 0;
  border-bottom: 1px solid #3a3a3a;
}

.proof-strip .proof-strip-heading span {
  max-width: none;
  color: var(--brand-orange);
  font: 700 .75rem "Manrope", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.proof-strip .proof-strip-heading strong {
  max-width: 24rem;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.2;
  text-align: right;
}

@media (max-width: 580px) {
  .proof-strip .proof-strip-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .proof-strip .proof-strip-heading strong {
    text-align: left;
  }
}

/* Homepage project image */
.hero-photo {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: none;
}

.third-teacher-section {
  background: #171717;
  color: #fff;
  padding: 7rem max(26px, calc((100vw - var(--max)) / 2 + 26px));
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(3rem, 7vw, 8rem);
}

.third-teacher-intro h2 {
  max-width: 9ch;
}

.third-teacher-intro > p:not(.eyebrow) {
  max-width: 570px;
  color: #c7c7c7;
}

.third-teacher-book {
  width: min(100%, 310px);
  margin: 2.2rem 0 0;
}

.third-teacher-book img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #3e3e3e;
}

.third-teacher-book figcaption {
  margin-top: .75rem;
  color: #a8a8a8;
  font-size: .78rem;
  line-height: 1.45;
}

.third-teacher-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #444;
  border-left: 1px solid #444;
}

.third-teacher-points article {
  min-height: 330px;
  padding: 2rem;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  display: flex;
  flex-direction: column;
}

.third-teacher-points span {
  color: var(--brand-green);
  font-size: .73rem;
  letter-spacing: .12em;
}

.third-teacher-points h3 {
  margin: auto 0 1rem;
}

.third-teacher-points p {
  margin: 0;
  color: #bdbdbd;
  font-size: .9rem;
}

.principle:nth-child(2) span,
.environment-card:nth-child(2) span,
.environment-card:nth-child(5) span { color: #6ea82e; }

.principle:nth-child(3) span,
.environment-card:nth-child(3) span,
.environment-card:nth-child(6) span { color: var(--brand-orange); }

@media (max-width: 1050px) {
  .third-teacher-section { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .third-teacher-section { padding-top: 5rem; padding-bottom: 5rem; }
  .third-teacher-points { grid-template-columns: 1fr; }
  .third-teacher-points article { min-height: 240px; }
}

.site-header .brand {
  min-width: 212px;
}

@media (min-width: 901px) {
  .site-header {
    max-width: 1480px;
    display: grid;
    grid-template-columns: auto auto 1fr;
  }

  .site-header nav {
    justify-self: end;
    margin-left: clamp(2rem, 3vw, 3.5rem);
    gap: clamp(.9rem, 1.25vw, 1.6rem);
  }
}

.madsen-logo {
  display: block;
  width: 190px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.partner-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: 0;
  margin-left: .5rem;
  padding-left: 1.75rem;
  border-left: 1px solid #ddd8d1;
  color: #77736e;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}

.partner-brand:hover,
.partner-brand:focus-visible {
  opacity: .68;
}

.partner-brand:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 5px;
}

.partner-brand img {
  width: 54px;
  height: 30px;
  object-fit: contain;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.range-card {
  min-height: 470px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.range-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(16,18,19,.86) 100%);
}

.range-seating {
  background-image: url("assets/pantoswing-lupo-movement.webp");
  background-position: center 35%;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.range-tables { background-image: url("assets/ardnashee-learning.jpg"); background-position: 63% center; }
.range-system { background-image: url("assets/shift-landscape-storage.webp"); background-position: 52% center; }

.range-card div {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
}

.range-card span {
  color: #f0b2b5;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.range-card h3 {
  margin: .45rem 0 .55rem;
  font-size: 1.65rem;
}

.range-card p { margin: 0; color: rgba(255,255,255,.82); }

.projects-section { background: #f3f0eb; }

.hokki-section {
  max-width: var(--max);
  margin: 0 auto 9rem;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.hokki-visual {
  min-height: 620px;
  background: #e9eeef;
  overflow: hidden;
}

.hokki-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.hokki-copy {
  background: #fff;
  padding: clamp(3rem, 5vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hokki-copy h2 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  max-width: 10ch;
}

.hokki-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.hokki-copy .lead {
  color: var(--ink);
  font: 500 1.2rem/1.5 "Manrope", sans-serif;
}

.hokki-points {
  margin: 1.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
}

.hokki-points div {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}

.hokki-points strong {
  color: var(--brand-blue);
  font-size: .88rem;
}

.hokki-points span {
  color: var(--muted);
  font-size: .85rem;
}

.hokki-copy .button {
  align-self: flex-start;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  margin-top: 3rem;
  background: #fff;
}

.case-study + .case-study { margin-top: 2rem; }

.case-gallery {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: .4rem;
  min-height: 590px;
}

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

.case-gallery img:last-child { object-position: 58% center; }

.case-gallery-four {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.case-gallery-three {
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 1fr 1fr;
}

.case-gallery-three img:first-child {
  grid-row: 1 / 3;
}

.case-gallery-four img,
.case-gallery-three img {
  min-height: 0;
}

.case-copy {
  padding: clamp(2rem, 4vw, 4.5rem);
  align-self: center;
}

.case-copy h3 {
  margin: .5rem 0 .2rem;
  font: 600 clamp(2rem, 3vw, 3.3rem)/1.05 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.case-location { margin-top: .4rem; color: #77736e; }

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid #ddd8d1;
  border-bottom: 1px solid #ddd8d1;
}

.case-facts strong { display: block; font-size: 1.15rem; color: #b4141c; }
.case-facts span { display: block; margin-top: .2rem; font-size: .76rem; color: #77736e; }
.case-team { font-size: .86rem; color: #77736e; }

.about-portrait {
  align-self: start;
}

.about-portrait > img {
  display: block;
  width: min(100%, 500px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 34%;
}

.about-portrait .quote {
  max-width: 620px;
  margin-top: 2rem;
}

.about-portrait .quote p {
  font-size: clamp(1.65rem, 2.6vw, 3rem);
  margin: 0;
}

.visit-gallery {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  grid-template-rows: 1fr 1fr;
  gap: .35rem;
  min-width: 0;
  min-height: 680px;
  overflow: hidden;
  background: #202020;
}

.visit-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.visit-gallery .visit-main {
  grid-row: 1 / 3;
  object-position: center;
}

.footer-brand .madsen-logo {
  width: 160px;
  height: 82px;
  filter: none;
}

.footer-brand {
  width: fit-content;
  padding: .45rem .65rem;
  background: #fff;
}

@media (max-width: 1120px) {
  .partner-brand span { display: none; }
  .site-header .brand { min-width: auto; }
  .madsen-logo { width: 156px; }
}

@media (max-width: 900px) {
  .partner-brand { margin-right: 0; }
  .product-gallery { grid-template-columns: 1fr; }
  .range-card { min-height: 420px; }
  .case-study { grid-template-columns: 1fr; }
  .case-gallery { min-height: 480px; }
  .visit-gallery { min-height: 620px; }
  .hokki-section { grid-template-columns: 1fr; margin-bottom: 6rem; }
  .hokki-visual, .hokki-visual img { min-height: 480px; }
}

@media (max-width: 580px) {
  .site-header .madsen-logo { width: 128px; height: 56px; }
  .partner-brand { padding-left: .7rem; gap: .35rem; }
  .partner-brand img { width: 38px; }
  .case-gallery { grid-template-columns: 1fr; min-height: auto; }
  .case-gallery img { height: 280px; }
  .case-gallery-four, .case-gallery-three { grid-template-columns: 1fr; grid-template-rows: none; }
  .case-gallery-three img:first-child { grid-row: auto; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .about-portrait > img { width: min(82vw, 390px); }
  .visit-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 210px; min-height: auto; }
  .visit-gallery .visit-main { grid-column: 1 / 3; grid-row: 1; }
  .hokki-section { padding: 0; }
  .hokki-visual, .hokki-visual img { min-height: 360px; }
  .hokki-copy { padding: 3rem 1.5rem; }
  .hokki-points div { grid-template-columns: 1fr; gap: .25rem; }
}

/* Final brand colour precedence */
.product-photo { background: var(--brand-blue); }
.product-photo span:nth-child(2),
.product-photo span:nth-child(4) { color: #d8f3b5; }
.range-card span { color: #d8f3b5; }
.case-facts strong { color: var(--brand-orange); }
.projects-section { background: #f1f4f3; }
