/* ==========================================================================
   CK Interiors N Homes — "The feeling of home"
   Design tokens, layout primitives and components
   ========================================================================== */

:root {
  /* Palette (from the design brief) */
  --ivory: #F5F1E9;
  --ivory-deep: #EDE6DA;
  --espresso: #29231F;
  --espresso-soft: #3A322C;
  --stone: #DDD4C6;
  --terracotta: #A45E46;
  --terracotta-ink: #8E4E39;   /* AA-compliant on ivory for small text */
  --olive: #68705A;
  --brass: #B8955A;            /* used only for the CK emblem */
  --ink-muted: #5E544C;
  --line: rgba(41, 35, 31, 0.14);
  --line-light: rgba(245, 241, 233, 0.18);

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.3rem + 1vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.6rem);
  --step-4: clamp(2.8rem, 1.9rem + 4vw, 5.8rem);
  --step-5: clamp(3.4rem, 2rem + 6.4vw, 8.6rem);

  /* Space */
  --gutter: clamp(1rem, 0.5rem + 2.6vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --max: 1360px;
  --radius: 6px;
  --arch: 999px 999px var(--radius) var(--radius);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--stone); }
::selection { background: var(--terracotta); color: var(--ivory); }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--espresso); color: var(--ivory); padding: 0.75rem 1.1rem; border-radius: var(--radius);
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.on-dark { background: var(--espresso); color: var(--ivory); }
.on-stone { background: var(--stone); }
.on-ivory-deep { background: var(--ivory-deep); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--terracotta-ink);
  margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: #D7A08A; }

.display, .h2, .h3 { font-family: var(--serif); line-height: 1.12; }
.display { font-size: var(--step-4); font-weight: 300; }
.h2 { font-size: var(--step-3); font-weight: 300; }
.h3 { font-size: var(--step-2); font-weight: 400; }
em, .italic { font-style: italic; }
.display em, .h2 em, .h3 em { color: var(--terracotta); font-weight: 400; }
.on-dark .display em, .on-dark .h2 em, .on-dark .h3 em { color: #D7A08A; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--ink-muted); max-width: 36ch; }
.on-dark .lede { color: rgba(245, 241, 233, 0.78); }
.muted { color: var(--ink-muted); }
.on-dark .muted { color: rgba(245, 241, 233, 0.7); }
.measure { max-width: 60ch; }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; }
}

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--terracotta); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 52px; padding: 0.9rem 1.6rem;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg); border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
  cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { --bg: var(--espresso); }
