/* =========================================================
   GLORY — Interiors & Construction
   Luxury theme: warm charcoal, ivory, champagne gold
   ========================================================= */

/* Light theme. "--ivory" is the main text colour, "--bg" the page background. */
:root {
  --bg: #fbf8f3;
  --bg-2: #f4efe6;
  --bg-3: #ece5d8;
  --ivory: #1f1b16;
  --muted: #6e665a;
  --line: rgba(31, 27, 22, 0.12);
  --gold: #a8844a;
  --gold-2: #96733a;
  --gold-deep: #8a6a34;
  --cream: #f1eadf;
  --cream-2: #e9e2d5;
  --ink: #1f1b16;
  --ink-soft: #5f584d;
  --fill: #1f1b16;
  --fill-text: #fbf8f3;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 88px;
}

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

/* Areas that sit on top of photos keep light text */
.hero, .page-hero, .cta, .duo-card,
.site-header:not(.scrolled) {
  --ivory: #f7f2ea;
  --muted: rgba(247, 242, 234, 0.8);
  --line: rgba(255, 255, 255, 0.22);
  --gold: #dcc08a;
  --gold-2: #ead6ab;
  --fill: #f7f2ea;
  --fill-text: #1f1b16;
  color: var(--ivory);
}
body.menu-open .site-header {
  --ivory: #1f1b16;
  --muted: #6e665a;
  --line: rgba(31, 27, 22, 0.12);
  --gold: #a8844a;
  --gold-2: #96733a;
  --fill: #1f1b16;
  --fill-text: #fbf8f3;
}
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }
body.menu-open .site-header .brand-logo { filter: none; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
em, .italic { font-style: italic; color: var(--gold-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}
.eyebrow.center { justify-content: center; }

.display {
  font-size: clamp(44px, 7.4vw, 118px);
  line-height: 0.98;
}
.title {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.04;
}
.lede {
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--muted);
  max-width: 560px;
}

.section { padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.split {
  display: flex;
  max-width: none;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

/* Light (cream) sections */
.is-light { background: var(--cream); color: var(--ink); }
.is-light .lede, .is-light p { color: var(--ink-soft); }
.is-light .eyebrow { color: var(--gold-deep); }
.is-light em { color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 34px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fill);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--fill-text); border-color: var(--fill); }
.btn:hover::before { transform: scaleY(1); }
.btn svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(5px); }

.btn-gold { background: var(--gold); color: #1f1b16; }
.btn-gold::before { background: #1f1b16; }
.btn-gold:hover { color: #fbf8f3; border-color: #1f1b16; }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  padding-bottom: 6px;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.link-line:hover::after { transform: scaleX(0); }
.link-line svg { width: 15px; height: 15px; transition: transform 0.5s var(--ease); }
.link-line:hover svg { transform: translateX(6px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); }
.preloader.skip { display: none; }
.preloader-inner { text-align: center; }
.preloader-word {
  display: flex;
  justify-content: center;
  gap: 0.04em;
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 150px);
  letter-spacing: 0.18em;
  line-height: 1;
  overflow: hidden;
  padding-left: 0.18em;
}
.preloader-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: letterUp 1s var(--ease) forwards;
}
.preloader-word span:nth-child(2) { animation-delay: 0.08s; }
.preloader-word span:nth-child(3) { animation-delay: 0.16s; }
.preloader-word span:nth-child(4) { animation-delay: 0.24s; }
.preloader-word span:nth-child(5) { animation-delay: 0.32s; }
.preloader-sub {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeIn 1s 0.6s forwards;
}
.preloader-bar {
  width: 180px;
  height: 1px;
  margin: 34px auto 0;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.preloader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: barFill 1.4s 0.2s var(--ease) forwards;
}
@keyframes letterUp { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes barFill { to { transform: scaleX(1); } }

/* ---------- Page curtain (transitions) ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease-in-out);
}
.curtain.in { transform: scaleY(1); }
.nav-in .curtain { transform: scaleY(1); transform-origin: top; }
.pl-skip .preloader { display: none; }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1001;
  border-radius: 50%;
  display: none;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-ring { display: block; }
}
body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; }
.cursor {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
}
.cursor-ring {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(201, 169, 107, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease),
    background 0.45s var(--ease), border-color 0.45s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .cursor-ring { display: flex; }
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--gold);
}
.cursor-ring.view {
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor-ring span { opacity: 0; transition: opacity 0.3s; }
.cursor-ring.view span { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), transform 0.6s var(--ease), height 0.5s var(--ease),
    border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 74px;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.site-header.hidden { transform: translateY(-100%); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Brand (logo slot) */
.brand { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.brand-logo { height: 46px; width: auto; max-width: 180px; object-fit: contain; }
.brand-text {
  display: none;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.32em;
  line-height: 1;
  padding-left: 0.1em;
}
.brand-text small {
  display: block;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.52em;
  color: var(--gold);
  margin-top: 6px;
}
.brand.no-logo .brand-logo { display: none; }
.brand.no-logo .brand-text { display: block; }

.nav { display: flex; align-items: center; gap: 46px; }
.nav-links { display: flex; gap: 38px; }
.nav-links a {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 0;
  color: var(--ivory);
  opacity: 0.85;
  transition: color 0.4s, opacity 0.4s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ivory); opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 14px 24px; font-size: 11px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  position: relative;
  z-index: 2;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease), opacity 0.3s;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 27px; right: 18px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 23px; right: 11px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 44px);
  transition: clip-path 0.9s var(--ease-in-out);
  visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 44px); visibility: visible; }
