/* =====================================================
   VIRASAT DESIGN STUDIO — VERSION 132 (full file)
   Baseline: Version 131.
   New in v132: Dark mode shifted from pure black/gray to
   a rich, deep "Dark Roast" brown palette. Unmistakably
   brown, avoiding both red undertones and stark black.
   ===================================================== */
:root {
  --ivory:  #F7F2EA;
  --brown:  #6b5945;
  --gold:   #E4C264;
  --cream:  #EDE5DA;
  --red:    #9A3437;
  --ink:    #241B14;

  /* project-sheet accents */
  --terra:  #D96F32;
  --tan:    #B9895C;
  --paper:  #F4EAD2;

  --ribbon-light: rgba(229, 222, 216, 0.94);
  --ribbon-dark:  rgba(45, 33, 22, 0.94); /* Dark roast ribbon */
  --menu-light:   #E5DED8;
  --menu-dark:    #2D2116; /* Dark roast menu */

  --line:      rgba(107, 74, 54, 0.18);
  --gold-line: rgba(228, 194, 100, 0.55);

  --card-w:   clamp(230px, 22vw, 300px);
  --proj-gap: clamp(18px, 2.4vw, 34px);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', 'Segoe UI', sans-serif;

  /* Mobile safe area insets */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

/* ============ DARK MODE — Rich Dark Roast Brown ============ */
[data-theme="dark"] {
  --ivory:  #2D2116; /* Deep rich brown background */
  --brown:  #D8CBB8; /* Warm light taupe/cream text */
  --cream:  #382A1E; /* Lighter rich brown surface */
  --ink:    #EFE4D4; /* Bright ivory headings */
  --paper:  #423224;
  --line:      rgba(216, 203, 184, 0.15);
  --gold-line: rgba(228, 194, 100, 0.40);
}
[data-theme="dark"] ::selection { color: #2D2116; }

[data-theme="dark"] .site-header {
  background: var(--ribbon-dark);
  border-bottom-color: rgba(228, 194, 100, 0.35);
}

/* ============ DARK MODE LOGO SWITCHING ============ */
[data-theme="dark"] .logo .logo-light { display: none !important; }
[data-theme="dark"] .logo .logo-dark  { display: block !important; }

[data-theme="dark"] .hero-full { background: #1F160F; } /* Deepest espresso */
[data-theme="dark"] .hero-copy h1 { color: #EFE4D4; }
[data-theme="dark"] .site-footer { background: #1F160F; }
[data-theme="dark"] .site-footer .meta { color: rgba(239, 228, 212, 0.7); }
[data-theme="dark"] .footer-line { color: #EFE4D4; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; height: auto; }

button, a, input, select, textarea { touch-action: manipulation; }

body {
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  transition: background 0.5s ease, color 0.5s ease;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  width: 100%;
}
body.menu-open { overflow: hidden; }

::selection { background: var(--gold); color: var(--brown); }

.container { width: min(1160px, 92%); margin: auto; }

/* Type hierarchy — Guideline 07 */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; }
h1 { font-size: clamp(56px, 8vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(34px, 4.6vw, 46px); line-height: 1.15; }
h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; }
h1 em, h2 em { font-style: italic; }

.meta {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
}

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); }
.section-head .meta { display: block; margin-bottom: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

/* ============ Header — ribbon ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ribbon-light);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-line);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* ============ LOGO (balanced size) ============ */
.logo { display: inline-block; }
.logo img {
  width: 230px;
  height: 60px;
  object-fit: cover;
  object-position: center 51%;
  display: block;
}
.logo-light { display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-reach { display: none; }
.nav-num { display: none; }
.nav a {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; color: var(--brown); font-weight: 500;
  position: relative; padding-bottom: 4px;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s ease;
}
.nav a:hover::after { width: 100%; }
.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--brown);
  transition: color 0.4s ease;
}

/* ============ HERO — landscape wall + portrait insert ============ */
.hero-full {
  position: relative;
  height: calc(100vh - 89px);
  min-height: 620px;
  overflow: hidden;
  background: var(--brown);
}
.hero-frame {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--cream);
  display: grid; place-items: center;
}
.hero-frame .meta { opacity: 0.5; }
.hero-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(36, 27, 20, 0.88) 0%,
    rgba(36, 27, 20, 0.66) 48%,
    rgba(36, 27, 20, 0.46) 100%);
}
.hero-portrait {
  position: absolute; z-index: 3;
  right: clamp(24px, 5vw, 84px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 3 / 4;
  background: var(--cream);
  border: 1px solid var(--gold-line);
  box-shadow: 0 24px 60px rgba(20, 12, 8, 0.45);
  display: grid; place-items: center;
  overflow: hidden;
}
.hero-portrait .meta { opacity: 0.5; }
.hero-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============ HERO SLIDESHOW — Video Slide (Desktop & Mobile) ============ */
.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  background: #000;
  overflow: hidden;
}

.hero-full.is-video-active .hero-slide-video {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Video slide scrim: pure neutral dark overlay (zero color tinting, true original blacks preserved) */
.hero-slide-video .hero-scrim {
  background: linear-gradient(100deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.00) 100%) !important;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Desktop: show landscape video, hide mobile vertical video */
.hero-video-desktop {
  display: block;
}
.hero-video-mobile {
  display: none;
}

/* Spaces Underway: centered horizontally in the open lower area on desktop */
.hero-underway-center {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(70px, 15vh, 150px);
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
  max-width: 90vw;
  pointer-events: none;
}

.hero-underway-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
  color: #F7F2EA;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  margin: 0;
  text-align: center;
}

