/* =========================================================
   AHAM-PURAM Building Designs — Typography-First CSS
   Audited & refactored for clean wrapping at all breakpoints
   ========================================================= */

/* ===== DESIGN TOKENS ===== */
:root {
  --ivory:        #f6f1e9;
  --beige:        #e9e0d2;
  --beige-deep:   #d8ccb8;
  --charcoal:     #1a1714;
  --charcoal-soft:#262019;
  --gold:         #b8954f;
  --gold-light:   #d4b576;
  --text-dark:    #211d18;
  --text-muted:   #6b6258;
  --line:         rgba(26, 23, 20, 0.12);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Responsive horizontal padding: tighter on small screens */
  --pad: clamp(1.25rem, 5vw, 6rem);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text-dark);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-teaser__img img, .project__img img, .about__img img, .studio-about__img img { filter: grayscale(100%); transition: filter 0.5s ease; }
.work-teaser__card:hover .work-teaser__img img, .project:hover .project__img img, .about__img:hover img, .studio-about__img:hover img { filter: grayscale(0%) !important; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

::selection { background: var(--gold); color: var(--ivory); }

/* Scrollbar */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }


/* ==========================================================
   GLOBAL TYPOGRAPHY SYSTEM
   – Single source of truth for every heading size & wrap rule
   ========================================================== */

/*
 * Rule 1 — No mid-word breaks anywhere.
 * "keep-all" is NOT used because it causes the very problem we're fixing.
 * Instead we rely on natural word-wrap + text-wrap:balance.
 */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero__title,
.about__lead,
.lead__title,
.contact__title,
.service__title,
.ba__title,
.process__step h3,
.faq__q,
.footer__brand h2 {
  word-break:    normal;
  overflow-wrap: normal;
  hyphens:       none;
  text-wrap:     balance;   /* modern browsers: balanced line ends */
}

/* ===== TYPOGRAPHY SCALE HELPERS ===== */

.section-eyebrow {
  font-size:      0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color:          var(--gold);
  font-weight:    500;
  margin-bottom:  1.25rem;
  display:        block;
}

/*
 * .section-title — used in About, Services, Work, Process, FAQ, Contact
 * Desktop: ~2.8rem  |  Tablet: ~2.2rem  |  Mobile: ~1.8rem
 * max-width is in ch units so the measure stays readable
 */
.section-title {
  font-family:    var(--serif);
  font-weight:    400;
  font-size:      clamp(1.75rem, 2.8vw, 2.9rem);
  line-height:    1.2;
  letter-spacing: -0.01em;
  max-width:      28ch;   /* wide enough so words never orphan */
}
.section-title em { font-style: italic; color: var(--gold); }


/* Loader removed */
/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem var(--pad);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.scrolled {
  padding: 1rem var(--pad);
  background: rgba(246,241,233,0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo {
  font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0.02em;
  color: var(--ivory); transition: color .4s;
  display: flex; align-items: center; gap: 0.35rem;
}
.nav.scrolled .nav__logo { color: var(--charcoal); }
.nav__logo em { color: var(--gold); font-style: italic; }
.nav__logo-puram { color: #B3975A; font-style: normal; }
.nav--light .nav__logo-puram { color: #B3975A; }
.nav.scrolled .nav__logo-puram { color: #B3975A; }
.nav__logo-img {
  width: auto; height: 2rem; display: block; object-fit: contain;
  filter: invert(1) brightness(2);
  transition: filter .4s;
}
.nav.scrolled .nav__logo-img { filter: invert(0) brightness(1); }
.nav--light .nav__logo-img   { filter: invert(0) brightness(1); }
.nav__links { display: flex; gap: 2.4rem; }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ivory); position: relative; transition: color .4s;
}
.nav.scrolled .nav__links a { color: var(--text-dark); }

/* Light nav — for pages without a dark hero */
.nav--light { background: rgba(246,241,233,0.95); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav--light .nav__logo { color: var(--charcoal); }
.nav--light .nav__links a { color: var(--text-dark); }
.nav--light .nav__burger span { background: var(--charcoal); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__social {
  display: flex; align-items: center; gap: 1rem;
}
.nav__social-link {
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory); transition: color 0.3s, transform 0.3s;
}
.nav.scrolled .nav__social-link { color: var(--charcoal); }
.nav--light .nav__social-link { color: var(--charcoal); }
.nav__social-link:hover { color: var(--gold); transform: translateY(-2px); }
.nav__burger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ivory); transition: .4s var(--ease); }
.nav.scrolled .nav__burger span { background: var(--charcoal); }
.nav__burger span:nth-child(1) { top: 4px; }
.nav__burger span:nth-child(2) { bottom: 4px; }
body.menu-open .nav__burger span { background: var(--ivory); }
body.menu-open .nav__burger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { bottom: 9px; transform: rotate(-45deg); }


/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 800; background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.2rem; text-align: center; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--ivory);
  opacity: 0; transform: translateY(20px); transition: .5s var(--ease);
  word-break: normal; hyphens: none;
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
.mobile-menu a:nth-child(1){transition-delay:.15s}.mobile-menu a:nth-child(2){transition-delay:.2s}
.mobile-menu a:nth-child(3){transition-delay:.25s}.mobile-menu a:nth-child(4){transition-delay:.3s}
.mobile-menu a:nth-child(5){transition-delay:.35s}.mobile-menu a:nth-child(6){transition-delay:.4s}
.mobile-menu__cta { color: var(--gold) !important; }


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.1rem 2.2rem; border-radius: 100px; position: relative;
  overflow: hidden; transition: color .4s, border-color .4s; will-change: transform;
  white-space: nowrap;  /* buttons should never wrap */
}
.btn span { position: relative; z-index: 2; }
.btn--gold { background: var(--gold); color: var(--ivory); }
.btn--gold::before {
  content: ""; position: absolute; inset: 0; background: var(--charcoal);
  transform: translateY(101%); transition: transform .5s var(--ease); z-index: 1;
}
.btn--gold:hover::before { transform: translateY(0); }
.btn--ghost { border: 1px solid rgba(246,241,233,0.5); color: var(--ivory); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; background: var(--ivory);
  transform: translateY(101%); transition: transform .5s var(--ease); z-index: 1;
}
.btn--ghost:hover { color: var(--charcoal); }
.btn--ghost:hover::before { transform: translateY(0); }
.btn--full { width: 100%; }

