@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500&display=swap");

:root {
  --ink: #171816;
  --paper: #f4f1eb;
  --sand: #ded8cc;
  --olive: #5b6253;
  --line: rgba(23, 24, 22, 0.2);
  --page: 1440px;
  --gutter: clamp(20px, 3vw, 52px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

h1,
h2 {
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 8.3vw, 8.5rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  line-height: 1;
}

.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;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 94px;
  padding: 0 var(--gutter);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-transform: uppercase;
}

.brand__logo {
  display: block;
  width: clamp(126px, 12vw, 184px);
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 42px);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.language-toggle {
  display: inline-flex;
  min-width: 64px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  margin-left: clamp(16px, 2vw, 30px);
  gap: 7px;
  background: rgba(23, 24, 22, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  transition: 160ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.language-toggle__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cta {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(920px, 100svh);
  align-items: flex-end;
  overflow: hidden;
  padding: 170px var(--gutter) 68px;
  color: #fff;
}

.hero__visual,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__visual {
  background:
    linear-gradient(115deg, rgba(15, 20, 16, 0.15), transparent 65%),
    url("../images/pergola-madera-natural-01.webp") center / cover no-repeat;
}

.hero__overlay {
  background: linear-gradient(180deg, rgba(12, 15, 12, 0.2), rgba(12, 15, 12, 0.55));
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__counter {
  position: absolute;
  right: var(--gutter);
  bottom: 68px;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.eyebrow {
  margin-bottom: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.text-link--light {
  color: #fff;
}

.text-link > span[aria-hidden],
.contact .button > span[aria-hidden],
.product-card__meta a,
.product-choice__arrow {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  font-size: 0;
}

.text-link > span[aria-hidden],
.contact .button > span[aria-hidden],
.product-card__meta a {
  position: relative;
  display: inline-block;
}

.text-link > span[aria-hidden]::before,
.contact .button > span[aria-hidden]::before,
.product-card__meta a::before,
.product-choice__arrow::before {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-top: 1.25px solid currentColor;
  border-right: 1.25px solid currentColor;
  content: "";
}

.text-link > span[aria-hidden]::after,
.contact .button > span[aria-hidden]::after,
.product-card__meta a::after,
.product-choice__arrow::after {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 12px;
  height: 1.25px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}

.intro,
.collection,
.flooring,
.projects,
.contact {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 170px) var(--gutter);
}

.intro {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(45px, 7vw, 110px);
}

.intro__visual > .eyebrow {
  margin-bottom: 22px;
}

.intro__statement h2 {
  max-width: 980px;
}

.intro__statement > p {
  max-width: 590px;
  margin: 48px 0 30px auto;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.intro__statement .text-link {
  float: right;
}

.intro__image {
  margin: 0;
}

.intro__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro__image figcaption {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 170px) var(--gutter);
  border-top: 1px solid var(--line);
}

.about__content {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 100px);
}

.about__portrait {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #c4beb0;
}

.about__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__story {
  align-self: center;
}

.about__story > p:not(.eyebrow) {
  max-width: 630px;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.5;
}

.about__highlights {
  padding: 0;
  border-top: 1px solid var(--line);
  margin: 45px 0 0;
  list-style: none;
}

.about__highlights li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__social {
  display: flex;
  flex-wrap: wrap;
  margin-top: 28px;
  gap: 14px 28px;
  font-size: 0.78rem;
  font-weight: 600;
}

.about__social a { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.about__social a:hover, .about__social a:focus-visible { color: var(--olive); }

.works {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 170px) var(--gutter);
  border-top: 1px solid var(--line);
}

.works__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  gap: 20px;
}

.works__heading p { margin: 0; }
.works__heading h2 { max-width: 650px; margin: 10px 0 0; font-size: clamp(2.25rem, 5vw, 5.2rem); line-height: 1; }
.works__heading > p:last-child { max-width: 370px; color: rgba(23, 24, 22, 0.65); font-size: 0.86rem; }
.works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.works__item { min-width: 0; margin: 0; }
.works__item a { display: block; overflow: hidden; background: #c4beb0; }
.works__item img { display: block; width: 100%; height: auto; transition: transform 250ms ease; }
.works__item a:hover img, .works__item a:focus-visible img { transform: scale(1.025); }
.works__item a:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.works__item figcaption { padding-top: 11px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; }
.works__more { margin-top: 32px; }
.works__more summary { display: inline-flex; align-items: center; padding: 9px 0; border-bottom: 1px solid currentColor; cursor: pointer; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; list-style: none; text-transform: uppercase; }
.works__more summary::-webkit-details-marker { display: none; }
.works__more summary::after { content: "+"; padding-left: 25px; font-size: 1.25rem; font-weight: 400; line-height: 1; }
.works__more[open] summary::after { content: "−"; }
.works__more-close, .works__more[open] .works__more-open { display: none; }
.works__more[open] .works__more-close { display: inline; }
.works__more .works__grid { margin-top: 28px; }

.video-feature {
  display: grid;
  max-width: var(--page);
  align-items: center;
  margin: 0 auto;
  padding: clamp(90px, 11vw, 170px) var(--gutter);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(35px, 6vw, 100px);
}
.video-feature__copy h2 { max-width: 590px; }
.video-feature__copy > p:not(.eyebrow) { max-width: 510px; margin: 26px 0 28px; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.video-feature__media { min-width: 0; margin: 0; }
.video-feature__media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); }
.video-feature__media figcaption { margin-top: 12px; color: rgba(23, 24, 22, 0.65); font-size: 0.78rem; }
.mobile-gallery-link { display: none; }

/* Keep the overview concise; the project gallery carries the photography. */
.flooring-grid--wood .flooring-card:nth-child(n+3),
.flooring-grid--synthetic .flooring-card:nth-child(n+2) { display: none; }
.collection .product-card--tall { margin-top: 0; }

.collection {
  max-width: none;
  background: #e7e2d9;
}

.flooring {
  max-width: none;
  padding-inline: var(--gutter);
}

.flooring > .section-heading,
.flooring-group {
  max-width: var(--page);
  margin-inline: auto;
}

.flooring-group + .flooring-group {
  padding-top: clamp(90px, 10vw, 150px);
}

.flooring-group__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 55px);
  gap: 30px;
}

.flooring-group__heading h3 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.flooring-group__heading p {
  max-width: 380px;
  margin: 0;
  color: rgba(23, 24, 22, 0.62);
  font-size: 0.9rem;
}

.flooring-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 58px) clamp(14px, 2vw, 30px);
}