.hero-copy {
  position: absolute; z-index: 2;
  left: clamp(24px, 5vw, 84px);
  right: clamp(24px, 5vw, 84px);
  top: 15vh;
  max-width: 1000px;
  color: #F7F2EA;
}
.hero-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: rgba(247, 242, 234, 0.85);
}
.hero-meta::before {
  content: ''; width: 56px; height: 1px;
  background: var(--gold); flex: 0 0 auto;
}
.hero-essence {
  margin: 22px 0 30px;
  max-width: 52ch;
  font-size: 17px;
  color: rgba(247, 242, 234, 0.9);
}
.hero-copy h1 { color: #F7F2EA; font-size: clamp(56px, 7.4vw, 72px); line-height: 1.08; }

.hero-foot {
  position: absolute; z-index: 6;
  left: clamp(24px, 5vw, 84px);
  right: clamp(24px, 5vw, 84px);
  bottom: 34px;
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 32px;
  color: #F7F2EA;
}

/* ============ SCROLL CUE ============ */
.scroll-cue {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  text-decoration: none;
  color: rgba(247, 242, 234, 0.85);
  animation: cue-enter 1.1s ease 0.5s backwards;
}
.cue-line {
  width: 56px; height: 1px;
  background: var(--gold);
  transform-origin: left center;
  animation: cue-draw 1s ease 0.9s backwards;
}
.cue-label { animation: cue-breathe 4.5s ease-in-out 2s infinite; }
.cue-thread {
  position: relative;
  width: 1px; height: 64px;
  background: rgba(247, 242, 234, 0.22);
  overflow: hidden;
  transition: height 0.6s ease;
}
.cue-thread::after {
  content: '';
  position: absolute; left: 0; width: 100%; height: 45%;
  top: -45%;
  background: linear-gradient(to bottom, rgba(228, 194, 100, 0), var(--gold));
  animation: cue-fall 2.8s cubic-bezier(0.7, 0, 0.3, 1) 1.6s infinite;
}
.scroll-cue:hover .cue-thread,
.scroll-cue:focus-visible .cue-thread { height: 84px; }
.scroll-cue:hover .cue-label,
.scroll-cue:focus-visible .cue-label { opacity: 1; }

@keyframes cue-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes cue-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes cue-fall {
  0%        { top: -45%; }
  55%, 100% { top: 100%; }
}
@keyframes cue-breathe {
  0%, 100% { letter-spacing: 0.22em; opacity: 0.75; }
  50%      { letter-spacing: 0.30em; opacity: 1; }
}

/* ============ ABOUT US — editorial band ============ */
.about-section { padding: clamp(70px, 9vw, 120px) 0 clamp(44px, 6vw, 72px); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.25fr;
  grid-template-rows: auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.about-photo {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  background: var(--cream);
  border: 1px solid var(--gold-line);
  display: grid; place-items: center;
  overflow: hidden;
}
.about-photo .meta { opacity: 0.5; }
.about-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-main {
  grid-column: 2;
  grid-row: 1;
}
.about-main .meta { display: block; margin-bottom: 16px; }
.about-head {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  margin-bottom: 0;
}
.about-head,
.about-name { color: #6b5945; }
[data-theme="dark"] .about-head,
[data-theme="dark"] .about-name { color: var(--ink); }
.about-head::after {
  content: '';
  display: block;
  width: 56px; height: 1px;
  background: var(--gold);
  margin: 24px 0 22px;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 44ch;
}
.about-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--brown);
  opacity: 0.92;
}
.about-side {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  border-left: 1px solid var(--gold-line);
  padding-left: clamp(24px, 3vw, 48px);
}
.about-quote {
  margin: 0 0 16px;
  padding: 0;
  border: none;
}
.about-note {
  font-size: 15px;
  line-height: 1.8;
  max-width: 46ch;
  opacity: 0.92;
  margin-bottom: 16px;
}
.about-note-quote {
  font-style: italic;
  line-height: 1.85;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 1.5em;
  line-height: 0;
  font-style: normal;
  font-weight: 500;
  color: var(--gold);
  display: inline-block;
  user-select: none;
}
.quote-open {
  margin-right: 4px;
  vertical-align: -0.12em;
}
.quote-close {
  margin-left: 3px;
  vertical-align: -0.24em;
}
.about-signature {
  position: relative;
  height: 80px;
  max-width: 240px;
  display: grid; place-items: center;
  margin-top: 4px;
  margin-bottom: 4px;
}
.about-signature .meta { opacity: 0.4; }
.about-signature img {
  position: absolute; inset: 0;
  margin: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.sig-light { display: block; }
.sig-dark  { display: none; }
[data-theme="dark"] .sig-light { display: none; }
[data-theme="dark"] .sig-dark  { display: block; }
.about-signature:has(img:not(.is-missing)) .meta { display: none; }
.about-name {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 4px;
}
.about-role { opacity: 0.7; }

/* ============ SELECTED WORK — flowing carousel ============ */
.proj-section { padding: clamp(44px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }

.proj-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.proj-head-main .meta { display: block; margin-bottom: 14px; }
.proj-title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
}
.proj-blurb {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
  max-width: 46ch;
}

.proj-arrows { display: flex; gap: 14px; }
.proj-arrow {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--brown);
  background: transparent;
  color: var(--brown);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease,
              border-color 0.4s ease, transform 0.4s ease;
}
.proj-arrow svg { width: 20px; height: 20px; display: block; }

.proj-arrow:hover,
.proj-arrow:focus-visible {
  background: var(--brown);
  color: var(--ivory);
  border-color: var(--brown);
  transform: translateY(-2px);
}

.proj-stage {
  overflow: hidden;
  margin-inline: calc(50% - 50vw);
  padding: 6px 0 12px;
}

.proj-track {
  display: flex;
  gap: var(--proj-gap);
  transition: none;
  will-change: transform;
}

a.proj-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
a.proj-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 4px;
}

.proj-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--card-w);
  height: clamp(400px, 56vh, 500px);
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
@media (hover: hover) and (pointer: fine) {
  .proj-card:hover { width: calc(var(--card-w) * 1.16); }
}

.proj-frame {
  position: absolute; inset: 0;
  overflow: hidden;
  background: var(--cream);
}
.proj-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
@media (hover: hover) and (pointer: fine) {
  .proj-card:hover .proj-frame img { transform: scale(1.06); }
}

.proj-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(30, 20, 14, 0.58);
  transition: opacity 0.6s ease;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  .proj-card:hover .proj-frame::after { opacity: 0.22; }
}

.proj-copy {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
@media (hover: hover) and (pointer: fine) {
  .proj-card:hover .proj-copy {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }
}
.proj-cat {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 500;
  color: rgba(247, 242, 234, 0.95);
  text-shadow: 0 1px 10px rgba(20, 12, 8, 0.45);
}
.proj-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 500;
  color: #F7F2EA;
  text-shadow: 0 2px 18px rgba(20, 12, 8, 0.5);
}

/* ============ SERVICES — brand-brown offer cards ============ */
.offer-section { padding: 0 0 clamp(80px, 10vw, 130px); }
.offer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.offer-head .meta { display: block; margin-bottom: 14px; }
.offer-title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
}
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 36px);
}
.offer-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: clamp(320px, 40vh, 420px);
  background: #6b5945;
  border-radius: 14px;
  overflow: hidden;
}
.offer-grid .offer-card:nth-child(2) { transition-delay: 0.28s; }

.offer-media {
  position: relative;
  min-height: 260px;
  background: var(--cream);
  display: grid; place-items: center;
}
.offer-media .meta { opacity: 0.5; color: #F7F2EA; }
.offer-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 1.2s ease, filter 0.8s ease;
}
.offer-card:nth-child(2) .offer-media img {
  object-position: center 85%;
}
@media (hover: hover) {
  .offer-media img {
    filter: grayscale(1) contrast(1.02) brightness(0.96);
  }
  .offer-card:hover .offer-media img {
    filter: grayscale(0) contrast(1) brightness(1);
    transform: scale(1.05);
  }
}
.offer-body {
  padding: clamp(26px, 3vw, 44px);
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 14px;
  color: #F7F2EA;
}
.offer-no {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
}
.offer-body h3 {
  color: #F7F2EA;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
}
.offer-body p {
  color: rgba(247, 242, 234, 0.88);
  font-size: 15px;
  line-height: 1.8;
  max-width: 46ch;
}

/* ============ CLIENT REVIEWS — nine real voices ============ */
.testi-section { padding: 0 0 clamp(80px, 10vw, 130px); }
.testi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.testi-head .meta { display: block; margin-bottom: 14px; }
.testi-title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
}
.testi-hint { opacity: 0.55; margin-bottom: 6px; }
.testi-hint-desktop { display: inline; }
.testi-hint-mobile { display: none; }

.testi-stage {
  overflow: hidden;
  margin-inline: calc(50% - 50vw);
  padding: 6px 0 68px;
}
.testi-track {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);
  transition: none;
  will-change: transform;
}

.testi-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(320px, 30vw, 400px);
  display: flex; flex-direction: column; gap: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 2.4vw, 32px);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.5s ease,
              border-color 0.5s ease,
              background 0.5s ease;
}
.testi-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-line);
  background: #F2EDE4;
  box-shadow: 0 26px 50px rgba(20, 12, 8, 0.16);
  z-index: 2;
}
[data-theme="dark"] .testi-card:hover {
  background: #423224; /* Lighter rich brown on hover */
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.40);
}

.testi-top { display: flex; justify-content: flex-start; }
.testi-stars {
  color: var(--brown);
  font-size: 14px;
  letter-spacing: 0.3em;
  transition: color 0.5s ease;
}
[data-theme="dark"] .testi-stars { color: var(--gold); }
.testi-card:hover .testi-stars { color: var(--gold); }