.link-underline {
  display: inline-block; margin-top: 1.6rem; font-size: 0.9rem;
  letter-spacing: 0.06em; color: var(--gold); position: relative; padding-bottom: 4px;
}
.link-underline::after { content:""; position:absolute; left:0; bottom:0; width:100%; height:1px; background: var(--gold); transform: scaleX(1); transform-origin: right; transition: transform .4s var(--ease); }
.link-underline:hover::after { transform: scaleX(0); }


/* ===== HERO ===== */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; align-items: center; padding: 0 var(--pad);
}
.hero__media {
  position: absolute; inset: 0; z-index: 1;
  background: #1a1714 url('../projects/KAD 8.webp') center 30% / cover no-repeat;
  transition: background-image 0.5s ease;
}
.hero__content { position: relative; z-index: 2; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; }
.hero--no-anim .hero__title .line > span { transform: none !important; }
.hero--no-anim .hero__eyebrow, .hero--no-anim .hero__sub, .hero--no-anim .hero__actions { opacity: 1 !important; transform: none !important; }
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  will-change: transform;
  transition: opacity 0.6s ease;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(18,14,10,0.55) 0%,
    rgba(18,14,10,0.25) 50%,
    rgba(18,14,10,0.18) 100%
  );
}
.hero__content {
  width: 100%;
  max-width: min(900px, 90vw);
  color: var(--ivory);
}
.hero__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.8rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  /* Desktop ~6–7rem, tablet ~4.5rem, mobile ~2.8rem */
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  /* Natural wrap — text-wrap balance doesn't apply to split-text lines */
  word-break: normal; overflow-wrap: normal; hyphens: none;
}
.hero__title .line  { display: block; overflow: hidden; }
.hero__title .line > span { display: block; /* transform set by GSAP */ }
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  margin: 1.8rem 0 2.6rem;
  color: rgba(246,241,233,0.85);
  font-weight: 300;
  max-width: 56ch;
  font-style: italic;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 2.4rem; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; color: rgba(246,241,233,0.7); }
.hero__scroll span { font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 50px; background: rgba(246,241,233,0.3); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--gold-light); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0%{top:-50%} 100%{top:100%} }

.hero__marquee { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; border-top: 1px solid rgba(246,241,233,0.15); padding: 0.9rem 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; animation: marquee 28s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.1em; color: rgba(246,241,233,0.75); }
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }


/* ===== STATS ===== */
.stats { background: var(--charcoal); color: var(--ivory); padding: clamp(4rem,8vw,7rem) var(--pad); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { text-align: center; padding: 1rem; border-right: 1px solid rgba(246,241,233,0.12); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--sans); font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1; color: var(--gold-light); display: flex; align-items: baseline; justify-content: center; }
.stat__num i { font-style: normal; font-size: 0.5em; margin-left: 0.1em; }
.stat__label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246,241,233,0.7); margin-top: 1rem; }


