/* ==========================================================================
   GT StoneWorks — "Gallery" design system
   Ivory, charcoal and bronze, anchored by a deep navy.
   Headings: Marcellus · Body: Jost
   ========================================================================== */

:root {
  --ivory: #F5F1EA;
  --paper: #FBF9F5;
  --stone: #D9D2C5;
  --stone-soft: #E8E2D7;
  --charcoal: #2B2925;
  --muted: #6E685F;
  --bronze: #A68A64;
  --bronze-text: #7A6240;
  --line-strong: #857D70;
  --focus: var(--navy);
  --navy: #0C2F54;
  --navy-deep: #08223E;

  --font-head: "Marcellus", "Marcellus Fallback", "Times New Roman", serif;
  --font-body: "Jost", "Jost Fallback", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(72px, 10vw, 144px);
  --max: 1320px;
  --header-h: 96px;
  --band: clamp(16px, 4.5vw, 68px);

  --ease: cubic-bezier(.65, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);

  --r-s: 8px;
  --r-l: 22px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(20, 18, 15, .06);
  --sh-2: 0 8px 24px -8px rgba(12, 47, 84, .18);
  --sh-3: 0 24px 64px -16px rgba(8, 34, 62, .32);
}

*, *::before, *::after { box-sizing: border-box; }

@font-face { font-family: "Marcellus Fallback"; src: local("Times New Roman"); size-adjust: 113.2%; ascent-override: 85.7%; descent-override: 24.7%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"); size-adjust: 95.8%; ascent-override: 111.7%; descent-override: 39.7%; }

html { scroll-padding-top: 112px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 350;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0;
  color: var(--navy);
}

h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: clamp(22px, 2vw, 28px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--muted);
  max-width: 36em;
}

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

.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }

/* Placeholder content still to be supplied — easy to search for "tbd" */
.tbd {
  background: rgba(166, 138, 100, .14);
  border-bottom: 1px dashed var(--bronze);
  padding: 0 .25em;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn:hover { background: transparent; color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--ivory); }
.btn--light { border-color: var(--ivory); background: transparent; color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--navy); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.text-link .arrow { transition: transform 200ms var(--ease-out); }
.text-link:hover .arrow { transform: translateX(6px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  pointer-events: none;
}
.site-header::before { z-index: -2; border-radius: 0; transition: transform 320ms var(--ease-out); }
.site-header.is-scrolled::before { transform: translateY(-20px); }

/* Three-part header: navigation · centered logo · social links */
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
}

.brand { justify-self: center; }
.brand img { height: 84px; width: auto; transition: transform 320ms var(--ease-out); }
.brand, .header-right, .menu-toggle, .nav { pointer-events: auto; }
.brand, .header-right, .menu-toggle { transition: transform 320ms var(--ease-out); }
.is-scrolled .brand, .is-scrolled .header-right, .is-scrolled .menu-toggle { transform: translateY(-10px); }
.site-header.is-scrolled .brand img { transform: scale(.79); }
.header-right { justify-self: end; display: flex; align-items: center; gap: 16px; }
.header-cta { display: none; min-height: 44px; padding: 0 18px; font-size: 13px; letter-spacing: .1em; }
@media (min-width: 1560px) { .header-cta { display: inline-flex; } }

.socials { display: flex; align-items: center; gap: 10px; }
.socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stone);
  border-radius: 50%;
  color: var(--navy);
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.socials a:hover { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.socials svg { width: 16px; height: 16px; }
.nav-socials { display: none; }
.footer-socials { margin-top: 32px; }
.footer-socials a { border-color: rgba(245, 241, 234, .22); color: var(--ivory); }
.footer-socials a:hover { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }

.nav { display: flex; gap: clamp(18px, 2vw, 40px); justify-self: start; align-items: center; transition: transform 320ms var(--ease-out); }
@media (min-width: 1241px) { .is-scrolled .nav { transform: translateY(-10px); } }
.nav > a {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--charcoal);
  padding: 12px 0;
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms var(--ease);
}
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav > a[aria-current="page"] { color: var(--navy); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px 10px;
  min-width: 48px;
  min-height: 44px;
  margin-right: -10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--navy);
  transition: transform .5s var(--ease), opacity .3s;
}
.menu-toggle span + span { margin-top: 8px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- Scroll reveal ---------- */

/* Content starts hidden only once the page's script is running (it adds
   .js to <html>). If the script ever fails, everything simply shows. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: min(var(--d, 0s), .12s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.reveal-img { overflow: hidden; }
.js .reveal-img img {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
  transition-delay: min(var(--d, 0s), .12s);
}
.js .reveal-img.is-visible img { opacity: 1; transform: none; }

/* ==========================================================================
   Home — hero ("the cut")
   A fine bronze line is drawn top to bottom like a blade through stone,
   then the photograph opens outward from that cut.
   ========================================================================== */

/* Navy bands frame the photograph on the left and right */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  padding: 0 var(--band);
  background: var(--navy);
}