.mobile-menu a.m-link {
  display: block;
  font-family: var(--serif);
  font-size: clamp(42px, 11vw, 64px);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.mobile-menu a.m-link:hover, .mobile-menu a.m-link.active { color: var(--gold); }
body.menu-open .mobile-menu a.m-link { opacity: 1; transform: none; }
body.menu-open .mobile-menu a.m-link:nth-child(1) { transition-delay: 0.3s; }
body.menu-open .mobile-menu a.m-link:nth-child(2) { transition-delay: 0.36s; }
body.menu-open .mobile-menu a.m-link:nth-child(3) { transition-delay: 0.42s; }
body.menu-open .mobile-menu a.m-link:nth-child(4) { transition-delay: 0.48s; }
body.menu-open .mobile-menu a.m-link:nth-child(5) { transition-delay: 0.54s; }
.mobile-menu-foot {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }
.d4 { transition-delay: 0.4s !important; }

/* Image mask reveal */
/* The clip sits on the <img>, not the observed wrapper — IntersectionObserver
   treats a fully clipped target as not intersecting, so it would never reveal. */
.reveal-img {
  position: relative;
  overflow: hidden;
}
.reveal-img img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.3);
  transition: clip-path 1.4s var(--ease-in-out), transform 1.8s var(--ease);
}
.reveal-img.in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.reveal-img.d1 img { transition-delay: 0.1s; }
.reveal-img.d2 img { transition-delay: 0.2s; }

/* Split-line headings (JS wraps words) */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
}
.split.in .w > span { transform: none; }