.flooring-card {
  grid-column: span 5;
  margin: 0;
}

.flooring-card:nth-child(even) {
  grid-column: 8 / span 5;
  margin-top: clamp(40px, 7vw, 110px);
}

.flooring-card--large {
  grid-column: span 7;
}

.flooring-card--wide {
  grid-column: span 7;
}

.flooring-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.flooring-card--large img {
  aspect-ratio: 4 / 3;
}

.flooring-card figcaption {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flooring-grid--synthetic .flooring-card:nth-child(3) {
  grid-column: 5 / span 7;
}

.section-heading {
  display: grid;
  max-width: var(--page);
  margin: 0 auto clamp(60px, 8vw, 110px);
  grid-template-columns: 2fr 1fr;
  gap: 8vw;
}

.section-heading h2 {
  max-width: 850px;
}

.section-heading__aside {
  align-self: end;
  max-width: 320px;
  margin-bottom: 8px;
}

.product-grid {
  display: grid;
  max-width: var(--page);
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(42px, 7vw, 108px) clamp(20px, 3vw, 48px);
}

.product-card--tall {
  margin-top: 15vw;
}

.product-card--wide {
  grid-column: span 1;
}

.product-card--final {
  grid-column: 1 / -1;
  width: min(72%, 980px);
  margin: 2vw auto 0;
}

.product-card__image,
.project__image {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #9e9d8e, #5a6254);
}

.product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card--tall .product-card__image {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.2), transparent 25%),
    linear-gradient(145deg, #b2a48e, #6f6658);
}

.visual-placeholder span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card__meta {
  display: grid;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  grid-template-columns: 1fr auto;
}

.product-card__meta h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
  font-weight: 500;
}

.product-card__meta p {
  grid-column: 1;
  margin-bottom: 0;
  color: rgba(23, 24, 22, 0.65);
  font-size: 0.86rem;
}

