/* =====================================================================
   Motif Interiors — landing page theme (v2, mobile-first)
   Single variable family (Archivo, wdth 62–125 / wght 300–800):
   expanded cuts for display, normal width for reading.
   Structure comes from hairlines and spacing, not glows and gradients.
   All legacy u-* classes / IDs remain in the markup untouched.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --wine-900: #3e0b1d;
  --wine-700: #74122f;
  --wine-600: #911841; /* brand primary */
  --wine-100: #f5e8ec;

  --ink-950: #121011;
  --ink-900: #1b1719;
  --ink-700: #3b3437;
  --ink-500: #645b5f;   /* 6.4:1 on paper */
  --ink-300: #9b9195;

  --paper: #f6f4f0;
  --stone-100: #eeeae4;
  --stone-200: #e2ddd5;
  --stone-300: #cfc8be;
  --sand: #c7a77a;

  --wa-green: #25d366;
  --success: #24704f;
  --error: #b3202f;

  /* Semantic */
  --color-bg: var(--paper);
  --color-surface: #ffffff;
  --color-text: var(--ink-900);
  --color-muted: var(--ink-500);
  --color-inverse: #f4f0eb;
  --color-inverse-muted: rgba(244, 240, 235, 0.7);
  --color-primary: var(--wine-600);
  --color-primary-hover: var(--wine-700);
  --line: rgba(27, 23, 25, 0.12);
  --line-strong: rgba(27, 23, 25, 0.22);
  --line-inverse: rgba(255, 255, 255, 0.14);
  --focus-ring: 0 0 0 3px rgba(145, 24, 65, 0.28);

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wdth-display: 112%;
  --wdth-label: 118%;

  --fs-label: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-h2: clamp(1.85rem, 1.35rem + 2.2vw, 3.25rem);
  --fs-hero: clamp(2.05rem, 1.35rem + 3.3vw, 4.1rem);
  --fs-stat: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);

  /* Space (8-pt rhythm) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section-y: clamp(3.5rem, 2.4rem + 5vw, 7.5rem);
  --gutter: clamp(1.125rem, 0.7rem + 1.8vw, 2.5rem);
  --container: 1240px;

  /* Shape */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;

  --shadow-card: 0 1px 2px rgba(18, 16, 17, 0.05), 0 12px 32px -18px rgba(18, 16, 17, 0.25);
  --shadow-float: 0 24px 60px -24px rgba(18, 16, 17, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 700ms;

  --header-h: 64px;
  --z-header: 50;
  --z-fab: 60;
  --z-modal: 100;
}
@media (min-width: 1100px) { :root { --header-h: 76px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-stretch: 104%;          /* Archivo opens up slightly for comfortable reading */
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a, button, label, select, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--wine-600); outline-offset: 3px; }
::selection { background: var(--wine-600); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .u-form-control-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;
}
.icon { width: 1.125em; height: 1.125em; flex: none; }
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--ink-900); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-4); }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 60px; pointer-events: none; }
.spacer, .hero-scroll { display: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--ink-950); color: var(--color-inverse); }
.section--stone { background: var(--stone-100); }
.section--brand { background: var(--ink-950); color: var(--color-inverse); }

/* ---------- 4. Typography ---------- */
.display-2, .display-3, .hero-title, .form-card-title, .contact-title, .map-title,
.slide-caption .u-gallery-heading, .work-cta .u-text-4, .profile-band h2, .popup-content > h2, .u-nav-2 .u-nav-link {
  font-family: var(--font);
  font-stretch: var(--wdth-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.display-2 { font-size: var(--fs-h2); line-height: 1.04; }
.display-3 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem); line-height: 1.08; }
/* Emphasis = a lighter cut of the same family, not a coloured italic */
.display-2 em, .display-3 em, .hero-title em { font-style: normal; font-weight: 300; }

.eyebrow {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-label); font-weight: 600; font-stretch: var(--wdth-label);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--wine-600);
  margin-bottom: var(--s-4);
}
.eyebrow--light { color: var(--sand); }
.lede { font-size: var(--fs-lead); line-height: 1.6; color: var(--color-muted); max-width: 60ch; }

/* Section heads: left-aligned, ruled, editorial */
.section-head {
  display: grid; gap: var(--s-4); margin-bottom: var(--s-7);
  padding-top: var(--s-5); border-top: 1px solid var(--line-strong);
}
.section-head .eyebrow { margin-bottom: 0; }
/* When the head is also the .container, keep the rule inside the gutters */
.container.section-head {
  border-top: 0;
  background: linear-gradient(var(--line-strong), var(--line-strong)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat;
}
.services-head .section-head { margin-bottom: 0; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: var(--s-8); }
  .section-head .eyebrow { grid-column: 1 / -1; }
  .section-head .lede { justify-self: end; }
  .section-head--split { grid-template-columns: 1fr auto; }
  .section-head--split > div { display: grid; gap: var(--s-4); }
}

