/* Beyond Concept — landing page
   Direction: the split stage (tasteskill v2), simplified: one idea per screen, things to tap and swipe.
   Bone ground, chocolate ink, one green; the photographs bring every other colour. */

/* ---------- tokens ---------- */
:root {
  --ground: #e5e1d8;        /* bone: the page */
  --paper: #f0eeeb;         /* the printed card */
  --surface: #dad5ca;       /* one tone step */
  --surface-2: #cec8bc;
  --ink: #2a1d17;           /* chocolate, close to the logo's darkest bronze */
  --muted: #6b5b51;
  --accent: #456f3a;        /* green, as on the residential poster */
  --accent-strong: #365a2c;
  --accent-ink: #ffffff;
  --field: #456f3a;
  --field-deep: #3a5f30;
  --field-ink: #ffffff;
  --wa-green: #25d366;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* 13–14 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);     /* 17–19 */
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);       /* 20–26 */
  --step-head: clamp(2rem, 1.5rem + 1.2vw, 2.75rem);           /* 32–44 */
  --step-display: clamp(2.75rem, 1.4rem + 5.4vw, 5rem);        /* 44–80 */

  --gap: 12px;
  --radius: 16px;
  --pad: clamp(1.5rem, 4.4vw, 4.5rem);
  --edge: clamp(1.25rem, 4vw, 4rem);
  --gutter: clamp(1rem, 1.6vw, 1.5rem);
  --section: clamp(5rem, 9vw, 9rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { padding: 0; list-style: none; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: inherit; text-wrap: balance; }
b { font-weight: 500; }
:target { scroll-margin-top: 1.5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 1rem; top: -6rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* the display face: a grotesk with a little stroke contrast, set tight in sentence case */
.hero__title, .space__title, .work__title, .past__title, .step__line, .faq__title, .contact__title, .slide__cta span {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.4rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button__icon { width: 1.25rem; height: 1.25rem; flex: none; }
.link-under {
  font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em;
  transition: color var(--t-hover) ease;
}
.arrow {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  background: var(--ink); color: var(--paper);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, opacity var(--t-ui) ease;
}
.arrow svg { width: 1.25rem; height: 1.25rem; }
.arrow:active { transform: scale(0.94); }
.arrow:disabled { opacity: 0.3; cursor: default; }
.arrow--light { background: var(--paper); color: var(--ink); }
.arrow--light:focus-visible { outline-color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link-under:hover { color: var(--accent); }
  .arrow:not(:disabled):hover { background: var(--accent); color: var(--accent-ink); }
}

/* ---------- hero: the printed card beside the room ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  height: 100svh;
  min-height: 40rem;
}
.hero__card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: clip; }
.hero__card::before { content: ""; flex: none; height: 10px; background: var(--accent); } /* one line across the top, above the logo */
.hero__body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem var(--pad) 1.5rem;
  text-align: center;
}
.hero .logo { width: min(18.75rem, 70%); height: auto; }
.logo-cut { fill: var(--paper); }
.hero__title { margin-top: 2.25rem; font-size: var(--step-display); }
.hero__lede { margin-top: 1.25rem; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.hero__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem;
  padding: 0 1rem 1.75rem;
  font-size: var(--step-small); font-weight: 500;
}
.hero__nav a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color var(--t-hover) ease; }
.room { position: relative; border-radius: var(--radius); overflow: clip; background: var(--surface); }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.room img.is-on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .hero__nav a:hover { text-decoration-color: currentColor; } }

/* ---------- pick your space ---------- */
.space {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2rem;
  padding: var(--section) var(--edge);
}
.space__head { grid-column: 1 / 4; }
.space__title { font-size: var(--step-head); }
.space__head p { margin-top: 1rem; max-width: 26ch; }
.tiles { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.tile__pic { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: clip; background: var(--surface); }
.tile__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft), filter var(--t-ui) ease; }
.tile__pic::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  border: 5px solid var(--accent);
  opacity: 0; transition: opacity var(--t-ui) ease;
}
.tile.is-on .tile__pic::after { opacity: 1; }
.tile__name { display: block; margin-top: 0.75rem; font-size: var(--step-lead); font-weight: 500; line-height: 1.2; transition: color var(--t-ui) ease; }
.tile.is-on .tile__name { color: var(--accent); }
.tile__fact { display: block; margin-top: 0.2rem; color: var(--muted); }
.tile:active .tile__pic { transform: scale(0.98); }
.tile__pic { transition: transform var(--t-press) var(--ease-out); }
.space__send {
  grid-column: 4 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
}
.space__includes { flex: 1 1 24rem; max-width: 60ch; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile__pic img { transform: scale(1.05); }
  .tile:hover .tile__name { color: var(--accent); }
}