.hero__band {
  position: absolute;
  top: 50%;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #C9B48F;
  white-space: nowrap;
  opacity: 0;
  animation: fade-in 400ms ease .8s forwards;
}
.hero__band--left { left: calc(var(--band) / 2); transform: translate(-50%, -50%) rotate(-90deg); }
.hero__band--right { right: calc(var(--band) / 2); transform: translate(50%, -50%) rotate(90deg); }

.hero__frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--stone-soft);
}
/* The two halves of stone that part from the cut */
.hero__frame::before, .hero__frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 1;
  background: var(--stone-soft);
}
.hero__frame::before { left: 0; animation: part-left 700ms var(--ease) 350ms forwards; }
.hero__frame::after { right: 0; animation: part-right 700ms var(--ease) 350ms forwards; }

.hero__cut {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--bronze);
  transform: scaleY(0);
  transform-origin: top;
  animation: cut-draw 450ms var(--ease) forwards, cut-fade 200ms ease 450ms forwards;
  z-index: 2;
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop toward the lower part of the photo so the island sits in frame */
  object-position: center 60%;
  transform: scale(1.14);
  animation: settle 1.2s var(--ease-out) forwards;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 34, 62, 0) 38%, rgba(8, 34, 62, .5) 62%, rgba(8, 34, 62, .68) 100%);
}

.hero__content {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(32px, 6vw, 80px);
  z-index: 3;
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero__content h1 { color: var(--ivory); max-width: 11em; }
.hero__content .eyebrow { color: var(--ivory); opacity: .9; }

.hero__line { display: block; overflow: hidden; }
.hero__line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 500ms var(--ease) forwards;
}
.hero__line:nth-child(1) > span { animation-delay: .6s; }
.hero__line:nth-child(2) > span { animation-delay: .7s; }

.hero__fade { opacity: 0; animation: fade-in 400ms ease forwards; animation-delay: .8s; }
/* Only the first page view in a visit plays the opening */
.no-intro .hero__frame::before, .no-intro .hero__frame::after, .no-intro .hero__cut { display: none; }
.no-intro .hero__media img { animation: none; transform: scale(1.02); }
.no-intro .hero__line > span { animation: none; transform: none; }
.no-intro .hero__fade, .no-intro .hero__band { animation: none; opacity: 1; }

.hero__aside {
  text-align: right;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 2;
  flex-shrink: 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 64px;
  overflow: hidden;
  z-index: 3;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  animation: cue 2.4s var(--ease) 1.4s infinite;
  transform: translateY(-100%);
}

@keyframes part-left { to { transform: translateX(-101%); } }
@keyframes part-right { to { transform: translateX(101%); } }
@keyframes cut-draw { to { transform: scaleY(1); } }
@keyframes cut-fade { to { opacity: 0; } }
@keyframes settle { to { transform: scale(1.02); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes cue {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Home — introduction ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(48px, 9vw, 160px);
  align-items: center;
}
.intro h2 { margin-bottom: 40px; }
.intro__media { position: relative; }
.intro__media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.intro__media::before {
  content: "";
  position: absolute;
  inset: -28px 28px 28px -28px;
  border: 1px solid var(--stone);
  z-index: -1;
}
.intro__stats {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  margin: 56px 0;
  padding-top: 40px;
  border-top: 1px solid var(--stone);
}
.stat__num { font-family: var(--font-head); font-size: clamp(40px, 4vw, 56px); color: var(--navy); line-height: 1; }
.stat__label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }

/* ---------- Home — services ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(64px, 8vw, 112px);
}
.section-head h2 { max-width: 13em; }

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--stone);
}
.service {
  padding: 44px 36px 8px 0;
  margin-right: 36px;
}
.service + .service { padding-left: 36px; border-left: 1px solid var(--stone); margin-right: 0; }
.service__num { font-family: var(--font-head); color: var(--bronze-text); font-size: 15px; letter-spacing: .1em; margin-bottom: 28px; display: block; }
.service h3 { margin-bottom: 18px; font-size: 24px; }
.service p { color: var(--muted); font-size: 16px; }

/* ---------- Home — featured work ---------- */

.featured {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: clamp(64px, 7vw, 104px);
  max-width: 1080px;
  margin: 0 auto;
}
.feature figure { margin: 0; }
.feature img { width: 100%; object-fit: cover; }
.feature figcaption { margin-top: 24px; }
.feature figcaption h3 { font-size: 22px; margin-bottom: 6px; }
.feature figcaption p { font-size: 15px; color: var(--muted); margin: 0; }

/* Two columns that stack independently: the left holds two 3:4 photos,
   the right two 4:5 photos, set lower by one consistent offset */
.featured__col {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 7vw, 104px);
}
.featured__col--left { grid-column: 1 / span 5; }
.featured__col--right { grid-column: 7 / span 6; padding-top: 14vh; }
.featured__col--left .feature img { aspect-ratio: 3 / 4; }
.featured__col--right .feature img { aspect-ratio: 4 / 5; }