.on-dark .btn:hover { --bg: var(--ivory); --fg: var(--espresso); }
.btn--ghost { --bg: transparent; --fg: var(--espresso); border-color: var(--espresso); }
.btn--ghost:hover { --bg: var(--espresso); --fg: var(--ivory); }
.on-dark .btn--ghost { --fg: var(--ivory); border-color: rgba(245, 241, 233, 0.5); }
.on-dark .btn--ghost:hover { --bg: var(--ivory); --fg: var(--espresso); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding-block: 0.35rem; border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Emblem (logo rendered through a luminance mask so it can be recoloured) ---------- */
.emblem {
  display: inline-block; width: 44px; aspect-ratio: 1;
  background: linear-gradient(140deg, #D9BC82 0%, var(--brass) 45%, #8F6E3B 100%);
  -webkit-mask: url("../img/emblem.jpg") center / contain no-repeat;
  mask: url("../img/emblem.jpg") center / contain no-repeat;
  -webkit-mask-source-type: luminance; mask-mode: luminance;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(245, 241, 233, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand__name { font-family: var(--serif); font-size: 1.35rem; line-height: 1; letter-spacing: 0.04em; white-space: nowrap; }
.brand__name span { font-style: italic; color: var(--terracotta-ink); }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(1.2rem, 0.5rem + 1.5vw, 2.4rem); }
.nav a {
  position: relative; text-decoration: none; font-size: 0.92rem; font-weight: 500; padding-block: 0.4rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; min-height: 44px; padding: 0.6rem 1.25rem; font-size: 0.88rem; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: none; border: 0; padding: 0.6rem 0; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  min-height: 44px;
}
.menu-toggle__bars { width: 26px; height: 10px; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8px; }
.menu-open .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

@media (min-width: 1040px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ivory); padding: 2rem var(--gutter) 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-menu ul { list-style: none; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a.mobile-menu__link {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 3vw, 2.8rem); text-decoration: none; padding-block: 0.7rem;
}
.mobile-menu a.mobile-menu__link small { font-family: var(--sans); font-size: 0.75rem; color: var(--ink-muted); letter-spacing: 0.15em; }
.menu-open { overflow: hidden; }
@media (min-width: 1040px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2rem, 1rem + 4vw, 5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__title { font-size: var(--step-5); font-weight: 300; line-height: 0.95; letter-spacing: -0.025em; }
.hero__title .line { display: block; }
.hero__title em { color: var(--terracotta); font-weight: 400; }
.hero__title .indent { padding-left: clamp(1.5rem, 1rem + 6vw, 7rem); }
.hero__copy .lede { margin: 2rem 0 2.4rem; }
.hero__media { position: relative; justify-self: center; width: min(84%, 520px); }
.hero__arch {
  position: relative; border-radius: var(--arch); overflow: hidden; aspect-ratio: 3 / 4; background: var(--stone);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__inset {
  position: absolute; left: -12%; bottom: 8%; width: 38%;
  border-radius: var(--arch); overflow: hidden; aspect-ratio: 3 / 4;
  border: 6px solid var(--ivory); box-shadow: 0 30px 60px -30px rgba(41, 35, 31, 0.45);
}
.hero__inset img { width: 100%; height: 100%; object-fit: cover; }
.seal {
  position: absolute; right: -6%; top: 6%; width: clamp(112px, 9vw + 60px, 150px); aspect-ratio: 1;
  display: grid; place-items: center; background: var(--ivory); border-radius: 50%;
  box-shadow: 0 20px 40px -24px rgba(41, 35, 31, 0.5);
}
.seal svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.seal text { font-family: var(--sans); font-size: 8.4px; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; fill: var(--espresso); }
.seal .emblem { width: 44%; }
@media (prefers-reduced-motion: no-preference) {
  .seal svg { animation: spin 38s linear infinite; }
  .hero__arch img { animation: settle 2.4s var(--ease) both; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
  .hero__media { justify-self: end; }
}

.hero__meta {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem); border-top: 1px solid var(--line); padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.2rem; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero__meta span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); }

/* ---------- Intention paths ---------- */
.paths { display: grid; gap: clamp(2rem, 1rem + 2vw, 3rem); }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(3, 1fr); } .path:nth-child(2) { margin-top: 4rem; } }
.path { text-decoration: none; display: block; }
.path__media { border-radius: var(--arch); overflow: hidden; aspect-ratio: 3 / 4; background: var(--stone); position: relative; }
.path__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.path:hover .path__media img { transform: scale(1.05); }
.path__num { position: absolute; top: 1.2rem; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-style: italic; color: var(--ivory); font-size: 1.1rem; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.path__body { padding-top: 1.4rem; }
.path__title { font-size: var(--step-2); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.path__title svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--terracotta); transition: transform 0.4s var(--ease); }
.path:hover .path__title svg { transform: translateX(6px); }
.path__body p { margin-top: 0.6rem; color: var(--ink-muted); }

/* ---------- Projects (editorial) ---------- */
.project { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
.project + .project { margin-top: clamp(5rem, 3rem + 6vw, 9rem); }
@media (min-width: 900px) {
  .project { grid-template-columns: 1.15fr 1fr; }
  .project--flip .project__media { order: 2; }
}
.project__media { position: relative; display: grid; grid-template-columns: 1fr 0.55fr; gap: 1rem; align-items: end; }
.project__media figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--espresso-soft); }
.project__media figure:first-child { border-radius: var(--arch); aspect-ratio: 3 / 4; }
.project__media figure:last-child { aspect-ratio: 3 / 4; margin-bottom: 18%; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project__media a:hover img { transform: scale(1.04); }
.project__index { font-family: var(--serif); font-size: var(--step-1); font-style: italic; color: #D7A08A; }
.project__title { font-size: var(--step-4); font-weight: 300; margin: 0.4rem 0 1.2rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 2rem; }
.tags li { font-size: 0.8rem; font-weight: 500; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); }
.on-dark .tags li { border-color: var(--line-light); color: rgba(245, 241, 233, 0.85); }

.film-btn {
  display: inline-flex; align-items: center; gap: 0.8rem; background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 600; font-size: 0.95rem; min-height: 44px;
}
.film-btn__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; transition: background 0.3s, color 0.3s; }
.film-btn__icon svg { width: 14px; height: 14px; margin-left: 2px; }
.film-btn:hover .film-btn__icon { background: var(--ivory); color: var(--espresso); }

/* Detail strip */
.strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-top: clamp(4rem, 3rem + 4vw, 7rem); scrollbar-width: thin; scrollbar-color: var(--terracotta) transparent; }
.strip figure { margin: 0; flex: 0 0 clamp(200px, 22vw, 300px); scroll-snap-align: start; }
.strip img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: var(--radius); }
.strip figcaption { font-size: 0.82rem; margin-top: 0.6rem; color: rgba(245, 241, 233, 0.7); }