/* ===== ABOUT ===== */
.about { padding: clamp(5rem,11vw,11rem) var(--pad); }
.about__head { margin-bottom: clamp(3rem,6vw,6rem); max-width: 70ch; }
.about__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); align-items: center; }
.about__imgs { position: relative; height: clamp(400px, 55vw, 680px); }
.about__img { position: absolute; overflow: hidden; border-radius: 4px; box-shadow: 0 30px 60px rgba(26,23,20,0.18); }
.about__img--1 { width: 72%; height: 78%; top: 0; left: 0; z-index: 1; }
.about__img--2 { width: 52%; height: 56%; bottom: 0; right: 0; z-index: 2; border: 8px solid var(--ivory); }

.about__lead {
  font-family:    var(--serif);
  font-size:      clamp(1.25rem, 2.2vw, 1.9rem);
  line-height:    1.4;
  color:          var(--text-dark);
  margin-bottom:  1.8rem;
  text-wrap:      balance;
}
.about__text p { color: var(--text-muted); margin-bottom: 1.2rem; max-width: 52ch; line-height: 1.7; }

/* About — How We Work subsection */
.about__process {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.about__process-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  max-width: 44ch;
  margin: 1rem 0 clamp(2.5rem, 5vw, 4rem);
  line-height: 1.25;
}
.about__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}
.about__step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about__step-num {
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 0.75rem;
  color: var(--gold);
  flex-shrink: 0;
}
.about__step h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  margin-bottom: 0.4rem;
}
.about__step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .about__steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .about__steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .about__step { flex-direction: row; align-items: flex-start; gap: 1.2rem; }
}


/* ===== WORK TEASER ===== */
.work-teaser { padding: clamp(5rem,10vw,10rem) var(--pad); background: var(--charcoal); }
.work-teaser__head { margin-bottom: clamp(2.5rem,5vw,4rem); }
.work-teaser__head .section-eyebrow { color: var(--gold-light); }
.work-teaser__head .section-title { color: var(--ivory); }
.work-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.work-teaser__card {
  display: block; text-decoration: none;
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.work-teaser__img { position: absolute; inset: 0; }
.work-teaser__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.work-teaser__card:hover .work-teaser__img img { transform: scale(1.06); }
.work-teaser__meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(18,14,10,0.85) 0%, transparent 100%);
  color: var(--ivory);
}
.work-teaser__cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 0.3rem; }
.work-teaser__title { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; margin: 0; }
.work-teaser__cta { text-align: center; }
@media (max-width: 768px) {
  .work-teaser__grid { grid-template-columns: 1fr; }
}

/* ===== SERVICES ===== */
.services { padding: clamp(5rem,10vw,10rem) var(--pad); background: var(--beige); }
.services__head { margin-bottom: clamp(2.5rem,5vw,4rem); }
.services__list { border-top: 1px solid var(--line); }
.service {
  position: relative; display: grid;
  grid-template-columns: 80px 1fr auto 60px;
  gap: 1.5rem; align-items: center;
  padding: clamp(1.4rem,3vw,2.4rem) 0.5rem;
  border-bottom: 1px solid var(--line); cursor: pointer;
  transition: padding .5s var(--ease);
}
.service:hover { padding-left: 2rem; }
.service__index { font-family: var(--serif); font-size: 1rem; color: var(--gold); }
.service__title {
  font-family:    var(--serif);
  font-weight:    400;
  font-size:      clamp(1.4rem, 2.6vw, 2.4rem);
  transition:     color .4s;
  word-break:     normal;
  hyphens:        none;
}
.service:hover .service__title { color: var(--gold); }
.service__desc { color: var(--text-muted); font-size: 0.93rem; max-width: 42ch; line-height: 1.6; }
.service__arrow { font-size: 1.4rem; color: var(--gold); justify-self: end; transform: translateX(-10px); opacity: 0; transition: .4s var(--ease); }
.service:hover .service__arrow { transform: translateX(0); opacity: 1; }


/* ===== WORK ===== */
.work { padding: clamp(5rem,10vw,10rem) var(--pad); }
.work--page { padding-top: clamp(7rem,12vw,10rem); }
.work__head { margin-bottom: clamp(2.5rem,5vw,4rem); }

/* Tab navigation */
.work-tabs__nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.work-tab {
  background: none;
  border: none;
  padding: 0.9rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color .4s var(--ease);
}
.work-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  translate: -50% 0;
  transition: width .4s var(--ease);
}
.work-tab:hover { color: var(--gold); }
.work-tab--active { color: var(--text-dark); }
.work-tab--active::after { width: 100%; }