.featured-cta { text-align: center; margin-top: clamp(64px, 8vw, 112px); }

/* Navy frame around an ivory section: sides match the hero bands,
   top and bottom a little heavier so they read as dividers */
.framed { background: var(--navy); padding: calc(var(--band) * 1.4) var(--band); }
.framed__inner { background: var(--ivory); }

/* ---------- Home — Google rating ---------- */

.rating { padding: clamp(72px, 9vw, 120px) 0; }
.rating__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}
.rating__summary { text-align: center; padding-right: clamp(0px, 4vw, 64px); border-right: 1px solid rgba(245, 241, 234, .16); }
.rating__summary .eyebrow { justify-content: center; margin-bottom: 20px; }
.rating__summary .eyebrow::before { display: none; }
.rating__score { font-family: var(--font-head); font-size: clamp(64px, 7vw, 92px); line-height: 1; color: var(--ivory); }
.stars { display: flex; justify-content: center; gap: 8px; margin: 18px 0 14px; color: #C9B48F; }
.stars svg { width: 18px; height: 18px; }
.rating__meta { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; opacity: .75; margin: 0; }
.rating__links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.rating__links .text-link { color: var(--ivory); font-size: 11px; }

/* Review quote: three lines visible, scrolling up line by line */
.quote-window {
  position: relative;
  margin: 0;
  height: calc(1.6em * 3);
  overflow: hidden;
  font-family: var(--font-head);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.6;
  color: var(--ivory);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.quote-text {
  margin: 0;
  transition: transform 1.4s var(--ease), opacity .8s ease;
}
.quote-text.is-resetting { opacity: 0; }
.quote-mark { font-family: var(--font-head); font-size: 64px; line-height: .6; color: #C9B48F; display: block; height: 28px; }
.rating__cite { display: flex; align-items: center; gap: 16px; margin-top: 28px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(245, 241, 234, .7); }
.rating__cite::before { content: ""; width: 40px; height: 1px; background: #C9B48F; }

/* ---------- Navy sections (shared) ---------- */

.section--navy { background: var(--navy); color: rgba(245, 241, 234, .82); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--ivory); }
.section--navy .eyebrow { color: #C9B48F; }
.section--navy .lede, .section--navy p { color: rgba(245, 241, 234, .74); }
.section--navy .text-link { color: var(--ivory); }
.section--navy .btn--ghost { border-color: var(--ivory); color: var(--ivory); }
.section--navy .btn--ghost:hover { background: var(--ivory); color: var(--navy); }
.section--navy .tbd { background: rgba(245, 241, 234, .1); border-bottom-color: #C9B48F; }
.section--navy .feature figcaption p { color: rgba(245, 241, 234, .65); }
.section--navy .step::before { background: rgba(245, 241, 234, .18); }
.section--navy .step::after { background: #C9B48F; }
.section--navy .step__num { color: rgba(245, 241, 234, .22); }
.section--navy .step p { color: rgba(245, 241, 234, .72); }
.section--navy .step__note { color: rgba(245, 241, 234, .6); }
.section--navy .story__body p:first-child { color: var(--ivory); }
.page-head.section--navy { margin-bottom: 0; }



/* ---------- Closing call to action (shared) ---------- */

.closing {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
}
.closing__bg { position: absolute; inset: 0; }
.closing__bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.closing__bg::after { content: ""; position: absolute; inset: 0; background: rgba(8, 34, 62, .52); }
.closing__inner { position: relative; z-index: 1; padding: var(--section) var(--gutter); }
.closing h2 { color: var(--ivory); margin-bottom: 28px; }
.closing p { max-width: 30em; margin: 0 auto 48px; opacity: .9; }
.closing .eyebrow { color: var(--ivory); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 241, 234, .78);
  padding: clamp(80px, 9vw, 128px) 0 40px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(245, 241, 234, .14);
}
.footer-brand img { height: 92px; width: auto; margin-bottom: 28px; }
.footer-brand p { max-width: 22em; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #C9B48F;
  margin-bottom: 24px;
}
.site-footer .footer-sub { margin-top: 36px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 6px 0; }
.site-footer a { transition: color .4s; }
.site-footer a:hover { color: var(--ivory); }
.site-footer .tbd { background: rgba(245, 241, 234, .08); border-bottom-color: #C9B48F; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(245, 241, 234, .72);
}

/* ==========================================================================
   Interior page header (portfolio, about, contact)
   ========================================================================== */

.page-head { padding: clamp(96px, 12vw, 176px) 0 clamp(72px, 8vw, 120px); }
.page-head h1 { margin-bottom: 32px; max-width: 12em; }

/* ---------- Portfolio ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-bottom: clamp(56px, 7vw, 96px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--stone);
}
.filter {
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: var(--font-body);
  min-height: 44px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 200ms;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
}
.filter:hover { color: var(--navy); }
.filter.is-active { color: var(--navy); }
.filter.is-active::after { transform: scaleX(1); }

.gallery {
  columns: 3;
  column-gap: clamp(28px, 3.5vw, 56px);
}
.piece {
  break-inside: avoid;
  margin: 0 0 clamp(64px, 7vw, 104px);
  cursor: zoom-in;
  transition: opacity .6s var(--ease);
}
.piece.is-hidden { display: none; }
.piece__img { overflow: hidden; background: var(--stone-soft); }
.piece__img img {
  width: 100%;
  transition: transform 320ms var(--ease-out);
}
@media (hover: hover) { .piece:hover .piece__img img { transform: scale(1.02); } }
.piece figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
}
.piece h3 { font-size: 20px; margin-bottom: 4px; }
.piece p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }
.piece__no { font-family: var(--font-head); font-size: 13px; color: var(--bronze-text); letter-spacing: .1em; flex-shrink: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 19, 17, .96);
  color: var(--ivory);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms var(--ease), visibility 0s 320ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 320ms var(--ease); }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 72px 96px;
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 144px);
  width: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  transition: opacity 320ms var(--ease), transform 420ms var(--ease-out);
}
.lightbox__stage img.is-loaded { opacity: 1; transform: none; }
.lightbox__info {
  border-left: 1px solid rgba(245, 241, 234, .12);
  padding: 96px 48px 48px;
  display: flex;
  flex-direction: column;
}
.lightbox__count { font-family: var(--font-head); color: #C9B48F; letter-spacing: .14em; font-size: 14px; margin-bottom: 40px; }
.lightbox__info h2 { color: var(--ivory); font-size: 32px; margin-bottom: 20px; }
.lightbox__info p { color: rgba(245, 241, 234, .75); font-size: 16px; }
.lightbox__tag { margin-top: auto; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(245, 241, 234, .5); }
.lb-btn {
  position: absolute;
  background: rgba(8, 34, 62, .72);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 40%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  border: 1px solid rgba(245, 241, 234, .25);
  color: var(--ivory);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 200ms;
}
.lb-btn:hover { border-color: rgba(245, 241, 234, .6); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 28px; top: 28px; z-index: 2; }
body.no-scroll { overflow: hidden; }

/* ---------- About ---------- */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: end;
}
.about-hero__img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(48px, 8vw, 140px);
}
.story h2 { position: sticky; top: 140px; align-self: start; }
.story__body p:first-child { font-family: var(--font-head); font-size: clamp(22px, 2vw, 28px); line-height: 1.55; color: var(--navy); }

.service-list { border-top: 1px solid var(--stone); }
.service-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--stone);
  align-items: baseline;
}
.service-row .service__num { margin: 0; }
.service-row h3 { font-size: clamp(22px, 2vw, 30px); }
.service-row p { color: var(--muted); margin: 0; }

.materials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(72px, 8vw, 120px);
}
.material { background: var(--ivory); padding: clamp(36px, 4vw, 56px); }
.material h3 { margin-bottom: 16px; }
.material p { color: var(--muted); margin: 0; }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 3vw, 48px);
  counter-reset: step;
}
.step { position: relative; padding-top: 48px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--stone);
}
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 100%;
  background: var(--navy);
  transform-origin: left;
  transition: transform 500ms var(--ease) min(var(--d, 0s), .12s);
}
.js .step::after { transform: scaleX(0); }
.js .step.is-visible::after { transform: scaleX(1); }
.step__num { font-family: var(--font-head); font-size: 64px; line-height: 1; color: var(--stone); margin-bottom: 28px; }
.step h3 { margin-bottom: 16px; }
.step p { color: var(--muted); font-size: 16px; }
.step__note { font-size: 14px; color: var(--muted); border-left: 1px solid var(--bronze); padding-left: 16px; margin-top: 20px; }

