/* ==========================================================================
   Kasa Interiors · Homepage styles
   Colours come from the Kasa logo: black, lamp amber and warm linen.
   ========================================================================== */

/* Montserrat, served from this site (no Google Fonts request) */
@font-face { font-family: "Montserrat"; font-weight: 200; font-style: normal; font-display: swap; src: url("../fonts/montserrat-200.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/montserrat-300.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }

:root {
  --ink: #000000;
  --text: #1c1b19;
  --stone: #6c665d;
  --mist: #a29b90;
  --linen: #f9f4eb;
  --amber: #fdb201;
  --line: #e7e0d3;
  --paper: #ffffff;
  --wa: #25d366;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1360px;
  --pad: clamp(20px, 5vw, 72px);
  --hdr: 84px;
  --frame: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (max-width: 899px) {
  :root { --hdr: 68px; --frame: 3px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
svg.icon--stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--amber); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--linen); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type ---------- */
.display {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.04;
  color: var(--ink);
}
.h2 {
  font-size: clamp(2rem, 3.4vw, 3.125rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.08;
  color: var(--ink);
}
.lede { font-size: clamp(1rem, 1.2vw, 1.0625rem); color: var(--stone); max-width: 36ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 0 1.6em;
  font: 500 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink); background: var(--linen); color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--linen); }
.btn--ghost { background: transparent; }
.btn--light { background: var(--linen); border-color: var(--linen); color: var(--ink); }
.btn--light:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 1.25em; }
.btn .icon { width: 1.35em; height: 1.35em; }

.text-link {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--amber), var(--amber)) left bottom / 100% 2px no-repeat;
  padding-bottom: 3px;
}
.text-link:hover { background-size: 100% 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--hdr);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.nav__list a {
  font-size: .875rem; font-weight: 500; text-decoration: none; color: var(--text);
  padding: 6px 0; background: linear-gradient(var(--amber), var(--amber)) left bottom / 0 2px no-repeat;
  transition: background-size .3s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { background-size: 100% 2px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.call-link { display: inline-flex; align-items: center; gap: .5em; font-size: .875rem; font-weight: 500; text-decoration: none; }
.call-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--hdr) 0 0 0; z-index: 49;
  background: var(--paper); padding: 32px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__links a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1.5rem; font-weight: 300; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}
.mobile-menu__actions { display: grid; gap: 12px; }
.mobile-menu__email { font-size: .95rem; color: var(--stone); }

@media (max-width: 1099px) {
  .call-link__num { display: none; }
}
@media (max-width: 899px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .brand img { height: 42px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100svh - var(--hdr));
}
.hero__copy {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 clamp(56px, 8vh, 88px) var(--pad);
}
.hero__inner { position: relative; padding: 0 clamp(28px, 3vw, 48px) 0 clamp(28px, 3vw, 48px); }

/* The open amber frame, taken from the logo */
.hero__frame { position: absolute; inset: 28px 0 28px var(--pad); pointer-events: none; }
.hero__frame span { position: absolute; background: var(--amber); }
.f-top    { top: 0; left: 0; right: 0; height: var(--frame); transform-origin: left; }
.f-left   { top: 0; left: 0; bottom: 0; width: var(--frame); transform-origin: top; }
.f-right  { top: 0; right: 0; height: 42%; width: var(--frame); transform-origin: top; }
.f-bottom { bottom: 0; left: 0; width: 34%; height: var(--frame); transform-origin: left; }

/* Pendant lamps hanging from the frame */
.lamps { position: absolute; top: 28px; left: calc(var(--pad) + clamp(40px, 4.5vw, 72px)); display: flex; gap: clamp(18px, 2vw, 30px); align-items: flex-start; }
.lamp { width: clamp(44px, 4vw, 60px); transform-origin: 50% 0; }
.lamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.lamp .shade, .lamp .cord { fill: var(--ink); }
.lamp .bulb { fill: var(--amber); }
.lamp .glow { opacity: 0; transition: opacity 1.2s ease; }
.lamp:hover { animation: sway 2.4s var(--ease); }
@keyframes sway {
  0% { transform: rotate(0); } 20% { transform: rotate(5deg); } 45% { transform: rotate(-3.5deg); }
  70% { transform: rotate(1.8deg); } 100% { transform: rotate(0); }
}