.product-card__meta a {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 1.2rem;
}

.projects__lead {
  display: grid;
  margin-bottom: clamp(60px, 8vw, 110px);
  grid-template-columns: 0.7fr 2fr;
  gap: 8vw;
}

.projects__lead h2 {
  max-width: 900px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(40px, 7vw, 100px) clamp(20px, 4vw, 64px);
}

.project--large {
  grid-row: span 2;
}

.project__image {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.24), transparent 25%),
    linear-gradient(135deg, #687163, #b3ad9d);
}

.project--large .project__image {
  aspect-ratio: 4 / 5;
}

.project:nth-child(2) .project__image {
  background: linear-gradient(145deg, #aca38f, #5f6759);
}

.project:nth-child(3) .project__image {
  background: linear-gradient(145deg, #7d8176, #cbc2b0);
}

.project > p {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin: 0;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  font-size: 0.78rem;
}

.project > p span {
  color: rgba(23, 24, 22, 0.55);
}

.contact {
  max-width: none;
  background: var(--olive);
  color: #fff;
  text-align: center;
}

.contact h2 {
  max-width: 980px;
  margin: 0 auto 30px;
}

.contact__lead { max-width: 620px; margin: 0 auto 38px; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact__quote { background: #fff; color: var(--olive); }
.contact__quote:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact__details { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 40px; gap: 12px 35px; font-size: 0.86rem; }
.contact__details p { margin: 0; }
.contact__details a { border-bottom: 1px solid currentColor; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  transition: 180ms ease;
}

.button:hover {
  background: #fff;
  color: var(--olive);
}

footer {
  display: grid;
  align-items: start;
  padding: 70px var(--gutter) 32px;
  background: var(--ink);
  color: #fff;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) minmax(180px, 0.7fr);
  gap: 50px;
}

.brand--footer {
  align-self: start;
}

.brand--footer .brand__logo {
  width: clamp(150px, 15vw, 220px);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer__contact,
.footer__social,
.footer__legal { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 0.82rem; }
.footer__contact span { color: rgba(255, 255, 255, 0.64); }
.footer__social a,
.footer__legal a,
.footer__legal button { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; }
.footer__social a::before { display: inline-grid; width: 17px; height: 17px; place-items: center; border: 1.5px solid currentColor; border-radius: 4px; font-size: 0.7rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.footer__social a[href*="instagram.com"]::before { content: "◉"; }
.footer__social a[href*="linkedin.com"]::before { content: "in"; }
.footer__legal button { padding: 0; background: none; border-top: 0; border-right: 0; border-left: 0; color: inherit; cursor: pointer; font-size: inherit; }
footer a:hover, .footer__legal button:hover { color: #ded8cc; }

footer > p {
  grid-column: 1 / -1;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
}

.whatsapp-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.whatsapp-float:hover, .whatsapp-float:focus-visible { background: var(--olive); }
.whatsapp-float svg { width: 24px; height: 24px; fill: #25d366; }
.cookie-banner-visible .whatsapp-float { bottom: max(170px, calc(env(safe-area-inset-bottom) + 170px)); }

.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 970px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  margin: 0 auto;
  gap: 22px;
  background: var(--paper);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.22);
  color: var(--ink);
}
.cookie-banner p { max-width: 600px; margin: 0; font-size: 0.84rem; }
.cookie-banner a { border-bottom: 1px solid currentColor; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner button {
  min-width: 105px;
  padding: 11px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
}
.cookie-banner button[data-cookie-choice="accept"] { background: var(--ink); color: #fff; }
.cookie-banner button:hover { background: var(--olive); border-color: var(--olive); color: #fff; }

.legal-page .site-header { position: relative; background: var(--ink); }
.legal-content { max-width: 850px; padding: clamp(65px, 8vw, 115px) var(--gutter); margin: 0 auto; }
.legal-content h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.legal-content h2 { margin: 55px 0 18px; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.legal-content p, .legal-content li { max-width: 740px; font-size: 1rem; line-height: 1.7; }
.legal-content a { border-bottom: 1px solid currentColor; }
.legal-content ul { padding-left: 22px; }
html[lang="es"] [data-lang-block="en"], html[lang="en"] [data-lang-block="es"] { display: none; }
.legal-cookie-button { padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; font: inherit; }
.legal-cookie-button:hover { background: var(--olive); border-color: var(--olive); }

@media (max-width: 760px) {
  .legal-page nav { display: none; }
  .legal-page .site-header > .language-toggle { order: 2; margin-left: auto; }
  .site-header {
    min-height: 76px;
  }

  .menu-toggle {
    z-index: 2;
    order: 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 6px;
    padding: 0;
  }

  .site-header > .language-toggle {
    z-index: 3;
    order: 2;
    margin-right: 8px;
    margin-left: auto;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: 180ms ease;
  }

  .menu-open .menu-toggle > span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-open .menu-toggle > span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  nav {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: var(--gutter);
    background: var(--olive);
    font-size: 1.6rem;
  }

  .menu-open nav {
    display: flex;
  }

  .hero {
    min-height: min(74svh, 680px);
    padding-bottom: 38px;
  }

  .hero__counter {
    right: var(--gutter);
    bottom: 40px;
  }

  .intro,
  .section-heading,
  .projects__lead {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about__content, .video-feature { grid-template-columns: 1fr; }
  .about__portrait { min-height: 0; max-width: 520px; aspect-ratio: 5 / 4; }
  .about__portrait img { object-position: center 28%; }
  .works__grid { grid-template-columns: 1fr; }
  .works__heading { align-items: flex-start; flex-direction: column; }

  /* On phones, let the project gallery carry the photography. */
  .flooring-grid,
  .works > .works__grid .works__item:nth-child(3),
  .works > .works__grid .works__item:nth-child(4) { display: none; }

  .collection .product-card { display: block; }
  .product-grid { row-gap: 28px; }
  .product-card__meta { margin-top: 12px; padding: 16px 0; }
  .product-card__meta a { width: 44px; height: 44px; align-self: center; }
  .product-card__meta a::before { top: 13px; right: 13px; }
  .product-card__meta a::after { top: 19px; left: 11px; }
  .mobile-gallery-link { display: inline-flex; margin-top: 28px; }

  .intro, .about, .collection, .flooring, .video-feature, .works, .contact {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .video-feature { gap: 24px; }
  .video-feature__copy > p:not(.eyebrow) { margin: 18px 0 20px; }
  .flooring-group + .flooring-group { padding-top: 34px; }
  .product-grid, .flooring-grid, .works__grid { row-gap: 28px; }

  .intro__statement > p {
    margin: 36px 0 28px;
  }

  .intro__statement .text-link {
    float: none;
  }

  .intro__image img {
    aspect-ratio: 3 / 2;
  }

  .product-grid,
  .project-grid,
  .flooring-grid {
    grid-template-columns: 1fr;
  }

  .flooring-group__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .flooring-card,
  .flooring-card:nth-child(even),
  .flooring-card--large,
  .flooring-card--wide,
  .flooring-grid--synthetic .flooring-card:nth-child(3) {
    grid-column: 1;
    margin-top: 0;
  }

  .product-card--tall {
    margin-top: 0;
  }

  .product-card--final {
    grid-column: auto;
    width: 100%;
    margin-top: 0;
  }

  .project--large {
    grid-row: auto;
  }

  .project--large .project__image {
    aspect-ratio: 4 / 3;
  }

  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }

  .footer__links {
    flex-wrap: wrap;
  }
}

@media (max-width: 540px) {
  footer { grid-template-columns: 1fr; }
  .about__portrait { min-height: 0; }
  .contact__actions { flex-direction: column; }
  .contact__actions .button { justify-content: space-between; }
  .contact__details { flex-direction: column; align-items: center; }
  .whatsapp-float { min-width: 52px; min-height: 52px; justify-content: center; padding: 12px; }
  .whatsapp-float span { display: none; }
  .cookie-banner { align-items: stretch; flex-direction: column; padding: 17px; gap: 15px; }
  .cookie-banner__actions button { flex: 1; }
  .cookie-banner-visible .whatsapp-float { bottom: max(205px, calc(env(safe-area-inset-bottom) + 205px)); }
}

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

  * {
    transition: none !important;
  }
}