/* ---------- Room to detail ---------- */
.room { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 960px) { .room { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }
.room__stage { position: relative; border-radius: var(--radius); overflow: visible; }
.room__stage > img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; }
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(41, 35, 31, 0.38); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.hotspot::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 1px rgba(41,35,31,0.25); transition: transform 0.3s var(--ease), background 0.3s; }
.hotspot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--ivory); opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) { .hotspot::after { animation: pulse 2.6s var(--ease) infinite; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.hotspot:hover::before, .hotspot[aria-expanded="true"]::before { background: var(--terracotta); transform: scale(1.15); }
.hotspot__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.room__panel {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2;
  background: var(--ivory); color: var(--espresso); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.room__panel[hidden] { display: none; }
.room__panel h3 { font-size: var(--step-2); margin: 0.4rem 0 0.6rem; padding-right: 2.5rem; }
.room__panel p { font-size: 0.95rem; color: var(--ink-muted); }
.room__panel h3:focus, .form-success h2:focus { outline: none; }
.room__panel .close { position: absolute; top: 0.6rem; right: 0.6rem; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.room__panel .close:hover { background: var(--ivory-deep); }
.room__panel .close svg { width: 18px; height: 18px; }
@media (min-width: 600px) { .room__panel { left: auto; width: min(360px, calc(100% - 2rem)); } }
@media (prefers-reduced-motion: no-preference) { .room__panel:not([hidden]) { animation: rise 0.45s var(--ease); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; }
.badge--shop { background: #E6EADF; color: #3F4635; }
.badge--custom { background: #F1E1D9; color: var(--terracotta-ink); }
.badge--idea { background: var(--ivory-deep); color: var(--ink-muted); }

.detail-list { list-style: none; counter-reset: d; border-top: 1px solid var(--line-light); }
.detail-list li { counter-increment: d; border-bottom: 1px solid var(--line-light); }
.detail-list button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.15rem 0;
  display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 0.8rem; align-items: baseline;
}
.detail-list button::before { content: counter(d, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: #D7A08A; }
.detail-list .t { font-family: var(--serif); font-size: var(--step-1); }
.detail-list .d { grid-column: 2 / -1; font-size: 0.92rem; color: rgba(245, 241, 233, 0.7); }
.detail-list .badge { align-self: center; }
.detail-list button[aria-pressed="true"] .t { color: #D7A08A; }
.detail-list a { color: inherit; }

/* ---------- Products ---------- */
.products { display: grid; gap: clamp(1rem, 0.5rem + 1.5vw, 2.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } .products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product { position: relative; }
.product__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #E9E3D8; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__swatch { position: absolute; top: 0.9rem; left: 0.9rem; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ivory); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.product__body { padding-top: 1rem; display: grid; gap: 0.25rem; }
.product__name { font-family: var(--serif); font-size: var(--step-1); }
.product__meta { font-size: 0.85rem; color: var(--ink-muted); }
.product__cta { margin-top: 0.5rem; justify-self: start; font-size: 0.88rem; }
.product__cta::after { content: ""; position: absolute; inset: 0; }

/* ---------- Founder / process ---------- */
.founder { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 5rem); align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: 0.85fr 1fr; } }
.founder__portrait { position: relative; max-width: 460px; }
.founder__portrait img { border-radius: var(--arch); aspect-ratio: 3/4; object-fit: cover; object-position: 50% 20%; width: 100%; }
.founder__portrait figcaption { position: absolute; right: -1rem; bottom: 2rem; background: var(--ivory); padding: 0.9rem 1.2rem; border-radius: var(--radius); font-size: 0.85rem; box-shadow: 0 20px 40px -24px rgba(41,35,31,0.45); }
.founder__portrait figcaption strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.quote { font-family: var(--serif); font-size: var(--step-3); font-weight: 300; line-height: 1.12; margin: 0 0 2rem; }
.quote::before { content: "\201C"; display: block; font-size: 2em; line-height: 0.6; color: var(--terracotta); height: 0.4em; }

.process { list-style: none; display: grid; gap: 0; counter-reset: p; margin-top: 2.5rem; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
.process li { counter-increment: p; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.process li::before { content: counter(p, decimal-leading-zero); font-family: var(--serif); font-style: italic; color: var(--terracotta-ink); margin-right: 0.8rem; }
.process strong { font-family: var(--serif); font-weight: 500; font-size: var(--step-1); }
.process p { font-size: 0.92rem; color: var(--ink-muted); margin-top: 0.3rem; }

/* ---------- Principles marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1.4rem, 1rem + 1.5vw, 2.4rem); }
.marquee__track { display: flex; width: max-content; gap: 3rem; }
.marquee__track span { font-family: var(--serif); font-size: var(--step-4); font-weight: 300; white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: ""; width: 0.35em; height: 0.35em; border-radius: 50%; background: var(--terracotta); }
.marquee__track span:nth-child(even) { font-style: italic; color: var(--terracotta); }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: marquee 40s linear infinite; } }
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; width: auto; gap: 1rem 3rem; padding-inline: var(--gutter); } .marquee__track [aria-hidden] { display: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }

.values { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.value h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.value p { color: var(--ink-muted); font-size: 0.95rem; }
.value__icon { width: 46px; height: 46px; color: var(--terracotta); margin-bottom: 1.2rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; }
.cta__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1.3fr 1fr; } }
.cta__title { font-size: var(--step-5); font-weight: 300; line-height: 0.95; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-light); text-decoration: none; font-size: 0.9rem; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chip:hover { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.cta__arch { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4/5; max-width: 420px; justify-self: end; width: 100%; }
.cta__arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(3rem, 2rem + 4vw, 6.5rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.page-hero__title { font-size: var(--step-5); font-weight: 300; line-height: 0.95; letter-spacing: -0.02em; max-width: 14ch; }
.page-hero__title em { color: var(--terracotta); font-weight: 400; }
.page-hero .lede { margin-top: 1.8rem; max-width: 46ch; }
.page-hero__grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 1.4fr 1fr; } }

.banner { aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); background: var(--stone); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .banner { aspect-ratio: 4 / 3; } }

/* ---------- Project story (projects page) ---------- */
.story { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 960px) { .story { grid-template-columns: 0.8fr 1.2fr; align-items: start; } .story__text { position: sticky; top: calc(var(--header-h) + 2rem); } }
.facts { display: grid; gap: 0; margin: 2rem 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.facts dt { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; color: var(--ink-muted); padding-top: 0.2rem; }
.facts dd { margin: 0; }
.on-dark .facts, .on-dark .facts div { border-color: var(--line-light); }
.on-dark .facts dt { color: rgba(245, 241, 233, 0.6); }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.9rem; }
.gallery button { padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); grid-column: span 3; aspect-ratio: 3/4; }
.gallery button.wide { grid-column: span 6; aspect-ratio: 4/3; }
.gallery button.tall { grid-column: span 3; }
.gallery button.third { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery__film { grid-column: span 6; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--espresso); color: var(--ivory); display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery__film { grid-template-columns: 0.5fr 1fr; } }
.gallery__film video { width: 100%; aspect-ratio: 9/16; max-height: 640px; object-fit: cover; background: #000; }
.gallery__film-text { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }

/* ---------- Services page ---------- */
.service { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 6rem); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .service { grid-template-columns: 1fr 1fr; } .service--flip .service__media { order: 2; } }
.service__media { border-radius: var(--arch); overflow: hidden; aspect-ratio: 4/5; max-width: 560px; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__num { font-family: var(--serif); font-style: italic; color: var(--terracotta-ink); font-size: var(--step-1); }
.checklist { list-style: none; display: grid; gap: 0.15rem; margin: 1.6rem 0 2rem; }
@media (min-width: 560px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.checklist li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--terracotta); }
.on-dark .checklist li { border-color: var(--line-light); }

/* ---------- Forms ---------- */
.form-shell { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
@media (min-width: 960px) { .form-shell { grid-template-columns: 0.75fr 1.25fr; } }
@media (max-width: 959px) { .form-shell aside { order: 2; } .form-shell aside .cta__arch { display: none; } }
.form { display: grid; gap: 1.5rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.form legend { font-family: var(--serif); font-size: var(--step-2); margin-bottom: 1rem; padding: 0; }
.form-row { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.45rem; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: 0.9rem; }
.field .opt { font-weight: 400; color: var(--ink-muted); font-size: 0.82rem; }
.field .req { color: var(--terracotta-ink); }
.field .hint { font-size: 0.82rem; color: var(--ink-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0.8rem 1rem; background: #FBF9F5; border: 1px solid #B9AE9F; border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2329231F' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(164, 94, 70, 0.22); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #A3342A; }
.error-msg { color: #A3342A; font-size: 0.85rem; font-weight: 600; }
.error-msg:empty { display: none; }
.choice-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 52px; padding: 0.7rem 1rem; border: 1px solid #B9AE9F; border-radius: var(--radius); font-size: 0.93rem; background: #FBF9F5; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.choice input:checked + span { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.choice input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.form-summary { border: 1px solid #A3342A; background: #FBEDEA; padding: 1rem 1.2rem; border-radius: var(--radius); }
.form-summary h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.form-summary ul { padding-left: 1.2rem; font-size: 0.92rem; }
.form-summary a { color: #A3342A; }
.form-success { background: var(--espresso); color: var(--ivory); border-radius: var(--radius); padding: clamp(2rem, 1rem + 3vw, 3.5rem); }
.form-success h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.form-note { font-size: 0.85rem; color: var(--ink-muted); }

.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.contact-list li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.contact-list span:first-child { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; color: var(--ink-muted); padding-top: 0.2rem; }
.contact-list a { text-decoration-color: rgba(164, 94, 70, 0.5); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--terracotta-ink); }
.tbc { color: var(--ink-muted); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--ivory); padding-top: clamp(4rem, 3rem + 4vw, 7rem); padding-bottom: 2rem; }
.footer-top { display: grid; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-light); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .emblem { width: 84px; margin-bottom: 1.4rem; }
.footer-brand p.tagline { font-family: var(--serif); font-size: var(--step-2); font-style: italic; line-height: 1.15; max-width: 16ch; }
.site-footer h2 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: rgba(245, 241, 233, 0.55); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; color: rgba(245, 241, 233, 0.88); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: 0.82rem; color: rgba(245, 241, 233, 0.55); }
.footer-word { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 1rem + 10vw, 11rem); line-height: 0.9; letter-spacing: -0.02em; color: rgba(245, 241, 233, 0.08); margin-top: 2.5rem; white-space: nowrap; overflow: hidden; user-select: none; }

/* ---------- Dialogs (lightbox / film) ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: var(--ivory); }
.lightbox::backdrop { background: rgba(20, 17, 15, 0.94); }
.lightbox__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 4.5rem 1rem 3.5rem; }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lightbox img, .lightbox video { max-width: min(100%, 1100px); max-height: calc(100vh - 8rem); max-height: calc(100dvh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(245,241,233,0.35); background: rgba(41,35,31,0.6); color: var(--ivory); cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--ivory); color: var(--espresso); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 20px; height: 20px; }
.lightbox__caption { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: 0.88rem; color: rgba(245,241,233,0.75); padding-inline: 4rem; }

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: inset(12% 0 0 0 round 999px 999px 6px 6px); transition: clip-path 1.4s var(--ease); }
  .js .reveal-img.is-in { clip-path: inset(0 0 0 0 round 999px 999px 6px 6px); }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.note { font-size: 0.82rem; color: var(--ink-muted); }
.on-dark .note { color: rgba(245, 241, 233, 0.6); }
.divider-emblem { display: flex; align-items: center; gap: 1.2rem; justify-content: center; margin-block: 0 2.5rem; }
.divider-emblem::before, .divider-emblem::after { content: ""; height: 1px; flex: 1; max-width: 160px; background: var(--line); }

/* ---------- WhatsApp chat pop-up ---------- */
.wa {
  --wa-green: #25D366;
  --wa-green-ink: #187A43;
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem;
  pointer-events: none;
}
.wa > * { pointer-events: auto; }
.menu-open .wa { display: none; }

.wa__launcher {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 56px; padding: 0.5rem 1.2rem 0.5rem 0.5rem;
  background: var(--espresso); color: var(--ivory); text-decoration: none;
  border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 18px 40px -16px rgba(41, 35, 31, 0.6);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.wa__launcher:hover { transform: translateY(-2px); background: #000; }
.wa__icon { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--wa-green); color: #fff; flex: none; }
.wa__launcher[aria-expanded="true"] .wa__icon { background: var(--terracotta); }
@media (max-width: 599px) {
  .wa__launcher { padding: 0.5rem; }
  .wa__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-footer { padding-bottom: 6rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .wa__launcher::after {
    content: ""; position: absolute; left: 0.5rem; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
    border: 2px solid var(--wa-green); animation: wa-ping 2.8s var(--ease) 1.5s 3; opacity: 0; pointer-events: none;
  }
  .wa__launcher { position: relative; }
}
@keyframes wa-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

.wa__panel {
  width: min(370px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 110px));
  display: flex; flex-direction: column;
  background: var(--ivory); color: var(--espresso);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(41, 35, 31, 0.55), 0 0 0 1px rgba(41, 35, 31, 0.08);
  transform-origin: bottom right;
}
.wa__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .wa__panel:not([hidden]) { animation: wa-in 0.35s var(--ease); } }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }

.wa__head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 0.6rem 1rem 1.1rem; background: var(--espresso); color: var(--ivory); }
.wa__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--wa-green); flex: none; }
.wa__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.1; }
.wa__sub { margin: 0.15rem 0 0; font-size: 0.78rem; color: rgba(245, 241, 233, 0.72); display: flex; align-items: center; gap: 0.4rem; }
.wa__sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wa-green); }
.wa__close { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; flex: none; }
.wa__close:hover { background: rgba(245, 241, 233, 0.12); }
.wa__close svg { width: 18px; height: 18px; }
.wa__head :focus-visible { outline-color: var(--stone); }

.wa__body { padding: 1.1rem; overflow-y: auto; overscroll-behavior: contain; }
.wa__bubble { position: relative; background: #fff; border-radius: 4px 14px 14px 14px; padding: 0.8rem 0.95rem; font-size: 0.92rem; line-height: 1.5; box-shadow: 0 1px 2px rgba(41, 35, 31, 0.1); margin-bottom: 1.1rem; }
.wa__form { display: grid; gap: 0.55rem; }
.wa__topics { border: 0; margin: 0 0 0.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.wa__legend { font-size: 0.82rem; font-weight: 600; padding: 0; margin-bottom: 0.45rem; width: 100%; }
.wa__opt { font-weight: 400; color: var(--ink-muted); }
.wa__topic { position: relative; }
.wa__topic input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wa__topic span { display: inline-flex; align-items: center; min-height: 38px; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid #B9AE9F; font-size: 0.84rem; background: #FBF9F5; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.wa__topic input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.wa__topic input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.wa__msg { width: 100%; min-height: 84px; resize: vertical; padding: 0.7rem 0.85rem; border: 1px solid #B9AE9F; border-radius: 10px; background: #FBF9F5; font-size: 0.92rem; }
.wa__msg:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(164, 94, 70, 0.22); }
.wa__send { margin-top: 0.4rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 50px; border: 0; border-radius: 999px; background: var(--wa-green-ink); color: #fff; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.3s; }
.wa__send:hover { background: #126236; }
.wa__send svg { width: 18px; height: 18px; }
.wa__note { font-size: 0.76rem; color: var(--ink-muted); text-align: center; margin: 0.2rem 0 0; }

/* ---------- Service area ---------- */
.service-area { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius); background: var(--ivory-deep); max-width: 760px; }
.service-area .h3 { margin-bottom: 0.6rem; }
.footer-area { color: rgba(245, 241, 233, 0.6); font-size: 0.88rem; margin-top: 0.4rem; }