/* ---------- 5. Buttons ---------- */
.btn-primary,
.u-btn-1,
input[type="submit"].u-btn-1 {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-6);
  border: 0; border-radius: var(--r-sm);
  background: var(--color-primary); color: #fff !important;
  font-family: var(--font); font-size: var(--fs-sm); font-weight: 600; font-stretch: var(--wdth-label);
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color var(--t-med) var(--ease), transform var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.btn-primary .icon { transition: transform var(--t-med) var(--ease); }
.btn-primary:hover, .u-btn-1:hover { background: var(--color-primary-hover); }
.btn-primary:hover .icon { transform: translateX(4px); }
.btn-primary:active, .u-btn-1:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5); border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: transparent; color: var(--color-text);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color var(--t-med), background-color var(--t-med), color var(--t-med);
}
.btn-ghost:hover { border-color: var(--ink-900); }
.btn-ghost--light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost--light:hover { background: #fff; color: var(--ink-900); border-color: #fff; }
.btn-ghost--light .icon { color: var(--wa-green); }
.btn-link { color: var(--wine-600); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.btn-link:hover { text-decoration: underline; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: var(--header-h); color: #fff;
  transition: color var(--t-med) var(--ease), box-shadow var(--t-med);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(246, 244, 240, 0.92);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: opacity var(--t-med) var(--ease);
}
.site-header.is-scrolled { color: var(--color-text); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }

.brand { position: relative; display: block; width: 96px; aspect-ratio: 125 / 54; flex: none; }
.brand-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--t-med); }
.brand-logo--colour { opacity: 0; }
.site-header.is-scrolled .brand-logo--colour { opacity: 1; }
.site-header.is-scrolled .brand-logo--light { opacity: 0; }

.site-nav { display: flex; align-items: center; gap: var(--s-2); }
.u-nav-container { display: none; }
.u-nav-1 { display: flex; align-items: center; gap: var(--s-1); }
.u-nav-1 .u-nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
}
.u-nav-1 .u-nav-link:not(.nav-cta)::after {
  content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease);
}
.u-nav-1 .u-nav-link:hover::after, .u-nav-1 .u-nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-phone {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-3);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.nav-cta, .u-nav-1 .nav-cta {
  margin-left: var(--s-2); padding: 0 var(--s-5) !important; min-height: 44px; border-radius: var(--r-sm);
  background: var(--color-primary); color: #fff !important; font-weight: 600; font-stretch: var(--wdth-label);
  letter-spacing: 0.06em; font-size: var(--fs-label); transition: background-color var(--t-med);
}
.nav-cta:hover { background: var(--color-primary-hover); }

/* Mobile header buttons: call + menu, 44px targets */
.header-call, .menu-collapse .u-nav-link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid currentColor; color: inherit; text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.header-call { border-color: transparent; background: var(--color-primary); color: #fff; }
.header-call .icon { width: 18px; height: 18px; }
.menu-collapse .u-svg-link { display: none; }
.menu-collapse .u-svg-content { width: 18px; height: 18px; fill: currentColor; }

/* Off-canvas menu */
.u-nav-container-collapse { position: fixed; inset: 0; z-index: var(--z-modal); visibility: hidden; pointer-events: none; transition: visibility 0s linear 420ms; }
.u-menu-overlay { position: absolute; inset: 0; background: rgba(18, 16, 17, 0.55); opacity: 0; transition: opacity 320ms var(--ease); }
.u-sidenav {
  position: absolute; inset: 0 0 0 auto; z-index: 1; width: min(400px, 100vw);
  background: var(--ink-950); color: var(--color-inverse);
  transform: translateX(100%); transition: transform 420ms var(--ease);
}
.u-sidenav-overflow {
  height: 100%; overflow-y: auto; display: flex; flex-direction: column;
  padding: calc(var(--header-h) + var(--s-4)) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
}
.u-menu-close {
  position: absolute; top: calc((var(--header-h) - 44px) / 2); right: var(--gutter); width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line-inverse); background: none; color: #fff; cursor: pointer;
}
.u-nav-2 { display: grid; text-align: left; counter-reset: nav; }
.u-nav-2 .u-nav-item { opacity: 0; transform: translateX(16px); transition: opacity 300ms var(--ease), transform 420ms var(--ease); }
.u-nav-2 .u-nav-link {
  display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-4) 0;
  font-size: 1.6rem; line-height: 1.15; text-decoration: none; border-bottom: 1px solid var(--line-inverse);
}
.u-nav-2 .u-nav-item:not(:last-child) .u-nav-link::before {
  counter-increment: nav; content: "0" counter(nav);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; color: var(--sand); font-stretch: 100%;
}
/* Mobile-menu CTA: a real button, not a menu row — override the row's baseline alignment,
   display type and padding so the label is optically centred in the 52px box. */
