/* ==========================================================================
   Primo Woodworks  ·  Gilded Ebony component layer  ·  v1.0  ·  2026-09-22
   Requires tokens/tokens.css. Class names are the contract with BUILD-HANDOFF.md
   and preview.html: keep them, extend them, don't rename them.
   Sections:  1 Base  2 Type  3 Layout and surfaces  4 Buttons and links
   5 Header and menu  6 Heroes  7 Content blocks  8 Work and gallery
   9 Contact and forms  10 Footer and call bar  11 Atmosphere and motion
   12 Responsive
   ========================================================================== */

/* 1 · Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ebony); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ebony); color: var(--ivory); font-family: var(--font-body); font-size: var(--fs-body); font-weight: var(--w-body); line-height: var(--lh-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.menu-open, body.lightbox-open { overflow: hidden; }
::selection { background: var(--gold); color: var(--ebony); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.section--light :focus-visible { outline-color: var(--gold-ink); }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; background: var(--ivory); color: var(--ebony); padding: 10px 16px; font-size: var(--fs-small); }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 2 · Type ---------------------------------------------------------------- */
h1, h2, h3, h4 { text-wrap: balance; }
.display   { font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--track-display); margin: 0; }
.display--page { font-size: var(--fs-display-2); }
.h2        { font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--fs-h2); line-height: .96; letter-spacing: -.018em; margin: 0; }
.h3        { font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--fs-h3); line-height: var(--lh-heading); letter-spacing: -.01em; margin: 0; }
.h4        { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h4); line-height: 1.1; margin: 0; }
/* Gilt: the gold italic. One phrase per headline, at most. */
.gilt, .display em, .h2 em, .h3 em { font-style: italic; font-weight: 400; color: var(--gold); }
.section--light .gilt, .section--light .display em, .section--light .h2 em, .section--light .h3 em { color: var(--gold-ink); }
.lead      { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--stone); max-width: 56ch; margin: 0; }
.body-copy { color: var(--stone); max-width: var(--measure); }
.body-copy p { margin: 0 0 1.1em; }
.body-copy p:last-child { margin-bottom: 0; }
.section--light .lead, .section--light .body-copy { color: var(--ink-muted); }
.label     { font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold); }
.caption   { font-size: var(--fs-micro); font-weight: var(--w-label); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-dim); }
.section--light .label { color: var(--gold-ink); }
.section--light .caption { color: var(--ink-muted); }

/* Eyebrow: label + the scribe line (see 11) */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; flex: none; width: 36px; height: 1px; background: currentColor; transform-origin: left; }
.section--light .eyebrow { color: var(--gold-ink); }

/* 3 · Layout and surfaces ------------------------------------------------ */
.wrap { width: min(calc(100% - var(--pad) * 2), var(--max)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-sm); }
.section--raised { background: var(--ebony-2); }
.section--walnut { background: var(--walnut); }
.section--deep   { background: var(--ebony-3); }
.section--light  { background: var(--limestone); color: var(--ink); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--light .rule { background: var(--line-light); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--gap-xl); align-items: end; }
.split--top { align-items: start; }
.stack-s > * + * { margin-top: var(--gap-s); }
.stack-m > * + * { margin-top: var(--gap-m); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* 4 · Buttons and links --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 24px; border: 1px solid var(--gold); background: var(--gold); color: var(--ebony); font-family: var(--font-body); font-size: var(--fs-label); font-weight: var(--w-button); letter-spacing: var(--track-button); text-transform: uppercase; cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-fast); }
.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--gold-bright); border-color: var(--gold); }
.btn--dark { background: var(--ebony); color: var(--ivory); border-color: var(--ebony); }
.btn--dark:hover { background: var(--walnut); border-color: var(--walnut); }
.section--light .btn--ghost { color: var(--ink); border-color: var(--line-light-strong); }
.section--light .btn--ghost:hover { color: var(--gold-ink); border-color: var(--gold-rule); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-label); font-weight: var(--w-button); letter-spacing: var(--track-button); text-transform: uppercase; color: var(--gold); padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size var(--dur-med) var(--ease-out), color var(--dur-fast); }
.text-link:hover { color: var(--gold-bright); background-size: 0 1px; background-position: right bottom; }
.section--light .text-link { color: var(--gold-ink); }