/* Tab content */
.work-tabs__content { position: relative; }
.work-tab-pane {
  display: none;
}
.work-tab-pane--active {
  display: block;
}
.work-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 320px;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Work page — cinematic fly-in setup */
.work-tab-grid .project {
  will-change: transform, opacity;
}

/* ===== CONSTRUCTION BEFORE/AFTER ===== */
.construction-project {
  padding: 1rem 0 2rem;
}
.construction-project__header {
  margin-bottom: 2.5rem;
}
.construction-project__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-top: 0.4rem;
}
.ba-section { margin-bottom: 2rem; }
.ba-section__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.ba-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}
.ba-badge--before {
  background: var(--text-dark);
  color: var(--ivory);
}
.ba-badge--after {
  background: var(--gold);
  color: var(--ivory);
}
.ba-section__heading {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dark);
  opacity: 0.7;
}
.ba-grid {
  display: grid;
  gap: 1rem;
}
.ba-grid--before { grid-template-columns: repeat(3, 1fr); }
.ba-grid--after  { grid-template-columns: repeat(2, 1fr); }
.ba-grid--4col   { grid-template-columns: repeat(4, 1fr); }
.ba-project-divider {
  height: 1px;
  background: var(--text-dark);
  opacity: 0.12;
  margin: 3.5rem 0;
}
.ba-quote {
  margin: 0 0 2.5rem;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--gold);
  background: rgba(180, 145, 80, 0.05);
}
.ba-quote p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
  opacity: 0.85;
}
.ba-card { border-radius: 4px; overflow: hidden; will-change: transform, opacity; }
.ba-card__img {
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.ba-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.6s var(--ease), filter 0.5s ease;
}
.ba-card:hover .ba-card__img img {
  transform: scale(1.05);
  filter: grayscale(0%);
}
.ba-divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0;
}
.ba-divider__line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.ba-divider__icon {
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 300;
  transform: rotate(90deg);
}
@media (max-width: 768px) {
  .ba-grid--before { grid-template-columns: 1fr; }
  .ba-grid--after  { grid-template-columns: 1fr; }
  .ba-grid--4col   { grid-template-columns: repeat(2, 1fr); }
  .ba-card__img    { height: 220px; }
}
@media (max-width: 480px) {
  .ba-grid--4col   { grid-template-columns: 1fr; }
}
/* Hover lift — only active once card has landed */
.work-tab-grid .project.work-card--ready {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s cubic-bezier(0.22,1,0.36,1);
}
.work-tab-grid .project.work-card--ready:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 20px 50px rgba(26,23,20,0.4);
}
.work-tab__cta {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}


/* ===== GALLERY PAGES ===== */
.gal-page { background: var(--ivory); min-height: 100vh; }
.gal-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: rgba(246,241,233,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.gal-nav__back {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); transition: color .3s;
}
.gal-nav__back:hover { color: var(--gold); }
.gal-hero {
  padding: clamp(4rem,8vw,8rem) var(--pad) clamp(2.5rem,4vw,4rem);
  border-bottom: 1px solid var(--line);
}
.gal-hero__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.gal-hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.05;
  margin-bottom: 1rem;
}
.gal-hero__meta {
  font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 1.5rem;
  padding: clamp(2.5rem,5vw,5rem) var(--pad);
}
.gal-grid .project--tall { grid-row: span 2; }
.gal-footer {
  padding: clamp(3rem,5vw,5rem) var(--pad);
  display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--line);
  gap: 1.5rem;
}
.gal-footer p { font-size: 0.82rem; color: var(--text-muted); }
.project {
  position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; grid-row: span 1;
  box-shadow: 0 4px 20px rgba(26,23,20,0);
}
.project--tall { grid-row: span 2; }
.project__img { position: absolute; inset: 0; }
.project__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), filter 0.5s ease;
  transform: scale(1.02);
  will-change: transform;
}
.project:hover { box-shadow: 0 12px 40px rgba(26,23,20,0.35); }
.project:hover .project__img img { transform: scale(1.05); }
.project::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(26,23,20,0.85), transparent 55%); z-index: 1; opacity: 0; transition: opacity .5s; }
.project:hover::after { opacity: 1; }
.project__meta, .project__info { position: absolute; left: 0; bottom: 0; right: 0; z-index: 2; padding: 1.6rem; color: var(--ivory); opacity: 0; transform: translateY(12px); transition: all .5s var(--ease); pointer-events: none; }
.project:hover .project__meta, .project:hover .project__info { opacity: 1; transform: translateY(0); }
.project__cat { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.project__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.8rem); margin: 0.35rem 0; word-break: normal; hyphens: none; }
.project__year { font-size: 0.75rem; color: rgba(246,241,233,0.7); opacity: 0; transform: translateY(8px); transition: .5s var(--ease) .05s; display: inline-block; }
.project:hover .project__year { opacity: 1; transform: translateY(0); }