.u-nav-2 .u-nav-link.nav-cta {
  margin: var(--s-6) 0 0; border: 0; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5) !important;
  font-size: var(--fs-sm); font-weight: 600; font-stretch: var(--wdth-label);
  line-height: 1; letter-spacing: 0.06em; text-transform: uppercase;
}
.u-nav-2 .u-nav-link.nav-cta .icon { width: 18px; height: 18px; flex: none; }
.sidenav-phone { margin-top: auto; padding-top: var(--s-6); color: var(--sand); font-weight: 600; text-decoration: none; font-size: 1.125rem; }
.u-menu.open .u-nav-container-collapse { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.u-menu.open .u-menu-overlay { opacity: 1; }
.u-menu.open .u-sidenav { transform: none; }
.u-menu.open .u-nav-2 .u-nav-item { opacity: 1; transform: none; }
.u-menu.open .u-nav-2 .u-nav-item:nth-child(2) { transition-delay: 40ms; }
.u-menu.open .u-nav-2 .u-nav-item:nth-child(3) { transition-delay: 80ms; }
.u-menu.open .u-nav-2 .u-nav-item:nth-child(4) { transition-delay: 120ms; }
.u-menu.open .u-nav-2 .u-nav-item:nth-child(5) { transition-delay: 160ms; }
.u-menu.open .u-nav-2 .u-nav-item:nth-child(6) { transition-delay: 200ms; }

@media (min-width: 1100px) {
  .u-nav-container { display: block; }
  .menu-collapse, .header-call { display: none; }
  .brand { width: 112px; }
}
@media (max-width: 1279px) { .nav-phone-item { display: none; } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + var(--s-6)) 0 var(--s-7);
  background: var(--ink-950); color: #fff;
}
.hero-media { position: absolute; inset: 0 0 auto; height: min(100svh, 760px); z-index: -2; animation: hero-zoom 1.8s var(--ease) both; }
[data-parallax] { height: 115% !important; transform: translate3d(0, -6.5%, 0); will-change: transform; }
.hero-img { width: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 17, 0.55) 0%, rgba(18, 16, 17, 0.35) 30%, rgba(18, 16, 17, 0.85) 62%, var(--ink-950) 82%);
}
.hero-grid { display: grid; gap: var(--s-6); }
.hero-copy .u-sheet-1 { max-width: 640px; }
.hero-title { font-size: var(--fs-hero); line-height: 1.04; margin-bottom: var(--s-4); }
.hero-lede { font-size: var(--fs-lead); color: rgba(255, 255, 255, 0.82); max-width: 50ch; margin-bottom: var(--s-5); }
.hero-lede strong { color: #fff; font-weight: 600; }
.hero-actions { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero-proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-inverse);
}
.hero-proof li { display: grid; gap: 2px; padding: var(--s-4) var(--s-3) 0 0; }
.hero-proof li + li { padding-left: var(--s-3); border-left: 1px solid var(--line-inverse); }
.hero-proof strong { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 300; font-stretch: 125%; line-height: 1; letter-spacing: -0.02em; }
.hero-proof span { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); line-height: 1.35; }

@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .hero { min-height: min(100svh, 920px); display: flex; align-items: center; padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-8); }
  .hero-media { inset: 0; height: auto; }
  .hero-scrim { background: linear-gradient(90deg, rgba(18, 16, 17, 0.9) 0%, rgba(18, 16, 17, 0.66) 46%, rgba(18, 16, 17, 0.28) 100%); }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr); gap: var(--s-8); align-items: center; }
  .hero-actions { margin-bottom: var(--s-7); }
}

/* ---------- 8. Forms ---------- */
.form-card {
  position: relative; border-radius: var(--r-lg); padding: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem);
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.form-card--glass { box-shadow: var(--shadow-float); border-color: transparent; }
.form-card-title { font-size: var(--fs-h3); line-height: 1.15; margin-bottom: var(--s-2); }
.form-card-title span { color: var(--wine-600); }
.form-card-sub { font-size: var(--fs-sm); color: var(--color-muted); margin-bottom: var(--s-5); }

.lead-form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: 6px; position: relative; }
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); }

.lead-form .u-input {
  width: 100%; min-height: 50px; padding: 0 var(--s-4);
  border: 1px solid var(--stone-300); border-radius: var(--r-sm);
  background: #fff; color: var(--color-text); font-size: 16px; /* no iOS zoom */
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.lead-form textarea.u-input { padding: var(--s-3) var(--s-4); min-height: 96px; resize: vertical; line-height: 1.5; }
.lead-form select.u-input {
  -webkit-appearance: none; appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23645b5f' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 16px;
}
.lead-form select.u-input:has(option[value=""]:checked) { color: var(--ink-300); }
.lead-form .u-input::placeholder { color: var(--ink-300); }
.lead-form .u-input:hover { border-color: var(--ink-300); }
.lead-form .u-input:focus { outline: none; border-color: var(--wine-600); box-shadow: var(--focus-ring); }

.field.is-invalid .u-input { border-color: var(--error); }
.field.is-invalid .u-input:focus { box-shadow: 0 0 0 3px rgba(179, 32, 47, 0.2); }
.field.is-valid .u-input { border-color: color-mix(in srgb, var(--success) 50%, var(--stone-300)); }
.field.is-valid::after {
  content: ""; position: absolute; right: 0.85rem; bottom: 17px; width: 16px; height: 16px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2324704f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.field:has(select).is-valid::after, .field:has(textarea).is-valid::after { display: none; }
.field-error { font-size: var(--fs-sm); color: var(--error); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--stone-300); border-radius: var(--r-sm); background: #fff;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-700);
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 2px; border: 1.5px solid var(--ink-300); }
.chip:hover span { border-color: var(--ink-700); }
.chip input:checked + span { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.chip input:checked + span::before {
  border-color: #fff;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231b1719' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 10px;
}
.chip input:focus-visible + span { box-shadow: var(--focus-ring); }

.form-submit { position: relative; margin-top: var(--s-2); }
.form-submit .u-btn-1 { width: 100%; min-height: 54px; }
.form-submit.is-loading .u-btn-1 { color: transparent !important; pointer-events: none; }
.form-submit.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite; pointer-events: none;
}
.form-feedback:empty, .form-status:empty, .recaptcha-slot:empty { display: none; }
.form-feedback {
  font-size: var(--fs-sm); color: var(--error); background: #fcf0f1; border-left: 3px solid var(--error);
  border-radius: var(--r-sm); padding: var(--s-3) var(--s-4);
}
.form-feedback a { color: inherit; font-weight: 600; }
.form-status { font-size: var(--fs-sm); font-weight: 600; color: var(--success); background: #ecf5f0; border-radius: var(--r-sm); padding: var(--s-3); text-align: center; }
.recaptcha-slot { min-height: 78px; overflow: hidden; }

/* ---------- 9. About ---------- */
.about { background: var(--color-bg); }
.about-grid { display: grid; gap: var(--s-7); align-items: center; }
.about-copy { display: grid; justify-items: start; gap: var(--s-5); }
.about-copy .eyebrow { margin-bottom: 0; }
.reveal-frame { position: relative; overflow: hidden; border-radius: var(--r-md); }
.about-media .reveal-frame { aspect-ratio: 4 / 5; }
.about-media picture { display: block; height: 100%; }
.about-media img { width: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: 0; bottom: 0; padding: var(--s-4) var(--s-5); display: grid;
  background: var(--ink-950); color: #fff; border-top-right-radius: var(--r-md);
}
.about-badge strong { font-size: 1.75rem; font-weight: 300; font-stretch: 125%; line-height: 1.05; }
.about-badge span { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-inverse-muted); }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); } }