.testi-text {
  flex: 1;
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  color: var(--brown);
  opacity: 0.94;
  transition: max-height 0.8s ease;
}
.testi-text.is-clamped {
  max-height: 260px;
  overflow: hidden;
}
.testi-text.is-clamped::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(237, 229, 218, 0), var(--cream));
  pointer-events: none;
}
.testi-text.is-open { max-height: 1600px; }

.testi-more {
  align-self: flex-start;
  margin-top: -6px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gold-line);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown);
  padding: 0 0 3px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.testi-more:hover,
.testi-more:focus-visible,
.testi-card:hover .testi-more { border-bottom-color: var(--gold); }

.testi-who {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-right: 88px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.testi-ids { display: flex; flex-direction: column; gap: 4px; }
.testi-name {
  font-size: 15px; font-weight: 500;
  color: var(--ink);
}
.testi-meta { opacity: 0.6; }

.testi-avatar {
  position: absolute;
  right: 22px;
  bottom: -40px;
  z-index: 3;
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--menu-light);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(20, 12, 8, 0.28);
  transition: border-color 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}
.testi-card:hover .testi-avatar {
  border-color: var(--gold);
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(20, 12, 8, 0.34);
}
.testi-avatar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.testi-avatar img.face-low { object-position: 50% 100%; }
.testi-initials {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--brown);
  opacity: 0.7;
}
[data-theme="dark"] .testi-initials { color: var(--gold); }

.btn-line {
  display: inline-block; font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brown); text-decoration: none; padding-bottom: 10px;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 48px 1px no-repeat;
  transition: background-size 0.5s ease;
}
.btn-line:hover { background-size: 100% 1px; }

/* ============ QUICK ENQUIRY — conversation plate ============ */
.enquiry-section { padding: clamp(80px, 11vw, 140px) 0; }

.enquiry-plate {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(20, 12, 8, 0.08);
  overflow: hidden;
}

.enquiry-side {
  padding: clamp(30px, 4vw, 54px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
}
.enquiry-intro {
  display: flex; flex-direction: column; gap: 20px;
}
.plate-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--brown);
  opacity: 0.85;
}
.plate-meta-desktop { display: flex; }
.plate-meta-mobile { display: none; }
.plate-meta::before {
  content: ''; width: 36px; height: 1px;
  background: var(--gold); flex: 0 0 auto;
}
.enquiry-title {
  color: var(--ink);
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.12;
}
.enquiry-sub {
  color: var(--brown);
  opacity: 0.85;
  font-size: 15.5px;
  line-height: 1.8;
  max-width: 44ch;
}
.enquiry-direct {
  margin-top: auto;
  padding-top: 28px;
  display: flex; flex-direction: column; gap: 18px;
}

/* uniform 2x2 — left column sizes to its longest line */
.contact-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 20px 28px;
  max-width: 560px;
}
.contact-item {
  display: flex; align-items: center; gap: 12px;
  color: inherit;
  text-decoration: none;
}
.contact-chip {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--line);
  color: var(--brown);
  display: grid; place-items: center;
  transition: background 0.4s ease, color 0.4s ease;
}
.contact-chip svg { width: 18px; height: 18px; display: block; }
a.contact-item:hover .contact-chip,
a.contact-item:focus-visible .contact-chip {
  background: var(--brown);
  color: var(--ivory);
}
.contact-ids { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.contact-value {
  font-size: 13px;
  color: var(--brown);
  opacity: 0.75;
  white-space: nowrap;
}
@media (max-width: 460px) {
  .contact-value { white-space: normal; overflow-wrap: break-word; }
}

/* the phone row — live tap-to-call on mobile only */
@media (min-width: 821px) {
  a.contact-item-tel { pointer-events: none; }
}

.enquiry-form-side {
  padding: clamp(30px, 4vw, 54px);
  display: flex; flex-direction: column; gap: 24px;
}
.enquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
}
.enquiry-full,
.enquiry-grid textarea { grid-column: 1 / -1; }
.enquiry-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--brown);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  padding: 12px 2px;
  transition: border-color 0.3s ease;
}
.enquiry-input::placeholder {
  color: var(--brown);
  opacity: 0.55;
  letter-spacing: 0.04em;
}
.enquiry-input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
textarea.enquiry-input {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  min-height: 130px;
  resize: vertical;
}
textarea.enquiry-input:focus { border-color: var(--gold); }
select.enquiry-input {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23E4C264' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.enquiry-input option {
  background: var(--ivory);
  color: var(--ink);
}
.enquiry-send {
  width: 100%;
  display: inline-block;
  background: var(--brown);
  color: var(--ivory);
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 36px;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease;
}
.enquiry-send:hover,
.enquiry-send:focus-visible {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}
.enquiry-send:disabled { opacity: 0.6; cursor: default; transform: none; }
.enquiry-status {
  margin-top: 14px;
  min-height: 1.5em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--brown);
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--brown);
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color 0.4s ease, background 0.5s ease, color 0.5s ease;
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* =====================================================
   PROJECT PAGES — opening spread (Version 125)
   ===================================================== */
.pintro {
  padding: clamp(110px, 12vw, 150px) 0 clamp(60px, 8vw, 100px);
}
.pintro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: stretch;
}
/* v125: mirrored spread — story left, photograph right */
.pintro-grid.pintro-flip {
  grid-template-columns: 0.95fr 1.05fr;
}
.pintro-grid.pintro-flip .pintro-side {
  grid-column: 1;
  grid-row: 1;
}
.pintro-grid.pintro-flip .pintro-media {
  grid-column: 2;
  grid-row: 1;
}
.pintro-media {
  position: relative;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  min-height: 480px;
}
.pintro-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pintro-optique .pintro-media img,
.page-optique .pintro-media img,
.proj-card[href*="optique"] .proj-frame img {
  object-position: center 80%;
}
.pintro-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}
.pintro-title {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
}
.pintro-writeup {
  font-size: 16px;
  line-height: 1.85;
  color: var(--brown);
  opacity: 0.92;
  max-width: 52ch;
}

/* ---- the ledger ---- */
.pspec {
  margin-top: 10px;
}
.pspec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 13px 2px;
  border-top: 1px solid var(--line);
  transition: background 0.45s ease;
  animation: spec-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.pspec-row:last-child { border-bottom: 1px solid var(--line); }
.pspec-row:nth-child(1) { animation-delay: 0.05s; }
.pspec-row:nth-child(2) { animation-delay: 0.13s; }
.pspec-row:nth-child(3) { animation-delay: 0.21s; }
.pspec-row:nth-child(4) { animation-delay: 0.29s; }
.pspec-row:nth-child(5) { animation-delay: 0.37s; }
.pspec-row:nth-child(6) { animation-delay: 0.45s; }
@keyframes spec-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.pspec-row dt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brown);
  opacity: 0.75;
  transition: opacity 0.4s ease;
}
.pspec-row dt::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
  transition: width 0.45s ease;
}
.pspec-row dd {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: right;
}
@media (hover: hover) {
  .pspec-row:hover { background: rgba(228, 194, 100, 0.07); }
  .pspec-row:hover dt { opacity: 1; }
  .pspec-row:hover dt::before { width: 30px; }
}