.hero__title { font-size: clamp(1.9rem, 3.35vw, 3.5rem); margin-top: clamp(220px, 30vh, 300px); }
.hero__title .line { display: block; }
.hero__sub { margin-top: 28px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__actions .text-link { padding-top: 13px; }

.hero__media { position: relative; overflow: hidden; background: var(--linen); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; background: var(--linen) center / cover no-repeat; }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture { display: block; width: 100%; height: 100%; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.js .hero__slide img { opacity: 0; transition: opacity .5s ease; }
.js .hero__slide img.is-in { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent); pointer-events: none;
}
.hero__controls {
  position: absolute; z-index: 2; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff;
}
.hero__caption { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 44px; height: 44px; position: relative; }
.hero__dot::before, .hero__dot::after { content: ""; position: absolute; left: 0; top: 21px; height: 2px; }
.hero__dot::before { right: 0; background: rgba(255, 255, 255, .4); }
.hero__dot::after { width: 0; background: #fff; }
.hero__dot.is-active::after { animation: fill 6.5s linear forwards; }
.hero__dot.is-static.is-active::after { animation: none; width: 100%; }
@keyframes fill { to { width: 100%; } }

/* Load sequence: frame draws, lamps drop in, bulbs switch on (runs once) */
.js .hero__frame span { transform: scale(0); }
.js .lamp { transform: translateY(-110%); opacity: 0; }
.is-loaded .hero__frame span { transform: scale(1); transition: transform 1s var(--ease); }
.is-loaded .f-left  { transition-delay: .15s; }
.is-loaded .f-right { transition-delay: .5s; }
.is-loaded .f-bottom { transition-delay: .75s; }
.is-loaded .lamp { opacity: 1; transform: none; transition: transform 1.1s cubic-bezier(.3, 1.35, .45, 1), opacity .3s; }
.is-loaded .lamp:nth-child(1) { transition-delay: .55s, .55s; }
.is-loaded .lamp:nth-child(2) { transition-delay: .7s, .7s; }
.is-loaded .lamp .glow { opacity: .55; transition-delay: 1.7s; }
.is-loaded .lamp:nth-child(2) .glow { transition-delay: 1.95s; }

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: 0 var(--pad) 56px; }
  .hero__frame { inset: 18px var(--pad) 22px var(--pad); }
  .lamps { top: 18px; left: calc(var(--pad) + 36px); }
  .hero__title { margin-top: 222px; }
  .hero__inner { padding: 0 24px; }
  .hero__media { order: -1; aspect-ratio: 1 / 1; max-height: 62svh; width: 100%; }
  .hero__copy { padding-top: 8px; }
}
@media (max-width: 899px) and (min-width: 600px) {
  .hero__media { aspect-ratio: 16 / 10; max-height: 60svh; }
}
@media (max-width: 599px) {
  .hero__title { font-size: clamp(1.55rem, 8.4vw, 2.2rem); letter-spacing: .03em; }
  .hero__inner { padding: 0 18px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
}
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  .hero__media { aspect-ratio: 16 / 9; max-height: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 160px); }
.section--linen { background: var(--linen); }
.section--black { background: var(--ink); color: #d8d2c6; }

/* Two white sections in a row share one gap */
.services, .cta { padding-top: 0; }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); align-items: center; }
.intro__text { grid-column: 1 / span 7; }
.intro__statement {
  font-size: clamp(1.45rem, 2.3vw, 2.1rem); font-weight: 300; line-height: 1.38; color: var(--ink); max-width: 30ch;
}
.facts { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facts li { border-top: 1px solid var(--ink); padding-top: 16px; font-size: .95rem; font-weight: 500; line-height: 1.45; color: var(--ink); }
.facts li span { display: block; font-weight: 400; color: var(--stone); font-size: .875rem; margin-top: 4px; }
.intro__media { grid-column: 9 / span 4; }

.framed { position: relative; isolation: isolate; }
.framed::before {
  content: ""; position: absolute; z-index: -1;
  inset: calc(-1 * clamp(14px, 1.6vw, 22px)) clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px) calc(-1 * clamp(14px, 1.6vw, 22px));
  border-top: var(--frame) solid var(--amber); border-left: var(--frame) solid var(--amber);
}
.intro__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