/* ---------- 10. Stats ---------- */
.stats .container { display: grid; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-6); border-top: 1px solid var(--line-inverse); }
.stat { padding: var(--s-5) var(--s-2) 0 0; }
.stat + .stat { padding-left: var(--s-3); border-left: 1px solid var(--line-inverse); }
.stat .u-container-layout { display: grid; gap: var(--s-2); justify-items: start; text-align: left; }
.stat-icon { display: none; }
.stat-value { font-size: var(--fs-stat); font-weight: 300; font-stretch: 125%; line-height: 1; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.75rem; font-weight: 400; line-height: 1.4; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-inverse-muted); }
.stat-label strong { color: #fff; font-weight: 600; }
.stats .display-2 { max-width: 16ch; }
@media (min-width: 760px) {
  .stat { padding: var(--s-6) var(--s-5) 0 0; }
  .stat + .stat { padding-left: var(--s-6); }
  .stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--wine-600); margin-bottom: var(--s-3); }
  .stat-icon img { width: 22px; height: 22px; }
  .stat-label { font-size: var(--fs-sm); }
}

/* ---------- 11. Team / video ---------- */
.team-grid { display: grid; gap: var(--s-6); align-items: center; }
.video-facade { aspect-ratio: 761 / 452; background: var(--ink-900); }
.video-facade a, .video-facade picture, .video-facade img { display: block; width: 100%; height: 100%; }
.video-facade img { object-fit: cover; transition: transform 900ms var(--ease); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wine-600); color: #fff;
  transition: transform var(--t-med) var(--ease);
}
.play-btn .icon { width: 26px; height: 26px; margin-left: 3px; }
@media (hover: hover) {
  .video-facade:hover img { transform: scale(1.03); }
  .video-facade:hover .play-btn { transform: scale(1.08); }
}
.team-copy { display: grid; gap: var(--s-4); justify-items: start; }
.team-copy .eyebrow { margin-bottom: 0; }
.tag-list { display: flex !important; flex-wrap: wrap; gap: var(--s-2); }
.tag-list li { padding: 6px var(--s-3); border-radius: var(--r-sm); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 500; }
.team-copy .u-text-3, .team-copy .u-text-5 { color: var(--color-muted); }
.team-kicker { font-size: var(--fs-h3); font-weight: 600; font-stretch: var(--wdth-display); color: var(--wine-600); letter-spacing: -0.01em; }
@media (min-width: 960px) { .team-grid { grid-template-columns: 1.3fr 1fr; gap: var(--s-8); } }