/* ---- palette: pill chips with entrance + hover life ---- */
.pspec-palette { margin-top: 24px; }
.pspec-palette-label { margin-bottom: 14px; opacity: 0.8; }
.pspec-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pspec-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--brown);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  animation: chip-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.pspec-chip:nth-child(1) { animation-delay: 0.50s; }
.pspec-chip:nth-child(2) { animation-delay: 0.60s; }
.pspec-chip:nth-child(3) { animation-delay: 0.70s; }
.pspec-chip:nth-child(4) { animation-delay: 0.80s; }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.pspec-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--dot, #999);
  box-shadow: inset 0 0 0 1px rgba(20, 12, 8, 0.15);
  flex: 0 0 auto;
  transition: transform 0.4s ease;
}
@media (hover: hover) {
  .pspec-chip:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 10px 22px rgba(20, 12, 8, 0.12);
  }
  .pspec-chip:hover .pspec-dot { transform: scale(1.3); }
}

/* =====================================================
   PROJECT COLLAGE — Uncropped, Natural Aspect Ratio
   ===================================================== */
.project-gallery {
  position: relative;
  padding: clamp(50px, 8vw, 90px) 0 clamp(70px, 10vw, 120px);
  border-top: 1px solid var(--line);
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.gallery-media img,
.gallery-media img.is-missing {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.gallery-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.8vw, 36px);
}

.gallery-row {
  display: grid !important;
  width: 100% !important;
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}

.gallery-row > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

.gallery-row.row-full {
  grid-template-columns: 100% !important;
}

.gallery-row.row-duo-equal,
.gallery-row.row-optique-01-05 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.gallery-row.row-trio-equal {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Matches native 883px : 571px proportion so heights naturally align */
.gallery-row.row-asym-11-12 {
  grid-template-columns: minmax(0, 883fr) minmax(0, 571fr) !important;
}

/* Matches reference 883fr:571fr proportion for Axis 01 (wider bed) & 02 (slender vanity) flush height alignment */
.gallery-row.row-axis-01-02 {
  grid-template-columns: minmax(0, 883fr) minmax(0, 571fr) !important;
}

/* Matches native 648px:864px vs 771px:963px proportion for Axis 03 & 04 flush height alignment */
.gallery-row.row-axis-03-04 {
  grid-template-columns: minmax(0, 750fr) minmax(0, 801fr) !important;
}

/* Matches native 1096px:1417px vs 960px:1280px proportion for Axis 07 (bedroom suite) & 05 (vanity mirror) flush height alignment */
.gallery-row.row-axis-07-05,
.gallery-row.row-axis-06-05 {
  grid-template-columns: minmax(0, 774fr) minmax(0, 750fr) !important;
}

/* Matches native 840px:864px vs 657px:987px proportion for Optique 04 (wider reception) & 06 (slender mirror display) flush height alignment */
.gallery-row.row-optique-04-05,
.gallery-row.row-optique-04-06 {
  grid-template-columns: minmax(0, 1291fr) minmax(0, 884fr) !important;
}

/* Matches native 324px:361px vs 329px:395px proportion for Optique 07 & 08 architectural sketches */
.gallery-row.row-optique-07-08 {
  grid-template-columns: minmax(0, 1078fr) minmax(0, 1000fr) !important;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Optique: Equal 1:1 distribution matching row 01-05 (identical 2:3 aspect ratio) */
.gallery-row.row-optique-03-02 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.gallery-row.row-optique-03-02 .gallery-media {
  aspect-ratio: 2 / 3;
}
.gallery-row.row-optique-03-02 .gallery-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Matches native 577px:864px vs 576px:864px proportion for Sanctum 02 & 03 flush height alignment */
.gallery-row.row-sanctum-02-03 {
  grid-template-columns: minmax(0, 577fr) minmax(0, 576fr) !important;
}

/* Matches native 692px:864px vs 460px:864px proportion for Ember 02 (wider bed) & 03 (slender nightstand) flush height alignment */
.gallery-row.row-ember-02-03 {
  grid-template-columns: minmax(0, 692fr) minmax(0, 460fr) !important;
}

/* Matches identical 3:4 aspect ratio (648:864 vs 960:1280) for Ember 01 & 05 flush height alignment */
.gallery-row.row-ember-01-05 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* Hearth: Identical 3:4 aspect ratio equal-size paired frames for 02 & 08, 04 & 05, and 06 & 07 */
.gallery-row.row-hearth-02-08,
.gallery-row.row-hearth-04-05,
.gallery-row.row-hearth-06-07 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.gallery-row.row-hearth-02-08 .gallery-media,
.gallery-row.row-hearth-04-05 .gallery-media,
.gallery-row.row-hearth-06-07 .gallery-media {
  aspect-ratio: 3 / 4;
}
.gallery-row.row-hearth-02-08 .gallery-media img,
.gallery-row.row-hearth-04-05 .gallery-media img,
.gallery-row.row-hearth-06-07 .gallery-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}


.gallery-row.row-duo-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Matches native 484px : 485px : 542px proportion */
.gallery-row.row-trio-closing {
  grid-template-columns: 484fr 485fr 542fr;
}

/* Matches native 486px : 692px : 486px proportion for Ember */
.gallery-row.row-trio-ember {
  grid-template-columns: 486fr 692fr 486fr;
}

/* Media framing: 100% uncropped, natural size */
.gallery-media {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(107, 74, 54, 0.14);
  box-shadow: 0 12px 34px rgba(20, 12, 8, 0.05);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.6s ease;
}

[data-theme="dark"] .gallery-media {
  border-color: rgba(228, 194, 100, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.gallery-media.is-nobg {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
}

[data-theme="dark"] .gallery-media.is-nobg {
  border-color: transparent !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Architectural sketch blend (Optique 07 & 08): seamless background blend with no border or frame box */
.gallery-media.is-sketch {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
}

.gallery-media.is-sketch:hover {
  border: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.gallery-media.is-sketch img {
  mix-blend-mode: multiply;
  filter: contrast(1.06) brightness(1.04);
  background: transparent !important;
}

[data-theme="dark"] .gallery-media.is-sketch {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .gallery-media.is-sketch:hover {
  border: none !important;
  box-shadow: none !important;
}

[data-theme="dark"] .gallery-media.is-sketch img {
  mix-blend-mode: screen;
  filter: invert(0.92) contrast(1.1) brightness(1.05) hue-rotate(180deg);
}

.gallery-media.offset-down-25 {
  margin-top: 25%;
}

.gallery-media.offset-down-15 {
  margin-top: 15%;
}

.gallery-media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: unset !important; /* CRITICAL: NEVER CROP ANY IMAGE */
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) {
  .gallery-media:hover {
    border-color: var(--gold);
    box-shadow: 0 18px 46px rgba(20, 12, 8, 0.1);
  }
  .gallery-media.is-nobg:hover {
    border-color: transparent !important;
    box-shadow: none !important;
  }
  [data-theme="dark"] .gallery-media:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  }
  [data-theme="dark"] .gallery-media.is-nobg:hover {
    box-shadow: none !important;
  }
  .gallery-media:hover img {
    transform: scale(1.025);
  }
}

/* ============ The Hand-Off / Next Project ============ */
.project-next {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 76px) 0;
  position: relative;
}

.project-next-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.project-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: all 0.35s ease;
}

.project-back-btn svg {
  transition: transform 0.3s ease;
}

.project-back-btn:hover {
  color: var(--ink);
  border-color: var(--terra);
  transform: translateX(-3px);
}

.project-back-btn:hover svg {
  transform: translateX(-3px);
}

.project-next-link {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
  padding: 8px 0;
}

.project-next-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-next-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  display: inline-block;
  opacity: 0.85;
}

.project-next-name {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 54px);
  color: var(--ink);
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  transition: color 0.35s ease;
}