/* Before/After */
.ba { margin-top: clamp(4rem,8vw,7rem); }
.ba__head { margin-bottom: 2.4rem; }
.ba__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.6rem); text-wrap: balance; }
.ba__slider { position: relative; width: 100%; height: clamp(340px,50vw,620px); overflow: hidden; border-radius: 4px; user-select: none; cursor: ew-resize; }
.ba__img { position: absolute; inset: 0; }
.ba__img--before { width: 50%; border-right: 2px solid var(--ivory); }
.ba__img--before img { width: 100vw; max-width: none; height: 100%; }
.ba__tag { position: absolute; top: 1.2rem; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.45rem 1rem; border-radius: 100px; background: rgba(26,23,20,0.55); color: var(--ivory); backdrop-filter: blur(6px); }
.ba__tag--before { left: 1.2rem; }
.ba__tag--after  { right: 1.2rem; }
.ba__handle { position: absolute; top: 0; left: 50%; width: 44px; height: 100%; translate: -50% 0; display: flex; align-items: center; justify-content: center; z-index: 3; }
.ba__handle::before { content:""; position:absolute; width: 2px; height: 100%; background: var(--ivory); }
.ba__handle span { width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); display:flex; align-items:center; justify-content:center; box-shadow: 0 6px 20px rgba(0,0,0,0.3); position: relative; }
.ba__handle span::before, .ba__handle span::after { content:""; position:absolute; width:0; height:0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ba__handle span::before { border-right: 7px solid var(--charcoal); left: 9px; }
.ba__handle span::after  { border-left:  7px solid var(--charcoal); right: 9px; }


/* ===== LEAD / CTA ===== */
.lead { background: var(--charcoal); color: var(--ivory); padding: clamp(5rem,10vw,10rem) var(--pad); position: relative; overflow: hidden; }
.lead::before { content:""; position:absolute; top:-30%; right:-10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(184,149,79,0.16), transparent 70%); }
.lead__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem,6vw,6rem); align-items: center; }

.lead__title {
  font-family:    var(--serif);
  font-weight:    400;
  font-size:      clamp(1.7rem, 2.8vw, 3rem);
  line-height:    1.2;
  text-wrap:      balance;
  word-break:     normal;
  hyphens:        none;
  max-width:      26ch;
}

.lead__sub { color: rgba(246,241,233,0.75); margin: 1.6rem 0 2rem; max-width: 50ch; line-height: 1.7; }
.lead__benefits { display: grid; gap: 1rem; }
.lead__benefits li { display: flex; align-items: center; gap: 0.9rem; font-size: 1rem; color: rgba(246,241,233,0.9); }
.tick { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(184,149,79,0.18); color: var(--gold-light); font-size: 0.8rem; }