/* ---------- 12. Featured work slider ---------- */
.slider { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ink-900); touch-action: pan-y; }
.slider-track { position: relative; aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .slider-track { aspect-ratio: 16 / 10; } }
@media (min-width: 1100px) { .slider-track { aspect-ratio: 16 / 8; } }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease), visibility 700ms; }
.slide.u-active { opacity: 1; visibility: visible; z-index: 1; }
.slide .u-back-slide, .slide picture { position: absolute; inset: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; cursor: zoom-in; }
.slide.u-active img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(18, 16, 17, 0.85) 0%, rgba(18, 16, 17, 0.15) 50%, transparent 70%); }
.slide-caption { position: absolute; z-index: 2; left: var(--s-5); right: var(--s-5); bottom: calc(var(--s-7) + 16px); color: #fff; text-align: left; max-width: 560px; pointer-events: none; }
.slide-caption .u-gallery-heading { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.05; margin-bottom: var(--s-3); }
.slide-caption .u-gallery-text { font-size: var(--fs-sm); color: rgba(255, 255, 255, 0.82); line-height: 1.5; }
.slide-caption .u-gallery-text + .u-gallery-text { margin-top: var(--s-1); }
.slide.u-active .slide-caption > * { animation: rise 600ms var(--ease) both; }
.slide.u-active .slide-caption > :nth-child(2) { animation-delay: 80ms; }
.slide.u-active .slide-caption > :nth-child(3) { animation-delay: 140ms; }

.slider-btn {
  position: absolute; z-index: 3; bottom: var(--s-4); width: 48px; height: 48px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color var(--t-med), color var(--t-med);
}
.slider-btn:hover { background: #fff; color: var(--ink-900); }
.slider-btn--next { right: var(--s-4); }
.slider-btn--prev { right: calc(var(--s-4) + 56px); }
.slider-btn .icon { width: 20px; height: 20px; }
.slider-dots { position: absolute; z-index: 3; left: var(--s-5); bottom: calc(var(--s-4) + 22px); display: flex; gap: 6px; margin: 0; }
.slider-dots li { position: relative; width: 24px; height: 3px; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width var(--t-med) var(--ease), background-color var(--t-med); }
.slider-dots li::before { content: ""; position: absolute; inset: -14px -4px; } /* 44px tap area */
.slider-dots li.u-active { width: 48px; background: #fff; }
.slider-progress { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, 0.12); }
.slider-progress span { display: block; height: 100%; width: 100%; background: var(--sand); transform-origin: left; transform: scaleX(0); }

.work-cta { margin-top: var(--s-7); display: grid; gap: var(--s-5); justify-items: start; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.work-cta .u-text-4 { font-size: var(--fs-h3); line-height: 1.2; color: var(--ink-900); max-width: 28ch; }
@media (min-width: 860px) { .work-cta { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- 13. Spaces grid ---------- */
.spaces { background: var(--color-bg); }
/* Filter tabs: one inline row with counts and a sliding underline.
   Phones: the row scrolls sideways (edge-to-edge) with fade hints at the edges. */
.filter-tabs {
  position: relative; margin: calc(var(--s-6) * -1 + var(--s-2)) calc(var(--gutter) * -1) var(--s-5);
}
.filter-tabs::before, .filter-tabs::after {
  content: ""; position: absolute; top: 0; bottom: 1px; width: 40px; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity var(--t-med);
}
.filter-tabs::before { left: 0; background: linear-gradient(90deg, var(--color-bg), rgba(246, 244, 240, 0)); }
.filter-tabs::after { right: 0; background: linear-gradient(-90deg, var(--color-bg), rgba(246, 244, 240, 0)); }
.filter-tabs.can-scroll-left::before, .filter-tabs.can-scroll-right::after { opacity: 1; }
.filter-scroller {
  position: relative; display: flex; gap: var(--s-1);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line-strong);
}
.filter-scroller::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-3); border: 0; background: none; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 500; color: var(--color-muted); white-space: nowrap;
  transition: color var(--t-med) var(--ease);
}
.filter-chip:hover { color: var(--ink-900); }
.filter-chip.is-active { color: var(--ink-900); font-weight: 600; }
.filter-chip:focus-visible { outline-offset: -4px; }
.filter-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  font-size: 0.6875rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--stone-200); color: var(--ink-700);
  transition: background-color var(--t-med), color var(--t-med);
}
.filter-chip.is-active .filter-count { background: var(--wine-600); color: #fff; }
.filter-indicator {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--wine-600);
  transform-origin: left; transition: transform 360ms var(--ease), width 360ms var(--ease);
  pointer-events: none;
}
.no-js .filter-tabs { display: none; } /* filters need JS; without it the full grid shows */
@media (min-width: 960px) {
  .filter-tabs { margin-inline: 0; }
  .filter-tabs::before, .filter-tabs::after { display: none; }
  .filter-scroller { padding-inline: 0; overflow: visible; gap: var(--s-3); }
  .filter-chip { padding: 0 var(--s-2); }
}