/* 5 · Header and menu ------------------------------------------------------ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); height: var(--header-h); padding: env(safe-area-inset-top, 0) var(--pad) 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; border-bottom: 1px solid transparent; transition: height var(--dur-med) var(--ease-out), background var(--dur-med), border-color var(--dur-med); }
.site-header.is-scrolled { height: var(--header-h-scrolled); background: rgba(20, 17, 14, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-color: var(--line); }
.wordmark { display: block; width: clamp(170px, 15vw, 214px); }
.wordmark img, .wordmark svg { width: 100%; height: auto; }
.nav { justify-self: center; display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav-link { position: relative; padding: 10px 0; font-size: var(--fs-label); font-weight: var(--w-label); letter-spacing: var(--track-nav); text-transform: uppercase; color: rgba(239, 231, 217, .74); transition: color var(--dur-fast); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-med) var(--ease-out); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ivory); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone { font-size: 13px; letter-spacing: .06em; color: var(--ivory); padding-bottom: 2px; border-bottom: 1px solid var(--gold); white-space: nowrap; }
.header-actions .btn { min-height: 44px; padding: 0 18px; }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.menu-toggle span { position: absolute; left: 9px; height: 1px; background: var(--ivory); transition: transform var(--dur-med) var(--ease-in-out), top var(--dur-med) var(--ease-in-out), width var(--dur-med); }
.menu-toggle span:first-child { top: 17px; width: 26px; }
.menu-toggle span:last-child  { top: 26px; width: 18px; left: 17px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child  { top: 22px; left: 9px; width: 26px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--ebony-3); display: flex; flex-direction: column; justify-content: center; padding: 110px var(--pad) 100px; transform: translateY(-100%); visibility: hidden; transition: transform .7s var(--ease-in-out), visibility .7s; }
.menu-open .mobile-menu { transform: none; visibility: visible; }
.mobile-menu a.menu-item { font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(40px, 11vw, 72px); line-height: 1.05; padding: 10px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color var(--dur-fast); }
.mobile-menu a.menu-item:hover { color: var(--gold); }
.menu-open .mobile-menu a.menu-item { opacity: 1; transform: none; }
.menu-open .mobile-menu a.menu-item:nth-child(2) { transition-delay: .06s; }
.menu-open .mobile-menu a.menu-item:nth-child(3) { transition-delay: .12s; }
.menu-open .mobile-menu a.menu-item:nth-child(4) { transition-delay: .18s; }
.menu-open .mobile-menu a.menu-item:nth-child(5) { transition-delay: .24s; }
.menu-open .mobile-menu a.menu-item:nth-child(6) { transition-delay: .30s; }
.menu-open .mobile-menu a.menu-item:nth-child(7) { transition-delay: .36s; }
.mobile-menu .menu-meta { margin-top: 34px; display: grid; gap: 8px; color: var(--stone); font-size: var(--fs-small); }

/* 6 · Heroes -------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ebony-2); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 112%; object-fit: cover; transform: translateY(-5%); will-change: transform; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim-side), var(--scrim-foot); }
.hero__content { position: relative; z-index: 2; padding-block: 160px clamp(72px, 8vw, 124px); }
.hero__content .display { max-width: 12ch; }
.hero__content .display.rise { max-width: none; }  /* .rise sets its own line breaks */
.hero__content .lead { margin-top: 30px; color: rgba(239, 231, 217, .8); }
.hero__index { position: absolute; z-index: 2; right: var(--pad); bottom: 44px; writing-mode: vertical-rl; font-size: var(--fs-micro); letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 231, 217, .5); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero--page { min-height: 74svh; }
.hero--page .hero__media::after { background: linear-gradient(90deg, rgba(14,11,9,.86), rgba(14,11,9,.18)), var(--scrim-foot); }
.hero--page .hero__content { padding-bottom: 76px; }
.hero--page .display { max-width: 14ch; }
.breadcrumb { margin: 0 0 26px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; font-size: var(--fs-micro); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-dim); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--gold); }
.breadcrumb a:hover { color: var(--ivory); }

/* 7 · Content blocks ------------------------------------------------------- */
/* Stats row: three true numbers, nothing invented */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 120px); border-block: 1px solid var(--line); }
.section--light .stats { border-color: var(--line-light); }
.stat { padding: 32px 24px 34px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 34px; }
.section--light .stat + .stat { border-color: var(--line-light); }
.stat strong { display: block; font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--fs-stat); line-height: 1; font-variant-numeric: lining-nums; }
.stat span { display: block; margin-top: 12px; font-size: var(--fs-micro); font-weight: var(--w-label); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-dim); }
.section--light .stat span { color: var(--ink-muted); }