/* ---------- projects: a row to drag, swipe or step through ---------- */
.work { padding: var(--section) 0; overflow: clip; }
.work__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0 var(--edge); }
.work__title { font-size: var(--step-head); }
.work__arrows { display: flex; gap: 0.5rem; }
.work__bar { height: 6px; margin: 1.25rem var(--edge) 0; background: var(--surface); overflow: hidden; }
.work__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--progress, 0.25)); transition: transform 200ms linear; }
.work__row {
  display: flex; gap: 2rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  padding: 2.5rem var(--edge) 0.5rem;
  scrollbar-width: none;
  cursor: grab;
}
.work__row::-webkit-scrollbar { display: none; }
.work__row.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.work__row:focus-visible { outline-offset: -4px; }
.slide { flex: 0 0 min(29rem, 36vw); scroll-snap-align: start; }
.slide__name { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.slide__text, .slide__list { margin-top: 0.4rem; max-width: 34ch; min-height: 6.2em; } /* four lines, so every photo keeps its drop */
.slide__list li { position: relative; padding-left: 1.1em; }
.slide__list li::before { content: ""; position: absolute; left: 0.1em; top: 0.62em; width: 0.38em; height: 0.38em; background: var(--accent); }
.slide__pic, .slide__cta {
  display: block; width: 100%;
  margin-top: calc(1.5rem + var(--drop, 0rem));
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}
.slide__pic { object-fit: cover; background: var(--surface); -webkit-user-drag: none; user-select: none; }
.slide__cta { display: grid; place-items: center; padding: 2rem; background: var(--accent); color: var(--accent-ink); text-decoration: none; text-align: center; transition: background-color var(--t-hover) ease; }
.slide__cta span { font-size: var(--step-display); }
@media (hover: hover) and (pointer: fine) {
  .slide__cta:hover { background: var(--accent-strong); }
}

/* ---------- past work: a dark card holding a wall of site photos to filter and open ---------- */
.past {
  --ink-2: #3d2d25;          /* one tone step up from the ink, for controls and empty frames on the dark card */
  margin: 0 var(--gap) var(--gap);
  padding: calc(var(--section) * 0.75) calc(var(--edge) - var(--gap)) calc(var(--edge) - var(--gap));
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
}
.past :focus-visible { outline-color: var(--paper); }
.past__top { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2rem; }
.past__title { font-size: var(--step-head); }
.past__head p { margin-top: 1rem; max-width: 36ch; }
.past__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.1rem;
  background: var(--ink-2); color: var(--paper);
  font-weight: 500;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip span { opacity: 0.65; font-variant-numeric: tabular-nums; }
.chip.is-on { background: var(--paper); color: var(--ink); }
.chip:active { transform: scale(0.96); }
html:not(.js) .past__filters { display: none; }

/* justified rows: each photo grows in proportion to its shape, so every row is one height and runs edge to edge */
.wall { --row: clamp(7.5rem, 18.5vw, 19rem); display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2.5rem; }
.wall__item {
  flex: var(--r) 1 calc(var(--r) * var(--row));
  max-width: calc(var(--r) * var(--row) * 1.8); /* a short last row stops growing instead of ballooning */
}
.wall__item[hidden] { display: none; }
.wall__item a { position: relative; display: block; overflow: clip; border-radius: calc(var(--radius) * 0.75); background: var(--ink-2); }
.wall__item img { width: 100%; aspect-ratio: var(--r); object-fit: cover; transition: transform 700ms var(--ease-soft); }
.wall__item a:active img { transform: scale(0.98); }
/* a before/after pair: two photos held together as one tile, so they never split across rows */
.wall__item--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: none; }
.wall__item--pair a { height: 100%; }
.wall__item--pair img { height: 100%; aspect-ratio: 4 / 3; }
.wall__tag {
  position: absolute; left: 0.5rem; bottom: 0.5rem;
  padding: 0.15rem 0.55rem; border-radius: 6px;
  background: var(--paper); color: var(--ink);
  font-size: var(--step-small); font-weight: 500; line-height: 1.5;
}
.wall__tag--after { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .chip:not(.is-on):hover { background: var(--accent); }
  .wall__item a:hover img { transform: scale(1.04); }
}