/* Grid. "All" = editorial bento (wide/tall tiles); filtered = uniform grid sized to the result count. */
.spaces-grid { position: relative; display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 168px; grid-auto-flow: dense; }
.spaces-grid .u-layout, .spaces-grid .u-layout-col, .spaces-grid .u-layout-row,
.spaces-grid [class*="u-size-"]:not(.tile), .spaces-grid .u-layout-cell-4, .spaces-grid .u-container-layout-4 { display: contents; }
.tile[hidden] { display: none !important; }
.spaces-grid:not(.is-filtered) .tile--wide { grid-column: span 2; }
/* 2-col mobile/tablet: the last tile pairs with its neighbour instead of leaving a hole */
@media (max-width: 1099px) { .spaces-grid:not(.is-filtered) > .tile:last-child { grid-column: auto; } }
.spaces-grid.is-filtered .tile.is-odd-last { grid-column: 1 / -1; }
@media (min-width: 640px) { .spaces-grid { grid-auto-rows: 230px; gap: var(--s-3); } }
@media (min-width: 1100px) {
  .spaces-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 270px; }
  .spaces-grid:not(.is-filtered) .tile--tall { grid-row: span 2; }
  .spaces-grid.is-filtered[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 340px; }
  .spaces-grid.is-filtered[data-cols="3"] { grid-auto-rows: 300px; }
  .spaces-grid.is-filtered .tile.is-odd-last { grid-column: auto; }
  .spaces-grid.is-filtered[data-cols="2"] .tile.is-odd-last { grid-column: 1 / -1; }
}
.tile { position: relative; overflow: hidden; border-radius: var(--r-sm); margin: 0; background: var(--stone-200); cursor: zoom-in; isolation: isolate; }
.tile .u-container-layout { position: absolute; inset: 0; }
.tile picture, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform 900ms var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(18, 16, 17, 0.7) 0%, rgba(18, 16, 17, 0) 50%); }
.tile-caption { position: absolute; z-index: 2; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); display: grid; gap: 2px; color: #fff; pointer-events: none; }
.tile-caption strong { font-size: 0.9375rem; font-weight: 600; font-stretch: 108%; line-height: 1.2; }
.tile-cat { display: none; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); font-weight: 600; }
@media (min-width: 640px) {
  .tile-caption { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); }
  .tile-caption strong { font-size: 1.125rem; }
  .tile-cat { display: block; }
}
@media (hover: hover) { .tile:hover img { transform: scale(1.05); } }

/* ---------- 14. Services ---------- */
.services-head { padding-bottom: var(--s-6); background: var(--stone-100); }
.services { position: relative; padding-bottom: var(--section-y); background: var(--stone-100); }
.services-bg { display: none; }
.services-grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { background: var(--color-surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); text-align: left; transition: box-shadow var(--t-med) var(--ease); }
.service-card .u-container-layout { display: grid; grid-template-columns: 112px 1fr; column-gap: var(--s-4); align-items: start; }
.service-media { grid-row: span 3; height: 100%; min-height: 132px; overflow: hidden; }
.service-media picture { display: block; height: 100%; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.service-icon { display: none; }
.service-title { padding-top: var(--s-4); font-size: 1.0625rem; font-weight: 600; font-stretch: 108%; line-height: 1.2; text-transform: capitalize; text-align: left !important; }
.service-card p { padding: var(--s-2) var(--s-4) var(--s-4) 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--color-muted); text-align: left !important; }
@media (min-width: 640px) {
  .service-card .u-container-layout { display: block; }
  .service-media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .service-title { padding: var(--s-4) var(--s-5) 0; font-size: 1.25rem; }
  .service-card p { padding: var(--s-2) var(--s-5) var(--s-5); }
}
@media (hover: hover) {
  .service-card:hover { box-shadow: var(--shadow-card); }
  .service-card:hover .service-media img { transform: scale(1.04); }
}

/* ---------- 15. Testimonials ---------- */
.testimonials .container { display: grid; }
.testimonials .eyebrow { margin-bottom: var(--s-4); }
.quotes-grid { display: grid; gap: var(--s-3); margin-top: var(--s-6); text-align: left; }
@media (min-width: 900px) { .quotes-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
.quote { border-radius: var(--r-md); padding: var(--s-5); margin: 0; background: var(--ink-900); border: 1px solid var(--line-inverse); }
.quote .u-container-layout { display: flex; flex-direction: column; height: 100%; gap: var(--s-4); }
.quote-mark { width: 28px; height: 28px; color: var(--wine-600); }
.quote blockquote { flex: 1; }
.quote blockquote p { font-size: var(--fs-base); line-height: 1.65; color: rgba(255, 255, 255, 0.88); }
.quote-author { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line-inverse); }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--logo img { object-fit: contain; padding: 4px; }
.quote-author .quote-name { font-size: var(--fs-base); font-weight: 600; color: #fff; }
.quote-author .quote-role { font-size: 0.8125rem; font-weight: 400; color: var(--color-inverse-muted); }
.glass { backdrop-filter: none; }

/* ---------- 16. Contact ---------- */
.contact { background: var(--color-bg); }
.contact-grid { display: grid; gap: var(--s-4); grid-template-areas: "form" "info" "map"; }
.contact-grid > .u-size-30, .contact-grid .u-layout-col { display: contents; }
.contact-info { grid-area: info; }
.contact-form-cell { grid-area: form; }
.contact-map-cell { grid-area: map; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "info form" "map form"; gap: var(--s-5); align-items: start; }
  .contact-form-cell { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}
.contact-info > .u-container-layout { border-radius: var(--r-md); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--ink-950); color: var(--color-inverse); text-align: left; }
.contact-title { margin-top: 0; font-size: var(--fs-h3); line-height: 1.15; color: #fff; margin-bottom: var(--s-5); }
.contact-list { display: grid; }
.contact-list li { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; border-top: 1px solid var(--line-inverse); }
.contact-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.06); color: var(--sand); }
.contact-icon .icon { width: 18px; height: 18px; }
.contact-icon--wa { color: var(--wa-green); }
.contact-k { display: block; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-inverse-muted); }
.contact-list p, .contact-list a { font-size: var(--fs-base); font-weight: 500; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-list a:hover { color: var(--sand); text-decoration: underline; }
.form-proof { margin-top: var(--s-5); text-align: center; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.form-proof span { color: var(--wine-600); }

.contact-map-cell .u-container-layout-3 { display: grid; gap: var(--s-4); }
.map-facade { position: relative; min-height: 240px; border-radius: var(--r-md); overflow: hidden; background: var(--stone-100); border: 1px solid var(--line); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s-2); padding: var(--s-5); text-align: center; }
.map-pin { width: 32px; height: 32px; color: var(--wine-600); }
.map-title { font-size: 1.25rem; line-height: 1.15; }
.map-sub { font-size: var(--fs-sm); color: var(--color-muted); }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-4); margin-top: var(--s-3); }
.img_connect { display: none; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; }
.img_connect img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 1024px) { .img_connect { display: block; } }