.lead__right { position: relative; }
.lead__form { background: var(--ivory); color: var(--text-dark); border-radius: 8px; padding: clamp(2rem,4vw,3rem); box-shadow: 0 40px 80px rgba(0,0,0,0.4); }
.lead__form-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.9rem); margin-bottom: 1.8rem; text-wrap: balance; }
.field { position: relative; margin-bottom: 1.4rem; }
.field input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 1rem 0 0.6rem; font-family: var(--sans); font-size: 1rem; color: var(--text-dark); outline: none;
  transition: border-color .4s;
}
.field input:focus { border-color: var(--gold); }
.field label { position: absolute; left: 0; top: 1rem; color: var(--text-muted); pointer-events: none; transition: .35s var(--ease); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label { top: -0.6rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.field input.invalid { border-color: #c0392b; }
.field--textarea textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 1rem 0 0.6rem; font-family: var(--sans); font-size: 1rem; color: var(--text-dark);
  outline: none; resize: none; transition: border-color .4s;
}
.field--textarea textarea:focus { border-color: var(--gold); }
.field--textarea textarea:focus + label,
.field--textarea textarea:not(:placeholder-shown) + label { top: -0.6rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.lead__note { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 1.2rem; letter-spacing: 0.04em; }

.lead__success { position: absolute; inset: 0; background: var(--ivory); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; opacity: 0; visibility: hidden; transform: scale(.96); transition: .5s var(--ease); }
.lead__success.show { opacity: 1; visibility: visible; transform: scale(1); }
.lead__success h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1.2rem 0 0.6rem; text-wrap: balance; }
.lead__success p { color: var(--text-muted); max-width: 30ch; }
.lead__success-icon svg { width: 80px; height: 80px; }
.lead__success-icon circle { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.lead__success-icon path  { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.lead__success.show circle { animation: draw .6s var(--ease) forwards; }
.lead__success.show path   { animation: draw .4s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }


/* ===== TESTIMONIALS ===== */
.testimonials { padding: clamp(5rem,10vw,10rem) var(--pad); background: var(--beige); }
.testimonials__head { margin-bottom: clamp(2.5rem,5vw,4rem); }
.testimonials__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.testimonial { background: var(--ivory); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 50px rgba(26,23,20,0.08); display: flex; flex-direction: column; }
.testimonial__video { position: relative; height: 230px; overflow: hidden; }
.testimonial__video img { transition: transform 1s var(--ease); }
.testimonial:hover .testimonial__video img { transform: scale(1.07); }
.testimonial__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(246,241,233,0.92); border: none; cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--ease), background .4s; }
.testimonial__play:hover { transform: scale(1.1); background: var(--gold); }
.testimonial__play span { width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid var(--charcoal); margin-left: 4px; }
.testimonial blockquote { font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; padding: 1.8rem 1.8rem 1rem; flex: 1; text-wrap: balance; }
.testimonial footer { padding: 0 1.8rem 1.8rem; }
.testimonial footer strong { display: block; font-weight: 500; font-size: 0.95rem; }
.testimonial footer span { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.05em; }


/* ===== PROCESS ===== */
.process { padding: clamp(5rem,10vw,10rem) var(--pad); }
.process__head { margin-bottom: clamp(3rem,6vw,5rem); }
.process__timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.process__line { position: absolute; top: 14px; left: 0; width: 100%; height: 1px; background: var(--line); }
.process__line span { display: block; height: 100%; width: 0%; background: var(--gold); }
.process__step { position: relative; padding-top: 3rem; }
.process__num { position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 0.7rem; font-family: var(--serif); }
.process__step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin-bottom: 0.6rem; }
.process__step p { color: var(--text-muted); font-size: 0.9rem; max-width: 28ch; line-height: 1.6; }


/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: clamp(7rem, 14vw, 11rem) var(--pad) clamp(3rem, 6vw, 5rem);
  background: var(--charcoal);
  color: var(--ivory);
}
.page-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 1.2rem;
  color: var(--ivory);
}
.nav__active { color: var(--gold) !important; }

/* ===== FAQ ===== */
.faq { padding: clamp(5rem,10vw,10rem) var(--pad); background: var(--charcoal); color: var(--ivory); }
.faq__head { margin-bottom: clamp(2.5rem,5vw,4rem); }
.faq__head .section-title { color: var(--ivory); }
.faq__list { max-width: 900px; }
.faq__item { border-bottom: 1px solid rgba(246,241,233,0.14); }
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer; color: var(--ivory);
  text-align: left; font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.4;
  padding: 1.6rem 3rem 1.6rem 0;
  position: relative; display: flex; justify-content: space-between; gap: 1rem;
  word-break: normal; hyphens: none;
}
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; margin-top: 0.4rem; }
.faq__icon::before, .faq__icon::after { content:""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--gold-light); transition: transform .4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.open .faq__icon::after { transform: rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height .5s var(--ease); }
.faq__a p { color: rgba(246,241,233,0.7); padding-bottom: 1.6rem; max-width: 68ch; font-size: 1rem; line-height: 1.7; }


/* Standalone FAQ page — wider list, no extra top padding (page-hero handles it) */
.faq--page { padding-top: clamp(3rem, 6vw, 5rem); }
.faq--page .faq__list { max-width: 860px; }

/* ===== CONTACT ===== */
.contact { padding: clamp(5rem,10vw,10rem) var(--pad); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem,6vw,5rem); align-items: start; }
.contact__title {
  font-family:    var(--serif);
  font-weight:    400;
  font-size:      clamp(1.65rem, 2.8vw, 2.8rem);
  line-height:    1.2;
  margin-bottom:  2.4rem;
  text-wrap:      balance;
  word-break:     normal;
  hyphens:        none;
  max-width:      24ch;
}
.contact__details { display: grid; gap: 1.6rem; margin-bottom: 2.4rem; }
.contact__details li { display: grid; gap: 0.3rem; border-bottom: 1px solid var(--line); padding-bottom: 1.6rem; }
.contact__details span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.contact__details a,
.contact__details address { font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-style: normal; line-height: 1.5; }
.contact__map { height: clamp(340px,48vw,520px); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px rgba(26,23,20,0.15); }
.contact__map iframe { width: 100%; height: 100%; border: 0; }