.project-next-arrow {
  font-family: var(--sans);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 300;
  color: var(--terra);
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.project-next-link:hover .project-next-name {
  color: var(--brown);
}

.project-next-link:hover .project-next-arrow {
  transform: translateX(8px);
  color: var(--brown);
}

.project-next-link:hover .project-next-kicker {
  color: var(--brown);
}

/* Dark mode styling for Next Project */
[data-theme="dark"] .project-back-btn,
body.theme-dark .project-back-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

[data-theme="dark"] .project-back-btn:hover,
body.theme-dark .project-back-btn:hover {
  border-color: var(--terra);
  color: #ffffff;
}

[data-theme="dark"] .project-next-kicker,
body.theme-dark .project-next-kicker {
  color: var(--terra);
}

[data-theme="dark"] .project-next-name,
body.theme-dark .project-next-name {
  color: var(--ivory);
}

[data-theme="dark"] .project-next-link:hover .project-next-name,
body.theme-dark .project-next-link:hover .project-next-name {
  color: var(--terra);
}

/* Fallback for legacy classes */
.project-next-link .meta { display: block; margin-bottom: 6px; }

/* ============ Footer ============ */
.site-footer { background: var(--brown); padding: 34px 0; }
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.site-footer .meta { color: rgba(247, 242, 234, 0.7); }
.footer-line { font-family: var(--serif); font-style: italic; color: var(--ivory); font-size: 19px; }

/* =====================================================
   ROOM = RIBBON (Version 36+)
   ===================================================== */
body.page-home { background: var(--menu-light); }
[data-theme="dark"] body.page-home { background: var(--menu-dark); }
body.page-home .theme-toggle { border-color: rgba(228, 194, 100, 0.55); }

/* =====================================================
   "THE INHALE" exit choreography (Version 39+)
   ===================================================== */
.reveal { position: relative; }
.reveal,
.hero-full { transform-origin: 50% 0; }

.reveal::after,
.hero-full::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(228, 194, 100, 0) 0%,
    var(--gold) 18%,
    var(--gold) 82%,
    rgba(228, 194, 100, 0) 100%);
  transform: scaleX(var(--suck, 0));
  opacity: calc(var(--suck, 0) * 0.9);
  pointer-events: none;
}

.reveal.suck-live,
.hero-full.suck-live { transition: none; }

/* ============ Missing-photo safety net ============ */
img.is-missing { display: none; }

/* ============ Slow, subtle motion ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav, .nav a { transition: none; }
  .scroll-cue, .cue-line, .cue-label { animation: none; }
  .cue-thread::after { animation: none; top: 55%; height: 30%; opacity: 0.8; }
  .scroll-cue:hover .cue-thread,
  .scroll-cue:focus-visible .cue-thread { height: 64px; }
  .proj-card, .proj-frame img, .proj-frame::after,
  .proj-copy, .proj-arrow, .offer-media img,
  .enquiry-send, .enquiry-input, .contact-chip,
  .testi-text, .testi-more,
  .testi-card, .testi-avatar, .testi-stars,
  .collage-tile, .pspec-row, .pspec-row dt::before,
  .pspec-chip, .pspec-dot { transition: none; }
  .pspec-row, .pspec-chip { animation: none; }
  .offer-grid .offer-card:nth-child(2) { transition-delay: 0s; }
  .proj-card:hover { width: var(--card-w); }
  .proj-card:hover .proj-frame img { transform: none; }
  .offer-card:hover .offer-media img { transform: none; }
  .testi-card:hover { transform: none; }
  .testi-card:hover .testi-avatar { transform: none; }
  .collage-tile:hover { transform: none; }
  .pspec-row:hover { background: none; }
  .pspec-chip:hover { transform: none; box-shadow: none; border-color: var(--brown); }
  .pspec-chip:hover .pspec-dot { transform: none; }
  .reveal::after, .hero-full::after { opacity: 0; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   TABLET tier (≤ 1024px)
   ===================================================== */
@media (max-width: 1024px) {

  .hero-portrait { width: clamp(180px, 22vw, 260px); }

  .about-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .about-photo { grid-column: 1; grid-row: 1; }
  .about-main { grid-column: 2; grid-row: 1; }
  .about-side {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: auto;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--gold-line);
    padding-top: 30px;
  }
  .about-note { max-width: 60ch; }

  .proj-head { grid-template-columns: 1fr auto; }
  .proj-blurb { grid-column: 1 / -1; max-width: 60ch; }
  .proj-card { height: clamp(360px, 50vh, 460px); }

  .testi-card { width: clamp(300px, 34vw, 380px); }

  .enquiry-plate { grid-template-columns: 1fr; }
  .enquiry-side { border-right: none; border-bottom: 1px solid var(--line); }

  /* stacked: photograph leads, then the story */
  .pintro-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .pintro-grid.pintro-flip .pintro-media { order: -1; }
  .pintro-media { aspect-ratio: 4 / 3; min-height: 0; }

  /* Tablet gallery tier */
  .gallery-flow {
    gap: 20px;
  }
  .gallery-row {
    gap: 16px;
  }
}

/* =====================================================
   MOBILE — primary tier (≤ 820px)
   ===================================================== */