/* ---------- Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(56px, 9vw, 160px);
}
.info-block { padding: 32px 0; border-top: 1px solid var(--stone); }
.info-block:last-of-type { border-bottom: 1px solid var(--stone); }
.info-block h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-bottom: 14px;
}
.info-block p, .info-block a { font-size: 18px; color: var(--charcoal); margin: 0; }
.info-block a:hover { color: var(--navy); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 32px; font-size: 17px; }

.map { margin-top: 48px; aspect-ratio: 4 / 3; background: var(--stone-soft); filter: grayscale(.85) contrast(.95); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form { background: var(--paper); padding: clamp(36px, 5vw, 72px); }
.form h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.form > p { color: var(--muted); margin-bottom: 48px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.field { position: relative; margin-bottom: 36px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: max(16px, 1em);
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color 200ms;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E685F'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--navy); }
.field .error { display: none; font-size: 13px; color: #9B3B2E; margin-top: 8px; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #9B3B2E; }
.field.has-error .error { display: block; }
.form-success { display: none; text-align: center; padding: 64px 0; }
.form-success h3 { margin-bottom: 16px; font-size: 32px; }
.form-status { margin: 16px 0 0; font-size: 14px; color: #9B3B2E; }
.form-status:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: .6; cursor: wait; }
.form.is-sent form { display: none; }
.form.is-sent .form-success { display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3) { border-left: 0; padding-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--stone); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lightbox__stage { padding: 72px 24px 24px; }
  .lightbox__stage img { max-height: calc(100vh - 300px); }
  .lightbox__info { border-left: 0; border-top: 1px solid rgba(245, 241, 234, .12); padding: 28px 24px 36px; }
  .lightbox__count { margin-bottom: 14px; }
  .lightbox__info h2 { font-size: 24px; margin-bottom: 8px; }
  .lightbox__tag { display: none; }
}

/* Menu button replaces the nav once the links no longer fit beside the logo */
@media (max-width: 1240px) {
  .menu-toggle { display: block; justify-self: start; margin: 0 0 0 -10px; }
  .header-socials { display: none; }
  .nav-socials { display: flex; margin-top: 12px; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    justify-self: stretch;
    width: 100%;
    overflow-y: auto;
    height: 100dvh;
    padding-top: var(--header-h);
    background: var(--ivory);
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 320ms var(--ease), visibility 0s 320ms;
  }
  .nav > a { font-family: var(--font-head); font-size: 30px; letter-spacing: .04em; text-transform: none; color: var(--navy); }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity 320ms var(--ease); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .brand img { height: 60px; }
  .site-header.is-scrolled::before { transform: translateY(-8px); }
  .is-scrolled .brand, .is-scrolled .header-right, .is-scrolled .menu-toggle { transform: translateY(-4px); }
  .site-header.is-scrolled .brand img { transform: scale(.87); }
  .hero__band { display: none; }
  .rating__grid { grid-template-columns: 1fr; }
  .rating__summary { padding: 0 0 40px; border-right: 0; border-bottom: 1px solid rgba(245, 241, 234, .16); }
  .quote-window { height: calc(1.6em * 4); }

  .hero { padding: 0 12px; min-height: 520px; }
  .framed { padding: 22px 12px; }
  .hero__content { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero__aside { text-align: left; }
  .scroll-cue { display: none; }

  .intro, .about-hero, .story, .contact { grid-template-columns: 1fr; }
  .intro__media { order: -1; margin: 0 0 0 28px; }
  .story h2 { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .featured { grid-template-columns: 1fr; row-gap: 72px; }
  /* One column on phones, alternating sides in a steady zigzag */
  .featured__col { display: contents; }
  .feature--a { order: 1; margin-right: 15%; }
  .feature--b { order: 2; margin-left: 15%; }
  .feature--c { order: 3; margin-right: 15%; }
  .feature--d { order: 4; margin-left: 15%; }

  .gallery { columns: 2; }
  .materials { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: auto; }
}

@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 36px 0 4px; margin: 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--stone); }
  .process { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .intro__stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Refresh layer: images, focus, liquid glass, transitions
   ========================================================================== */

picture { display: contents; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--ivory);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.section--navy, .closing, .site-footer, .lightbox, .hero__content, .inv-detail { --focus: #C9B48F; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 160ms var(--ease-exit) both; }
  ::view-transition-new(root) { animation: vt-in 240ms var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Liquid glass. Stone stays square; glass is soft.
   Blur sits on a pseudo-element so it never traps fixed children. */
.glass { position: relative; isolation: isolate; border-radius: var(--r-pill); box-shadow: var(--sh-2); }
.glass::before, .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 42%), rgba(251, 249, 245, .72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(12, 47, 84, .08);
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .12) 40%, rgba(166, 138, 100, .28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.glass--dark { color: var(--ivory); }
.glass--dark::before { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 40%), rgba(8, 34, 62, .72); }
/* Same glass material with no blur, where nothing moves behind it */
.glass-still {
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 60%), var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 1px rgba(12, 47, 84, .07), var(--sh-1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass::before, .site-header::before { background: rgba(251, 249, 245, .96); }
  .glass--dark::before { background: rgba(8, 34, 62, .96); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass::before, .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .glass--dark::before { background: var(--navy-deep); }
}


.hero__chip {
  display: inline-flex;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: var(--r-pill);
  background: rgba(8, 34, 62, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Parallax without scripts, on large screens only */
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .closing__bg img { animation: drift linear both; animation-timeline: view(); }
  }
}
@keyframes drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }

/* Phones: one tap to call or ask for an estimate */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    translate: -50% 0;
    color: var(--navy);
    font-size: 14px;
  }
  .mobile-cta a { display: flex; align-items: center; min-height: 48px; padding: 0 20px; white-space: nowrap; }
  .mobile-cta a + a { border-left: 1px solid rgba(12, 47, 84, .14); }
  .site-footer { padding-bottom: 96px; }
  .inv-page .mobile-cta { display: none; }
  .contact > :last-child { order: -1; }
}