/* the viewer: one photo at a time on the dark field, arrows and caption below */
html:has(.viewer[open]) { overflow: hidden; }
.viewer {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--paper);
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: var(--ink); }
.viewer :focus-visible { outline-color: var(--paper); }
.viewer__bar { display: flex; justify-content: flex-end; padding: var(--gap); }
.viewer__stage { position: relative; min-height: 0; }
.viewer__pic { /* centred and fitted inside the stage at its own proportions */
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: calc(100% - 2 * var(--gap)); max-height: 100%;
  border-radius: calc(var(--radius) * 0.75);
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-drag: none;
}
.viewer__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.25rem var(--edge) max(1.5rem, env(safe-area-inset-bottom)); }
.viewer__caption { max-width: 44ch; }
.viewer__arrows { display: flex; gap: 0.5rem; flex: none; }

@media (max-width: 47.99em) {
  .past { margin: 0 var(--gap) var(--gap); padding: 3.5rem var(--gap) var(--gap); }
  .past__top { padding: 0 0.625rem; }
  .past__filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
  .chip { justify-content: center; }
  .wall { gap: 6px; margin-top: 2rem; }
  .wall__item { max-width: none; } /* on a phone a photo alone on its row simply runs full width */
  .viewer__foot { padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .wall__item.is-new { animation: rise-small 420ms var(--ease-out) both; }
  .viewer__pic.is-new { animation: view-in 380ms var(--ease-out) both; }
}
@keyframes view-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- how it works: four lines that step across ---------- */
.steps { margin: 0 var(--gap); padding: var(--section) calc(var(--edge) - var(--gap)); background: var(--paper); border-radius: var(--radius); }
.steps__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3.5rem; }
.step { grid-column: var(--col) / -1; }
.step__line { font-size: var(--step-display); }
.step p { margin-top: 0.75rem; max-width: 34ch; color: var(--muted); }
.step--last .step__line { color: var(--accent); }