@media (max-width: 820px) {

  :root {
    --card-w: clamp(260px, 72vw, 320px);
    --proj-gap: 16px;
  }

  html {
    scroll-padding-top: 68px;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  .container {
    width: min(90%, 580px);
  }

  /* ---- Header & Nav Mobile ---- */
  .site-header {
    padding-top: var(--sat);
  }
  body.menu-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
    touch-action: none;
  }

  .header-inner {
    padding: 10px 0;
    min-height: 54px;
  }
  .logo img {
    width: 156px;
    height: 40px;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 6px;
    background: transparent;
    border: none;
    position: relative;
    z-index: 60;
    touch-action: manipulation;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brown);
    cursor: pointer;
  }
  [data-theme="dark"] .menu-btn {
    color: var(--brown);
  }
  .menu-btn:active {
    opacity: 0.75;
  }
  .menu-btn-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 18px;
    height: 12px;
  }
  .menu-bar {
    display: block;
    width: 100%;
    height: 1.25px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
    transform-origin: center;
  }
  .menu-btn[aria-expanded="true"] .menu-bar:nth-child(1) {
    transform: translateY(3.1px) rotate(45deg);
  }
  .menu-btn[aria-expanded="true"] .menu-bar:nth-child(2) {
    transform: translateY(-3.1px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--ivory);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    padding: calc(72px + var(--sat)) clamp(24px, 7vw, 44px) calc(28px + var(--sab));
    border-bottom: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
                visibility 0.38s;
    z-index: 55;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  [data-theme="dark"] .nav {
    background: #1F160F;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 14px;
  }
  .nav-links a {
    display: flex;
    align-items: baseline;
    font-family: var(--serif);
    font-size: clamp(32px, 8.8vw, 46px);
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 400;
    padding: 16px 2px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease;
  }
  .nav-links a:last-child {
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after {
    display: none;
  }
  .nav.open .nav-links a {
    opacity: 1;
    transform: none;
  }
  .nav.open .nav-links a:nth-child(1) { transition-delay: 0.08s; }
  .nav.open .nav-links a:nth-child(2) { transition-delay: 0.14s; }
  .nav.open .nav-links a:nth-child(3) { transition-delay: 0.20s; }
  .nav.open .nav-links a:nth-child(4) { transition-delay: 0.26s; }

  .nav-num {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-right: 20px;
    opacity: 0.9;
  }

  .nav-reach {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--gold-line);
    margin-top: 24px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease 0.32s, transform 0.45s ease 0.32s;
  }
  .nav.open .nav-reach {
    opacity: 1;
    transform: none;
  }
  .nav-reach-title {
    font-size: 10.5px;
    letter-spacing: 0.24em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 2px;
  }
  .nav-reach-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .nav-reach-chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 400;
    color: var(--brown);
    text-decoration: none;
    padding: 8px 2px;
    background: transparent;
    border: none;
    transition: color 0.25s ease;
  }
  .nav-reach-chip svg {
    color: var(--gold);
    flex-shrink: 0;
  }
  .nav-reach-studio {
    font-size: 12px;
    letter-spacing: 0.15em;
    opacity: 0.65;
    margin-top: 4px;
    color: var(--brown);
  }

  /* ---- Hero mobile: Elegant Desktop-Equivalent Composition ---- */
  .hero-full {
    position: relative;
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(76px + var(--sat)) clamp(20px, 6vw, 36px) calc(36px + var(--sab));
    overflow: hidden;
    background: #1A120B;
  }
  .hero-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
  }
  .hero-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% center;
    transform: scale(1.02);
  }
  .hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
      180deg,
      rgba(20, 14, 9, 0.62) 0%,
      rgba(20, 14, 9, 0.44) 35%,
      rgba(20, 14, 9, 0.74) 70%,
      rgba(20, 14, 9, 0.95) 100%
    );
  }

  /* Mobile Ongoing Project Video Slide */
  .hero-slide-video {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    padding: calc(76px + var(--sat)) clamp(20px, 6vw, 36px) calc(36px + var(--sab));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.85s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
    overflow: hidden;
  }

  .hero-full.is-video-active .hero-slide-video {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero-slide-video .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.15) 40%,
      rgba(0, 0, 0, 0.45) 100%
    ) !important;
  }

  .hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Mobile: show portrait video, hide landscape video */
  .hero-video-desktop {
    display: none !important;
  }
  .hero-video-mobile {
    display: block !important;
  }

  .hero-copy-video {
    order: 1;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 0 16px 0;
    padding: 0;
  }

  /* "Spaces Underway" centered in the open floor area on mobile */
  .hero-underway-center {
    order: 2;
    position: relative;
    z-index: 4;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: auto 0;
    padding: 24px 0 40px 0;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  .hero-underway-title {
    font-family: var(--serif);
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.15;
    color: #F7F2EA;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
    margin: 0;
    text-align: center;
  }

  /* Text block: harmonious designer proportions, pure white typography */
  .hero-copy {
    order: 1;
    position: relative;
    z-index: 4;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    background: transparent;
    padding: 0;
    margin: 0 0 16px 0;
    color: #F7F2EA;
  }
  .hero-meta {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(9px, 2.4vw, 10.5px);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    color: #F7F2EA;
    margin: 0 0 14px 0;
    white-space: nowrap;
  }
  .hero-meta::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--gold) !important;
    flex: 0 0 auto;
  }
  .hero-essence {
    order: 2;
    font-family: var(--sans);
    font-size: clamp(12.5px, 3.2vw, 13.5px);
    line-height: 1.62;
    color: rgba(247, 242, 234, 0.85);
    margin: 0 0 18px 0;
    max-width: 32ch;
    font-weight: 300;
  }
  .hero-copy h1 {
    order: 3;
    font-family: var(--serif);
    font-size: clamp(36px, 9.4vw, 46px);
    line-height: 1.1;
    color: #F7F2EA;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.015em;
  }
  .hero-copy h1 em {
    font-style: italic;
    color: #F7F2EA;
  }

  /* The Second Image: Left-aligned under the text, crisp edges like desktop */
  .hero-portrait {
    order: 2;
    position: relative;
    z-index: 3;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: clamp(185px, 56vw, 245px);
    aspect-ratio: 3 / 4;
    margin: 4px 0 24px 0;
    align-self: flex-start;
    border-radius: 0;
    border: 1px solid var(--gold-line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    background: var(--cream);
    display: block;
  }
  .hero-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Scroll cue: hidden on mobile landing page per studio instruction */
  .hero-foot {
    display: none !important;
  }

  @media (min-width: 640px) and (max-width: 820px) {
    .hero-full {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      align-items: center;
      gap: 28px;
    }
    .hero-copy {
      grid-column: 1;
      margin: 0;
    }
    .hero-portrait {
      grid-column: 2;
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
    }
  }

  /* ---- About band mobile: Magazine-Quality Editorial Flow ---- */
  .about-section {
    padding: clamp(52px, 9vw, 76px) 0 clamp(40px, 7vw, 58px);
  }
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .about-main {
    order: 1;
  }
  .about-photo {
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .about-side {
    order: 3;
    border-left: none;
    border-top: 1px solid var(--gold-line);
    padding-left: 0;
    padding-top: 26px;
  }
  .about-head {
    font-size: clamp(28px, 6.8vw, 36px);
    line-height: 1.18;
  }
  .about-head::after {
    margin: 16px 0;
    width: 40px;
  }
  .about-body p {
    font-size: 15px;
    line-height: 1.78;
  }
  .about-note {
    font-size: 14.5px;
    line-height: 1.74;
  }
  .about-signature {
    height: 60px;
    max-width: 200px;
    margin: 12px 0 8px;
  }

  /* ---- Carousel mobile: Calm, Finger-Swipable Gallery ---- */
  .proj-section {
    padding: clamp(38px, 7vw, 56px) 0 clamp(48px, 8vw, 72px);
  }
  .proj-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .proj-head-main {
    width: 100%;
    align-self: flex-start !important;
    text-align: left !important;
  }
  .proj-head-main .meta {
    display: block;
    margin-bottom: 12px;
    text-align: left !important;
  }
  .proj-title {
    font-size: clamp(28px, 6.8vw, 36px);
    line-height: 1.18;
    text-align: left !important;
  }
  .proj-blurb {
    font-size: 14.5px;
    line-height: 1.7;
    text-align: left !important;
    max-width: 100%;
    margin: 0;
  }
  .proj-arrows {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    align-self: flex-start !important;
  }
  .proj-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--brown);
    display: grid;
    place-items: center;
    touch-action: manipulation;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
  }
  .proj-arrow:active {
    background: var(--brown);
    color: var(--ivory);
    border-color: var(--brown);
    transform: scale(0.94);
  }

  .proj-card {
    height: clamp(360px, 52vh, 440px);
    width: clamp(260px, 74vw, 320px) !important;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
  }
  .proj-card:hover {
    width: clamp(260px, 74vw, 320px) !important;
  }
  .proj-frame::after {
    background: linear-gradient(
      180deg,
      rgba(18, 12, 8, 0.05) 30%,
      rgba(18, 12, 8, 0.84) 100%
    ) !important;
    opacity: 1 !important;
  }
  .proj-copy {
    opacity: 1 !important;
    transform: none !important;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 22px 18px;
    pointer-events: auto !important;
  }
  .proj-cat {
    font-size: 10.5px;
    letter-spacing: 0.22em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  }
  .proj-name {
    font-size: clamp(23px, 6vw, 29px);
    color: #F7F2EA;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  }

  /* ---- Offer cards mobile: EXACTLY like desktop ---- */
  .offer-section {
    padding: clamp(28px, 6vw, 44px) 0 clamp(48px, 8vw, 72px);
  }
  .offer-head {
    margin-bottom: 24px;
  }
  .offer-title {
    font-size: clamp(28px, 6.8vw, 36px);
  }
  .offer-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .offer-card {
    display: grid;
    grid-template-columns: clamp(120px, 42%, 185px) 1fr;
    min-height: clamp(270px, 36vh, 330px);
    border-radius: 14px;
    overflow: hidden;
    background: #6b5945;
    border: 1px solid rgba(228, 194, 100, 0.28);
  }
  [data-theme="dark"] .offer-card {
    background: #382A1E;
    border-color: rgba(228, 194, 100, 0.25);
  }
  .offer-media {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: var(--cream);
    overflow: hidden;
  }
  .offer-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
  }
  .offer-card:nth-child(2) .offer-media img {
    object-position: center 88%;
  }
  .offer-body {
    padding: clamp(18px, 4vw, 28px) clamp(14px, 3.5vw, 22px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: #F7F2EA;
    background: transparent;
  }
  .offer-no {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 500;
  }
  .offer-body h3 {
    font-family: var(--serif);
    font-size: clamp(19px, 4.8vw, 25px);
    color: #F7F2EA;
    line-height: 1.2;
    margin: 0;
  }
  .offer-body p {
    font-family: var(--sans);
    font-size: clamp(12px, 3.1vw, 14px);
    line-height: 1.62;
    color: rgba(247, 242, 234, 0.88);
    margin: 0;
  }

  /* ---- Testimonial river mobile ---- */
  .testi-section {
    padding: clamp(28px, 6vw, 44px) 0 clamp(48px, 8vw, 72px);
  }
  .testi-head {
    margin-bottom: 24px;
  }
  .testi-hint {
    display: none !important;
  }
  .testi-title {
    font-size: clamp(28px, 6.8vw, 36px);
  }
  .testi-card {
    width: clamp(270px, 80vw, 340px);
    padding: 24px 20px 28px;
    border-radius: 14px;
    border: 1px solid var(--line);
  }
  .testi-card:hover {
    transform: none;
  }
  .testi-text {
    font-size: 14px;
    line-height: 1.7;
  }
  .testi-stage {
    padding-bottom: 50px;
  }
  .testi-avatar {
    width: 62px;
    height: 62px;
    bottom: -20px;
    right: 16px;
  }
  .testi-card:hover .testi-avatar {
    transform: none;
  }
  .testi-who {
    padding-top: 14px;
    padding-right: 68px;
  }
  .testi-name {
    font-size: 14px;
    font-weight: 500;
  }
  .testi-initials {
    font-size: 18px;
  }

  /* ---- Enquiry plate mobile ---- */
  .enquiry-section {
    padding: clamp(32px, 6vw, 50px) 0 clamp(48px, 8vw, 72px);
  }
  .enquiry-plate {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .plate-meta-desktop { display: none !important; }
  .plate-meta-mobile { display: flex !important; }

  .enquiry-side {
    display: contents;
  }
  .enquiry-intro {
    order: 1;
    padding: clamp(28px, 6vw, 38px) clamp(20px, 5.5vw, 32px) 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .enquiry-title {
    font-size: clamp(28px, 6.8vw, 36px);
    line-height: 1.15;
  }
  .enquiry-sub {
    font-size: 14.5px;
    line-height: 1.72;
  }
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }
  .contact-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(107, 74, 54, 0.05);
    border: 1px solid var(--line);
    gap: 12px;
    min-height: 50px;
    touch-action: manipulation;
  }
  [data-theme="dark"] .contact-item {
    background: rgba(216, 203, 184, 0.05);
  }
  a.contact-item:active {
    background: rgba(228, 194, 100, 0.16);
    transform: scale(0.98);
  }
  .contact-chip {
    width: 38px;
    height: 38px;
  }
  .contact-chip svg {
    width: 16px;
    height: 16px;
  }
  .contact-label {
    font-size: 13px;
    font-weight: 500;
  }
  .contact-value {
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
  }
  .enquiry-form-side {
    order: 2;
    padding: 0 clamp(20px, 5.5vw, 32px) clamp(28px, 6vw, 38px);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .enquiry-direct {
    order: 3;
    padding: clamp(28px, 6vw, 38px) clamp(20px, 5.5vw, 32px);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .enquiry-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .enquiry-input,
  select.enquiry-input,
  textarea.enquiry-input {
    font-size: 16px;
    padding: 12px 4px;
    min-height: 46px;
  }
  textarea.enquiry-input {
    min-height: 100px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
  }
  .enquiry-send {
    min-height: 50px;
    padding: 15px 22px;
    font-size: 12px;
    border-radius: 8px;
    touch-action: manipulation;
  }
  .enquiry-send:active {
    transform: scale(0.98);
  }

  /* ---- Project pages mobile ---- */
  .pintro {
    padding: calc(76px + var(--sat)) 0 36px;
  }
  .pintro-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .pintro-grid.pintro-flip .pintro-media,
  .pintro-grid .pintro-media {
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 11;
    min-height: 220px;
    border-radius: 10px;
  }
  .pintro-optique .pintro-media img,
  .page-optique .pintro-media img {
    object-position: center 80%;
  }
  .pintro-title {
    font-size: clamp(32px, 8vw, 44px);
  }
  .pintro-writeup {
    font-size: 15px;
    line-height: 1.8;
  }
  .pspec-row {
    padding: 11px 2px;
  }
  .pspec-row dt {
    font-size: 11px;
  }
  .pspec-row dd {
    font-size: 14px;
  }
  .pspec-chips {
    gap: 8px;
  }
  .pspec-chip {
    padding: 7px 14px;
    font-size: 10.5px;
  }

  /* ---- Project gallery mobile ---- */
  .project-gallery {
    padding: clamp(24px, 5vw, 44px) 0 clamp(48px, 8vw, 80px);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .gallery-flow {
    gap: clamp(14px, 3.2vw, 24px);
  }
  .gallery-row {
    display: grid !important;
    width: 100% !important;
    gap: clamp(10px, 2.6vw, 18px);
    align-items: start;
  }
  .gallery-row > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .gallery-row.row-full {
    grid-template-columns: 100% !important;
  }
  .gallery-row.row-duo-equal,
  .gallery-row.row-duo-compact,
  .gallery-row.row-optique-01-05 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gallery-row.row-asym-11-12 {
    grid-template-columns: minmax(0, 883fr) minmax(0, 571fr) !important;
  }
  .gallery-row.row-axis-01-02 {
    grid-template-columns: minmax(0, 883fr) minmax(0, 571fr) !important;
  }
  .gallery-row.row-axis-03-04 {
    grid-template-columns: minmax(0, 750fr) minmax(0, 801fr) !important;
  }
  .gallery-row.row-axis-07-05,
  .gallery-row.row-axis-06-05 {
    grid-template-columns: minmax(0, 774fr) minmax(0, 750fr) !important;
  }
  .gallery-row.row-optique-04-05,
  .gallery-row.row-optique-04-06 {
    grid-template-columns: minmax(0, 1291fr) minmax(0, 884fr) !important;
  }
  .gallery-row.row-optique-07-08 {
    grid-template-columns: minmax(0, 1078fr) minmax(0, 1000fr) !important;
  }
  .gallery-row.row-optique-03-02 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gallery-row.row-sanctum-02-03 {
    grid-template-columns: minmax(0, 577fr) minmax(0, 576fr) !important;
  }
  .gallery-row.row-ember-02-03 {
    grid-template-columns: minmax(0, 692fr) minmax(0, 460fr) !important;
  }
  .gallery-row.row-ember-01-05 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gallery-row.row-hearth-02-08,
  .gallery-row.row-hearth-04-05,
  .gallery-row.row-hearth-06-07 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gallery-row.row-trio-equal,
  .gallery-row.row-trio-closing,
  .gallery-row.row-trio-ember {
    grid-template-columns: 100% !important;
  }
  .gallery-media {
    border-radius: 4px;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .gallery-media img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    max-width: 100% !important;
  }

  .project-next {
    padding: 26px 0 calc(28px + var(--sab));
    border-top: 1px solid var(--line);
    box-sizing: border-box;
  }
  .project-next-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: clamp(8px, 2.5vw, 16px) !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
  }
  .project-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 7px 14px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.09em !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    color: var(--muted) !important;
    box-sizing: border-box !important;
  }
  .project-back-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .project-next-link {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    text-align: right !important;
    gap: 2px !important;
    padding: 2px 0 !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }
  .project-next-kicker {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 9px !important;
    letter-spacing: 0.14em !important;
    gap: 5px !important;
    color: var(--terra) !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
  .project-next-bullet {
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: var(--terra) !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
  }
  .project-next-name {
    font-family: var(--serif) !important;
    font-size: clamp(17px, 4.5vw, 22px) !important;
    line-height: 1.15 !important;
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    color: var(--ink) !important;
    white-space: nowrap !important;
  }
  .project-next-arrow {
    font-size: 16px !important;
    color: var(--terra) !important;
    line-height: 1 !important;
    display: inline-block !important;
  }
  [data-theme="dark"] .project-next-name,
  body.theme-dark .project-next-name {
    color: var(--ivory) !important;
  }

  /* ---- Footer mobile ---- */
  .site-footer {
    padding: 30px 0 calc(30px + var(--sab));
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .footer-line {
    font-size: 16px;
  }

  /* ---- Theme toggle mobile ---- */
  .theme-toggle {
    right: 18px;
    bottom: calc(20px + var(--sab));
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    touch-action: manipulation;
  }
  .theme-toggle:active {
    transform: scale(0.92);
  }
}

/* =====================================================
   MOBILE — small-phone tier (≤ 480px)
   ===================================================== */
@media (max-width: 480px) {

  .container {
    width: 90%;
  }

  .logo img {
    width: 142px;
    height: 36px;
  }

  .hero-portrait {
    width: clamp(170px, 54vw, 220px);
    aspect-ratio: 3 / 4;
    margin: 4px 0 20px 0;
    align-self: flex-start;
  }

  .hero-copy h1 {
    font-size: clamp(33px, 9.2vw, 40px);
    line-height: 1.1;
    margin: 0;
    color: #F7F2EA;
    letter-spacing: -0.015em;
  }
  .hero-copy h1 em {
    color: #F7F2EA;
  }
  .hero-essence {
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 16px 0;
    max-width: 30ch;
    color: rgba(247, 242, 234, 0.85);
  }

  .proj-head,
  .proj-head-main,
  .proj-title,
  .proj-blurb {
    text-align: left !important;
    align-items: flex-start !important;
  }
  .proj-arrows {
    align-self: flex-start !important;
  }

  .about-head {
    font-size: clamp(25px, 6.5vw, 30px);
  }
  .about-signature {
    height: 52px;
    max-width: 170px;
  }

  .proj-card {
    height: clamp(330px, 48vh, 400px);
    width: clamp(240px, 78vw, 300px) !important;
  }
  .proj-card:hover {
    width: clamp(240px, 78vw, 300px) !important;
  }
  .proj-name {
    font-size: 22px;
  }

  .offer-card {
    grid-template-columns: clamp(112px, 38vw, 145px) 1fr;
    min-height: 260px;
  }
  .offer-body {
    padding: 16px 14px;
    gap: 8px;
  }
  .offer-body h3 {
    font-size: clamp(17.5px, 4.8vw, 21px);
  }
  .offer-body p {
    font-size: 12px;
    line-height: 1.55;
  }

  .testi-card {
    width: 86vw;
    padding: 20px 18px 24px;
  }
  .testi-avatar {
    width: 58px;
    height: 58px;
    bottom: -18px;
    right: 14px;
  }
  .testi-who {
    padding-right: 60px;
  }
  .testi-stage {
    padding-bottom: 44px;
  }

  .enquiry-intro {
    padding: 22px 16px 8px;
  }
  .enquiry-form-side {
    padding: 0 16px 24px;
  }
  .enquiry-direct {
    padding: 22px 16px;
  }
  .enquiry-title {
    font-size: 26px;
  }
  .enquiry-send {
    padding: 14px 18px;
    font-size: 11.5px;
  }

  .pintro-title {
    font-size: 30px;
  }

  .gallery-flow {
    gap: 14px;
  }
  .gallery-row {
    display: grid !important;
    width: 100% !important;
    gap: 10px;
    align-items: start;
  }
  .gallery-row > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .gallery-row.row-full {
    grid-template-columns: 100% !important;
  }
  .gallery-row.row-duo-equal,
  .gallery-row.row-duo-compact,
  .gallery-row.row-optique-01-05 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gallery-row.row-asym-11-12 {
    grid-template-columns: minmax(0, 883fr) minmax(0, 571fr) !important;
  }
  .gallery-row.row-axis-01-02 {
    grid-template-columns: minmax(0, 883fr) minmax(0, 571fr) !important;
  }
  .gallery-row.row-axis-03-04 {
    grid-template-columns: minmax(0, 750fr) minmax(0, 801fr) !important;
  }
  .gallery-row.row-axis-07-05,
  .gallery-row.row-axis-06-05 {
    grid-template-columns: minmax(0, 774fr) minmax(0, 750fr) !important;
  }
  .gallery-row.row-optique-04-05,
  .gallery-row.row-optique-04-06 {
    grid-template-columns: minmax(0, 1291fr) minmax(0, 884fr) !important;
  }
  .gallery-row.row-optique-07-08 {
    grid-template-columns: minmax(0, 1078fr) minmax(0, 1000fr) !important;
  }
  .gallery-row.row-optique-03-02 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gallery-row.row-sanctum-02-03 {
    grid-template-columns: minmax(0, 577fr) minmax(0, 576fr) !important;
  }
  .gallery-row.row-ember-02-03 {
    grid-template-columns: minmax(0, 692fr) minmax(0, 460fr) !important;
  }
  .gallery-row.row-ember-01-05 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .gallery-row.row-hearth-02-08,
  .gallery-row.row-hearth-04-05,
  .gallery-row.row-hearth-06-07 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Compact Next Project nav on small phones */
  .project-back-btn {
    padding: 7px 12px !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    gap: 5px !important;
  }
  .project-back-btn svg {
    width: 11px !important;
    height: 11px !important;
  }
  .project-next-kicker {
    font-size: 8.5px !important;
    letter-spacing: 0.12em !important;
  }
  .project-next-name {
    font-size: clamp(16px, 4.4vw, 20px) !important;
    gap: 5px !important;
  }
  .project-next-arrow {
    font-size: 15px !important;
  }
}

/* =====================================================
   MOBILE — ultra-compact screens (≤ 360px)
   ===================================================== */
@media (max-width: 360px) {
  .project-back-btn {
    padding: 6px 9px !important;
    font-size: 9px !important;
    letter-spacing: 0.05em !important;
    gap: 4px !important;
  }
  .project-back-btn svg {
    width: 10px !important;
    height: 10px !important;
  }
  .project-next-kicker {
    font-size: 7.5px !important;
    letter-spacing: 0.08em !important;
  }
  .project-next-name {
    font-size: 15px !important;
  }
}

/* =====================================================
   MOBILE — short landscape tier
   ===================================================== */
@media (orientation: landscape) and (max-height: 520px) {

  html {
    scroll-padding-top: 60px;
  }

  .hero-full {
    min-height: 100vh;
    height: auto;
    padding: calc(64px + var(--sat)) 5% 24px;
  }
  .hero-portrait {
    display: none;
  }
  .hero-copy {
    margin-bottom: 16px;
  }
  .hero-copy h1 {
    font-size: clamp(28px, 5.5vw, 38px);
  }

  .proj-card {
    height: clamp(260px, 58vh, 320px);
  }
  .testi-stage {
    padding-bottom: 50px;
  }
  .pintro {
    padding: calc(70px + var(--sat)) 0 36px;
  }
}