@media (max-width: 899px) {
  .intro__text, .intro__media { grid-column: 1 / -1; }
  .intro__media { margin-top: 56px; padding-left: 18px; max-width: 520px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts li { padding: 16px 0; }
}

/* ---------- Services ---------- */
.services__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.services__head .lede { max-width: 34ch; }
.services__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); align-items: start; }

.svc-preview { grid-column: 1 / span 5; position: sticky; top: calc(var(--hdr) + 40px); }
.svc-preview__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.svc-preview__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.svc-preview__media img.is-active { opacity: 1; }
.svc-preview__body { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.svc-preview__name { font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.svc-preview__line { color: var(--stone); font-size: .95rem; max-width: 34ch; margin-top: 4px; }

.svc-list { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
}
.svc__thumb { display: none; }
.svc__name {
  font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 300; color: var(--ink); line-height: 1.25;
  transition: transform .35s var(--ease);
}
.svc__sub { grid-column: 1; font-size: .85rem; color: var(--stone); transition: transform .35s var(--ease); }
.svc__go {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: .5em; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: var(--frame); background: var(--amber);
  transform: translateY(-50%); transition: width .35s var(--ease);
}
.svc.is-active::before, .svc:hover::before, .svc:focus-visible::before { width: 28px; }
.svc.is-active .svc__name, .svc:hover .svc__name, .svc:focus-visible .svc__name,
.svc.is-active .svc__sub, .svc:hover .svc__sub, .svc:focus-visible .svc__sub { transform: translateX(44px); }
.svc:hover .svc__go, .svc:focus-visible .svc__go, .svc.is-active .svc__go { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .svc-preview { display: none; }
  .svc-list { grid-column: 1 / -1; }
  .svc { grid-template-columns: 76px 1fr; gap: 2px 18px; padding: 16px 0; }
  .svc__thumb { display: block; grid-row: 1 / span 2; width: 76px; height: 76px; object-fit: cover; }
  .svc__name { grid-column: 2; font-size: 1.15rem; font-weight: 400; }
  .svc__sub { grid-column: 2; }
  .svc__go, .svc::before { display: none; }
  .svc:hover .svc__name, .svc:hover .svc__sub, .svc.is-active .svc__name, .svc.is-active .svc__sub { transform: none; }
}

/* ---------- Feature finishes (dark) ---------- */
.feature__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); align-items: center; }
.feature__media { grid-column: 1 / span 7; position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #1a1a1a; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.feature__media img.is-active { opacity: 1; }
.feature__body { grid-column: 9 / -1; }
.feature__body .h2 { color: var(--linen); }
.tabs { margin-top: 40px; display: grid; gap: 4px; }
.tab {
  display: flex; align-items: center; text-align: left; width: 100%;
  font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 300; color: #8d877c; padding: 8px 0;
  transition: color .3s;
}
.tab::before { content: ""; flex: none; width: 0; margin-right: 0; height: var(--frame); background: var(--amber); transition: width .35s var(--ease), margin-right .35s var(--ease); }
.tab:hover { color: var(--linen); }
.tab[aria-selected="true"] { color: var(--linen); }
.tab[aria-selected="true"]::before { width: 28px; margin-right: 16px; }
.tab-panel { margin-top: 28px; }
.tab-panel p { color: #c9c2b5; max-width: 38ch; }
.tab-panel .btn { margin-top: 28px; }

@media (max-width: 899px) {
  .feature__media, .feature__body { grid-column: 1 / -1; }
  .feature__body { order: -1; }
}

/* ---------- Process ---------- */
.process__head { margin-bottom: clamp(48px, 6vw, 80px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); counter-reset: step; }
.step { border-top: var(--frame) solid var(--amber); padding-top: 24px; }
.step__num { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 200; line-height: 1; color: var(--ink); }
.step__title { margin-top: 20px; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.step__text { margin-top: 8px; font-size: .95rem; color: var(--stone); max-width: 30ch; }

@media (max-width: 899px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.gallery__arrows { display: flex; gap: 12px; }
.arrow {
  width: 52px; height: 52px; border: 1px solid var(--ink); display: grid; place-items: center;
  transition: background-color .25s, color .25s;
}
.arrow:hover { background: var(--ink); color: var(--paper); }
.arrow:disabled { opacity: .3; pointer-events: none; }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gallery__track {
  display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
  margin-right: calc(-1 * var(--pad)); padding-right: var(--pad);
}
.gallery__track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 clamp(240px, 30vw, 430px); scroll-snap-align: start; }
.shot a { display: block; text-decoration: none; color: var(--ink); }
.shot__img { overflow: hidden; background: var(--linen); }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { margin-top: 14px; font-size: .95rem; font-weight: 500; color: var(--ink); }
.shot figcaption span { display: block; font-weight: 400; font-size: .85rem; color: var(--stone); }
.gallery__head-actions { display: flex; align-items: center; gap: 28px; }
@media (max-width: 599px) {
  .gallery__head { flex-wrap: wrap; }
  .gallery__arrows { display: none; }
}
.gallery__progress { margin-top: 36px; height: 1px; background: var(--line); position: relative; }
.gallery__progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 20%; background: var(--amber); transition: width .2s; }

/* ---------- Closing call to action ---------- */
.cta__frame {
  position: relative; padding: clamp(40px, 6vw, 88px) clamp(28px, 6vw, 96px);
  background:
    linear-gradient(var(--amber), var(--amber)) left top / 100% var(--frame) no-repeat,
    linear-gradient(var(--amber), var(--amber)) left top / var(--frame) 100% no-repeat,
    linear-gradient(var(--amber), var(--amber)) right top / var(--frame) 46% no-repeat,
    linear-gradient(var(--amber), var(--amber)) left bottom / 32% var(--frame) no-repeat;
}
.cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(32px, 5vw, 80px); align-items: center; }
.cta__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cta__title { font-size: clamp(2.1rem, 4.2vw, 4rem); max-width: 14ch; }
@media (max-width: 899px) {
  .cta__grid { grid-template-columns: 1fr; }
  .cta__media { max-width: 480px; }
}
.cta__text { margin-top: 24px; font-size: 1.05rem; color: var(--stone); max-width: 42ch; }
.cta__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta__details { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: .95rem; }
.cta__details a { text-decoration: none; color: var(--ink); font-weight: 500; }
.cta__details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta__details span { display: block; font-size: .8rem; color: var(--stone); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bdb6aa; padding: clamp(72px, 8vw, 110px) 0 32px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 48px clamp(24px, 4vw, 64px); }
.footer__logo img { width: 190px; }
.footer__about { margin-top: 24px; max-width: 30ch; }
.footer__title { color: var(--linen); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer__services { columns: 2; column-gap: 32px; }
.footer__services li { margin-bottom: 10px; break-inside: avoid; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--amber); }
.footer__contact li { margin-bottom: 14px; }
.footer__contact span { display: block; color: #847d72; font-size: .78rem; }
.footer__contact a { color: var(--linen); }
.footer__bottom { margin-top: 72px; padding-top: 24px; border-top: 1px solid #2a2a2a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; color: #847d72; }

@media (max-width: 899px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp float (desktop) and contact bar (mobile) ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { transform: scale(1.06); }

.contact-bar { display: none; }
@media (max-width: 899px) {
  .wa-float { display: none; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .contact-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 45;
    padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
    border-top: 1px solid var(--ink);
  }
  .contact-bar a {
    height: 60px; display: flex; align-items: center; justify-content: center; gap: .6em;
    font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  }
  .contact-bar__call { background: var(--linen); color: var(--ink); }
  .contact-bar__wa { background: var(--ink); color: var(--linen); }
  .contact-bar__wa .icon { color: var(--wa); width: 1.5em; height: 1.5em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__frame span, .js .lamp { transform: none; opacity: 1; }
  .lamp .glow { opacity: .55; }
}


/* ==========================================================================
   Projects pages
   ========================================================================== */

/* Page intro (projects list and each project) */
.page-hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(48px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--stone); margin-bottom: 28px; }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--mist); }
.page-title { font-size: clamp(2.2rem, 5.4vw, 4.75rem); max-width: 16ch; }
.page-hero .lede { margin-top: 24px; max-width: 44ch; }
.page-hero__rule { width: 72px; height: var(--frame); background: var(--amber); margin-bottom: 32px; }

/* Projects list */
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 7vw, 104px) clamp(24px, 4vw, 64px); }
.proj-grid > li:nth-child(even) { margin-top: clamp(0px, 9vw, 140px); }
.proj-card { display: block; text-decoration: none; color: var(--ink); }
.proj-card__img { position: relative; overflow: hidden; background: var(--linen); aspect-ratio: 5 / 4; }
.proj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.proj-card:hover .proj-card__img img { transform: scale(1.035); }
.proj-card__body { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px; }
.proj-card__name { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 300; text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; }
.proj-card__meta { grid-column: 1; font-size: .9rem; color: var(--stone); }
.proj-card__go {
  grid-column: 2; grid-row: 1 / span 2; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 3px; background: linear-gradient(var(--amber), var(--amber)) left bottom / 0 2px no-repeat; transition: background-size .35s var(--ease);
}
.proj-card:hover .proj-card__go, .proj-card:focus-visible .proj-card__go { background-size: 100% 2px; }
@media (max-width: 699px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-grid > li:nth-child(even) { margin-top: 0; }
  .proj-card__go { display: none; }
}