/* ===== FOOTER ===== */
.footer { background: var(--charcoal); color: var(--ivory); padding: clamp(4rem,8vw,7rem) var(--pad) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(246,241,233,0.1); }
.footer__brand h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.5vw, 2.8rem); }
.footer__brand h2 em { color: var(--gold); font-style: italic; }
.footer__brand p { color: rgba(246,241,233,0.6); margin-top: 0.75rem; max-width: 36ch; line-height: 1.65; font-size: 0.9rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer__col a { display: block; color: rgba(246,241,233,0.7); padding: 0.4rem 0; transition: color .3s; font-size: 0.9rem; }
.footer__col a:hover { color: var(--ivory); }
.footer__map { padding: 2.5rem 0 0; }
.footer__map-label {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer__map-frame {
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(246,241,233,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.footer__map-frame iframe { display: block; filter: grayscale(20%) contrast(1.05); }

.footer__marquee { overflow: hidden; border-top: 1px solid rgba(246,241,233,0.14); border-bottom: 1px solid rgba(246,241,233,0.14); padding: 1.4rem 0; margin: 1.5rem 0; }
.footer__marquee .marquee-track { animation: none; will-change: transform; /* animation handled by rAF JS loop */ }
.marquee-track--big span { font-size: clamp(2rem,5vw,4rem); color: rgba(246,241,233,0.12); }
.marquee-track--big i { color: var(--gold); font-size: clamp(1.5rem,3vw,2.5rem); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: 0.8rem; color: rgba(246,241,233,0.5); }


/* ===== REVEAL HELPERS ===== */
.reveal-up { opacity: 0; transform: translateY(30px); }
/* [data-reveal] opacity set by GSAP, not CSS — so content is always visible if JS fails */

/*
 * Split-text word reveal.
 * .word        = outer clip container (overflow:hidden, set via JS inline style)
 * .word__inner = the element that slides up (animated by GSAP)
 * NO display:inline-block on spaces — real text-nodes handle spacing.
 */
.word        { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word__inner { display: inline-block; }



/* ==========================================================
   RESPONSIVE BREAKPOINTS
   1440 → 1024 → 768 → 480 → 375 → 320
   ========================================================== */

/* ── 1440px: tighten padding only ── */
@media (min-width: 1440px) {
  :root { --pad: 7rem; }
}

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
  .work__grid           { grid-template-columns: repeat(2, 1fr); }
  .lead__inner          { grid-template-columns: 1fr; }
  .contact__inner       { grid-template-columns: 1fr; }
  .about__body          { grid-template-columns: 1fr; }
  .about__imgs          { height: 440px; max-width: 540px; margin-bottom: 2rem; }
  .process__timeline    { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .process__line        { display: none; }
  .testimonials__row    { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .contact__inner       { align-items: start; }
  .lead__title          { max-width: 100%; }
}

/* ── 768px: tablet portrait ── */
@media (max-width: 768px) {
  :root { --pad: 1.5rem; }

  .hero__media video    { object-position: center 20%; }
  .hero__title          { font-size: clamp(2.4rem, 9vw, 4.4rem); }
  .hero__sub            { max-width: 100%; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger          { display: block; }

  .stats__grid          { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .stat:nth-child(2)    { border-right: none; }

  .work__grid           { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .work-tab-grid        { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .gal-grid             { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .project--tall        { grid-row: span 1; }

  .service              { grid-template-columns: 60px 1fr; }
  .service__desc,
  .service__arrow       { display: none; }

  .testimonials__row    { grid-template-columns: 1fr; }

  .footer__top          { grid-template-columns: 1fr; gap: 2rem; }
  .footer__cols         { grid-template-columns: 1fr 1fr; }
  .ba__handle           { width: 36px; }

  .section-title        { font-size: clamp(1.65rem, 5vw, 2.4rem); }
  .about__lead          { font-size: clamp(1.15rem, 4vw, 1.6rem); }
  .about__imgs          { height: 380px; margin-bottom: 2rem; }
  .lead__title          { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .contact__title       { font-size: clamp(1.5rem, 5vw, 2.2rem); max-width: 100%; }
}

/* ── 480px: large phones ── */
@media (max-width: 480px) {
  :root { --pad: 1.25rem; }

  .hero__title          { font-size: clamp(2.2rem, 10vw, 3.6rem); line-height: 1.05; }
  .hero__sub            { font-size: 0.95rem; }

  .about__imgs          { height: 320px; margin-bottom: 2rem; }
  .work__grid           { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .work-tab-grid        { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gal-grid             { grid-template-columns: 1fr; grid-auto-rows: 260px; }

  .footer__cols         { grid-template-columns: 1fr; }
  .process__timeline    { grid-template-columns: 1fr; }

  .section-title        { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  .service__title       { font-size: clamp(1.25rem, 5vw, 1.8rem); }
  .lead__title          { font-size: clamp(1.5rem, 6vw, 2rem); }
  .contact__title       { font-size: clamp(1.4rem, 6vw, 2rem); }
  .ba__title            { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }

  .stats__grid          { grid-template-columns: repeat(2, 1fr); }
}

/* ── 375px: standard phones ── */
@media (max-width: 375px) {
  :root { --pad: 1rem; }
  .hero__title          { font-size: 2.1rem; }
  .section-title        { font-size: 1.55rem; }
  .lead__title          { font-size: 1.45rem; }
  .contact__title       { font-size: 1.4rem; }
  .service__title       { font-size: 1.2rem; }
}

/* ── 320px: smallest supported ── */
@media (max-width: 320px) {
  :root { --pad: 0.9rem; }
  .hero__title          { font-size: 1.9rem; }
  .section-title        { font-size: 1.45rem; }
}

/* ===== TESTIMONIALS MARQUEE ===== */
.testimonials {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--ivory);
  overflow: hidden;
}

.testimonials__head {
  text-align: center;
  padding: 0 var(--pad);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.testimonials__head .section-title {
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.testimonials__sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 1.2rem auto 0;
  line-height: 1.7;
  font-style: italic;
}

/* t1 — static featured card centered above the marquee */
.testimonials__top {
  display: flex;
  justify-content: center;
  padding: 0 var(--pad);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.tcard--featured {
  width: clamp(280px, 40vw, 520px);
  transform: none !important;
  box-shadow: 0 8px 40px rgba(26, 23, 20, 0.12), 0 2px 8px rgba(26, 23, 20, 0.07);
}

.tcard--featured:hover {
  transform: scale(1.02) !important;
  box-shadow: 0 20px 56px rgba(26, 23, 20, 0.18), 0 4px 16px rgba(26, 23, 20, 0.1);
}

.testimonials__stage {
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Edge fade overlays */
.testimonials__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(80px, 12vw, 180px);
  z-index: 2;
  pointer-events: none;
}
.testimonials__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--ivory) 0%, transparent 100%);
}
.testimonials__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--ivory) 0%, transparent 100%);
}

/* Scrolling track */
.testimonials__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 1.5rem 1rem 2rem;
  will-change: transform;
  /* animation handled by rAF JS loop — do not set CSS animation here */
}

@keyframes testimonialsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual testimonial cards */
.tcard {
  flex-shrink: 0;
  width: clamp(260px, 22vw, 340px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(26, 23, 20, 0.08), 0 1px 4px rgba(26, 23, 20, 0.05);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}

.tcard:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 16px 48px rgba(26, 23, 20, 0.16), 0 4px 12px rgba(26, 23, 20, 0.1);
  z-index: 3;
}

/* All cards on the same baseline */
.tcard--up, .tcard--down { transform: none; }

.tcard img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  filter: grayscale(0%) !important;
}

/* Responsive card sizes */
@media (max-width: 1024px) {
  .tcard { width: clamp(240px, 32vw, 300px); }
}

@media (max-width: 768px) {
  .tcard { width: clamp(220px, 72vw, 280px); }
  .testimonials__track { gap: 1.2rem; }
  .tcard--up, .tcard--down { transform: none; }
}

@media (max-width: 480px) {
  .tcard { width: clamp(200px, 80vw, 260px); }
  .testimonials__track { gap: 1rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-up, [data-reveal], .hero__title .line > span, .loader__letters { opacity: 1 !important; transform: none !important; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 14, 10, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s;
}
.lightbox__close:hover {
  color: var(--gold);
}
.lightbox__content {
  position: relative;
  width: 90%;
  max-width: 1400px;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.lightbox__img.show {
  opacity: 1;
  transform: scale(1);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,23,20,0.5);
  border: 1px solid rgba(246,241,233,0.2);
  color: var(--ivory);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s, color 0.3s;
}
.lightbox__nav:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.lightbox__prev { left: -60px; }
.lightbox__next { right: -60px; }
@media (max-width: 768px) {
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__close { top: 1rem; right: 1.5rem; }
}