/* Parallax image helper */
.parallax { overflow: hidden; }
.parallax img { will-change: transform; transform: scale(1.18); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
}
.hero-slide.active { opacity: 1; }
.hero-slide.active img { animation: kenburns 7.5s linear forwards; }
@keyframes kenburns { from { transform: scale(1.16); } to { transform: scale(1.02); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 24, 16, 0.4) 0%, rgba(31, 24, 16, 0.02) 30%, rgba(31, 24, 16, 0.12) 55%, rgba(31, 24, 16, 0.68) 100%),
    linear-gradient(90deg, rgba(31, 24, 16, 0.42) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(60px, 9vh, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.hero h1 { max-width: 1000px; margin-bottom: 30px; }
.hero h1 em { font-weight: 300; }
.hero .lede { color: rgba(242, 236, 226, 0.78); margin-bottom: 40px; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-cta .btn:not(.btn-gold) { border-color: rgba(242, 236, 226, 0.5); }

.hero-meta { text-align: right; min-width: 220px; }
.hero-count {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.1em;
}
.hero-count b { font-weight: 400; color: var(--gold); font-size: 34px; }
.hero-caption {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 236, 226, 0.7);
  margin: 8px 0 16px;
  min-height: 1.6em;
}
.hero-progress { display: flex; gap: 8px; justify-content: flex-end; }
.hero-progress button {
  width: 46px;
  height: 2px;
  background: rgba(242, 236, 226, 0.2);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-progress button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-progress button.active::after { animation: barFill 6.5s linear forwards; }
.hero-progress button.done::after { transform: scaleX(1); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(242, 236, 226, 0.6);
}
.scroll-cue i {
  width: 1px;
  height: 46px;
  background: rgba(242, 236, 226, 0.2);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: scrollLine 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Hero text entrance (after preloader) */
.hero-in { opacity: 0; transform: translateY(30px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
body.ready .hero-in { opacity: 1; transform: none; }
body.ready .hero-in.d2 { transition-delay: 0.45s !important; }
body.ready .hero-in.d3 { transition-delay: 0.6s !important; }
body.ready .hero-in.d4 { transition-delay: 0.75s !important; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 64px);
  font-style: italic;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(31, 27, 22, 0.38);
}
.marquee-track span b {
  font-weight: 400;
  font-style: normal;
  color: var(--gold);
  -webkit-text-stroke: 0;
  font-size: 0.5em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro statement ---------- */
.intro { text-align: center; }
.intro-text {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.22;
  max-width: 1150px;
  margin: 0 auto;
  color: var(--ink);
}
.intro-text .word { opacity: 0.16; transition: opacity 0.4s linear; }
.intro-text .word.lit { opacity: 1; }
.intro-sign {
  margin-top: 54px;
  display: flex;
  justify-content: center;
  gap: clamp(30px, 6vw, 90px);
  flex-wrap: wrap;
}
.intro-sign div { text-align: center; }
.intro-sign strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1;
  color: var(--ink);
}
.intro-sign strong sup { font-size: 0.4em; color: var(--gold-deep); vertical-align: top; margin-left: 4px; }
.intro-sign > div > span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Services duo (home) ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.duo-card {
  position: relative;
  display: block;
  height: clamp(560px, 78vh, 780px);
  overflow: hidden;
  isolation: isolate;
}
.duo-card .bg { position: absolute; inset: 0; z-index: -2; }
.duo-card .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.duo-card:hover .bg img { transform: scale(1.07); }
.duo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31, 24, 16, 0.05) 0%, rgba(31, 24, 16, 0.08) 45%, rgba(31, 24, 16, 0.78) 100%);
  transition: background 0.8s var(--ease);
}
.duo-card:hover::before {
  background: linear-gradient(180deg, rgba(31, 24, 16, 0.15) 0%, rgba(31, 24, 16, 0.35) 40%, rgba(31, 24, 16, 0.85) 100%);
}
.duo-inner {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(28px, 3.4vw, 54px);
}
.duo-num {
  position: absolute;
  top: clamp(24px, 3vw, 44px);
  left: clamp(28px, 3.4vw, 54px);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.duo-card h3 { font-size: clamp(40px, 4.4vw, 68px); margin-bottom: 14px; }
.duo-card p { color: rgba(242, 236, 226, 0.75); max-width: 440px; margin-bottom: 8px; }
.duo-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.9s var(--ease), opacity 0.6s var(--ease), margin 0.9s var(--ease);
}
.duo-list li {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(242, 236, 226, 0.85);
  display: flex;
  gap: 10px;
  align-items: center;
}
.duo-list li::before { content: ""; width: 14px; height: 1px; background: var(--gold); flex: none; }
.duo-card:hover .duo-list, .duo-card:focus-visible .duo-list { max-height: 200px; opacity: 1; margin: 22px 0 28px; }
.duo-card .link-line { margin-top: 18px; }
@media (hover: none) {
  .duo-list { max-height: none; opacity: 1; margin: 20px 0 24px; }
}

/* ---------- Horizontal showcase ---------- */
.showcase { position: relative; background: var(--bg); }
.showcase-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.showcase-head { margin-bottom: 44px; }
.showcase-track {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  will-change: transform;
}
.show-card {
  flex: none;
  width: clamp(280px, 34vw, 520px);
  position: relative;
}
.show-card:nth-child(even) { margin-top: 70px; }
.show-card .frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.show-card.wide { width: clamp(320px, 48vw, 740px); }
.show-card.wide .frame { aspect-ratio: 16 / 11; }
.show-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 1s;
  filter: saturate(0.92);
}
.show-card:hover .frame img { transform: scale(1.06); filter: saturate(1.05); }
.show-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 18px;
}
.show-meta h4 { font-size: clamp(22px, 2vw, 30px); }
.show-meta span {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.show-end {
  flex: none;
  width: clamp(260px, 26vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding-right: var(--gutter);
}
.show-end h4 { font-size: clamp(30px, 3vw, 46px); }
.showcase-progress {
  margin: 48px auto 0;
  width: min(320px, 60vw);
  height: 1px;
  background: var(--line);
  position: relative;
}
.showcase-progress i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

/* Mobile: native swipe instead of pin */
@media (max-width: 900px) {
  .showcase { height: auto !important; padding: 100px 0; }
  .showcase-pin { position: static; height: auto; }
  .showcase-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transform: none !important;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .showcase-track::-webkit-scrollbar { display: none; }
  .show-card, .show-end { scroll-snap-align: start; }
  .show-card:nth-child(even) { margin-top: 0; }
  .show-card, .show-card.wide { width: 78vw; }
  .show-card.wide .frame { aspect-ratio: 4 / 5; }
  .showcase-progress { display: none; }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(26, 23, 18, 0.14);
}
.process-step {
  position: relative;
  padding: 44px 32px 10px 0;
}
.process-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.process-step.in::before { transform: scaleX(1); }
.process-step.d1::before { transition-delay: 0.2s; }
.process-step.d2::before { transition-delay: 0.4s; }
.process-step.d3::before { transition-delay: 0.6s; }
.process-step .n {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold-deep);
  font-style: italic;
  display: block;
  margin-bottom: 26px;
}
.process-step h3 { font-size: 30px; margin-bottom: 12px; color: var(--ink); }
.process-step p { font-size: 15px; }

/* ---------- Testimonials ---------- */
.testi { text-align: center; }
.testi-slider { position: relative; max-width: 980px; margin: 0 auto; min-height: 340px; }
.testi-quote-mark {
  font-family: var(--serif);
  font-size: 140px;
  line-height: 0.6;
  color: var(--gold);
  height: 60px;
  margin-bottom: 20px;
}
.testi-slide {
  position: absolute;
  inset: 80px 0 auto 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.testi-slide.active { opacity: 1; transform: none; pointer-events: auto; position: relative; inset: auto; }
.testi-slide p {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.35;
  font-style: italic;
  margin-bottom: 36px;
}
.testi-slide strong {
  display: block;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.testi-slide span { font-size: 13px; color: var(--muted); }
.testi-nav { display: flex; justify-content: center; gap: 14px; margin-top: 48px; }
.testi-nav button {
  width: 54px; height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.4s, background 0.4s, color 0.4s;
}
.testi-nav button:hover { border-color: var(--fill); background: var(--fill); color: var(--fill-text); }
.testi-nav svg { width: 18px; height: 18px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(130px, 18vw, 240px) 0;
  text-align: center;
  isolation: isolate;
}
.cta .cta-bg { position: absolute; inset: -15% 0; z-index: -2; }
.cta .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(31, 24, 16, 0.5);
}
.cta h2 { margin: 0 auto 26px; max-width: 900px; }
.cta p { color: rgba(242, 236, 226, 0.78); max-width: 540px; margin: 0 auto 44px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-top: clamp(70px, 9vw, 120px);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-brand p { color: var(--muted); max-width: 320px; margin: 22px 0 28px; font-size: 15px; }
.footer-col h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.footer-col li { margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.footer-col a { transition: color 0.3s; }
.footer-col a:hover { color: var(--ivory); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.4s, background 0.4s, color 0.4s;
}
.socials a:hover { border-color: var(--fill); background: var(--fill); color: var(--fill-text); }
.socials svg { width: 17px; height: 17px; }
.footer-word {
  font-family: var(--serif);
  font-size: clamp(90px, 23vw, 360px);
  line-height: 0.78;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink);
  user-select: none;
  margin-bottom: -0.06em;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Floating actions ---------- */
.float-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-actions a {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), opacity 0.4s, background 0.4s;
}
.float-actions svg { width: 22px; height: 22px; }
.fa-top {
  background: #fff;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  cursor: pointer;
}
.fa-top.show { opacity: 1; transform: none; pointer-events: auto; }
.fa-top:hover { background: var(--fill); color: var(--fill-text); }
.fa-wa { background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3); }
.fa-wa:hover { transform: scale(1.08); }

/* =========================================================
   INNER PAGES
   ========================================================= */
.page-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: calc(var(--header-h) + 60px) 0 clamp(60px, 8vw, 100px);
  isolation: isolate;
}
.page-hero .ph-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 2.4s var(--ease);
}
body.ready .page-hero .ph-bg img { transform: scale(1.02); }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31, 24, 16, 0.42) 0%, rgba(31, 24, 16, 0.18) 45%, rgba(31, 24, 16, 0.7) 100%);
}
.crumbs {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242, 236, 226, 0.6);
  margin-bottom: 28px;
}
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }
.page-hero h1 { max-width: 1050px; margin-bottom: 26px; }
.page-hero .lede { color: rgba(242, 236, 226, 0.78); }