/* Service theatre: sticky photo that swaps as you hover the list */
.theatre { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--gap-xl); align-items: start; }
.theatre__preview { position: sticky; top: 110px; height: min(72vh, 780px); overflow: hidden; background: var(--ebony-2); }
.theatre__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform 1.2s var(--ease-out); }
.theatre__preview.is-swapping img { opacity: 0; transform: scale(1.03); }
.theatre__preview::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(196, 162, 101, .35); pointer-events: none; }
.theatre__list { border-top: 1px solid var(--line); margin-top: 40px; }
.theatre__item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.theatre__item .h3 { transition: color var(--dur-fast), transform var(--dur-med) var(--ease-out); }
.theatre__item p { grid-column: 1; margin: 8px 0 0; font-size: var(--fs-small); color: var(--stone); max-width: 46ch; }
.theatre__item .arrow { grid-row: 1; grid-column: 2; font-size: 24px; color: var(--gold); transition: transform var(--dur-med) var(--ease-out); }
.theatre__item:hover .h3, .theatre__item.is-active .h3 { color: var(--gold); transform: translateX(10px); }
.theatre__item:hover .arrow, .theatre__item.is-active .arrow { transform: translateX(8px); }

/* Feature cards: image cards with a caption over a scrim */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: var(--gap-l); }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; padding: 30px; overflow: hidden; background: var(--ebony-2); isolation: isolate; }
.card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease-out); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim-card); }
.card:hover > img { transform: scale(1.04); }
.card .caption { color: var(--gold); }
.card .h3 { margin-top: 8px; color: var(--ivory); }
.card p { margin: 12px 0 0; font-size: var(--fs-small); color: rgba(239, 231, 217, .78); }

/* Scope list: what's built on a service page. Chips, not bullets. */
.scope { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); font-size: var(--fs-micro); font-weight: var(--w-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); transition: border-color var(--dur-fast), color var(--dur-fast); }
.tag:hover { border-color: var(--gold); color: var(--gold); }
.section--light .tag { border-color: var(--line-light-strong); color: var(--ink); }

/* Catalogue: accordion of service groups (service pages) */
.catalogue { border-top: 1px solid var(--line); }
.catalogue__item { border-bottom: 1px solid var(--line); }
.catalogue__trigger { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 28px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.catalogue__trigger .plus { font-size: 30px; font-weight: 300; color: var(--gold); transition: transform var(--dur-med) var(--ease-out); }
.catalogue__item.is-open .plus { transform: rotate(45deg); }
.catalogue__body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s var(--ease-out), opacity .45s, padding .45s; }
.catalogue__item.is-open .catalogue__body { max-height: 700px; opacity: 1; padding-bottom: 40px; }
.catalogue__body p { margin: 0; color: var(--stone); }

/* Story: the walnut panel beside a tall photo */
.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; min-height: 680px; }
.story__image { position: relative; overflow: hidden; background: var(--ebony-2); }
.story__image img { width: 100%; height: 100%; object-fit: cover; }
.story__panel { background: var(--walnut); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.story__quote { font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(34px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -.01em; margin: 0; }
.story__quote em { font-style: italic; font-weight: 400; color: var(--gold); }

/* Sequence: ONLY for a real order of steps (how a job runs) */
.sequence { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--gap-l); border-top: 1px solid var(--line); }
.step { padding: 32px 30px 0 0; }
.step + .step { border-left: 1px solid var(--line); padding-left: 30px; }
.step__num { font-size: var(--fs-label); letter-spacing: .16em; color: var(--gold); font-variant-numeric: tabular-nums; }
.step .h4 { margin: 22px 0 12px; font-size: 30px; font-weight: var(--w-display); }
.step p { margin: 0; font-size: var(--fs-small); color: var(--stone); }

/* Trade band: the contractor path, gold ground */
.trade-band { background: var(--gold); color: var(--ebony); padding-block: clamp(64px, 7vw, 96px); }
.trade-band__inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.trade-band .h2 { font-size: clamp(38px, 5vw, 72px); }
.trade-band .label { color: var(--walnut); }
.trade-band p { margin: 14px 0 0; max-width: 54ch; color: rgba(20, 17, 14, .78); }

/* Area list: the 16 communities, as a set */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.areas li { list-style: none; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.areas { padding: 0; margin: 0; column-gap: 28px; }
.section--light .areas, .section--light .areas li { border-color: var(--line-light); }

/* 8 · Work and gallery ---------------------------------------------------- */
.mosaic { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 380px 380px; gap: 16px; margin-top: var(--gap-l); }
.tile { position: relative; overflow: hidden; background: var(--ebony-2); display: block; }
.tile:first-child { grid-row: 1 / span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.tile:hover img { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 0; background: var(--scrim-card); }
.tile__meta { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.tile__meta .caption { color: var(--gold); }
.tile__meta .h4 { margin-top: 6px; font-size: 32px; font-weight: var(--w-display); }
.tile__meta .arrow { font-size: 22px; color: var(--ivory); transition: transform var(--dur-med) var(--ease-out); }
.tile:hover .tile__meta .arrow { transform: translate(4px, -4px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: transparent; color: var(--stone); font-size: var(--fs-micro); font-weight: var(--w-label); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: all var(--dur-fast); }
.filter-btn:hover { border-color: var(--gold); color: var(--ivory); }
.filter-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ebony); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 40px; }
.gallery__card { grid-column: span 4; position: relative; min-height: 420px; overflow: hidden; background: var(--ebony-2); cursor: zoom-in; border: 0; padding: 0; text-align: left; }
.gallery__card--feature { grid-column: span 7; min-height: 640px; }
.gallery__card--tall { grid-column: span 5; min-height: 640px; }
.gallery__card--wide { grid-column: span 8; }
.gallery__card--small { min-height: 300px; }  /* for 480px photos: keep them small */
.gallery__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gallery__card:hover img { transform: scale(1.03); }
.gallery__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,11,9,.7), transparent 50%); }
.gallery__card .tile__meta .h4 { font-size: 26px; }
.gallery__card[hidden] { display: none; }