.quote-pause {
  margin-top: 16px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: #C9B48F;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.quote-window.is-static { height: auto; -webkit-mask-image: none; mask-image: none; }

.area-list { font-size: 16px !important; line-height: 1.7; }
.trade { margin-top: 48px; padding: 32px; background: var(--paper); }
.trade h3 { margin-bottom: 12px; }
.trade p { color: var(--muted); font-size: 16px; }
.trade .text-link { min-height: 44px; }

/* ==========================================================================
   Live Inventory
   ========================================================================== */

.inv-head { padding: clamp(32px, 3.5vw, 48px) 0 clamp(24px, 3vw, 36px); }
.inv-head h1 { font-size: clamp(36px, 4.6vw, 64px); margin-bottom: 16px; }
.inv-head .lede { color: rgba(245, 241, 234, .82); margin-bottom: 8px; }
.inv-head p:last-child { margin-bottom: 0; }
.inv-updated { min-height: 1.7em; font-size: 14px; color: #C9B48F; }

.inv-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: var(--section);
  scroll-margin-top: 152px;
}
.inv-side {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100dvh - 120px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 24px;
  border-radius: var(--r-l);
}
.inv-group { border: 0; margin: 0; padding: 20px 0; }
.inv-group + .inv-group { border-top: 1px solid var(--stone); }
.inv-group legend { padding: 0; font-family: var(--font-head); font-size: 18px; color: var(--navy); }
.inv-group legend + * { margin-top: 8px; }
.inv-check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; cursor: pointer; }
.inv-check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.inv-check__box { flex: none; width: 20px; height: 20px; border: 1px solid var(--line-strong); border-radius: 5px; display: grid; place-items: center; background: var(--paper); transition: background-color 120ms, border-color 120ms; }
.inv-check__box::after { content: ""; width: 10px; height: 5px; border-left: 1.5px solid var(--ivory); border-bottom: 1.5px solid var(--ivory); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 120ms var(--ease-out); }
.inv-check input:checked + .inv-check__box { background: var(--navy); border-color: var(--navy); }
.inv-check input:checked + .inv-check__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.inv-check input:focus-visible + .inv-check__box { outline: 2px solid var(--focus); outline-offset: 3px; }
.inv-check__text { flex: 1; }
.inv-check__count { font-size: 14px; color: var(--muted); }