/* ---------- reviews: one voice at a time over the room ---------- */
.reviews { position: relative; height: 90svh; min-height: 34rem; overflow: clip; background: var(--ink); color: var(--paper); }
.reviews__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.reviews__body {
  position: absolute; inset: auto 0 0 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end;
  padding: 0 var(--edge) 4rem;
}
.reviews__quotes { grid-column: 1 / 10; display: grid; }
.quote { grid-area: 1 / 1; }
.quote p { font-size: clamp(1.5rem, 4.2vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 30ch; }
.quote figcaption { margin-top: 1.25rem; }
.quote figcaption span { opacity: 0.8; }
.reviews__arrows { grid-column: 10 / -1; justify-self: end; display: flex; gap: 0.5rem; }
.js .quote { opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s linear 500ms; }
.js .quote.is-on { opacity: 1; visibility: visible; transition: opacity 600ms ease 120ms, visibility 0s; }
html:not(.js) .reviews { height: auto; }
html:not(.js) .reviews__body { position: relative; padding-top: 6rem; }
html:not(.js) .quote { grid-area: auto; margin-top: 2rem; }
html:not(.js) .reviews__arrows { display: none; }

/* ---------- questions: one line each, tap to open ---------- */
.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2rem;
  padding: var(--section) var(--edge);
}
.faq__title { grid-column: 1 / 4; font-size: var(--step-head); }
.faq__list { grid-column: 4 / -1; border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--surface-2); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: var(--step-lead); font-weight: 500; line-height: 1.25;
  list-style: none; cursor: pointer;
  transition: color var(--t-hover) ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { /* a plus that turns into a cross when open */
  content: ""; flex: none; width: 1rem; height: 1rem;
  background:
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  transition: transform var(--t-ui) var(--ease-out);
}
.qa[open] summary { color: var(--accent); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { max-width: 60ch; padding-bottom: 1.5rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { color: var(--accent); } }

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2.5rem;
  align-items: center;
  padding: var(--section) var(--edge);
  background: var(--field);
  color: var(--field-ink);
}
.contact__text { grid-column: 1 / 6; }
.contact__title { font-size: var(--step-display); }
.contact__text > p { margin-top: 1.25rem; max-width: 34ch; }
.people { display: grid; gap: 0.625rem; margin-top: 2rem; max-width: 30rem; }
.person {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--paper); color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.person:active { transform: scale(0.98); }
.person__name { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.person__num { grid-column: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.person__go { grid-column: 2; grid-row: 1 / span 2; font-weight: 500; color: var(--accent); }
.contact__text > .contact__more { margin-top: 1.5rem; max-width: none; }
.contact__more a { font-weight: 500; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.contact :focus-visible { outline-color: var(--field-ink); }
.contact__map { grid-column: 7 / -1; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: clip; background: var(--field-deep); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
@media (hover: hover) and (pointer: fine) { .person:hover { background: #ffffff; } }

/* ---------- footer: one quiet line ---------- */
.footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 1.5rem;
  padding: 2.5rem calc(var(--edge) + 4.5rem) 2rem var(--edge); /* right side clear of the floating WhatsApp button */
  font-size: var(--step-small);
}
.footer__what, .footer__legal { color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; font-weight: 500; }
.footer__links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color var(--t-hover) ease; }
.footer__legal { justify-self: end; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { text-decoration-color: currentColor; } }

/* ---------- floating WhatsApp: always the same corner ---------- */
.wa {
  position: fixed; z-index: 50;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
}
.wa__button {
  display: grid; place-items: center;
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: var(--wa-green); color: #ffffff;
  box-shadow: 0 0.5rem 1.5rem rgba(42, 29, 23, 0.24); /* taste-skill-ignore: fixed button floating over the page */
  transition: transform var(--t-press) var(--ease-out);
}
.wa__button svg { width: 2rem; height: 2rem; }
.wa__button:active { transform: scale(0.94); }
.wa__button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .wa__button:hover { transform: scale(1.05); }
}

/* ---------- tablet ---------- */
@media (max-width: 63.99em) {
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; gap: 0; }
  .room { order: -1; height: 46svh; min-height: 17rem; }
  .hero__card { position: relative; z-index: 1; margin-top: -1.5rem; }
  .space__head { grid-column: 1 / -1; }
  .space__head p { max-width: 40ch; }
  .tiles, .space__send { grid-column: 1 / -1; }
  .faq__title, .faq__list { grid-column: 1 / -1; }
  .slide { flex-basis: min(24rem, 52vw); }
  .reviews__quotes { grid-column: 1 / -1; }
  .reviews__arrows { grid-column: 1 / -1; justify-self: start; margin-top: 1.5rem; }
  .contact__text, .contact__map { grid-column: 1 / -1; }
  .contact__map { aspect-ratio: 16 / 10; }
}

/* ---------- phone: picture first, then the card ---------- */
@media (max-width: 47.99em) {
  :root { --gap: 10px; }
  .room { height: 44svh; }
  .hero__body { padding: 2rem 1.25rem 1.5rem; }
  .hero .logo { width: 56%; }
  .hero__title { margin-top: 1.5rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .button { width: 100%; }
  .hero__nav { gap: 0.4rem 1.25rem; padding-bottom: 1.5rem; }

  .space { padding: 4.5rem 1.25rem; row-gap: 1.75rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.625rem; }
  .space__send { padding: 1.25rem; }
  .space__send .button { width: 100%; white-space: normal; text-align: center; }

  .work { padding: 4.5rem 0; }
  .work__arrows { display: none; }
  .slide { flex-basis: 72vw; }
  .work__row { gap: 1rem; }
  .slide__pic, .slide__cta { margin-top: calc(1rem + var(--drop, 0rem) * 0.45); }

  .steps { padding: 4rem 1.25rem; }
  .steps__list { display: block; }
  .step { margin-left: calc((var(--col) - 1) * 3vw); }
  .step + .step { margin-top: 2.5rem; }

  .faq { padding: 4.5rem 1.25rem; row-gap: 1.5rem; }
  .qa summary { padding: 1.1rem 0; }

  .reviews { height: 80svh; min-height: 30rem; }
  .reviews__body { padding: 0 1.25rem 2.5rem; }
  .quote p { font-size: 1.5rem; line-height: 1.15; }

  .contact { padding: 4.5rem 1.25rem; }
  .contact__map { aspect-ratio: 4 / 3; }

  .footer { grid-template-columns: 1fr; gap: 0.5rem; padding: 2.5rem 1.25rem 5.5rem; /* bottom clear of the floating button */ }
  .footer__links { justify-content: flex-start; }
  .footer__legal { justify-self: start; }
  .wa__button { width: 3.5rem; height: 3.5rem; }
}

/* ---------- motion (content stays visible without script or with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 250ms); }
  .js .hero .logo { opacity: 0; animation: rise 900ms var(--ease-out) 80ms forwards; }

  .js [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .step[data-reveal] { transform: translateX(-48px); transition-duration: 800ms, 1000ms; }
  .js .slide[data-reveal] { transform: translateY(48px); transition-delay: calc(var(--i, 0) * 110ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .room img.is-on { animation: settle 7s var(--ease-soft) both; }
  .reviews__pic { animation: drift 30s ease-in-out infinite alternate; }
  .js .quote.is-on p { animation: rise-small 700ms var(--ease-out) 120ms both; }
  .space__includes.is-new { animation: rise-small 420ms var(--ease-out) both; }
  .qa[open] p { animation: rise-small 420ms var(--ease-out) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes drift { from { transform: scale(1.04) translateX(-1.5%); } to { transform: scale(1.04) translateX(1.5%); } }
@keyframes rise-small { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
}