.project-facts { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--line); }
.project-facts dt, .project-facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { padding-right: 32px; font-size: var(--fs-micro); font-weight: var(--w-label); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-dim); }
.project-facts dd { font-size: var(--fs-small); }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { padding: 36px 0; display: grid; gap: 8px; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 28px; }
.pager a:hover .h3 { color: var(--gold); }

.lightbox { position: fixed; inset: 0; z-index: var(--z-lightbox); display: grid; place-items: center; padding: 70px var(--pad); background: rgba(15, 13, 11, .96); opacity: 0; visibility: hidden; transition: opacity var(--dur-med), visibility var(--dur-med); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { width: auto; max-width: 100%; max-height: 80vh; object-fit: contain; box-shadow: var(--shadow-lift); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; width: 50px; height: 50px; border: 1px solid var(--line); background: transparent; color: var(--ivory); font-size: 22px; cursor: pointer; transition: border-color var(--dur-fast), color var(--dur-fast); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close { top: 24px; right: 28px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); text-align: center; }

/* 9 · Contact and forms --------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--gap-xl); align-items: start; }
.contact-aside { position: sticky; top: 110px; }
.contact-grid > *, .split > *, .theatre > *, .story > * { min-width: 0; }
.direct-link { display: block; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.direct-link .caption { color: var(--ink-muted); }
.direct-link strong { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; transition: color var(--dur-fast); }
.direct-link:hover strong { color: var(--gold-ink); }
.segmented { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-light-strong); margin-bottom: 36px; }
.segmented button { min-height: 48px; padding: 0 20px; border: 0; background: transparent; color: var(--ink-muted); font-size: var(--fs-label); font-weight: var(--w-button); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--limestone); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-micro); font-weight: var(--w-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-light-strong); border-radius: 0; background: transparent; color: var(--ink); font-size: var(--fs-body); outline: none; transition: border-color var(--dur-fast); }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-rule); }
.dropzone { display: grid; place-items: center; gap: 6px; min-height: 150px; padding: 24px; border: 1px dashed var(--gold-rule); background: var(--limestone-2); text-align: center; color: var(--ink-muted); font-size: var(--fs-small); cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.dropzone strong { color: var(--ink); font-weight: 500; }
.dropzone.is-over, .dropzone:hover { background: #fff; border-style: solid; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 0; font-size: 12px; color: var(--ink-muted); }
.form-note::before { content: ""; width: 28px; height: 1px; background: var(--gold-rule); flex: none; }
.form-status { grid-column: 1 / -1; min-height: 1.4em; margin: 0; font-size: var(--fs-small); color: var(--ink); }
[data-path="homeowner"] .only-trade, [data-path="trade"] .only-home { display: none; }

/* 10 · Footer and call bar ------------------------------------------------ */
.site-footer { background: var(--ebony-3); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .6fr .7fr .8fr; gap: clamp(34px, 4vw, 60px); }
.footer-brand .wordmark { width: min(100%, 300px); }
.footer-brand p { margin: 24px 0 0; max-width: 38ch; font-size: var(--fs-small); color: var(--stone); }
.footer-col h2 { margin: 0 0 20px; font-size: var(--fs-micro); font-weight: var(--w-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.footer-col a, .footer-col span { display: block; margin: 9px 0; font-size: var(--fs-small); color: var(--ivory); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .06em; color: var(--stone-dim); }
.callbar { display: none; position: fixed; z-index: var(--z-callbar); left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); grid-template-columns: 1fr 1fr; background: var(--gold); color: var(--ebony); box-shadow: 0 15px 60px rgba(0, 0, 0, .4); transform: translateY(140%); transition: transform var(--dur-med) var(--ease-out); }
.callbar.is-visible { transform: none; }
.callbar a { display: flex; align-items: center; justify-content: center; min-height: 54px; font-size: var(--fs-label); font-weight: var(--w-button); letter-spacing: .16em; text-transform: uppercase; }
.callbar a + a { border-left: 1px solid rgba(20, 17, 14, .25); }

/* 11 · Atmosphere and motion --------------------------------------------- */
/* Grain: fixed film grain over everything, very faint */
.grain { pointer-events: none; position: fixed; inset: 0; z-index: var(--z-grain); opacity: .05; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>"); }
/* Cursor dot: gold, grows over anything clickable. Fine pointers only. */
.cursor-dot { position: fixed; z-index: var(--z-cursor); top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-bright); pointer-events: none; opacity: 0; transform: translate(-50%, -50%); transition: width var(--dur-fast), height var(--dur-fast), opacity var(--dur-fast); }
.cursor-dot.is-active { width: 38px; height: 38px; opacity: .28 !important; }

/* Reveal. Content is visible by default; only when JS has run (html.js) does
   it start hidden and fade up on entry. No JS, no hidden content. */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-shift)); transition: opacity var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* Scribe line: Primo's signature. The gold rule draws left to right when its
   section enters, like a marking gauge scoring a board. Used on eyebrows,
   .rule and the stats border. */