.inv-tools { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.inv-search { position: relative; flex: 1; max-width: 480px; }
.inv-search input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--charcoal);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  -webkit-appearance: none;
  appearance: none;
}
.inv-search input::-webkit-search-cancel-button { display: none; }
.inv-search button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--navy); cursor: pointer; }
.inv-status { margin: 0 0 0 auto; font-size: 15px; color: var(--muted); white-space: nowrap; }
.inv-sort { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.inv-sort select { height: 44px; font: inherit; color: var(--charcoal); background: transparent; border: 0; cursor: pointer; }

.inv-toolbar { display: none; }
.inv-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 0; margin-bottom: 24px; }
.inv-chips:empty { margin-bottom: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.chip:active { transform: scale(.96); }
.chip span { font-size: 18px; line-height: 1; }
.chip-clear { min-height: 44px; padding: 0 8px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.inv-heading:focus { outline: none; }
.inv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; }
.inv-grid > li:nth-child(n+9) { content-visibility: auto; contain-intrinsic-size: auto 408px; }
.slab { cursor: pointer; }
.slab__img { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; background: var(--stone-soft); }
.slab__img img, .det__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
@media (hover: hover) { .slab:hover .slab__img img { transform: scale(1.02); } }
.slab__img img { transition: transform 320ms var(--ease-out); }
.slab__nophoto { font-size: 14px; color: var(--muted); }
.slab__badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.badge { padding: 3px 10px; font-size: 13px; color: var(--navy); background: rgba(251, 249, 245, .88); border-radius: var(--r-pill); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.slab__body { padding-top: 14px; }
.slab h3 { font-size: 20px; margin-bottom: 4px; }
.slab h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.slab__body p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.slab__status { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; color: var(--charcoal) !important; }
.slab__status span { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.slab__status.is-held span { background: none; box-shadow: inset 0 0 0 1.5px var(--navy); }
.slab--skeleton .slab__img, .slab--skeleton .slab__body span { animation: pulse 1.2s ease-in-out infinite alternate; }
.slab--skeleton .slab__body span { display: block; height: 12px; margin-bottom: 8px; background: var(--stone-soft); }
.slab--skeleton .slab__body span:nth-child(1) { width: 60%; height: 18px; }
.slab--skeleton .slab__body span:nth-child(3) { width: 40%; }
@keyframes pulse { from { opacity: .6; } to { opacity: 1; } }

.inv-more-wrap { min-height: 48px; text-align: center; margin-top: 48px; }
.inv-empty { grid-column: 1 / -1; padding: 64px 24px; text-align: center; background: var(--paper); }
.inv-empty h3 { margin-bottom: 12px; }
.inv-empty p { max-width: 34em; margin: 0 auto 24px; color: var(--muted); }
.inv-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.inv-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stone); font-size: 15px; color: var(--muted); }

/* Bottom sheet (phones and tablets) */
.inv-sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  height: 88dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-l) var(--r-l) 0 0;
  background: transparent;
  color: var(--charcoal);
  overflow: hidden;
}
.inv-sheet[open] { display: flex; flex-direction: column; animation: sheet-in 340ms var(--ease-out); }
.inv-sheet.is-closing { animation: sheet-out 240ms var(--ease-exit) forwards; }
.inv-sheet::backdrop { background: rgba(20, 19, 17, .45); }
.inv-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 12%), rgba(251, 249, 245, .88);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
.inv-sheet__grab { flex: none; height: 28px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.inv-sheet__grab::after { content: ""; width: 44px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.inv-sheet__head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 8px; }
.inv-sheet__head h2 { font-size: 24px; }
.inv-sheet__head h2:focus { outline: none; }
.inv-sheet__close { min-height: 44px; min-width: 44px; background: none; border: 0; font: inherit; font-size: 15px; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.inv-sheet__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 0 20px; }
.inv-sheet__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--stone); }
.inv-sheet__foot .btn { flex: 1; justify-content: center; min-height: 52px; }
.inv-sheet__foot .btn[aria-disabled="true"] { opacity: .6; }