/* ---------- 17. Profile band ---------- */
.profile-band { background: var(--wine-600); color: #fff; padding-block: var(--s-7); }
.profile-band .u-shape-1 { display: none; }
.profile-grid { display: grid; gap: var(--s-5); align-items: center; }
.profile-band h2 { font-size: var(--fs-h3); line-height: 1.15; color: #fff; }
.profile-band p { color: rgba(255, 255, 255, 0.82); margin-top: var(--s-2); max-width: 52ch; }
.profile-band .btn-primary { background: #fff; color: var(--wine-700) !important; }
.profile-band .btn-primary:hover { background: var(--stone-100); }
@media (min-width: 860px) { .profile-grid { grid-template-columns: 1fr auto; } }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--ink-950); color: var(--color-inverse-muted); padding: var(--s-8) 0 var(--s-6); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer .u-logo { display: block; width: 150px; margin-bottom: var(--s-4); }
.footer-tag { max-width: 36ch; margin-bottom: var(--s-5); }
.u-social-icons { display: flex; gap: var(--s-2); }
.u-social-url { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-inverse); color: #fff; transition: background-color var(--t-med), border-color var(--t-med); }
.u-social-url .icon { width: 18px; height: 18px; }
.u-social-url:hover { background: var(--wine-600); border-color: var(--wine-600); }
.footer-h { font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; font-stretch: var(--wdth-label); color: #fff; font-weight: 600; margin-bottom: var(--s-4); }
.footer-list { display: grid; gap: var(--s-1); }
.footer-list a { display: inline-block; padding: var(--s-1) 0; text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-address { font-style: normal; line-height: 1.7; }
.u-line-1 { height: 1px; background: var(--line-inverse); }
.footer-legal { padding-top: var(--s-5); font-size: var(--fs-label); text-align: center; }
.footer-legal a { color: #fff; }

/* ---------- 19. Mobile action bar / WhatsApp button ---------- */
.action-bar {
  position: fixed; z-index: var(--z-fab); left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink-950); border-top: 1px solid var(--line-inverse);
  transform: translateY(100%); transition: transform 380ms var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar__item {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 58px;
  color: #fff; text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
}
.action-bar__item:active { background: rgba(255, 255, 255, 0.08); }
.action-bar__item .icon { width: 18px; height: 18px; }
.action-bar__item:nth-child(1) .icon { color: var(--sand); }
.action-bar__item:nth-child(2) .icon { color: var(--wa-green); }
.action-bar__item--primary { background: var(--wine-600); }
.action-bar__item--primary:active { background: var(--wine-700); }
.wa-fab {
  position: fixed; z-index: var(--z-fab); right: var(--s-6); bottom: var(--s-6);
  width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center;
  background: var(--wa-green); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
  transform: scale(0); transition: transform 380ms var(--ease);
}
.wa-fab .icon { width: 28px; height: 28px; }
.wa-fab.is-visible { transform: scale(1); }
@media (min-width: 1024px) { .action-bar { display: none; } .wa-fab { display: grid; } }
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(var(--s-6) + 58px + env(safe-area-inset-bottom)); } }

/* ---------- 20. Profile popup ---------- */
.popup-container {
  position: fixed; inset: 0; z-index: var(--z-modal); display: none; align-items: flex-end; justify-content: center;
  background: rgba(18, 16, 17, 0.6);
}
.popup-container.is-open { display: flex; animation: fade-in var(--t-med) var(--ease); }
.popup-content {
  position: relative; width: 100%; max-height: 92svh; overflow-y: auto;
  background: var(--color-surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  animation: sheet-up 380ms var(--ease);
}
@media (min-width: 640px) {
  .popup-container { align-items: center; padding: var(--s-4); }
  .popup-content { width: min(460px, 100%); border-radius: var(--r-lg); padding: var(--s-6); animation: pop-in 320ms var(--ease); }
}
.popup-content > h2 { font-size: var(--fs-h3); line-height: 1.15; color: var(--ink-900); margin-bottom: var(--s-2); padding-right: var(--s-7); }
.popup-content > p { color: var(--color-muted); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
#closePopupBtn {
  position: absolute; top: var(--s-4); right: var(--s-4); width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
#closePopupBtn:hover { background: var(--stone-100); }
#closePopupBtn .icon { width: 18px; height: 18px; }

/* ---------- 21. Lightbox ---------- */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(18, 16, 17, 0.95); }
.lightbox[open] { display: grid; place-items: center; animation: fade-in var(--t-med) var(--ease); }
.lightbox-figure { display: grid; gap: var(--s-3); justify-items: center; padding: var(--s-8) var(--s-3); }
.lightbox-figure img { max-width: min(1400px, 94vw); max-height: 76svh; width: auto; height: auto; border-radius: var(--r-sm); }
.lightbox-figure figcaption { font-size: 1.125rem; font-weight: 600; font-stretch: var(--wdth-display); }
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; cursor: pointer;
}
.lightbox-close { top: var(--s-4); right: var(--s-4); }
.lightbox-nav { bottom: var(--s-5); }
.lightbox-nav--prev { left: calc(50% - 56px); }
.lightbox-nav--next { left: calc(50% + 8px); }
@media (min-width: 900px) { .lightbox-nav { top: 50%; bottom: auto; translate: 0 -50%; } .lightbox-nav--prev { left: var(--s-5); } .lightbox-nav--next { left: auto; right: var(--s-5); } }
.lightbox-close:hover, .lightbox-nav:hover { background: #fff; color: var(--ink-900); }

/* ---------- 22. Motion ---------- */
.hero-anim { animation: rise 800ms var(--ease) both; animation-delay: calc(var(--d, 0) * 80ms + 80ms); }

.js [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); animation: failsafe-reveal 0.6s 3s forwards; }
.js [data-reveal-img] { clip-path: inset(100% 0 0 0); animation: failsafe-clip 0.8s 3s forwards; }
.motion-ready [data-reveal], .motion-ready [data-reveal-img] { animation: none; }
.motion-fallback [data-reveal] { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.motion-fallback [data-reveal-img] { transition: clip-path 900ms var(--ease); }
.motion-fallback [data-reveal].is-in { opacity: 1; transform: none; }
.motion-fallback [data-reveal-img].is-in { clip-path: inset(0 0 0 0); }

@keyframes rise { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes failsafe-reveal { to { opacity: 1; transform: none; } }
@keyframes failsafe-clip { to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal-img] { clip-path: none; }
  .slide img { transform: none !important; }
}

[tabindex="-1"]:focus { outline: none; }

/* =====================================================================
   23. Thank-you page (post-conversion: confirm, reassure, keep engaged)
   ===================================================================== */
.ty-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 760px); display: flex; align-items: center;
  padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-8);
  background: var(--ink-950); color: #fff;
}
.ty-hero-media { position: absolute; inset: 0; z-index: -1; }
.ty-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.3); }
.ty-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18, 16, 17, 0.3) 0%, var(--ink-950) 100%);
}
.ty-hero-inner { display: grid; justify-items: start; max-width: calc(760px + var(--gutter) * 2); margin-inline: auto; }
@media (min-width: 760px) { .ty-hero-inner { justify-items: center; text-align: center; } .ty-hero-inner .eyebrow { justify-content: center; } }
.ty-hero .hero-title { font-size: clamp(2.6rem, 1.8rem + 4vw, 5rem); margin-bottom: var(--s-4); }
.ty-hero .hero-lede { margin-bottom: var(--s-6); }

