/* ==========================================================================
   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;
  --navy: #0C2F54;
  --navy-deep: #08223E;

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

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(96px, 14vw, 200px);
  --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);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -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: 12px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--bronze);
  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;
  padding: 18px 34px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--ivory);
  cursor: pointer;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.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;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.text-link:hover { background-size: 30% 1px; }
.text-link .arrow { transition: transform .5s var(--ease); }
.text-link:hover .arrow { transform: translateX(6px); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 241, 234, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .5s, height .5s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--stone); height: 76px; }

/* 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: 66px; width: auto; transition: height .5s var(--ease); }
.site-header.is-scrolled .brand img { height: 52px; }

.socials { display: flex; align-items: center; gap: 10px; }
.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stone);
  border-radius: 50%;
  color: var(--navy);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.socials a:hover { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.socials svg { width: 16px; height: 16px; }
.header-socials { justify-self: end; }
.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(24px, 2.6vw, 44px); justify-self: start; align-items: center; }
.nav > a {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 8px 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 .6s 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: 10px;
  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(32px);
  transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.reveal-img { overflow: hidden; }
.js .reveal-img img {
  transform: scale(1.08);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.6s var(--ease), transform 2.4s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal-img.is-visible img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* ==========================================================================
   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 1.6s ease 3s 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);
}

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

.hero__media {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 50%);
  animation: aperture 1.9s var(--ease) 1.25s forwards;
}
.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 5s var(--ease-out) 1.25s forwards;
  will-change: transform;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 34, 62, 0) 45%, rgba(8, 34, 62, .55) 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 1.4s var(--ease) forwards;
}
.hero__line:nth-child(1) > span { animation-delay: 2.5s; }
.hero__line:nth-child(2) > span { animation-delay: 2.65s; }

.hero__fade { opacity: 0; animation: fade-in 1.4s ease forwards; animation-delay: 2.9s; }

.hero__aside {
  text-align: right;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 2.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) 3.5s infinite;
  transform: translateY(-100%);
}

@keyframes cut-draw { to { transform: scaleY(1); } }
@keyframes cut-fade { to { opacity: 0; } }
@keyframes aperture { to { clip-path: inset(0 0 0 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); 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; will-change: transform; }
.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: 10px; }
.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: .14em;
  opacity: .6;
}

/* ==========================================================================
   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);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .4s;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -29px;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform .6s 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 1.6s var(--ease-out), opacity .8s;
}
.piece:hover .piece__img img { transform: scale(1.035); }
.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); 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 .6s var(--ease), visibility 0s .6s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .6s 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 .7s var(--ease), transform .9s 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: none;
  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: background .4s, border-color .4s;
}
.lb-btn:hover { background: rgba(245, 241, 234, .1); 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 1.6s var(--ease) var(--d, 0s);
}
.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: .3em;
  text-transform: uppercase;
  color: var(--bronze);
  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: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--charcoal);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stone);
  border-radius: 0;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color .4s;
  -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.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; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .brand img { height: 46px; }
  .site-header.is-scrolled { height: 64px; }
  .site-header.is-scrolled .brand img { height: 40px; }
  .menu-toggle { display: block; justify-self: start; margin: 0 0 0 -10px; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .header-socials { display: none; }
  .nav-socials { display: flex; margin-top: 12px; }
  .nav { justify-self: stretch; width: 100%; }
  .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); }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    height: calc(100vh - var(--header-h));
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility 0s .5s;
  }
  .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 .5s var(--ease); }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }

  .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; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img img { clip-path: none; transform: none; }
}