/* Slab detail */
.inv-detail {
  width: min(1180px, calc(100vw - 48px));
  max-width: none;
  height: min(820px, calc(100dvh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--charcoal);
  overflow: hidden;
}
.inv-detail[open] { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr) auto; animation: vt-in 240ms var(--ease-out); }
.inv-detail::backdrop { background: rgba(20, 19, 17, .88); }
.det__stage { position: relative; grid-column: 1; grid-row: 1; display: grid; place-items: center; min-height: 0; overflow: hidden; background: var(--charcoal); touch-action: pan-y; }
.det__stage.is-zoomed { touch-action: none; }
.det__stage.is-empty { background: var(--stone-soft); }
.det__stage > img { cursor: zoom-in; user-select: none; transform-origin: center; }
.det__stage.is-zoomed > img { cursor: grab; }
.det__zoom { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; align-items: center; }
.det__zoom button { width: 44px; height: 44px; background: none; border: 0; color: var(--ivory); font-size: 22px; cursor: pointer; }
.det__zoom span { min-width: 48px; text-align: center; font-size: 14px; }
.det__close { position: absolute; left: 16px; top: 16px; z-index: 3; width: 44px; height: 44px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; }
.det__thumbs { grid-column: 1; grid-row: 2; display: flex; gap: 8px; padding: 8px; background: var(--charcoal); overflow-x: auto; }
.det__thumbs button { flex: none; width: 72px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.det__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.det__info { grid-column: 2; grid-row: 1 / -1; padding: 40px 32px; overflow: auto; overscroll-behavior: contain; }
.det__info h2 { font-size: 34px; margin-bottom: 20px; }
.det__info h2:focus { outline: none; }
.det__info .eyebrow { margin-bottom: 12px; }
.det__rows { margin: 0 0 20px; }
.det__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--stone-soft); font-size: 15px; }
.det__rows dt { color: var(--muted); }
.det__rows dd { margin: 0; text-align: right; }
.det__note { font-size: 15px; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }
.det__info .btn { width: 100%; justify-content: center; margin-top: 16px; }
.det__viewing { margin-top: 12px; min-height: 44px; }
.det__edu { margin-top: 12px; border-top: 1px solid var(--stone-soft); }
.det__edu summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--navy); cursor: pointer; }
.det__edu p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.det__fine { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 1023px) {
  .inv-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .inv-side { display: none; }
  .inv-tools { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .inv-search { flex-basis: 100%; max-width: none; }
  .inv-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .inv-toolbar {
    position: sticky;
    top: 68px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 8px 0 4px;
    margin-bottom: 12px;
  }
  .inv-toolbar button { min-height: 44px; padding: 0 16px; background: none; border: 0; font: inherit; font-size: 15px; color: var(--navy); cursor: pointer; }
  .inv-toolbar span { padding-right: 12px; font-size: 15px; color: var(--navy); }
  .inv-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 5px; margin: -6px -5px 18px; }
  .inv-grid > li:nth-child(n+9) { contain-intrinsic-size: auto 300px; }
  .det__close { position: fixed; }
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .slab__img { aspect-ratio: 4 / 3; }
  .slab h3 { font-size: 18px; }
  .slab__body p { font-size: 14px; }
  .inv-detail { width: 100vw; height: 100dvh; }
  .inv-detail[open] { display: flex; flex-direction: column; overflow: auto; }
  .det__stage { flex: none; height: 55dvh; }
  .det__thumbs { flex: none; }
  .det__info { overflow: visible; padding: 28px 20px 40px; }
}
@media (max-width: 359px) { .inv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 768px) and (max-width: 1023px) { .inv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-img img { opacity: 1; transform: none; }
  .slab--skeleton .slab__img, .slab--skeleton .slab__body span { animation: none; }
}