.ty-check { width: 64px; height: 64px; margin-bottom: var(--s-5); }
.ty-check svg { width: 100%; height: 100%; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ty-check circle { stroke: var(--sand); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 900ms var(--ease) 200ms forwards; }
.ty-check path { stroke: #fff; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 500ms var(--ease) 900ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.ty-actions { display: grid; gap: var(--s-3); width: 100%; }
@media (min-width: 560px) { .ty-actions { display: flex; flex-wrap: wrap; justify-content: inherit; width: auto; } }
@media (min-width: 760px) { .ty-actions { justify-content: center; } }
.ty-wa .icon { color: #fff; }
.ty-note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--color-inverse-muted); }

.steps { display: grid; gap: var(--s-3); counter-reset: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); } }
.step { padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--color-surface); display: grid; gap: var(--s-2); align-content: start; }
.step-num { font-size: 2.25rem; font-weight: 300; font-stretch: 125%; line-height: 1; color: var(--wine-600); letter-spacing: -0.02em; margin-bottom: var(--s-3); }
.step-title { font-size: 1.125rem; font-weight: 600; font-stretch: 108%; line-height: 1.25; }
.step p { font-size: var(--fs-sm); color: var(--color-muted); line-height: 1.6; }

.ty-work .section-head--split .btn-ghost { justify-self: start; }
.ty-projects { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .ty-projects { grid-template-columns: repeat(3, 1fr); } }
.ty-project { display: grid; gap: var(--s-3); text-decoration: none; color: inherit; }
.ty-project-media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-md); background: var(--stone-200); }
.ty-project-media picture, .ty-project-media img { width: 100%; height: 100%; }
.ty-project-media img { object-fit: cover; transition: transform 900ms var(--ease); }
.ty-project-meta { display: grid; gap: 2px; }
.ty-project-meta strong { font-size: 1.125rem; font-weight: 600; font-stretch: 108%; }
.ty-project-meta span { font-size: var(--fs-sm); color: var(--color-muted); }
@media (hover: hover) { .ty-project:hover img { transform: scale(1.04); } .ty-project:hover strong { text-decoration: underline; text-underline-offset: 4px; } }
.page-thankyou .site-footer { padding-bottom: var(--s-6); }
@media (prefers-reduced-motion: reduce) { .ty-check circle, .ty-check path { stroke-dashoffset: 0; } }