/* Split image/text */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.split-row.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .main { aspect-ratio: 4 / 5; }
.split-media .main img { width: 100%; height: 100%; object-fit: cover; }
.split-media .accent {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  right: -8%;
  bottom: -10%;
  border: 10px solid var(--bg);
}
.is-light .split-media .accent { border-color: var(--cream); }
.split-media .accent img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge {
  position: absolute;
  top: 28px;
  left: -28px;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 2;
}
.badge-ring { position: absolute; inset: 0; animation: spin 20s linear infinite; }
.badge-ring text { font-size: 9.4px; letter-spacing: 3.3px; text-transform: uppercase; fill: var(--bg); font-family: var(--sans); }
.badge strong { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.split-copy .title { margin-bottom: 28px; }
.split-copy > p { margin-bottom: 20px; }
.ticks { margin: 32px 0 40px; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 16px; align-items: flex-start; }
.ticks li::before {
  content: "";
  flex: none;
  width: 22px; height: 1px;
  background: var(--gold);
  margin-top: 13px;
}

/* Values / features grid */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}
.feat {
  padding: 46px 34px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: color 0.5s;
  isolation: isolate;
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease);
  z-index: -1;
}
.feat:hover::before { transform: none; }
.feat .n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; }
.feat svg { width: 40px; height: 40px; color: var(--gold); margin: 26px 0 22px; stroke-width: 1.2; }
.feat h3 { font-size: 28px; margin-bottom: 12px; }
.feat p { font-size: 15px; color: var(--muted); }