/* Single project */
.proj-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); align-items: end; }
.proj-intro__text { grid-column: 1 / span 7; }
.proj-intro__text .lede { max-width: 46ch; color: var(--text); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.proj-facts { grid-column: 9 / -1; display: grid; gap: 0; }
.proj-facts div { border-top: 1px solid var(--ink); padding: 14px 0 16px; }
.proj-facts dt { font-size: .8rem; color: var(--stone); }
.proj-facts dd { margin: 2px 0 0; font-weight: 500; color: var(--ink); }
@media (max-width: 899px) {
  .proj-intro__text, .proj-facts { grid-column: 1 / -1; }
}

/* Justified photo rows: each photo keeps its own shape, rows fill the width */
.jg { display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 14px); --row: 300px; }
.jg::after { content: ""; flex-grow: 999; }
.jg__item { flex-grow: var(--r); flex-basis: calc(var(--r) * var(--row)); position: relative; background: var(--linen); overflow: hidden; }
.jg__item button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.jg__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--r); transition: transform .8s var(--ease), opacity .3s; }
.jg__item button:hover img { transform: scale(1.03); }
.jg__item button:focus-visible { outline-offset: -4px; }
@media (max-width: 899px) { .jg { --row: 200px; } }
@media (max-width: 499px) { .jg { --row: 150px; } }

/* Photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .97); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(14px, 3vw, 32px); font-size: .85rem; }
.lightbox__count { color: #bdb6aa; }
.lightbox__close, .lightbox__nav {
  width: 52px; height: 52px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .2s, border-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.lightbox__close svg, .lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, .35); }
.lightbox__nav--prev { left: clamp(8px, 2vw, 24px); }
.lightbox__nav--next { right: clamp(8px, 2vw, 24px); }
.lightbox__caption { padding: 14px clamp(14px, 3vw, 32px) calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: .9rem; color: #d8d2c6; min-height: 52px; }
@media (max-width: 599px) {
  .lightbox__nav { top: auto; bottom: 8px; transform: none; }
  .lightbox__stage { padding: 0; }
  .lightbox__caption { padding-inline: 72px; }
}
.lightbox-open { overflow: hidden; }

/* Next project */
.proj-next { border-top: 1px solid var(--line); }
.proj-next a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: clamp(40px, 6vw, 72px) 0; text-decoration: none; color: var(--ink); }
.proj-next__label { font-size: .85rem; color: var(--stone); }
.proj-next__name { display: block; margin-top: 6px; font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 300; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; }
.proj-next img { width: clamp(120px, 18vw, 240px); aspect-ratio: 5 / 4; object-fit: cover; }
.proj-next a:hover .proj-next__name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (max-width: 539px) { .proj-next img { display: none; } }