.js .scribe::before, .js .rule.scribe { transform: scaleX(0); transform-origin: left; transition: transform var(--dur-scribe) var(--ease-out); }
.js .scribe.is-visible::before, .js .rule.scribe.is-visible { transform: scaleX(1); }

/* Hero headline: lines rise one after another on load */
.js .rise > span { display: block; overflow: hidden; }
.js .rise > span > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.js .is-loaded .rise > span > span { transform: none; }
.js .is-loaded .rise > span:nth-child(2) > span { transition-delay: .09s; }
.js .is-loaded .rise > span:nth-child(3) > span { transition-delay: .18s; }
.js .is-loaded .rise > span:nth-child(4) > span { transition-delay: .27s; }

/* Page transitions: a soft cross-fade between pages on browsers that support
   cross-document view transitions (Chrome, Edge, Safari 18.2+). No JS. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pageOut .35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: pageIn .6s var(--ease-out) both; }
@keyframes pageOut { to { opacity: 0; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .rise > span > span { opacity: 1; transform: none; }
  .js .scribe::before, .js .rule.scribe { transform: none; }
  .hero__media img { transform: none; height: 100%; }
  .cursor-dot, .scroll-cue { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* 12 · Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav, .header-phone, .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .site-header { grid-template-columns: 1fr auto; }
  .theatre { grid-template-columns: 1fr; }
  .theatre__preview { position: relative; top: 0; height: 58vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 76px; --header-h-scrolled: 66px; }
  .split, .story, .contact-grid, .trade-band__inner, .catalogue__body { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .section--light .stat + .stat { border-color: var(--line-light); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 420px; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
  .tile { aspect-ratio: 4 / 3; }
  .tile:first-child { grid-row: auto; aspect-ratio: 4 / 5; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__card, .gallery__card--feature, .gallery__card--tall, .gallery__card--wide { grid-column: 1; min-height: 360px; }
  .sequence { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .story { min-height: 0; }
  .story__image { aspect-ratio: 4 / 5; }
  .contact-aside { position: static; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .callbar { display: grid; }
  .site-footer { padding-bottom: 110px; }
  .hero__index { display: none; }
  .areas li { font-size: 21px; }
  .pager { grid-template-columns: 1fr; }
  .pager a + a { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}