/* Review fixes */
.stat__label, .rating__meta, .rating__links .text-link, .site-footer h4, .field label, .hero__band { font-size: 13px; letter-spacing: .16em; }
.det__info { --focus: var(--navy); }
html:has(dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
html:has(.inv-page) { scroll-padding-top: 152px; }
html:has(dialog[open]) .site-header::before, html:has(dialog[open]) .inv-toolbar::before { -webkit-backdrop-filter: none; backdrop-filter: none; }
.js .mobile-cta.is-waiting { visibility: hidden; }
@media (min-width: 861px) and (max-width: 1023px) { .inv-toolbar { top: 84px; } }

/* Hero: the opening runs 2.5 seconds */
.hero__cut { animation: cut-draw 940ms var(--ease) forwards, cut-fade 420ms ease 940ms forwards; }
.hero__frame::before, .hero__frame::after { animation-duration: 1460ms; animation-delay: 730ms; }
.hero__media img { animation-duration: 2.5s; }
.hero__line > span { animation-duration: 1040ms; }
.hero__line:nth-child(1) > span { animation-delay: 1.25s; }
.hero__line:nth-child(2) > span { animation-delay: 1.46s; }
.hero__fade { animation-duration: 830ms; animation-delay: 1.67s; }
.scroll-cue::after { animation-delay: 2.9s; }

/* Hero: side bands in dark blue liquid glass over a copy of the photo.
   The framed photo and its crop are separate and unaffected. */
.hero { --b: var(--band); overflow: hidden; }
.hero__under { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 60%; }
.hero::before, .hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--b);
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 40%), rgba(8, 34, 62, .72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.hero::before { left: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .28), inset 1px 0 0 rgba(255, 255, 255, .1); }
.hero::after { right: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .28), inset -1px 0 0 rgba(255, 255, 255, .1); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero::before, .hero::after { background: rgba(8, 34, 62, .96); }
}
.hero__frame { z-index: 2; }
.hero__band { z-index: 3; color: var(--ivory); animation-duration: 830ms; animation-delay: 1.67s; }
@media (max-width: 860px) { .hero { --b: 12px; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .hero::before, .hero::after { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy-deep); }
}

/* Hero: text and dark edge at the top of the photo, headline above the Austin chip */
.hero__media::after { background: linear-gradient(0deg, rgba(8, 34, 62, 0) 38%, rgba(8, 34, 62, .5) 62%, rgba(8, 34, 62, .68) 100%); }
.hero__content { top: clamp(32px, 6vw, 80px); bottom: auto; align-items: flex-start; }
.hero__chip { margin: 20px 0 0; }