/* Image band (parallax) */
.img-band { height: clamp(380px, 70vh, 720px); position: relative; overflow: hidden; }
.img-band img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; }

/* ---------- Services page ---------- */
.svc-tabs {
  position: sticky;
  top: 74px;
  z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: top 0.6s var(--ease);
}
body.hdr-hidden .svc-tabs { top: 0; }
.svc-tabs .container { display: flex; gap: 40px; }
.svc-tabs a {
  padding: 22px 0;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
}
.svc-tabs a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
.svc-tabs a.active, .svc-tabs a:hover { color: var(--ivory); }
.svc-tabs a.active::after { transform: scaleX(1); }

.svc-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.svc-big-num {
  font-family: var(--serif);
  font-size: clamp(120px, 16vw, 240px);
  line-height: 0.8;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.is-light .svc-big-num { -webkit-text-stroke-color: var(--gold-deep); }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(70px, 8vw, 110px);
}
.is-light .offer-grid { background: rgba(26, 23, 18, 0.12); border-color: rgba(26, 23, 18, 0.12); }
.offer {
  background: var(--bg);
  padding: 40px 34px 44px;
  transition: background 0.5s var(--ease);
}
.is-light .offer { background: var(--cream); }
.offer:hover { background: var(--bg-3); }
.is-light .offer:hover { background: var(--bg); }
.offer:hover { background: #fff; }
.offer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.offer-top svg { width: 38px; height: 38px; color: var(--gold); stroke-width: 1.2; }
.is-light .offer-top svg { color: var(--gold-deep); }
.offer-top span { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 18px; }
.offer h3 { font-size: 27px; margin-bottom: 10px; }
.offer p { font-size: 15px; color: var(--muted); }

.mini-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.mini-gallery .reveal-img { aspect-ratio: 4 / 5; }
.mini-gallery .reveal-img:first-child { aspect-ratio: auto; }
.mini-gallery .reveal-img:first-child img { position: absolute; inset: 0; }
.mini-gallery img { width: 100%; height: 100%; object-fit: cover; }
.mini-gallery.two { grid-template-columns: 1.7fr 1fr; }
.mini-gallery.two .reveal-img { aspect-ratio: 1 / 1; }
.mini-gallery.two .reveal-img:first-child { aspect-ratio: auto; }

/* FAQ */
.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  padding: 30px 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--gold-2); }
.faq-q i {
  flex: none;
  width: 18px; height: 18px;
  position: relative;
}
.faq-q i::before, .faq-q i::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transition: transform 0.5s var(--ease);
}
.faq-q i::after { transform: rotate(90deg); }
.faq-item.open .faq-q i::after { transform: rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease); }
.faq-a p { padding-bottom: 30px; color: var(--muted); max-width: 760px; }

