/* QuickHomes BuildTech — site styles (v2, premium)
   Neutral palette, large refined type, photo-led tiles, slow scroll-linked motion. */

:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, .08);
  --paper: #ffffff;
  --sand: #f5f5f7;
  --stone: #e8e8ed;
  --night: #000000;
  --night-2: #161617;
  --bronze: #9a7b4f;
  --accent: var(--bronze);
  --wa: #25d366;

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --section: clamp(64px, 7vw, 112px);
  --radius: clamp(18px, 2vw, 28px);
  --radius-sm: 14px;
  --header-h: 56px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.53 var(--font-text); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
::selection { background: rgba(154, 123, 79, .22); }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.display-xl { font-size: clamp(52px, 8.4vw, 128px); letter-spacing: -0.045em; line-height: .98; }
.display-l  { font-size: clamp(44px, 6.2vw, 96px); letter-spacing: -0.042em; line-height: 1; }
.display-m, h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.035em; line-height: 1.04; }
.display-s, h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.024em; line-height: 1.12; }
h4 { font: 600 19px/1.3 var(--font-display); letter-spacing: -0.015em; }
.eyebrow { display: inline-block; font: 600 clamp(15px, 1.25vw, 18px)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--accent); }
.eyebrow::before { content: none; }
.lead { font-size: clamp(19px, 1.65vw, 24px); line-height: 1.42; color: var(--ink-2); letter-spacing: -0.018em; text-wrap: pretty; font-weight: 400; }
.muted { color: var(--muted); }
.prose { max-width: 66ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 2em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.2em; margin: .8em 0; }
.prose li + li { margin-top: .35em; }
.prose a { color: #0066cc; }
.prose a:hover { text-decoration: underline; }
.text-accent { color: var(--accent); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 900px; }
.wrap-wide { max-width: 1680px; }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .5); }
.bg-sand { background: var(--sand); }
.bg-stone { background: var(--stone); }
.bg-night { background: var(--night); color: #f5f5f7; }
.bg-night .muted { color: #a1a1a6; }
.bg-night .eyebrow { color: #c7a77a; }
.bg-night .lead { color: #d2d2d7; }
.stack > * + * { margin-top: var(--stack, 24px); }
.section-head { display: grid; gap: 18px; max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center, .center-head { margin-inline: auto; text-align: center; justify-items: center; }
.split-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.split-head > :first-child { max-width: 760px; display: grid; gap: 16px; }
.grid-2 { display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.statement { font: 600 clamp(30px, 4.2vw, 60px)/1.1 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; max-width: 18ch; }
.statement .dim { color: var(--faint); }
.bg-night .statement .dim { color: #6e6e73; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 500 16px/1 var(--font-text); letter-spacing: -0.01em; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-dark, .btn-wa { background: var(--ink); color: #fff; }
.btn-dark:hover, .btn-wa:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f5f5f7; }
.btn-ghost { box-shadow: inset 0 0 0 1px currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.bg-night .btn-ghost:hover, .on-image .btn-ghost:hover, .hero .btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #fff; }
.bg-night .btn-dark, .hero .btn-dark { background: #fff; color: var(--ink); }
/* WhatsApp: understated black pill with a live green dot */
.btn-wa svg { color: var(--wa); }
.btn-wa::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: waPulse 2.6s var(--ease) infinite; margin-left: 2px; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.hero .btn-wa, .bg-night .btn-wa { background: #fff; color: var(--ink); }
.hero .btn-wa:hover, .bg-night .btn-wa:hover { background: #f5f5f7; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; color: #0066cc; font-size: clamp(17px, 1.3vw, 19px); letter-spacing: -0.015em; }
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .4s var(--ease-out); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover::after { transform: translate(3px, -1px); }
.bg-night .link-arrow, .hero .link-arrow, .tile.dark .link-arrow { color: #2997ff; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--ink); transition: transform .6s var(--ease-out), color .4s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); transition: opacity .4s var(--ease); }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) { color: #fff; }
.site-header.on-dark:not(.is-scrolled):not(.menu-open)::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1440px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 24px; width: auto; }
.brand .logo-white { display: none; }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .logo-color { display: none; }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .logo-white { display: block; }
.nav { display: flex; align-items: center; gap: 2px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav > a, .nav-group > button { position: relative; display: inline-flex; align-items: center; gap: 5px; height: var(--header-h); padding: 0 14px; font-size: 13.5px; font-weight: 400; letter-spacing: -0.005em; opacity: .82; transition: opacity .25s; }
.nav > a:hover, .nav-group > button:hover, .nav > a[aria-current="page"], .nav-group.is-current > button { opacity: 1; }
.nav > a[aria-current="page"], .nav-group.is-current > button { font-weight: 500; }
.nav-group { position: relative; }
.nav-group > button svg { width: 9px; height: 9px; opacity: .6; transition: transform .4s var(--ease-out); }
.nav-group:hover > button svg, .nav-group:focus-within > button svg { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% - 4px); left: 50%; min-width: 280px; padding: 10px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(20px); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .25), 0 0 0 1px var(--hair); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .35s var(--ease), transform .5s var(--ease-out), visibility .35s; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; transition: background-color .2s; }
.nav-menu a:hover { background: var(--sand); }
.nav-menu strong { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-menu span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.header-cta { display: flex; align-items: center; gap: 6px; }
.header-cta .btn { min-height: 34px; padding: 0 15px; font-size: 13.5px; gap: 7px; }
.header-cta .btn svg { width: 15px; height: 15px; }
.header-cta .btn-dark { background: transparent; color: inherit; padding: 0 10px; }
.header-cta .btn-dark:hover { background: transparent; opacity: .7; }
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .header-cta .btn-wa { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 1; background: #fff; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { font: 600 clamp(28px, 7.5vw, 40px)/1.2 var(--font-display); letter-spacing: -0.035em; padding: 5px 0; opacity: 0; transform: translateY(-8px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.mobile-menu nav a.sub { font: 500 17px/1.3 var(--font-text); letter-spacing: -0.01em; color: var(--muted); padding: 5px 0 5px 2px; }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }
.mobile-menu-foot .btn { width: 100%; }
@media (max-width: 1080px) { .nav, .header-cta .btn-dark { display: none; } .menu-toggle { display: inline-block; } }
@media (max-width: 560px) { .brand img { height: 22px; } .header-cta .btn-wa { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--night); }
.hero-media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 2.8s var(--ease-out) forwards; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .5) 72%, rgba(0, 0, 0, .78) 100%); }
.hero-content { width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 7vw, 104px); display: grid; gap: clamp(18px, 2.2vw, 28px); will-change: transform, opacity; }
.hero-content .eyebrow { color: rgba(255, 255, 255, .86); }
.hero-content .lead { color: rgba(255, 255, 255, .9); max-width: 560px; }
.hero h1 { text-shadow: 0 2px 40px rgba(0, 0, 0, .2); }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; }
.hero-short { min-height: min(86svh, 820px); }
.hero-logo { height: 40px; width: auto; }
@keyframes heroZoom { to { transform: scale(1); } }

/* Text intro for inner pages */
.page-intro { padding-top: calc(var(--header-h) + clamp(64px, 10vw, 140px)); padding-bottom: clamp(48px, 6vw, 88px); }
.page-intro .display-l { max-width: 14ch; }
.page-intro .lead { max-width: 680px; margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Full-bleed images */
.bleed { position: relative; overflow: hidden; }
.bleed img { width: 100%; height: clamp(380px, 68vw, 900px); object-fit: cover; }
.inset-media { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.inset-media img { width: 100%; height: 100%; object-fit: cover; }

/* Scroll-linked "inset to full-bleed" image (Apple style). JS sets --p from 0 to 1. */
.scale-media { --p: 0; position: relative; height: 165vh; }
.scale-media .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.scale-media .frame { position: relative; width: calc(100% - (1 - var(--p)) * 2 * max(var(--gutter), 6vw)); height: calc(100% - (1 - var(--p)) * 22vh); border-radius: calc((1 - var(--p)) * var(--radius)); overflow: hidden; }
.scale-media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; transform: scale(calc(1.12 - var(--p) * .12)); }
.scale-media .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%); opacity: var(--p); }
.scale-media .caption { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vw, 96px); color: #fff; opacity: clamp(0, calc(var(--p) * 2.2 - 1.2), 1); transform: translateY(calc((1 - var(--p)) * 30px)); }
.scale-media .caption .statement { max-width: 16ch; }
@media (prefers-reduced-motion: reduce) { .scale-media { height: auto; --p: 1; } .scale-media .sticky { position: relative; height: 80vh; } }

/* ---------- Tiles (Apple homepage style) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tiles .tile { min-height: clamp(520px, 46vw, 720px); padding-left: 20px; padding-right: 20px; }
.tile .tile-bg.focus-right { object-position: 22% 50%; transform-origin: 22% 50%; }
/* desktop: the three cards share rows (logo, title, text, button, filler) so every button sits on one line */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 861px) {
    .tiles { grid-template-rows: repeat(4, auto) 1fr; row-gap: 0; min-height: clamp(520px, 46vw, 720px); }
    .tiles .tile { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; justify-items: center; }
    .tiles .tile > .tile-h, .tiles .tile > p, .tiles .tile > .tile-links { align-self: start; }
    .tiles .tile > .tile-logo { align-self: end; }
  }
}
.tiles .tile .tile-h { font-size: clamp(30px, 3vw, 48px); }
.tiles .tile p { font-size: clamp(16px, 1.3vw, 20px); max-width: 24ch; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: clamp(520px, 52vw, 760px); padding: clamp(40px, 4.4vw, 64px) 24px; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--sand); color: var(--ink); }
.tile.wide { grid-column: 1 / -1; min-height: clamp(560px, 56vw, 820px); }
.tile .tile-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease-out); }
.tile:hover .tile-bg { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .55) 22%, rgba(255, 255, 255, 0) 46%); }
.tile.dark { color: #fff; }
.tile.dark::after { background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .45) 24%, rgba(0, 0, 0, .08) 48%, rgba(0, 0, 0, 0) 60%); }
.tile.dark h3, .tile.dark p { text-shadow: 0 1px 24px rgba(0, 0, 0, .35); }
.tile .tile-logo { height: 30px; width: auto; margin-bottom: 14px; }
.tile h3 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.04em; }
.tile p { margin-top: 8px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.35; letter-spacing: -0.018em; max-width: 30ch; }
.tile .tile-links { margin-top: 18px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* Legacy vertical cards (still used on QuickHomes page) */
.verticals { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .verticals { grid-template-columns: 1fr; } }
.v-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(480px, 46vw, 660px); padding: clamp(26px, 2.6vw, 40px); border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.v-card .v-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.v-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .2) 50%, rgba(0, 0, 0, .78) 100%); }
.v-card:hover .v-bg { transform: scale(1.05); }
.v-card .v-label { font-size: 14px; font-weight: 500; opacity: .8; }
.v-card h3 { font-size: clamp(30px, 3vw, 44px); margin: 8px 0 8px; letter-spacing: -0.04em; }
.v-card p { color: rgba(255, 255, 255, .86); max-width: 34ch; }
.v-card .v-go { margin-top: 18px; color: #2997ff; font-size: 17px; }
.v-card .v-go i { display: none; }
.v-card .v-go::after { content: " ›"; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 60s linear infinite; }
.marquee span { font: 600 clamp(26px, 3vw, 42px)/1 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; color: var(--stone); }
.marquee span::after { content: "·"; color: var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.stat { display: grid; gap: 10px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line); }
.bg-night .stat { border-color: #333336; }
.stat b { font: 600 clamp(44px, 5.6vw, 80px)/1 var(--font-display); letter-spacing: -0.05em; }
.stat b small { font-size: .38em; letter-spacing: -0.02em; margin-left: 3px; font-weight: 500; }
.stat > span { color: var(--muted); font-size: 16px; line-height: 1.4; max-width: 24ch; }
.bg-night .stat > span { color: #a1a1a6; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Spec grid (replaces icon cards) */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.specs > div { padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.specs b { font: 600 clamp(28px, 2.8vw, 40px)/1.05 var(--font-display); letter-spacing: -0.04em; }
.specs span { color: var(--muted); font-size: 16px; line-height: 1.45; max-width: 26ch; }
@media (max-width: 960px) { .specs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Feature split ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.feature.flip > :first-child { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.feature-media.wide { aspect-ratio: 4 / 3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { display: grid; gap: 22px; align-content: center; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } .feature-media { aspect-ratio: 4 / 3; } }

.checks { display: grid; gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bg-night .checks { border-color: #333336; }
.checks li { padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); position: relative; line-height: 1.5; color: var(--ink-2); }
.bg-night .checks li { border-color: #333336; color: #d2d2d7; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 12px; height: 7px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.checks strong { font-weight: 600; color: var(--ink); }
.bg-night .checks strong { color: #fff; }

/* ---------- Cards (flat) ---------- */
.card { background: var(--sand); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px); display: grid; gap: 12px; align-content: start; transition: transform .6s var(--ease-out), background-color .3s; }
.bg-sand .card { background: #fff; }
a.card:hover { transform: scale(1.012); }
.card .num { font: 600 14px/1 var(--font-display); color: var(--accent); letter-spacing: 0; }
.card h3 { font-size: clamp(21px, 1.9vw, 26px); }
.card p { color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }
.bg-night .card { background: var(--night-2); }
.bg-night .card p { color: #a1a1a6; }
.icon-badge { display: none; }

/* ---------- Rail ---------- */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 36vw, 520px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }
.rail > * { scroll-snap-align: start; }
.rail-controls { display: flex; gap: 10px; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); transition: background-color .3s, opacity .3s; }
.rail-btn:hover { background: var(--stone); }
.rail-btn:disabled { opacity: .35; pointer-events: none; }
.rail-btn svg { width: 17px; height: 17px; }
.bg-night .rail-btn { background: var(--night-2); color: #fff; }

/* ---------- Project cards ---------- */
.p-card { display: grid; gap: 18px; }
.p-card .p-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.p-card.landscape .p-media { aspect-ratio: 4 / 3; }
.p-card .p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-card .p-tag { position: absolute; top: 16px; left: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); font-size: 12px; font-weight: 500; color: var(--ink); }
.p-card .p-tag.status { left: auto; right: 16px; background: rgba(0, 0, 0, .55); color: #fff; }
.p-card h3 { font-size: clamp(21px, 1.8vw, 25px); letter-spacing: -0.025em; }
.p-card .p-meta { font-size: 15px; color: var(--muted); margin-top: 4px; }
.bg-night .p-card .p-meta { color: #a1a1a6; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 24px); }
.project-grid .p-card:nth-child(3n+1) { grid-column: 1 / -1; }
.project-grid .p-card:nth-child(3n+1) .p-media { aspect-ratio: 16 / 8; }
.project-grid .p-card .p-media { aspect-ratio: 4 / 3.6; }
@media (max-width: 700px) { .project-grid { grid-template-columns: 1fr; } .project-grid .p-card:nth-child(n) .p-media { aspect-ratio: 4 / 3.6; } }
.p-card[hidden] { display: none; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); margin-bottom: clamp(36px, 4vw, 60px); }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: background-color .35s var(--ease), color .35s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .2); }

/* ---------- Sticky story ---------- */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); }
.story-media { position: sticky; top: calc(var(--header-h) + 24px); height: calc(100vh - var(--header-h) - 48px); max-height: 780px; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 1.8s var(--ease-out); }
.story-media img.is-active { opacity: 1; transform: none; }
.story-steps { display: grid; }
.story-step { min-height: 78vh; display: grid; align-content: center; gap: 14px; padding-block: 32px; opacity: .2; transition: opacity .8s var(--ease); }
.story-step.is-active { opacity: 1; }
.story-step .num { font: 600 14px/1 var(--font-display); color: var(--accent); }
.story-step h3 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.04em; }
.story-step p { color: var(--ink-2); max-width: 44ch; font-size: 18px; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-media { top: calc(var(--header-h) + 8px); height: 42vh; height: 42svh; z-index: 1; }
  .story-step { min-height: 62vh; padding-block: 32px; align-content: start; }
}

/* ---------- Collections ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand); margin-bottom: clamp(36px, 4vw, 64px); flex-wrap: wrap; }
.tab { height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--muted); transition: background-color .35s var(--ease), color .35s, box-shadow .35s; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .2); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .8s var(--ease-out); }
.collection-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; margin-bottom: clamp(48px, 6vw, 88px); }
.collection-intro .inset-media { aspect-ratio: 16 / 11; }
@media (max-width: 900px) { .collection-intro { grid-template-columns: 1fr; } }
.collection-price { display: grid; gap: 4px; justify-self: start; padding-top: 18px; border-top: 1px solid var(--line); min-width: 260px; }
.collection-price b { font: 600 clamp(28px, 2.8vw, 38px)/1.1 var(--font-display); letter-spacing: -0.035em; color: var(--ink); }
.collection-price small { font-size: 13px; color: var(--muted); }
.models { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.model { border-radius: var(--radius); background: var(--sand); padding: clamp(28px, 2.6vw, 40px); display: grid; gap: 18px; align-content: start; }
.model-head { display: grid; gap: 4px; }
.model-head h3 { font-size: clamp(36px, 3.4vw, 52px); letter-spacing: -0.045em; }
.model-head .area { font-size: 15px; color: var(--muted); }
.model p { color: var(--ink-2); font-size: 16px; }
.spec { display: grid; font-size: 15px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 500; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price small { color: var(--muted); font-size: 14px; }
.tbc { background: rgba(255, 196, 0, .2); border-radius: 4px; padding: 0 4px; }

/* ---------- Table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 17px; }
.compare th, .compare td { text-align: left; padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 13px; font-weight: 500; color: var(--muted); padding-top: 0; }
.compare td:first-child { font-weight: 600; white-space: nowrap; }
.compare .qh { color: var(--ink); font-weight: 500; }
.compare td:nth-child(2):not(.qh) { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Galleries & project layouts ---------- */
.gallery { columns: 3 300px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; background: var(--sand); }
.gallery img { width: 100%; transition: transform 1.4s var(--ease-out); }
.gallery a:hover img { transform: scale(1.03); }
/* Spotlight: one large image */
.pl-spotlight a { display: block; border-radius: var(--radius); overflow: hidden; }
.pl-spotlight img { width: 100%; max-height: 86vh; object-fit: cover; }
/* Editorial: one large + up to two beside/below */
.pl-editorial { display: grid; gap: 12px; grid-template-columns: 1.6fr 1fr; }
.pl-editorial a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.pl-editorial a img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.pl-editorial a:hover img { transform: scale(1.03); }
.pl-editorial a:first-child { grid-row: span 2; aspect-ratio: 4 / 4.2; }
.pl-editorial.n2 a:first-child { grid-row: auto; }
.pl-editorial.n2 { grid-template-columns: 1fr 1fr; }
.pl-editorial.n2 a { aspect-ratio: 4 / 4.6; }
@media (max-width: 760px) { .pl-editorial, .pl-editorial.n2 { grid-template-columns: 1fr; } .pl-editorial a:first-child { grid-row: auto; aspect-ratio: 4 / 3.4; } .pl-editorial a { aspect-ratio: 4 / 3.4; } }
/* Frame to finish pair */
.pl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-pair figure { display: grid; gap: 12px; }
.pl-pair a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; }
.pl-pair img { width: 100%; height: 100%; object-fit: cover; }
.pl-pair figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .pl-pair { grid-template-columns: 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(94vw, 1800px); max-height: 88vh; width: auto; height: auto; border-radius: 10px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); transition: background-color .25s; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button svg { width: 19px; height: 19px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .06em; }

/* ---------- Project detail ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.facts div { padding: 24px 20px 24px 0; display: grid; gap: 6px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font: 600 19px/1.3 var(--font-display); letter-spacing: -0.02em; }
.next-project { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: var(--sand); transition: background-color .4s; }
.next-project:hover { background: var(--stone); }
.next-project > div { display: grid; gap: 10px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; counter-reset: step; padding: 0; }
.process li { list-style: none; padding: 26px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; position: relative; }
.process li::before { counter-increment: step; content: "0" counter(step); font: 600 14px/1 var(--font-display); color: var(--accent); }
.process li::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--ink); transition: width 1.6s var(--ease-out); }
.process.is-visible li::after { width: 100%; }
.process.is-visible li:nth-child(2)::after { transition-delay: .15s; }
.process.is-visible li:nth-child(3)::after { transition-delay: .3s; }
.process.is-visible li:nth-child(4)::after { transition-delay: .45s; }
.process.is-visible li:nth-child(5)::after { transition-delay: .6s; }
.process h4 { font-size: 21px; }
.process p { color: var(--muted); font-size: 16px; }
.bg-night .process li { border-color: #333336; }
.bg-night .process li::after { background: #fff; }
.bg-night .process p { color: #a1a1a6; }
.process.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) { .process, .process.five { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .process, .process.five { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 600 clamp(18px, 1.6vw, 22px)/1.3 var(--font-display); letter-spacing: -0.022em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; position: relative; transition: transform .5s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease-out); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .answer { padding: 0 0 28px; max-width: 70ch; color: var(--ink-2); animation: fadeUp .6s var(--ease-out); }
.faq .answer p + p { margin-top: .8em; }
.faq .answer a { color: #0066cc; }
.faq-group + .faq-group { margin-top: clamp(56px, 7vw, 96px); }
.faq-group h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 20px; }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--night); color: #fff; padding: clamp(64px, 9vw, 140px) clamp(24px, 6vw, 96px); text-align: center; display: grid; justify-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(60% 60% at 50% 0%, rgba(154, 123, 79, .35), rgba(0, 0, 0, 0) 70%); }
.cta-band .eyebrow { color: #c7a77a; }
.cta-band .display-m { max-width: 16ch; }
.cta-band .lead { color: #a1a1a6; max-width: 560px; margin: 20px 0 36px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-wa { background: #fff; color: var(--ink); }
.cta-band .contact-lines { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: #86868b; font-size: 14px; }
.cta-band .contact-lines a:hover { color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 17px; transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, .12); }
.form-note { font-size: 13px; color: var(--muted); }
.contact-card { border-radius: var(--radius); background: var(--sand); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 22px; align-content: start; }
.contact-line { display: grid; gap: 4px; }
.contact-line span { font-size: 13px; color: var(--muted); }
.contact-line a, .contact-line p { font: 600 21px/1.35 var(--font-display); letter-spacing: -0.02em; }
.contact-line a:hover { color: #0066cc; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); padding: clamp(64px, 7vw, 96px) 0 28px; font-size: 13px; color: var(--muted); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: clamp(48px, 5vw, 72px); }
.footer-brand { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.footer-col h4 { font: 600 13px/1 var(--font-text); color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-verticals { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding: 24px 0; border-block: 1px solid var(--line); }
.footer-verticals a { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; opacity: .8; transition: opacity .2s; }
.footer-verticals a:hover { opacity: 1; }
.footer-verticals img { height: 22px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 20px; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--ink); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink-2); transition: background-color .25s, color .25s; }
.socials a:hover { background: var(--ink); color: #fff; }
.socials svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Floating contact ---------- */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 16px; border-radius: 999px; background: rgba(29, 29, 31, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: #fff; font-size: 15px; font-weight: 500; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45); transform: translateY(120px); transition: transform .8s var(--ease-out), background-color .3s; }
.float-wa.is-visible { transform: none; }
.float-wa:hover { background: #000; }
.float-wa svg { width: 21px; height: 21px; color: var(--wa); }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .float-wa { display: none; }
  .mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 24px; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .3), 0 0 0 1px var(--hair); transform: translateY(140%); transition: transform .8s var(--ease-out); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 46px; padding: 0 14px; font-size: 15px; }
  .site-footer { padding-bottom: 104px; }
}

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(4px); transition: opacity 1.3s var(--ease-out), transform 1.4s var(--ease-out), filter 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
[data-reveal="fade"] { transform: none; filter: none; }
[data-reveal="clip"] { opacity: 1; transform: none; filter: none; clip-path: inset(10% 5% 10% 5% round var(--radius)); transition: clip-path 1.8s var(--ease-out); }
[data-reveal="clip"] img { transform: scale(1.14); transition: transform 2.2s var(--ease-out); }
[data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }
[data-reveal="clip"].is-visible img { transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 1.3s var(--ease-out), opacity 1s var(--ease-out); transition-delay: calc(var(--i) * 40ms + var(--d, 0s)); }
.split-words.is-visible .w > span { transform: none; opacity: 1; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .35s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .7s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal="clip"], .split-words .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .marquee-track { animation: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: clamp(48px, 6vw, 88px); }
.center { text-align: center; }
.max-30 { max-width: 30ch; }
.max-46 { max-width: 46ch; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--sand); font-size: 13px; font-weight: 500; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.test-banner { position: fixed; left: 16px; bottom: 16px; z-index: 99; padding: 5px 10px; border-radius: 999px; background: #ffd54a; color: #3a2d00; font-size: 11px; font-weight: 600; letter-spacing: .04em; opacity: .92; pointer-events: none; }
@media (max-width: 760px) { .test-banner { bottom: auto; top: calc(var(--header-h) + 8px); left: 12px; font-size: 10px; } }

/* ---------- Project showcase (one page) ---------- */
.pfilter-wrap { position: sticky; top: calc(var(--header-h) + 10px); z-index: 50; display: flex; justify-content: center; padding: 0 16px; margin-bottom: clamp(24px, 3vw, 40px); pointer-events: none; transition: top .6s var(--ease-out); }
.site-header.is-hidden ~ main .pfilter-wrap, body:has(.site-header.is-hidden) .pfilter-wrap { top: 10px; }
.pfilter { pointer-events: auto; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(245, 245, 247, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .25), 0 0 0 1px var(--hair); }
.pfilter button { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: background-color .4s var(--ease), color .3s, box-shadow .4s; white-space: nowrap; }
.pfilter button span { font-size: 12px; color: var(--faint); margin-left: 3px; }
.pfilter button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .2); }
@media (max-width: 420px) { .pfilter button { padding: 0 11px; font-size: 13.5px; } .pfilter button span { display: none; } }
.pchapters { display: grid; gap: clamp(88px, 11vw, 160px); padding-bottom: clamp(64px, 8vw, 120px); }
.pchap { transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); scroll-margin-top: 70px; }
.pchap[hidden] { display: none; }
.pchap.is-entering { opacity: 0; transform: translateY(30px); }
.pchap-cover { position: relative; margin-inline: 12px; height: clamp(440px, 84vh, 900px); border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.pchap-cover .pchap-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pchap-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .7) 100%); }
.pchap-title { position: absolute; left: 0; right: 0; bottom: clamp(28px, 4.5vw, 64px); display: grid; gap: 10px; }
.pchap-title .eyebrow { color: rgba(255, 255, 255, .85); }
.pchap-title h2 { text-shadow: 0 2px 30px rgba(0, 0, 0, .25); max-width: 16ch; }
.pchap-meta { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .85); }
.pchap-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 96px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(32px, 4vw, 56px); align-items: start; }
.pchap-body .facts { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .pchap-body { grid-template-columns: 1fr; } }
.rail.prail { display: flex; gap: 12px; grid-auto-flow: unset; padding-bottom: 4px; }
.prail figure { flex: none; display: grid; gap: 10px; scroll-snap-align: start; }
.prail a { display: block; height: clamp(300px, 62vh, 660px); border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.prail img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.prail a:hover img { transform: scale(1.03); }
.prail figcaption { font-size: 14px; color: var(--muted); max-width: 40ch; }
@media (max-width: 700px) { .prail a { height: clamp(260px, 54vh, 460px); } .prail img { max-width: 86vw; } }
.prail-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.prail-count { font-size: 14px; color: var(--muted); }

/* ---------- Minimal home ---------- */
.home-tiles { padding: 12px 0 0; }
.tile .tile-h { font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.04em; }
.home-contact { background: var(--night); color: #f5f5f7; margin-top: 12px; }
.home-contact .eyebrow { color: #c7a77a; }
.home-contact .lead { color: #a1a1a6; max-width: 520px; }
.home-contact .btn-wa { background: #fff; color: var(--ink); }
.home-contact .btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #fff; }
.home-contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid #333336; }
.contact-grid div { padding: 22px 0; border-bottom: 1px solid #333336; display: grid; gap: 6px; }
.contact-grid dt { font-size: 13px; color: #86868b; }
.contact-grid dd { font: 500 17px/1.4 var(--font-display); letter-spacing: -0.015em; color: #f5f5f7; }
.contact-grid a:hover { color: #2997ff; }
@media (max-width: 860px) { .home-contact-inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } }

/* Home hero: tighter crop that stays filled while the image drifts on scroll */
.hero-home .hero-media img { transform: scale(1.26); animation: heroZoomHome 2.8s var(--ease-out) forwards; object-position: 50% 60%; }
@keyframes heroZoomHome { to { transform: scale(1.18); } }
@media (max-width: 860px) { .hero-home .hero-media img { transform: scale(1.12); animation-name: heroZoomHomeSm; } @keyframes heroZoomHomeSm { to { transform: scale(1.08); } } }
.tile .tile-bg.focus-daybed { object-position: 55% 74%; transform-origin: 55% 74%; transform: scale(1.18); } .tile:hover .tile-bg.focus-daybed { transform: scale(1.22); }

/* Tile buttons: clear, tappable pills instead of small blue links */
.tile .tile-links { margin-top: 24px; gap: 10px; }
.tile .tile-links .btn { min-height: 46px; padding: 0 22px; font-size: 15.5px; }
.tile .btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .45); }
.tile .btn-light:hover { background: #f5f5f7; transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
.btn-glass:hover { background: rgba(255, 255, 255, .28); transform: translateY(-1px); }
.btn-glass span { transition: transform .4s var(--ease-out); }
.btn-glass:hover span { transform: translateX(3px); }

/* Vertical cards: label, heading, text and link line up across the row (subgrid) */
@media (min-width: 961px) {
  .verticals { grid-template-rows: 1fr auto auto auto auto; row-gap: 0; }
  .verticals .v-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: end; row-gap: 0; min-height: clamp(520px, 46vw, 680px); }
  .verticals .v-card > .v-label { grid-row: 2; align-self: end; }
  .verticals .v-card > h3 { grid-row: 3; }
  .verticals .v-card > p { grid-row: 4; align-self: start; }
  .verticals .v-card > .v-go { grid-row: 5; }
}

/* Taller, more legible collection cards */
.verticals .v-card { min-height: clamp(600px, 62vw, 880px); }
@media (min-width: 961px) { .verticals .v-card { min-height: clamp(640px, 50vw, 860px); } }
.verticals .v-card::after { background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, .35) 52%, rgba(0, 0, 0, .82) 100%); }
.verticals .v-card .v-label { justify-self: start; display: inline-block; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .38); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; font-weight: 600; opacity: 1; margin-bottom: 6px; }
.verticals .v-card h3 { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.verticals .v-card p { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }
.verticals .v-card .v-go { color: #fff; font-weight: 500; }
@media (min-width: 961px) { .verticals { grid-template-rows: minmax(clamp(340px, 30vw, 520px), 1fr) auto auto auto auto; } .verticals .v-card { min-height: 0; padding-bottom: clamp(30px, 3vw, 44px); } }

/* Collections selector: three large, obvious choices */
.cselect-wrap { position: sticky; top: calc(var(--header-h) + 10px); z-index: 40; margin-bottom: clamp(36px, 4vw, 64px); }
.cselect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px; border-radius: calc(var(--radius) + 6px); background: rgba(245, 245, 247, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 14px 40px -20px rgba(0, 0, 0, .3), 0 0 0 1px var(--hair); }
.cs { display: grid; gap: 4px; text-align: left; padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2vw, 26px); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--hair); transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s, transform .5s var(--ease-out); }
.cs:hover { box-shadow: 0 0 0 1.5px var(--ink); }
.cs b { font: 600 clamp(20px, 2vw, 28px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.cs span { font-size: 14px; color: var(--muted); }
.cs em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--accent); }
.cs[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.cs[aria-selected="true"] span { color: #a1a1a6; }
.cs[aria-selected="true"] em { color: #d8b98a; }
@media (max-width: 760px) {
  .cselect { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; }
  .cs { padding: 12px 10px; border-radius: 14px; }
  .cs b { font-size: 16px; }
  .cs span { display: none; }
  .cs em { font-size: 11.5px; }
}
.collection-intro.text-only { grid-template-columns: 1fr; max-width: 820px; margin-bottom: clamp(36px, 4vw, 56px); }

/* Collections gallery: one labelled row of three per collection */
.crow + .crow { margin-top: clamp(40px, 5vw, 72px); }
.crow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.crow-head h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.03em; }
.crow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.crow-grid a { display: block; aspect-ratio: 4 / 3.2; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.crow-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.crow-grid a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .crow-grid { grid-template-columns: 1fr 1fr; } .crow-grid a:first-child { grid-column: 1 / -1; } }

/* Compact collections selector (same design, smaller) */
.cselect-wrap { max-width: 760px; margin-inline: auto; margin-bottom: clamp(28px, 3vw, 48px); }
.cselect { gap: 6px; padding: 5px; border-radius: 22px; }
.cs { gap: 2px; padding: 10px 14px; border-radius: 17px; }
.cs b { font-size: clamp(16px, 1.4vw, 19px); letter-spacing: -0.02em; }
.cs span { font-size: 12.5px; }
.cs em { font-size: 12.5px; }
@media (max-width: 760px) { .cs { padding: 9px 8px; border-radius: 14px; } .cs b { font-size: 15px; } .cs em { font-size: 11px; } }

/* Static photo grid (no links, no lightbox) */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(calc(100vw - 2 * var(--gutter)), 1600px); margin-left: 50%; transform: translateX(-50%); }
.sgrid figure { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.sgrid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .sgrid { grid-template-columns: 1fr 1fr; gap: 8px; } .sgrid figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
