/* Keramika Petrović — tile installation, Belgrade
   Architectural, tile-inspired visual language: grids, joints, tile proportions.
   Mobile-first. Animations are gated by html.js and prefers-reduced-motion. */

:root {
  --t-view: "View project";
  --ivory: #F6F3EE;
  --paper: #EEE9E1;
  --limestone: #E2DACD;
  --stone: #C8BEAE;
  --muted: #655F57;          /* 5.7:1 on ivory */
  --graphite: #2B2926;
  --ink: #1A1918;
  --bronze: #8C6B4A;         /* accents only */
  --line: rgba(26, 25, 24, .14);
  --line-strong: rgba(26, 25, 24, .28);
  --grout: #D6CEC1;

  --d-bg: #1C1B19;
  --d-text: #EDE8E0;
  --d-muted: #ABA398;        /* 7:1 on d-bg */
  --d-line: rgba(237, 232, 224, .14);

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;

  --gut: clamp(20px, 5vw, 64px);
  --max: 1440px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 2px;
}
@media (min-width: 1024px) { :root { --nav-h: 80px; } }
:root:lang(sr) { --t-view: "Pogledaj projekat"; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 12px 18px; background: var(--ink); color: var(--ivory); text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.dark :focus-visible, .footer :focus-visible, .menu :focus-visible { outline-color: #D9B98F; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ------------------------------------------------------------------ type */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .idx { font-variant-numeric: tabular-nums; color: var(--ink); }
.eyebrow .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; margin: 0 0 3px 12px; vertical-align: middle; opacity: .5; }
.dark .eyebrow { color: var(--d-muted); }
.dark .eyebrow .idx { color: var(--d-text); }

.h2 {
  margin-top: 18px;
  font: 400 clamp(38px, 6vw, 76px)/1.02 var(--serif); letter-spacing: -.015em;
  text-wrap: balance;
}
.h2 em { color: var(--bronze); }
.dark .h2 em { color: #CDB08A; }
.h2-xl { font-size: clamp(44px, 8.4vw, 124px); line-height: .98; }
.sec-lead { margin-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.dark .sec-lead { color: var(--d-muted); }

.ulink {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease); padding-bottom: 1px;
}
.ulink:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 1px solid var(--bd); border-radius: var(--r);
  background: var(--bg); color: var(--fg);
  font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hov, var(--graphite));
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-dark { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); --hov: #3A3733; }
.btn-line { --hov: var(--ink); }
.btn-line:hover { --fg: var(--ivory); }
.btn-light { --bg: var(--d-text); --fg: var(--ink); --bd: var(--d-text); --hov: #fff; }
.btn-ghost-light { --fg: var(--d-text); --bd: rgba(237, 232, 224, .4); --hov: var(--d-text); }
.btn-ghost-light:hover { --fg: var(--ink); --bd: var(--d-text); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent;
  transition: background .3s, color .3s, border-color .3s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.chip {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font: 500 14px/1 var(--sans); white-space: nowrap; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.nav.is-solid {
  background: rgba(246, 243, 238, .88); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.nav-in { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 30px; height: 30px; fill: var(--ink); }
.brand-word { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.brand-a { font: 400 25px/1 var(--serif); letter-spacing: -.01em; }
.brand-b { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 429px) {
  .brand-a { font-size: 22px; }
  .brand-b { font-size: 10px; letter-spacing: .12em; }
  .brand-word { gap: 5px; }
}
.brand-light .brand-mark { fill: var(--d-text); }

.nav-links { display: none; }
.nav-cta { display: none; }
.nav-call, .burger {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: transparent; text-decoration: none;
}
.nav-call svg { width: 21px; height: 21px; }
.brand-mark { flex: none; }
@media (max-width: 379px) {
  .nav-in { gap: 8px; }
  .brand { gap: 9px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-a { font-size: 22px; }
  .brand-b { display: none; }
  .nav-call, .burger { width: 44px; height: 44px; }
  .burger-l { left: 11px; right: 11px; }
}
.burger { position: relative; padding: 0; }
.burger-l { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger-l:nth-of-type(2) { transform: translateY(-4px); }
.burger-l:nth-of-type(3) { transform: translateY(4px); }
.burger[aria-expanded="true"] .burger-l:nth-of-type(2) { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-l:nth-of-type(3) { transform: rotate(-45deg); }

@media (min-width: 1100px) {
  .nav-links { display: block; }
  .nav-links ul { display: flex; gap: clamp(14px, 1.8vw, 30px); }
  .nav-links a {
    position: relative; display: inline-block; padding: 12px 0; font-size: 15px; text-decoration: none;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease);
  }
  .nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
  .nav-links { margin-right: 18px; }
  .nav-cta { display: inline-flex; min-height: 46px; }
  .nav-call, .burger { display: none; }
}

/* language switch */
.lang { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang a {
  display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 999px;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; text-decoration: none; color: var(--muted); transition: background .3s, color .3s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--ivory); }
.lang-nav { display: none; }
@media (min-width: 1100px) { .lang-nav { display: inline-flex; margin-right: 6px; } }
.lang-menu { justify-self: center; margin-bottom: 10px; }
.lang-menu a { height: 40px; min-width: 56px; }
.lang-foot { border-color: var(--d-line); }
.lang-foot a { color: var(--d-muted); }
.lang-foot a:hover { color: var(--d-text); }
.lang-foot a[aria-current] { background: var(--d-text); color: var(--ink); }

/* mobile menu (slide-in, full screen) */
.menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 12px) var(--gut) calc(24px + env(safe-area-inset-bottom));
  background: var(--ivory); display: flex; flex-direction: column; overflow-y: auto;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 120px; background-position: -1px -1px;
}
.menu-links { border-top: 1px solid var(--line-strong); }
.menu-links li { border-bottom: 1px solid var(--line); background: var(--ivory); }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none;
  font: 400 clamp(32px, 9vw, 44px)/1.05 var(--serif);
}
.menu-links a span { font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--muted); min-width: 22px; }
.menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; background: var(--ivory); }
.menu-mail { justify-self: center; padding: 12px; color: var(--muted); }
.js .menu.is-open .menu-links li { animation: menuIn .6s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 40ms + 60ms); }
@keyframes menuIn { from { opacity: 0; transform: translateX(24px); } }
.menu.is-open { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 1100px) { .menu { display: none !important; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: calc(var(--nav-h) + 18px) 0 56px; min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; gap: 34px; }
.hero-visual { order: -1; }
.hero-eyebrow .tick { width: 22px; height: 1px; background: var(--ink); }
.hero-title { margin-top: 18px; font: 400 clamp(54px, 15vw, 132px)/.94 var(--serif); letter-spacing: -.025em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: block; }
.hero-title em { color: var(--bronze); }
.hero-lead { margin-top: 22px; max-width: 44ch; font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .btn { flex: 1 1 200px; }
.hero-call {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-size: 16px;
}
.hero-call svg { width: 20px; height: 20px; }
.hero-call strong { font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
.hero-call:hover strong { background-size: 0 1px; background-position: 100% 100%; }

/* ---------------------------------------------------------------- 3D installation scene (CSS 3D, no WebGL)
   A floor seen in axonometric view: set-out lines → combed adhesive → 8 slabs lowered into place →
   grout → light glint → dimensions, numbered markers and the spec card. Everything ends in its final
   state (animation-fill both), so reduced motion simply shows the finished floor. */
@property --turn { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --lift { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

.stage { position: relative; width: 100%; aspect-ratio: 1.12; perspective: 1500px; perspective-origin: 50% 25%; overflow: clip; overflow-clip-margin: 12px; }
.cam { position: absolute; inset: 0; transform-style: preserve-3d; }
.floor {
  --rx: 56deg; --rz: -36deg; --px: 0deg; --pz: 0deg; --th: 4px; --g: 3px; --fly: 200px;
  --ax: calc(var(--rx) + var(--px) + var(--lift));
  --az: calc(var(--rz) + var(--pz) + var(--turn));
  position: absolute; left: 50%; top: 60%; width: 64%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(var(--ax)) rotateZ(var(--az));
  transform-style: preserve-3d;
  animation: camTurn 5s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes camTurn { from { --turn: -16deg; --lift: -8deg; } }
.floor > * { position: absolute; }

/* screed + combed adhesive */
.f-bed { inset: -7%; background: #D3CCC1; box-shadow: 0 40px 60px -30px rgba(40, 30, 20, .35); }
.f-bed::before {
  content: ""; position: absolute; inset: 6.5%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.22) 0 2px, rgba(0,0,0,.10) 2px 3px, transparent 3px 6px),
    #A39D94;
  animation: comb 1s var(--ease) both .3s;
}
@keyframes comb { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.f-setout { inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(.5px); }
.f-setout line { stroke: var(--bronze); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; animation: setout 1s var(--ease) both; }
.f-setout line:nth-child(2) { animation-delay: .1s; } .f-setout line:nth-child(3) { animation-delay: .18s; } .f-setout line:nth-child(4) { animation-delay: .26s; }
@keyframes setout { 0% { stroke-dashoffset: 1; opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: .45; } }
.f-grout { inset: 0; background: var(--grout); transform: translateZ(1px); animation: groutIn .6s ease both 3.7s; }
@keyframes groutIn { from { opacity: 0; } }

/* slabs */
.t3, .f-shadows i { left: calc(var(--c) * 25%); top: calc(var(--r) * 50%); width: 25%; height: 50%; }
.t3 { transform-style: preserve-3d; transform: translateZ(var(--th)); animation: lay 1.1s cubic-bezier(.3, .7, .25, 1) both; animation-delay: calc(.9s + var(--i) * .26s); }
.t3-face, .t3-eb, .t3-el { position: absolute; display: block; }
.t3-face {
  inset: calc(var(--g) / 2);
  background: url("../img/hero-900.webp") calc(var(--c) * 33.333%) calc(var(--r) * 100%) / 400% 200%, #ECE8E1;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.06);
}
.t3-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.22), transparent 50%, rgba(0,0,0,.06)); }
@media (min-width: 900px) { .t3-face { background-image: url("../img/hero-1600.webp"); } }
.t3-eb { left: calc(var(--g) / 2); right: calc(var(--g) / 2); top: calc(100% - var(--g) / 2); height: var(--th); transform-origin: top; transform: rotateX(-90deg); background: linear-gradient(#E7E1D8, #C9C1B5); }
.t3-el { top: calc(var(--g) / 2); bottom: calc(var(--g) / 2); right: calc(100% - var(--g) / 2); width: var(--th); transform-origin: right; transform: rotateY(-90deg); background: linear-gradient(90deg, #B9B1A5, #D6CFC4); }
/* 3D groups must never animate opacity (that flattens them), so the fade-in runs on the faces */
@keyframes lay {
  0%   { transform: translate3d(-22px, -34px, var(--fly)) rotateX(16deg) rotateY(-10deg); }
  68%  { transform: translate3d(0, 0, calc(var(--th) + 12px)) rotateX(1.5deg) rotateY(-.5deg); }
  86%  { transform: translate3d(0, 0, calc(var(--th) - 1px)); }
  100% { transform: translateZ(var(--th)); }
}
.t3 > b { animation: appear .2s linear both; animation-delay: calc(.9s + var(--i) * .26s); }
@keyframes appear { from { opacity: 0; } }
.f-shadows { inset: 0; transform: translateZ(1.5px); }
.f-shadows i { position: absolute; background: rgba(45, 35, 25, .55); filter: blur(7px); opacity: 0; animation: shadow 1.1s cubic-bezier(.3, .7, .25, 1) both; animation-delay: calc(.9s + var(--i) * .26s); }
@keyframes shadow {
  0% { opacity: 0; transform: translate(26px, 40px) scale(1.25); }
  68% { opacity: .5; transform: translate(4px, 6px) scale(1.02); }
  100% { opacity: 0; transform: none; }
}
.f-glint {
  inset: 0; transform: translateZ(calc(var(--th) + .5px)); pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  animation: glint 1.5s ease-in-out both 4s;
}
@keyframes glint { 0% { opacity: 1; background-position: 120% 0; } 90% { opacity: 1; } 100% { opacity: 0; background-position: -20% 0; } }

/* dimensions, drawn on the floor plane like a technical drawing */
.f-dim { display: flex; align-items: center; justify-content: center; transform: translateZ(1px); font: 600 11px/1 var(--sans); letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.f-dim::before { content: ""; position: absolute; background: var(--muted); }
.f-dim span { position: relative; background: var(--ivory); padding: 0 7px; }
.f-dim-x { left: 0; right: 0; top: -13%; height: 10px; border-left: 1px solid var(--muted); border-right: 1px solid var(--muted); animation: dimX .9s var(--ease) both 4.1s; }
.f-dim-x::before { left: 0; right: 0; top: 50%; height: 1px; }
.f-dim-y { top: 0; bottom: 0; left: 106%; width: 10px; border-top: 1px solid var(--muted); border-bottom: 1px solid var(--muted); animation: dimY .9s var(--ease) both 4.25s; }
.f-dim-y::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.f-dim-y span { writing-mode: vertical-rl; padding: 7px 0; }
@keyframes dimX { from { transform: translateZ(1px) scaleX(0); opacity: 0; } }
@keyframes dimY { from { transform: translateZ(1px) scaleY(0); opacity: 0; } }

/* numbered markers standing on the floor, always facing the viewer */
.f-mark { left: var(--mx); top: var(--my); width: 0; height: 0; transform-style: preserve-3d; transform: translateZ(var(--th)); }
.f-mark::before { /* ring on the surface */
  content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border: 1.5px solid var(--bronze); border-radius: 50%;
  animation: appear .5s ease both var(--md), ring 2.4s ease-out infinite calc(var(--md) + .6s);
}
.f-stem { position: absolute; left: -.5px; top: 0; width: 1px; height: 38px; background: var(--ink); transform-origin: top; transform: rotateX(90deg); }
.f-pin {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--ivory); font: 600 12px/1 var(--sans);
  transform: translateZ(38px) rotateZ(calc(-1 * var(--az))) rotateX(calc(-1 * var(--ax))) translate(-50%, -50%);
}
.f-mark-1 { --md: 4.5s; } .f-mark-2 { --md: 4.7s; }
.f-stem { animation: stemUp .5s var(--ease-out) both var(--md); }
.f-pin { animation: appear .4s ease both calc(var(--md) + .3s); }
@keyframes stemUp { from { transform: rotateX(90deg) scaleY(0); } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

/* spec card */
.spec { margin-top: 6px; border-top: 1px solid var(--line-strong); padding-top: 14px; }
.spec-title { font: 400 22px/1.2 var(--serif); animation: rise .8s var(--ease-out) both 4.3s; }
.spec-list { margin-top: 10px; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 18px; justify-content: start; }
.spec-list div { display: flex; flex-direction: column; gap: 3px; animation: rise .8s var(--ease-out) both; }
.spec-list div:nth-child(1) { animation-delay: 4.4s; } .spec-list div:nth-child(2) { animation-delay: 4.55s; } .spec-list div:nth-child(3) { animation-delay: 4.7s; }
.spec-list dt { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec-list dd { margin: 0; font-size: 14px; font-weight: 500; }
.spec-n { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: var(--ivory); font-size: 9px; letter-spacing: 0; }
.replay {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 2px; border: 0; background: none;
  font: 500 13px/1 var(--sans); color: var(--muted); animation: rise .6s ease both 4.9s;
}
.replay svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.replay:hover { color: var(--ink); }
.replay:hover svg { transform: rotate(-200deg); }

.hero-scroll { display: none; }
@media (max-width: 899px) {
  .hero-grid { gap: 30px; }
  .hero { align-items: flex-start; }
  .stage { aspect-ratio: 1.55; }
  .floor { width: 62%; top: 52%; --fly: 120px; }
  .spec { margin-top: 14px; }
  .spec-title { font-size: 19px; }
  .spec-list { gap: 6px 14px; }
  .spec-list dd { font-size: 13px; }
  .replay { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) { .hero-visual { width: 100%; max-width: 560px; } }
@media (max-width: 480px) { .f-dim { font-size: 9px; } .f-pin { width: 22px; height: 22px; font-size: 11px; } }

@media (min-width: 900px) {
  .hero { padding-bottom: 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(30px, 4vw, 80px); }
  .hero-visual { order: 0; width: min(100%, calc((100svh - var(--nav-h) - 150px) * 1.02)); min-width: 380px; margin-left: auto; }
  .stage { overflow: visible; aspect-ratio: 1.02; }
  .floor { width: 58%; top: 55%; }
  .hero-title { font-size: clamp(64px, 7.2vw, 128px); }
  .hero-cta .btn { flex: 0 0 auto; }
  .hero-scroll {
    display: block; position: absolute; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px;
  }
  .hero-scroll span { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); overflow: hidden; }
  .hero-scroll span::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: scrollHint 2.4s var(--ease) infinite 2.4s; transform: translateY(-100%); }
}
@keyframes scrollHint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* headline and copy come in while the floor is being laid */
.js .hero-title .line > span { animation: lineUp 1s var(--ease-out) both; animation-delay: .5s; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .6s; }
.js .hero-eyebrow { animation: rise .8s var(--ease-out) both .4s; }
.js .hero-lead { animation: rise .9s var(--ease-out) both .8s; }
.js .hero-cta, .js .hero-call { animation: rise .9s var(--ease-out) both .9s; }
@keyframes lineUp { from { transform: translate3d(0, 105%, 0); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ------------------------------------------------------------------ trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; }
.trust-item { padding: 24px 0 24px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.trust-item:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.trust-item:nth-child(even) { padding-left: 18px; }
.trust-item:nth-child(n+3) { border-bottom: 0; }
.trust-item strong { font: 400 clamp(36px, 5vw, 58px)/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.trust-item strong.word { font-size: clamp(28px, 3.6vw, 44px); font-style: italic; padding-top: .18em; }
.trust-item > span { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding: 34px 28px; border-bottom: 0; border-right: 1px solid var(--line); }
  .trust-item:nth-child(odd), .trust-item:nth-child(even) { padding: 34px 28px; }
  .trust-item:first-child { padding-left: 0; }
  .trust-item:last-child { border-right: 0; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(80px, 12vw, 168px) 0; position: relative; }
.dark { background: var(--d-bg); color: var(--d-text); }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head-split { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .sec-head-split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
  .sec-head-split .sec-lead { justify-self: end; margin-bottom: 8px; }
}

/* scroll reveals */
.js .reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* grid cells sit on a 1px "grout" background: fade their contents, not the cell */
.js .svc.reveal, .js .tcard.reveal { opacity: 1; transform: none; }
.js .svc.reveal > *, .js .tcard.reveal > * { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .svc.reveal.is-in > *, .js .tcard.reveal.is-in > * { opacity: 1; transform: none; }

/* image reveal through tile-shaped masks */
.tilemask { position: relative; overflow: hidden; background: var(--paper); }
.tm-cells { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 0; pointer-events: none; }
.tm-cells i { background: var(--ivory); transform-origin: 50% 0; transition: transform .9s var(--ease); transition-delay: calc(var(--k) * 70ms); }
.dark .tm-cells i { background: var(--d-bg); }
.tilemask.is-in .tm-cells i { transform: scaleY(0); }
.tilemask img { transition: transform 1.6s var(--ease-out); }
.js .tilemask:not(.is-in) img { transform: scale(1.06); }

/* ------------------------------------------------------------------ services */
.svc-grid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc {
  position: relative; background: var(--ivory); padding: 34px 0 30px; display: flex; flex-direction: column; gap: 12px;
  transition: background .5s var(--ease);
}
.svc-ic { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 1.1; margin-bottom: 14px; overflow: visible; }
.svc-ic .ic-accent, #s-bath .ic-accent { stroke: var(--bronze); }
.svc h3 { font: 400 clamp(26px, 2.4vw, 32px)/1.1 var(--serif); }
.svc p { color: var(--muted); max-width: 40ch; }
.svc-link {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; align-self: flex-start;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.svc-link svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.svc-link::after { content: ""; position: absolute; inset: 0; }
.svc-link:hover svg, .svc:hover .svc-link svg { transform: translateX(4px); }
@media (min-width: 700px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc { padding: 40px 34px 34px; }
}
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc { padding: 48px 44px 40px; min-height: 380px; }
}
@media (hover: hover) and (min-width: 700px) {
  .svc::before { /* corner joint marks appear on hover */
    content: ""; position: absolute; inset: 14px; pointer-events: none; opacity: 0;
    background:
      linear-gradient(var(--ink), var(--ink)) 0 0 / 12px 1px, linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 12px,
      linear-gradient(var(--ink), var(--ink)) 100% 0 / 12px 1px, linear-gradient(var(--ink), var(--ink)) 100% 0 / 1px 12px,
      linear-gradient(var(--ink), var(--ink)) 0 100% / 12px 1px, linear-gradient(var(--ink), var(--ink)) 0 100% / 1px 12px,
      linear-gradient(var(--ink), var(--ink)) 100% 100% / 12px 1px, linear-gradient(var(--ink), var(--ink)) 100% 100% / 1px 12px;
    background-repeat: no-repeat; transform: scale(1.04); transition: opacity .4s var(--ease), transform .5s var(--ease);
  }
  .svc:hover { background: var(--paper); }
  .svc:hover::before { opacity: .55; transform: none; }
  .svc-ic path, .svc-ic circle { transition: stroke .4s; }
  .svc:hover .svc-ic { stroke: var(--bronze); }
}

/* ------------------------------------------------------------------ projects */
.projects { background: var(--paper); }
.projects .tm-cells i { background: var(--paper); }
.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 28px; padding: 2px var(--gut);
  scroll-padding: var(--gut);
}
.filters::-webkit-scrollbar { display: none; }
.pgrid {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 12px; scroll-padding: 0 var(--gut); scrollbar-width: thin;
}
.pcard { position: relative; flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column; }
.pcard.is-hidden { display: none; }
.pcard-media { aspect-ratio: 4 / 3.1; }
.pcard-media picture, .pcard-media img { width: 100%; height: 100%; }
.pcard-media img { object-fit: cover; }
.pcard-badge {
  position: absolute; left: 12px; top: 12px; z-index: 3; padding: 7px 10px; background: rgba(246,243,238,.92);
  font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.pcard-body { padding: 18px 2px 8px; }
.pcard-type { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard-title { margin-top: 10px; font: 400 clamp(26px, 2.3vw, 32px)/1.1 var(--serif); }
.pcard-open { all: unset; cursor: pointer; }
.pcard-open::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.pcard-open:focus-visible { outline: none; }
.pcard:has(.pcard-open:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 6px; }
.pcard-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.pcard-meta { flex-direction: column; }
@media (min-width: 768px) {
  .pcard-meta { flex-direction: row; }
  .pcard-meta span:not(:last-child)::after { content: "·"; margin: 0 8px; }
}
.pcard-media::after { /* hover: joint lines + view label */
  content: var(--t-view, "View project"); position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 10px 14px;
  background: var(--ink); color: var(--ivory); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
@media (hover: hover) {
  .pcard:hover .pcard-media img { transform: scale(1.035); }
  .pcard:hover .pcard-media::after { opacity: 1; transform: none; }
  .pcard:hover .pcard-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
}
.pcard.is-entering { animation: cardIn .7s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

@media (min-width: 768px) {
  .pgrid { display: block; columns: 2; column-gap: 24px; overflow: visible; margin: 0; padding: 0; }
  .pcard { break-inside: avoid; margin-bottom: 36px; display: flex; }
  .pcard-media { aspect-ratio: auto; }
  .pcard-media img { height: auto; }
}
@media (min-width: 1100px) {
  .pgrid { columns: 3; column-gap: 32px; }
  .pcard { margin-bottom: 48px; }
}

/* modal */
.modal {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0;
  background: var(--ivory); color: var(--ink);
}
.modal::backdrop { background: rgba(20, 19, 18, .72); }
.modal[open] { animation: modalIn .5s var(--ease-out) both; }
@keyframes modalIn { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
.modal-in { position: relative; min-height: 100%; display: flex; flex-direction: column; }
.modal-media { background: var(--paper); }
.modal-media > picture img { width: 100%; height: auto; max-height: 62svh; object-fit: cover; }
.modal-info { padding: 26px var(--gut) calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.modal-title { font: 400 clamp(34px, 4vw, 52px)/1.02 var(--serif); }
.modal-desc { color: var(--muted); }
.modal-meta { border-top: 1px solid var(--line); }
.modal-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.modal-meta dt { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.modal-info .btn { align-self: flex-start; margin-top: 6px; }
.modal-nav { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; }
.modal-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.modal-close { position: fixed; top: 12px; right: 12px; z-index: 5; background: rgba(246,243,238,.92); border-color: transparent; }
@media (min-width: 900px) {
  .modal { width: min(1320px, calc(100% - 64px)); height: min(860px, calc(100% - 64px)); margin: auto; }
  .modal-in { flex-direction: row; height: 100%; }
  .modal-media { flex: 1 1 62%; min-width: 0; display: flex; align-items: center; justify-content: center; }
  .modal-media > picture { width: 100%; height: 100%; }
  .modal-media > picture img { max-height: none; height: 100%; }
  .modal-media .ba { width: 100%; }
  .modal-info { flex: 0 0 38%; max-width: 480px; padding: 64px 48px 40px; overflow-y: auto; }
  .modal-close { position: absolute; top: 16px; right: 16px; }
}

/* ------------------------------------------------------------------ why (dark) */
.why-grid { display: grid; gap: 48px; }
.why-list { display: grid; }
.why-item { position: relative; padding: 26px 0 28px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.why-item::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--d-line);
  transform-origin: 0 50%;
}
.js .why-item::before { transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js .why-item.is-in::before { transform: none; }
.why-n { font: 400 15px/1.8 var(--sans); color: #CDB08A; font-variant-numeric: tabular-nums; grid-row: span 2; }
.why-item h3 { font: 400 clamp(26px, 2.4vw, 32px)/1.15 var(--serif); }
.why-item p { margin-top: 8px; color: var(--d-muted); max-width: 42ch; }
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
  .why-head { position: sticky; top: calc(var(--nav-h) + 40px); }
  .why-list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .why-item { grid-template-columns: 1fr; padding: 30px 0 44px; }
  .why-n { grid-row: auto; margin-bottom: 18px; }
}

/* ------------------------------------------------------------------ process */
.steps { position: relative; display: grid; gap: 0; padding-left: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--line-strong); }
.steps::after { background: var(--ink); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); transition: transform 1s var(--ease); }
.js .steps::after { --p: 0; }
.js .steps[style]::after { transform: scaleY(var(--p)); }
.step { position: relative; padding: 0 0 40px; }
.step:last-child { padding-bottom: 0; }
.step-node {
  position: absolute; left: -40px; top: 0; width: 23px; height: 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--ivory); padding: 0;
}
.step-node i { background: var(--ink); }
.js .step-node i { background: var(--stone); transform: scale(.4); transition: transform .6s var(--ease-out), background .6s; }
.js .step.is-in .step-node i { background: var(--ink); transform: none; }
.js .step.is-in .step-node i:nth-child(2) { transition-delay: .08s; }
.js .step.is-in .step-node i:nth-child(3) { transition-delay: .16s; }
.js .step.is-in .step-node i:nth-child(4) { transition-delay: .24s; background: var(--bronze); }
.step-n { font: 400 15px/1.5 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 6px; font: 400 clamp(28px, 2.4vw, 34px)/1.1 var(--serif); }
.step p { margin-top: 10px; color: var(--muted); max-width: 34ch; }
.js .step h3, .js .step p, .js .step .step-n { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js .step p { transition-delay: .1s; }
.js .step.is-in h3, .js .step.is-in p, .js .step.is-in .step-n { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; padding: 58px 0 0; }
  .steps::before, .steps::after { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 1px; }
  .steps::after { transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
  .js .steps[style]::after { transform: scaleX(var(--p)); }
  .step { padding: 0; border-left: 1px solid var(--line); padding-left: 20px; }
  .step-node { left: -12px; top: -58px; }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step:first-child .step-node { left: 0; }
  .step-n { font-size: 14px; }
}

/* ------------------------------------------------------------------ about */
.about { padding-top: 0; }
.about-grid { display: grid; gap: 44px; }
.about-media { aspect-ratio: 4 / 5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media figcaption {
  position: absolute; left: 0; bottom: 0; z-index: 3; padding: 12px 16px; background: var(--ivory); font-size: 13px; color: var(--muted);
  max-width: calc(100% - 40px);
}
.about-copy > p { margin-top: 20px; max-width: 52ch; font-size: clamp(17px, 1.3vw, 19px); }
.about-copy > p.eyebrow { margin-top: 0; font-size: 12px; }
.about-goal { font: 400 clamp(24px, 2.2vw, 30px)/1.3 var(--serif) !important; font-style: italic !important; padding-left: 22px; border-left: 1px solid var(--bronze); }
.about-facts { margin-top: 36px; border-top: 1px solid var(--line); }
.about-facts li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.about-facts span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 8vw, 140px); align-items: center; }
  .about-media { margin-left: calc(var(--gut) * -1); }
}
@media (min-width: 1440px) { .about-media { margin-left: 0; } }

/* ------------------------------------------------------------------ before / after */
.ba-sec { background: var(--paper); }
.ba-sec .tm-cells i { background: var(--paper); }
.ba-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 22px; padding: 2px var(--gut); }
.ba-tabs::-webkit-scrollbar { display: none; }
.ba-stage { max-width: 1100px; margin: 0 auto; }
.ba {
  --pos: 50%; position: relative; overflow: hidden; background: var(--limestone);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba-tall { max-width: 640px; margin: 0 auto; }
.ba-img, .ba-img img { width: 100%; }
.ba-img img { height: auto; pointer-events: none; -webkit-user-drag: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { height: 100%; object-fit: cover; }
.ba-label {
  position: absolute; top: 14px; z-index: 2; padding: 8px 11px; background: rgba(246,243,238,.92);
  font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; pointer-events: none;
}
.ba-label-b { left: 14px; }
.ba-label-a { right: 14px; background: var(--ink); color: var(--ivory); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 2px; margin-left: -1px; background: var(--ivory);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.15); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  background: var(--ivory); border-radius: 50%; box-shadow: 0 6px 22px -6px rgba(0,0,0,.4);
  transition: transform .25s var(--ease);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border: solid var(--ink); border-width: 0 0 1.5px 1.5px;
}
.ba-handle span::before { left: 14px; transform: rotate(45deg); }
.ba-handle span::after { right: 14px; transform: rotate(-135deg); }
.ba.is-drag .ba-handle span { transform: scale(1.08); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) .ba-handle span { outline: 2px solid var(--bronze); outline-offset: 3px; }
.ba.is-intro .ba-before { transition: clip-path 1.2s var(--ease); }
.ba.is-intro .ba-handle { transition: left 1.2s var(--ease); }

/* ------------------------------------------------------------------ testimonials */
.tgrid { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tcard { background: var(--ivory); padding: 30px 0; display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--bronze); letter-spacing: .2em; font-size: 14px; }
.tcard blockquote p { font: 400 clamp(22px, 2vw, 27px)/1.3 var(--serif); text-wrap: pretty; }
.tby { margin-top: auto; font-weight: 600; font-size: 15px; }
.tby span { font-weight: 400; color: var(--muted); }
.tby span::before { content: "— "; }
.tby { display: flex; gap: 6px; flex-wrap: wrap; }
.tby span::before { content: "· "; }
@media (min-width: 768px) {
  .tgrid { grid-template-columns: 1fr 1fr; }
  .tcard { padding: 40px; }
  .tcard:nth-child(odd) { padding-left: 0; }
}
@media (min-width: 1200px) {
  .tgrid { grid-template-columns: repeat(4, 1fr); }
  .tcard, .tcard:nth-child(odd) { padding: 44px 32px 40px; }
  .tcard:first-child { padding-left: 0; }
}

/* ------------------------------------------------------------------ FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; gap: 36px; }
.acc { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left;
  padding: 22px 0; min-height: 64px; background: none; border: 0;
  font: 400 clamp(21px, 1.9vw, 26px)/1.25 var(--serif);
}
.acc-ic { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background .3s, border-color .3s; }
.acc-ic::before, .acc-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .4s var(--ease); }
.acc-ic::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-ic { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.acc-btn[aria-expanded="true"] .acc-ic::after { transform: rotate(0); }
.acc-btn:hover .acc-ic { border-color: var(--ink); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 56px 24px 0; color: var(--muted); max-width: 62ch; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.no-js-acc .acc-panel, html:not(.js) .acc-panel { grid-template-rows: 1fr; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
  .faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ------------------------------------------------------------------ quote */
.quote { background: var(--limestone); }
.quote-grid { display: grid; gap: 40px; }
.quote-tips { margin-top: 28px; display: grid; gap: 10px; }
.quote-tips li { position: relative; padding-left: 26px; font-size: 15px; }
.quote-tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--ink); }
.quote-alt { margin-top: 26px; font-size: 16px; }
.quote-alt a { font-weight: 600; }
.quote-card { background: var(--ivory); padding: 26px 20px 28px; margin: 0 calc(var(--gut) * -1 + 8px); box-shadow: 0 30px 60px -40px rgba(40, 30, 20, .35); }
@media (min-width: 600px) { .quote-card { margin: 0; padding: 40px; } }
@media (min-width: 1000px) {
  .quote-grid { grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
  .quote-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
  .quote-card { padding: 52px 56px; }
}
.fgrid { display: grid; gap: 20px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; gap: 22px 22px; } .field-full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .flabel { font-size: 14px; font-weight: 500; }
.req { color: var(--bronze); }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: #fff; font-size: 16px; line-height: 1.3; -webkit-appearance: none; appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input[type="date"] { min-height: 54px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(140, 107, 74, .25); }
.field [aria-invalid="true"] { border-color: #A3392B !important; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.select select { padding-right: 44px; }
::placeholder { color: #9A938A; }
.ferr { font-size: 13.5px; color: #A3392B; min-height: 0; }
.ferr:empty { display: none; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 26px 18px; min-height: 130px; border: 1px dashed var(--muted); border-radius: var(--r); background: var(--paper);
  font-size: 15px !important; font-weight: 400 !important; transition: background .25s, border-color .25s;
}
.drop svg { width: 26px; height: 26px; margin-bottom: 4px; }
.drop strong { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.drop-hint { font-size: 13px; color: var(--muted); }
.drop:hover, .drop.is-over { background: var(--limestone); border-color: var(--ink); }
.drop-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-input:focus-visible + .files, .field:has(.drop-input:focus-visible) .drop { outline: 2px solid var(--bronze); outline-offset: 3px; }
.files { display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; background: var(--paper); font-size: 14px; }
.files .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .fsize { color: var(--muted); font-variant-numeric: tabular-nums; }
.files button { width: 36px; height: 36px; border: 0; background: transparent; display: grid; place-items: center; border-radius: var(--r); }
.files button:hover { background: var(--limestone); }
.files button svg { width: 18px; height: 18px; }
.check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.check label { flex: 1; font-weight: 400; font-size: 14px; color: var(--muted); }
.check .ferr { flex-basis: 100%; }
.qform-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn-submit { min-width: 240px; flex: 1 1 240px; }
@media (min-width: 640px) { .btn-submit { flex: 0 0 auto; } }
.fnote { font-size: 13px; color: var(--muted); }
.spinner { display: none; width: 18px; height: 18px; border: 1.5px solid rgba(246,243,238,.35); border-top-color: var(--ivory); border-radius: 50%; animation: spin .8s linear infinite; }
.btn-submit.is-loading .spinner { display: block; }
.btn-submit.is-loading svg { display: none; }
.btn-submit[disabled] { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.qform-errors { margin-bottom: 22px; padding: 16px 18px; border-left: 3px solid #A3392B; background: #F6E9E4; font-size: 15px; }
.qform-errors:focus { outline: none; }
.qform-errors ul { margin-top: 6px; display: grid; gap: 2px; }
.qform-errors a { color: #7E2A1F; }
.qdone { text-align: left; padding: 20px 0; }
.qdone:focus { outline: none; }
.qdone-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 44px; height: 44px; margin-bottom: 26px; }
.qdone-mark i { background: var(--ink); animation: tileIn .7s var(--ease-out) both; }
.qdone-mark i:nth-child(2) { animation-delay: .08s; } .qdone-mark i:nth-child(3) { animation-delay: .16s; }
.qdone-mark i:nth-child(4) { animation-delay: .24s; background: var(--bronze); }
.qdone-title { font: 400 clamp(38px, 4vw, 56px)/1 var(--serif); }
.qdone p { margin: 14px 0 28px; font-size: 18px; color: var(--muted); max-width: 44ch; }

/* ------------------------------------------------------------------ contact */
.contact-grid { display: grid; border-top: 1px solid var(--d-line); }
.crow { display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--d-line); text-decoration: none; }
.crow-k { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--d-muted); }
.crow-k svg { width: 18px; height: 18px; }
.crow-v { font: 400 clamp(26px, 3vw, 40px)/1.1 var(--serif); overflow-wrap: anywhere; }
.crow-big .crow-v { font-size: clamp(32px, 5vw, 64px); }
a.crow .crow-v { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); justify-self: start; }
a.crow:hover .crow-v { background-size: 100% 1px; }
.hours { display: grid; gap: 4px; font-size: 17px; }
.hours div { display: flex; gap: 16px; }
.hours dt { width: 80px; color: var(--d-muted); }
.contact-cta { margin-top: 40px; display: grid; gap: 10px; }
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .contact-cta { display: flex; flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ footer */
.footer { background: #141312; color: var(--d-text); padding: 72px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--d-line); }
.footer-brand p { margin-top: 18px; color: var(--d-muted); max-width: 34ch; }
.social { display: flex; gap: 8px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--d-line); border-radius: 50%; transition: background .3s, color .3s; }
.social a:hover { background: var(--d-text); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.footer-h { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { text-decoration: none; display: inline-block; padding: 2px 0; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col li { color: var(--d-text); }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--d-muted); font-size: 14px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-bottom a:hover { color: var(--d-text); text-decoration: underline; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; } }

/* ------------------------------------------------------------------ mobile sticky bar */
.mbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(237, 232, 224, .22), 0 12px 30px -12px rgba(0,0,0,.45);
  transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease);
}
.mbar.is-on { transform: none; }
.mbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; background: var(--ivory);
  font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.mbar a svg { width: 18px; height: 18px; }
.mbar .mbar-q { background: var(--ink); color: var(--ivory); }
@media (max-width: 1099px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (min-width: 1100px) { .mbar { display: none; } }
html:not(.js) .mbar { transform: none; }

/* ------------------------------------------------------------------ gallery page */
.page-head { padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 110px)); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head .h2 { font-size: clamp(48px, 9vw, 120px); line-height: .96; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-bottom: clamp(80px, 10vw, 140px); }
.gal li { position: relative; }
.gal-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); aspect-ratio: 1; overflow: hidden; position: relative; }
.gal-btn picture { position: absolute; inset: 0; }
.gal-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.gal-btn::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; text-align: left;
  background: linear-gradient(transparent, rgba(20,19,18,.6)); color: #fff; font-size: 13px; opacity: 0; transition: opacity .4s;
}
@media (hover: hover) { .gal-btn:hover img { transform: scale(1.05); } .gal-btn:hover::after { opacity: 1; } }
@media (min-width: 700px) { .gal { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 1100px) {
  .gal { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .gal li:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
}
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #121110; color: var(--d-text); }
.lightbox::backdrop { background: #121110; }
.lightbox[open] { animation: fade .35s ease both; display: flex; flex-direction: column; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 0 8px; touch-action: pan-y pinch-zoom; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gut) calc(16px + env(safe-area-inset-bottom)); }
.lb-cap { font-size: 15px; color: var(--d-muted); flex: 1; text-align: center; }
.lightbox .icon-btn { border-color: var(--d-line); color: var(--d-text); }
.lightbox .icon-btn:hover { background: var(--d-text); color: var(--ink); }
.lb-close { position: absolute; top: 12px; right: 12px; }
.lb-count { position: absolute; top: 26px; left: var(--gut); font-size: 13px; letter-spacing: .12em; color: var(--d-muted); font-variant-numeric: tabular-nums; }

/* legal pages */
.legal { padding-bottom: clamp(80px, 10vw, 140px); }
.legal .prose { max-width: 70ch; }
.prose h2 { margin: 40px 0 10px; font: 400 30px/1.15 var(--serif); }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 10px; padding-left: 20px; list-style: square; }
.note { margin-bottom: 30px; padding: 14px 18px; border-left: 3px solid var(--bronze); background: var(--paper); font-size: 15px; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal > *, .js .step h3, .js .step p, .js .step .step-n { opacity: 1; transform: none; }
  .tm-cells { display: none; }
  .js .tilemask:not(.is-in) img { transform: none; }
  .f-mark::before { animation: none; }
}