/* ==========================================================================
   Service pages
   ========================================================================== */

.svc-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(72px, 9vw, 128px); }
.svc-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px clamp(20px, 3vw, 40px); align-items: center; }
.svc-hero__text { grid-column: 1 / span 6; }
.svc-hero__media { grid-column: 8 / -1; }
.svc-hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--linen); }
.svc-hero .page-title { font-size: clamp(2rem, 4.2vw, 3.75rem); max-width: 13ch; }
.svc-hero .lede { margin-top: 24px; max-width: 40ch; }
.svc-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.svc-hero__actions .text-link { padding-top: 13px; }
@media (max-width: 899px) {
  .svc-hero__text, .svc-hero__media { grid-column: 1 / -1; }
  .svc-hero__media { max-width: 520px; padding-left: 18px; }
}
@media (max-width: 599px) {
  .svc-hero__actions { flex-direction: column; align-items: flex-start; }
  .svc-hero__actions .btn { width: 100%; }
}

/* Heading on the left, content on the right */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); align-items: start; }
.split__head { grid-column: 1 / span 4; position: sticky; top: calc(var(--hdr) + 32px); }
.split__head .lede { margin-top: 20px; }
.split__body { grid-column: 6 / -1; }
@media (max-width: 899px) {
  .split__head, .split__body { grid-column: 1 / -1; position: static; }
}

.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.offers li { border-top: 1px solid var(--ink); padding: 18px 0 32px; }
.offers h3 { font-size: 1.1rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.offers p { margin-top: 6px; font-size: .95rem; color: var(--stone); max-width: 36ch; }
@media (max-width: 599px) { .offers { grid-template-columns: 1fr; } .offers li { padding-bottom: 24px; } }

/* Questions */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 56px 22px 0; font-size: clamp(1.02rem, 1.4vw, 1.15rem); font-weight: 500; line-height: 1.4; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.faq__a { padding: 0 56px 26px 0; color: var(--stone); max-width: 62ch; }
.faq__a a { color: var(--ink); font-weight: 500; }

/* Which floor where */
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; padding-top: 0; font-size: .8rem; font-weight: 500; color: var(--stone); }
.compare tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.compare tbody th a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--amber), var(--amber)) left bottom / 100% 2px no-repeat; padding-bottom: 2px; }
.compare td { color: var(--text); }
@media (max-width: 699px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: block; border-top: 1px solid var(--ink); padding: 16px 0 8px; }
  .compare th, .compare td { display: block; border: 0; padding: 4px 0; }
  .compare tbody th { font-size: 1.05rem; padding-bottom: 8px; }
  .compare td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--stone); }
}

/* Related services */
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); }
.rel-card { display: block; text-decoration: none; color: var(--ink); }
.rel-card__img { overflow: hidden; background: var(--linen); aspect-ratio: 5 / 4; }
.rel-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.rel-card:hover .rel-card__img img { transform: scale(1.035); }
.rel-card__name { display: block; margin-top: 16px; font-size: 1.1rem; font-weight: 500; }
.rel-card__line { display: block; margin-top: 2px; font-size: .9rem; color: var(--stone); }
.rel-card:hover .rel-card__name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 899px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) {
  .rel-grid { grid-template-columns: 1fr; gap: 20px; }
  .rel-card { display: grid; grid-template-columns: 112px 1fr; gap: 0 16px; align-items: center; }
  .rel-card__img { grid-row: 1 / span 2; aspect-ratio: 1; }
  .rel-card__name { margin-top: 0; align-self: end; }
  .rel-card__line { align-self: start; }
}

.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.after-hero { padding-top: 0; }

/* Page not found */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .page-title { max-width: 14ch; }
.notfound__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Steps take less room on phones */
@media (max-width: 539px) {
  .steps { gap: 0; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 14px; padding: 18px 0 22px; }
  .step__num { grid-row: 1 / span 2; font-size: 2.25rem; }
  .step__title { margin-top: 2px; }
  .step__text { margin-top: 4px; }
}