/* ---------- Projects page ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 60px; }
.filter-btn {
  padding: 13px 26px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.4s var(--ease);
}
.filter-btn:hover { color: var(--ivory); border-color: var(--gold); }
.filter-btn.active { background: var(--fill); border-color: var(--fill); color: var(--fill-text); }
.filter-btn sup { font-size: 9px; margin-left: 4px; }

.works {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: clamp(14px, 1.6vw, 24px);
}
.work { grid-column: span 4; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.work.w-6 { grid-column: span 6; }
.work.w-8 { grid-column: span 8; }
.work.w-12 { grid-column: span 12; }
.work.w-12 .frame { aspect-ratio: 21 / 9; }
.work.hide { display: none; }
.work.fading { opacity: 0; transform: scale(0.96); }
.work-card { display: block; cursor: pointer; width: 100%; text-align: left; }
.work-card .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.work.w-6 .frame, .work.w-8 .frame { aspect-ratio: 16 / 11; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.work-card:hover img { transform: scale(1.07); }
.work-card .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31, 24, 16, 0.45));
  opacity: 0;
  transition: opacity 0.6s;
}
.work-card:hover .frame::after { opacity: 1; }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.work-meta h4 { font-size: 25px; }
.work-meta span { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(251, 248, 243, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { max-width: min(1200px, 92vw); text-align: center; }
.lb-stage img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}
.lightbox.open .lb-stage img.loaded { transform: none; opacity: 1; }
.lb-cap { margin-top: 20px; }
.lb-cap h4 { font-size: 28px; }
.lb-cap span { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.lb-btn {
  position: absolute;
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.lb-btn:hover { background: var(--fill); color: var(--fill-text); border-color: var(--fill); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 38px; left: 32px; font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 7vw, 110px);
}
.contact-list { display: grid; gap: 0; margin: 40px 0; border-top: 1px solid var(--line); }
.contact-list > div { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.contact-list dt { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.contact-list dd { font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.contact-list dd a:hover { color: var(--gold-2); }

.form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(30px, 4vw, 60px);
}
.form h3 { font-size: 38px; margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 36px; font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; margin-bottom: 30px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 26px 0 12px;
  color: var(--ivory);
  font: inherit;
  font-size: 16px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.4s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--ivory); }
.field textarea { resize: vertical; min-height: 110px; }
.field label {
  position: absolute;
  left: 0; top: 26px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.4s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field.static label {
  top: 0;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.field .bar {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.field input:focus ~ .bar, .field textarea:focus ~ .bar, .field select:focus ~ .bar { transform: scaleX(1); }
.field.select::after {
  content: "";
  position: absolute;
  right: 4px; top: 34px;
  width: 8px; height: 8px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 34px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.35s var(--ease);
}
.chips input:checked + span { background: var(--fill); border-color: var(--fill); color: var(--fill-text); }
.chips input:focus-visible + span { outline: 1px solid var(--gold-2); outline-offset: 3px; }
.chip-label { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.form .btn { width: 100%; justify-content: center; }
.form-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* Form states (shared by contact page + popup) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.js-enquiry .form-status { margin: 14px 0 0; font-size: 14px; color: #a2402e; text-align: center; }
.form-status:empty { display: none; }
.form-status a { text-decoration: underline; }
.btn.loading { pointer-events: none; opacity: 0.7; }
.form-success { display: none; text-align: center; padding: 30px 0 10px; }
.form-success svg { width: 64px; height: 64px; color: var(--gold); margin: 0 auto 18px; }
.form-success h3 { font-size: 36px; margin-bottom: 8px; }
.form-success p { color: var(--muted); }
.js-enquiry.sent > :not(.form-success) { display: none; }
.js-enquiry.sent .form-success { display: block; animation: fadeIn 0.8s var(--ease); }

/* Enquiry popup */
.modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s 0.8s;
}
.modal.open { visibility: visible; pointer-events: auto; transition: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 24, 16, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  width: min(1000px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  box-shadow: 0 40px 100px rgba(31, 24, 16, 0.25);
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.modal.open .modal-panel { opacity: 1; transform: none; }
.modal-media { position: relative; overflow: hidden; color: #f7f2ea; min-height: 560px; }
.modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.modal.open .modal-media img { transform: none; }
.modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(31, 24, 16, 0.75));
}
.modal-media-cap { position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 1; }
.modal-media-cap strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin-bottom: 10px; }
.modal-media-cap span { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #ead6ab; }
.modal-body { padding: clamp(28px, 4vw, 50px); position: relative; }
.modal-body .eyebrow { margin-bottom: 14px; }
.modal-body h3#em-title { font-size: clamp(30px, 3vw, 40px); margin-bottom: 8px; }
.modal-body > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.modal-body .field { margin-bottom: 18px; }
.modal-body .chips { margin-bottom: 18px; }
.modal-body .chips span { padding: 9px 16px; font-size: 11px; }
.modal-body .form-row { gap: 22px; }
.modal-body textarea { min-height: 70px; }
.modal-body .btn { width: 100%; justify-content: center; }
.modal-body .form-note { margin-top: 12px; font-size: 12px; text-align: center; color: var(--muted); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.modal-close:hover { background: var(--fill); color: var(--fill-text); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .modal { padding: 12px; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-media { display: none; }
  .modal-body .form-row { grid-template-columns: 1fr; gap: 0; }
}

.map {
  height: 460px;
  filter: grayscale(0.85) sepia(0.15) contrast(0.95);
  border-top: 1px solid var(--line);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { gap: 26px; }
  .nav { gap: 28px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .duo { grid-template-columns: 1fr; }
  .duo-card { height: 600px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .split-row, .contact-grid { grid-template-columns: 1fr; }
  .split-row.rev .split-media { order: 0; }
  .split-media { margin-right: 8%; }
  .split-media .badge { left: auto; right: -6%; top: -40px; width: 112px; height: 112px; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .work, .work.w-6, .work.w-8 { grid-column: span 6; }
  .work.w-6 .frame, .work.w-8 .frame { aspect-ratio: 4 / 5; }
  .svc-head { grid-template-columns: 1fr; gap: 10px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { text-align: left; }
  .hero-progress { justify-content: flex-start; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .duo-card { height: 540px; }
  .duo-list { grid-template-columns: 1fr; }
  .process-grid, .cards-4, .offer-grid, .footer-grid { grid-template-columns: 1fr; }
  .process-step { padding-right: 0; }
  .work, .work.w-6, .work.w-8 { grid-column: span 12; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list > div { grid-template-columns: 1fr; gap: 6px; }
  .mini-gallery { grid-template-columns: 1fr 1fr; }
  .mini-gallery .reveal-img:first-child { grid-column: span 2; aspect-ratio: 16 / 11; }
  .mini-gallery.two { grid-template-columns: 1fr; }
  .mini-gallery.two .reveal-img, .mini-gallery.two .reveal-img:first-child { grid-column: auto; aspect-ratio: 16 / 11; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 66px); }
  .lb-next { right: calc(50% - 66px); }
  .hero-meta { display: none; }
  .btn { padding: 16px 26px; }
  .eyebrow { letter-spacing: 0.22em; gap: 10px; }
  .eyebrow::before { width: 26px; }
  .svc-tabs .container { gap: 22px; }
  .svc-tabs a { font-size: 10.5px; letter-spacing: 0.16em; white-space: nowrap; }
  .float-actions { right: 14px; bottom: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-in { opacity: 1; transform: none; }
  .reveal-img img { clip-path: none; }
  .reveal-img img, .parallax img { transform: none; }
  .split .w > span { transform: none; }
  .intro-text .word { opacity: 1; }
}
