/* ═══════════════════════════════════════════════════════════
   HIBA BITAR — INTERIOR DESIGN
   Shared Stylesheet · Black / White / Navy
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --black:       #0A0A0A;
  --white:       #F8F5F0;
  --off-white:   #EFEBE5;
  --navy:        #7F1D1D;
  --navy-hover:  #991B1B;
  --navy-light:  #DC2626;
  --mid:         #777777;
  --light:       #E2DDD7;
  --dark-bg:     #111111;
  --serif:       'Cormorant Garant', Georgia, serif;
  --sans:        'Jost', sans-serif;
  --transition:  0.35s ease;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 10px; height: 10px;
  background: var(--navy);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease;
  will-change: transform;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1px solid rgba(11, 24, 64, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease, border-color .3s ease;
  will-change: transform;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor { width: 6px; height: 6px; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 56px; height: 56px; border-color: var(--navy); }
body:has(.project-card:hover) #cursor,
body:has(.gal-item:hover) #cursor { background: var(--navy-light); width: 14px; height: 14px; }
body:has(.project-card:hover) #cursor-ring,
body:has(.gal-item:hover) #cursor-ring { border-color: var(--navy-light); width: 60px; height: 60px; }

/* ── SCROLL PROGRESS ─────────────────────────────────────── */
#progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 9000;
  background: linear-gradient(to right, var(--navy) var(--p, 0%), transparent var(--p, 0%));
  pointer-events: none;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  height: 72px;
  background: rgba(248, 245, 240, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
  transition: height .3s ease;
}
nav.scrolled { height: 60px; }

.nav-logo {
  font-family: var(--serif);
  font-size: 18px; font-weight: 400;
  letter-spacing: .06em;
  color: var(--black); text-decoration: none; cursor: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--navy); }

.nav-links {
  display: flex; gap: 40px; list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--black); text-decoration: none; cursor: none;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--navy);
  transition: width .3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); }

.nav-cta {
  font-family: var(--sans);
  font-size: 10px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 11px 26px;
  text-decoration: none; cursor: none;
  transition: background .3s ease, color .3s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: transparent; color: var(--navy); }

.hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: none;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--black);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 990;
  background: var(--dark-bg);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 40px;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.77, 0, .175, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 38px; font-weight: 300;
  color: var(--white); text-decoration: none;
  cursor: none; letter-spacing: .02em;
  transition: color .3s ease;
}
.mobile-menu a:hover { color: rgba(255,255,255,.5); }
.mobile-menu .mobile-cta {
  font-family: var(--sans);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
  padding: 14px 36px; margin-top: 16px;
  transition: background .3s, border-color .3s;
}
.mobile-menu .mobile-cta:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

/* ── SCROLL REVEALS ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .85s ease, transform .85s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
.d6 { transition-delay: .6s; }

/* ── TYPOGRAPHY PRIMITIVES ───────────────────────────────── */
.section-label {
  font-family: var(--sans);
  font-size: 10px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before {
  content: ''; display: block;
  width: 28px; height: 1px;
  background: var(--navy);
}
.section-label.light { color: rgba(255,255,255,.55); }
.section-label.light::before { background: rgba(255,255,255,.35); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 300; line-height: 1.08;
  color: var(--black);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--navy); }
.section-title.light { color: var(--white); }

.section-subtitle {
  font-family: var(--serif);
  font-size: 16.5px; font-weight: 300;
  line-height: 1.82; color: #555;
  max-width: 500px;
}
.section-subtitle.light { color: rgba(255,255,255,.6); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 16px 38px;
  text-decoration: none; cursor: none;
  transition: background .3s ease, color .3s ease;
}
.btn-primary:hover { background: transparent; color: var(--navy); }

.btn-outline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--navy);
  padding: 16px 38px;
  text-decoration: none; cursor: none;
  transition: background .3s ease, color .3s ease;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-white {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--white);
  padding: 16px 38px;
  text-decoration: none; cursor: none;
  transition: background .3s ease, color .3s ease;
}
.btn-white:hover { background: transparent; color: var(--white); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--black); text-decoration: none; cursor: none;
  position: relative; padding-bottom: 3px;
}
.btn-ghost::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--black);
}
.btn-ghost .arr { transition: transform .3s ease; }
.btn-ghost:hover .arr { transform: translateX(5px); }
.btn-ghost.light { color: rgba(255,255,255,.65); }
.btn-ghost.light::after { background: rgba(255,255,255,.4); }

/* ── SHARED SECTION PADDING ──────────────────────────────── */
.section { padding: 120px 72px; }
.section-dark {
  background: var(--dark-bg);
  color: var(--white);
}
.section-tinted { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, var(--light), transparent);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 48px 72px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 20px; font-weight: 300;
  letter-spacing: .04em;
}
.footer-logo span { color: var(--navy-light); }
.footer-copy {
  font-family: var(--sans);
  font-size: 10px; font-weight: 300;
  letter-spacing: .1em;
  /*color: rgba(255, 255, 255, 0.28);*/
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-family: var(--sans);
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  text-decoration: none; cursor: none;
  transition: color .3s ease;
}
.footer-links a:hover { color: rgba(255,255,255,.75); }

/* ═══════════════════════════════════════════════════════════
   INDEX PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── HERO ── */
#hero {
  height: 100vh; min-height: 700px;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 72px;
  overflow: hidden;
}
.hero-image-col { position: relative; overflow: hidden; }
.hero-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #c8c4be 0%, #a0998e 50%, #7a7268 100%);
  filter: grayscale(100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-img-ph::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 70px, rgba(0,0,0,.025) 70px, rgba(0,0,0,.025) 71px),
    repeating-linear-gradient(90deg, transparent, transparent 70px, rgba(0,0,0,.025) 70px, rgba(0,0,0,.025) 71px);
}
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); }
.hero-awards {
  position: absolute; bottom: 40px; left: 32px;
  display: flex; flex-direction: column; gap: 8px; z-index: 2;
}
.award-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase;
  padding: 9px 16px;
  backdrop-filter: blur(8px);
}
.award-badge::before { content: '★'; color: rgba(255,255,255,.6); font-size: 9px; }

.hero-text-col {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 72px 80px 64px;
  position: relative;
}
.hero-overline {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
}
.hero-overline::before {
  content: ''; display: block;
  width: 40px; height: 1px; background: var(--navy);
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(54px, 5.4vw, 88px);
  font-weight: 300; line-height: .94;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.hero-h1 em { display: block; font-style: italic; font-weight: 300; color: var(--navy); }
.hero-title-line {
  font-family: var(--sans); font-size: 10.5px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--mid); margin: 30px 0 36px;
}
.hero-intro {
  font-family: var(--serif); font-size: 17px; font-weight: 300;
  line-height: 1.78; color: #4a4a4a;
  max-width: 400px; margin-bottom: 48px;
}
.hero-ctas { display: flex; align-items: center; gap: 32px; }

.hero-stat-strip {
  position: absolute; bottom: 0; right: 0;
  background: var(--navy);
  color: var(--white);
  display: flex;
}
.hero-stat {
  padding: 24px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.hero-stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--serif); font-size: 32px; font-weight: 300;
  display: block; line-height: 1;
}
.stat-label {
  font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block; margin-top: 5px;
}

/* ── ABOUT ── */
#about {
  background: var(--dark-bg);
  padding: 0;
  overflow: hidden;
}
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
}
.about-image-side { position: relative; overflow: hidden; }
.about-img-ph {
  width: 100%; min-height: 640px; height: 100%;
  background: linear-gradient(180deg, #262626 0%, #161616 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-img-ph::after {
  content: 'HB';
  font-family: var(--serif); font-size: 200px; font-weight: 300;
  color: rgba(255,255,255,.03); letter-spacing: -.04em;
  position: absolute; bottom: -30px; right: -10px; pointer-events: none;
}
.about-img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; filter: grayscale(100%); }
.about-content {
  padding: 100px 80px 100px 72px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-content .section-label { color: rgba(255,255,255,.45); }
.about-content .section-label::before { background: rgba(255,255,255,.3); }
.about-bio {
  font-family: var(--serif); font-size: 16.5px; font-weight: 300;
  line-height: 1.88; color: rgba(255, 255, 255, 0.65);
  margin-bottom: 22px;
}
.about-blockquote {
  font-family: var(--serif); font-size: 21px; font-style: italic; font-weight: 300;
  color: rgba(255,255,255,.8);
  border-left: 2px solid var(--navy-light);
  padding-left: 24px; margin: 36px 0;
  line-height: 1.55;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.tag {
  font-family: var(--sans); font-size: 9px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
}
.tag.navy {
  background: var(--navy); border-color: var(--navy);
  color: var(--white);
}
.location-row {
  display: flex; gap: 28px; margin-top: 40px; align-items: center;
}
.location-item {
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em;
  color: rgba(255, 255, 255, 0.45);
  display: flex; align-items: center; gap: 8px;
}
.location-item::before { content: '◎'; color: var(--navy-light); font-size: 10px; }

/* ── SERVICES ── */
#services { padding: 120px 72px; background: var(--off-white); }
.services-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; align-items: start; margin-top: 64px;
}
.services-sticky { position: sticky; top: 100px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.service-card {
  background: var(--white);
  padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: background .3s ease;
}
.service-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--navy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { background: #ece8e2; }
.svc-num {
  font-family: var(--serif); font-size: 13px; font-weight: 300;
  color: var(--navy); letter-spacing: .1em; margin-bottom: 18px;
}
.svc-name {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: var(--black); margin-bottom: 12px; line-height: 1.22;
}
.svc-desc {
  font-family: var(--sans); font-size: 12.5px; font-weight: 300;
  line-height: 1.75; color: #666;
}
.svc-badge {
  display: inline-block; margin-top: 16px;
  font-family: var(--sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); border: 1px solid var(--navy); padding: 5px 12px;
}

/* ── TESTIMONIALS ── */
#testimonials { background: var(--dark-bg); padding: 120px 72px; position: relative; overflow: hidden; }
#testimonials::before {
  content: '"'; font-family: var(--serif);
  font-size: 680px; color: rgba(255,255,255,.018);
  position: absolute; top: -160px; left: -60px;
  line-height: 1; pointer-events: none;
}
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 64px;
}
.testi-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 36px;
  transition: border-color .3s ease, background .3s ease;
}
.testi-card:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.025); }
.stars { display: flex; gap: 4px; margin-bottom: 22px; }
.star { color: var(--navy-light); font-size: 12px; }
.testi-quote {
  font-family: var(--serif); font-size: 16px; font-weight: 300; font-style: italic;
  line-height: 1.85; color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}
.testi-line { width: 28px; height: 1px; background: var(--navy-light); margin-bottom: 18px; }
.testi-author {
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 4px;
}
.testi-role {
  font-family: var(--sans); font-size: 10px; font-weight: 300;
  color: rgba(255, 255, 255, 0.35); letter-spacing: .08em;
}

/* ── CONTACT ── */
#contact { padding: 120px 72px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-details { margin-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.contact-item {
  border-left: 1px solid var(--light); padding-left: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-item-label {
  font-family: var(--sans); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy);
}
.contact-item-value {
  font-family: var(--serif); font-size: 16px; font-weight: 300;
  color: var(--black); text-decoration: none;
  transition: color .3s ease;
}
a.contact-item-value:hover { color: var(--navy); }
.contact-locations { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.contact-loc {
  font-family: var(--sans); font-size: 11px; letter-spacing: .12em;
  color: #666;
  display: flex; align-items: center; gap: 10px;
}
.contact-loc::before { content: '◎'; color: var(--navy); font-size: 10px; }
.social-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.social-link {
  font-family: var(--sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--black);
  border: 1px solid var(--light);
  padding: 10px 18px; text-decoration: none; cursor: none;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.social-link:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--sans); font-size: 9px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--mid);
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  color: var(--black); background: transparent;
  border: none; border-bottom: 1px solid var(--light);
  padding: 12px 0; outline: none; width: 100%;
  transition: border-color .3s ease;
  appearance: none; cursor: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: #bbb; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-bottom-color: var(--navy); }
.form-textarea { resize: none; height: 120px; }
.form-submit {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--white); background: var(--navy);
  border: 1px solid var(--navy);
  padding: 18px 48px; cursor: none;
  align-self: flex-start;
  transition: background .3s ease, color .3s ease;
}
.form-submit:hover { background: transparent; color: var(--navy); }
.form-submit:disabled { opacity: .6; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   PROJECTS PAGE
   ═══════════════════════════════════════════════════════════ */

.projects-hero {
  height: 44vh; min-height: 380px;
  background: var(--dark-bg);
  display: flex; align-items: flex-end;
  padding: 0 72px 64px;
  padding-top: 72px;
  position: relative; overflow: hidden;
}
.projects-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 70px, rgba(255,255,255,.014) 70px, rgba(255,255,255,.014) 71px),
    repeating-linear-gradient(90deg, transparent, transparent 70px, rgba(255,255,255,.014) 70px, rgba(255,255,255,.014) 71px);
}
.projects-hero-inner {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end;
  width: 100%;
}
.projects-hero .section-title { font-size: clamp(52px, 6vw, 96px); margin-bottom: 0; }

.projects-filter {
  padding: 32px 72px;
  border-bottom: 1px solid var(--light);
  display: flex; align-items: center; gap: 0;
  background: var(--white);
  position: sticky; top: 60px; z-index: 100;
}
.filter-label {
  font-family: var(--sans); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mid); margin-right: 28px;
}
.filter-btn {
  font-family: var(--sans); font-size: 9.5px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--mid); background: none; border: none;
  cursor: none; padding: 8px 20px;
  transition: color .25s ease, background .25s ease;
  position: relative;
}
.filter-btn.active { color: var(--white); background: var(--navy); }
.filter-btn:not(.active):hover { color: var(--black); }

/* Projects grid */
.projects-section { padding: 64px 72px 120px; }
.projects-count {
  font-family: var(--sans); font-size: 10px; letter-spacing: .14em;
  color: var(--mid); margin-bottom: 48px;
}
.projects-count span { color: var(--black); font-weight: 400; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px; row-gap: 48px;
}
.project-card {
  position: relative; overflow: hidden;
  cursor: none; grid-column: span 4;
}
.project-card.w-wide   { grid-column: span 8; }
.project-card.w-half   { grid-column: span 6; }
.project-card.w-third  { grid-column: span 4; }
.project-card.w-full   { grid-column: span 12; }

.project-thumb {
  position: relative; overflow: hidden;
  background: #c8c4be;
}
.project-card .project-thumb { aspect-ratio: 4/3; }
.project-card.w-wide .project-thumb { aspect-ratio: 16/9; }
.project-card.w-full .project-thumb { aspect-ratio: 21/8; }

.thumb-ph {
  width: 100%; height: 100%;
  filter: grayscale(100%) contrast(1.06);
  transform: scale(1.04);
  transition: filter .75s ease, transform .8s ease;
}
.project-card:hover .thumb-ph {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.09);
}
.thumb-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transform: scale(1.04);
  transition: filter .75s ease, transform .8s ease;
}
.project-card:hover .thumb-img { filter: grayscale(0%); transform: scale(1.09); }

/* Placeholder colours — grayscale by default, reveal on hover */
.ph-a { background: linear-gradient(135deg, #c4c0ba 0%, #9a948c 100%); }
.ph-b { background: linear-gradient(135deg, #aab0b8 0%, #788088 100%); }
.ph-c { background: linear-gradient(135deg, #c0b4a8 0%, #90806e 100%); }
.ph-d { background: linear-gradient(135deg, #b8b4b0 0%, #888480 100%); }
.ph-e { background: linear-gradient(135deg, #bfbaae 0%, #938c80 100%); }
.ph-f { background: linear-gradient(135deg, #a8b2bc 0%, #707e88 100%); }
.ph-g { background: linear-gradient(135deg, #bdb0a0 0%, #8c7c6c 100%); }
.ph-h { background: linear-gradient(135deg, #aeacaa 0%, #848280 100%); }
.project-card:hover .ph-a { background: linear-gradient(135deg, #eeddd0 0%, #d4b898 100%); }
.project-card:hover .ph-b { background: linear-gradient(135deg, #c4d8e8 0%, #8ab0cc 100%); }
.project-card:hover .ph-c { background: linear-gradient(135deg, #e8d8c4 0%, #c8a880 100%); }
.project-card:hover .ph-d { background: linear-gradient(135deg, #dcdad8 0%, #b8b4b0 100%); }
.project-card:hover .ph-e { background: linear-gradient(135deg, #ecddc8 0%, #c8a87c 100%); }
.project-card:hover .ph-f { background: linear-gradient(135deg, #ccdcec 0%, #8cb0cc 100%); }
.project-card:hover .ph-g { background: linear-gradient(135deg, #e8d4c0 0%, #c09c80 100%); }
.project-card:hover .ph-h { background: linear-gradient(135deg, #dcd8d4 0%, #b0acaa 100%); }

.ph-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,255,255,.05) 48px, rgba(255,255,255,.05) 49px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,.05) 48px, rgba(255,255,255,.05) 49px);
}
.card-num {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--serif); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,.6); letter-spacing: .04em; z-index: 2;
}
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.68) 0%, transparent 55%);
  opacity: 0; transition: opacity .5s ease;
  display: flex; align-items: flex-end; padding: 22px;
}
.project-card:hover .card-overlay { opacity: 1; }
.overlay-link {
  font-family: var(--sans); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(255,255,255,.55);
  padding: 9px 20px; text-decoration: none; cursor: none;
  transition: background .3s ease;
}
.overlay-link:hover { background: rgba(255,255,255,.15); }
.card-meta { padding: 18px 0 0; }
.card-client {
  font-family: var(--sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 5px;
}
.card-name {
  font-family: var(--serif); font-size: 19px; font-weight: 400;
  color: var(--black); margin-bottom: 4px;
}
.card-desc {
  font-family: var(--sans); font-size: 12px; font-weight: 300;
  color: var(--mid);
}

/* ═══════════════════════════════════════════════════════════
   PROJECT DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

/* Detail hero */
.detail-hero {
  height: 100vh; min-height: 680px;
  position: relative; overflow: hidden;
  background: var(--dark-bg);
  display: flex; align-items: flex-end;
}
.detail-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #2a2520 0%, #181410 50%, #0c0a08 100%);
  overflow: hidden;
}
.detail-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(255,255,255,.016) 80px, rgba(255,255,255,.016) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,.016) 80px, rgba(255,255,255,.016) 81px);
}
.detail-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(25%) brightness(.72);
  transform: scale(1.04);
  animation: heroZoom 14s ease forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,.9) 0%, rgba(8,8,8,.3) 50%, transparent 100%);
}
.detail-hero-content {
  position: relative; z-index: 2;
  padding: 0 72px 72px;
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: flex-end; gap: 48px;
}
.detail-crumb {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.detail-crumb a { color: rgba(255,255,255,.4); text-decoration: none; cursor: none; transition: color .3s; }
.detail-crumb a:hover { color: rgba(255,255,255,.7); }
.detail-crumb-sep { color: rgba(255,255,255,.2); }
.detail-crumb span { color: rgba(255,255,255,.7); }
.detail-h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 5.8vw, 94px);
  font-weight: 300; line-height: .93;
  color: var(--white); letter-spacing: -.01em;
}
.detail-h1 em { display: block; font-style: italic; font-weight: 300; color: rgba(255,255,255,.65); }
.detail-tagline {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-top: 22px;
}
.detail-hero-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 380px; margin-left: auto;
}
.detail-spec { border-left: 1px solid rgba(255,255,255,.12); padding-left: 14px; }
.spec-label {
  font-family: var(--sans); font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.35); display: block; margin-bottom: 5px;
}
.spec-val {
  font-family: var(--serif); font-size: 17px; font-weight: 300;
  color: var(--white); display: block;
}
.detail-scroll-hint {
  position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 3;
}
.detail-scroll-hint span {
  font-family: var(--sans); font-size: 8px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrollPulse 2.2s ease infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* Overview strip */
.overview-strip {
  background: var(--navy); color: var(--white);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.ov-item {
  padding: 32px 36px;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: background .3s ease;
}
.ov-item:last-child { border-right: none; }
.ov-item:hover { background: rgba(255,255,255,.05); }
.ov-label {
  font-family: var(--sans); font-size: 8px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.4); display: block; margin-bottom: 8px;
}
.ov-val {
  font-family: var(--serif); font-size: 17px; font-weight: 400;
  color: var(--white); display: block;
}

/* Concept section */
#concept {
  padding: 120px 72px;
  display: grid; grid-template-columns: 1fr 1.65fr;
  gap: 96px; align-items: start;
}
.concept-sticky { position: sticky; top: 100px; }
.concept-data {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-top: 48px;
}
.c-data {
  background: var(--off-white); padding: 28px 24px;
  transition: background .3s ease;
}
.c-data:hover { background: var(--light); }
.c-data-num {
  font-family: var(--serif); font-size: 38px; font-weight: 300;
  color: var(--navy); display: block; line-height: 1;
}
.c-data-label {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mid); margin-top: 6px; display: block;
}
.concept-body {
  font-family: var(--serif); font-size: 17.5px; font-weight: 300;
  line-height: 1.9; color: #4a4a4a;
}
.concept-body p + p { margin-top: 24px; }
.pull-quote {
  font-family: var(--serif); font-size: 21px; font-weight: 300; font-style: italic;
  color: var(--navy); line-height: 1.58;
  border-left: 2px solid var(--navy);
  padding-left: 28px; margin: 48px 0;
}

/* Gallery section */
#gallery { padding: 0 72px 120px; }
.gallery-header { margin-bottom: 52px; }
.gallery-hint {
  font-family: var(--sans); font-size: 11px; letter-spacing: .06em;
  color: var(--mid); margin-top: 12px;
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 14px; row-gap: 14px;
}
.gal-item {
  position: relative; overflow: hidden;
  cursor: none; background: #c8c4be;
}
.g-12 { grid-column: span 12; }
.g-8  { grid-column: span 8; }
.g-4  { grid-column: span 4; }
.g-6  { grid-column: span 6; }
.g-5  { grid-column: span 5; }
.g-7  { grid-column: span 7; }
.g-3  { grid-column: span 3; }

.gal-inner { width: 100%; height: 100%; position: relative; overflow: hidden; }
.g-12 .gal-inner { aspect-ratio: 21/8; }
.g-8  .gal-inner { aspect-ratio: 4/3; }
.g-4  .gal-inner { aspect-ratio: 3/4; }
.g-6  .gal-inner { aspect-ratio: 1/1; }
.g-5  .gal-inner { aspect-ratio: 4/3; }
.g-7  .gal-inner { aspect-ratio: 4/3; }
.g-3  .gal-inner { aspect-ratio: 3/4; }

.gal-ph {
  width: 100%; height: 100%;
  filter: grayscale(100%) contrast(1.06);
  transform: scale(1.04);
  transition: filter .72s ease, transform .78s ease;
}
.gal-item:hover .gal-ph { filter: grayscale(0%); transform: scale(1.09); }
.gal-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transform: scale(1.04);
  transition: filter .72s ease, transform .78s ease;
}
.gal-item:hover .gal-img { filter: grayscale(0%); transform: scale(1.09); }

.gal-num {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--serif); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,.6); z-index: 2;
}
.gal-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 22px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform .42s cubic-bezier(.25,.46,.45,.94);
}
.gal-item:hover .gal-caption { transform: none; }
.gal-room {
  font-family: var(--sans); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.65); display: block; margin-bottom: 4px;
}
.gal-title-cap {
  font-family: var(--serif); font-size: 14px; font-weight: 300;
  color: var(--white); display: block;
}
.gal-expand {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease; cursor: none;
}
.gal-item:hover .gal-expand { opacity: 1; }
.gal-expand svg { width: 13px; height: 13px; color: #fff; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,.96);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s ease;
}
#lightbox.active { display: flex; }
#lightbox.visible { opacity: 1; }
.lb-close {
  position: fixed; top: 28px; right: 36px;
  font-family: var(--serif); font-size: 32px; color: rgba(255,255,255,.55);
  background: none; border: none; cursor: none;
  transition: color .3s ease;
}
.lb-close:hover { color: var(--white); }
.lb-nav-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 36px; color: rgba(255,255,255,.4);
  background: none; border: none; cursor: none; padding: 0 28px;
  transition: color .3s ease;
}
.lb-nav-btn:hover { color: var(--white); }
/*#lb-prev { left: 0; }
#lb-next { right: 0; }*/

#lb-prev-modal { left: 0; position: fixed;}
#lb-next-modal { right: 0; position: fixed; }

.lb-nav-btn-modal:hover { color: var(--white); }

.lb-nav-btn-modal {
  font-family: var(--serif); font-size: 36px; color: rgba(111, 111, 111, 0.4);
  background: none; border: none; cursor: none; padding: 0 28px;
  transition: color .3s ease;
}

.pmodal-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.lb-nav-btn-modal:hover { color: var(--black); }

.lb-inner {
  max-width: 88vw; max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-ph {
  width: min(900px, 78vw); height: min(580px, 68vh);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 17px; font-style: italic;
  color: rgba(255,255,255,.25); text-align: center; padding: 40px;
}
.lb-info {
  position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%);
  text-align: center;
}
.lb-room-label {
  font-family: var(--sans); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.45); display: block; margin-bottom: 5px;
}
.lb-title-label {
  font-family: var(--serif); font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,.65); display: block;
}
.lb-counter {
  font-family: var(--sans); font-size: 9px; letter-spacing: .14em;
  color: rgba(255,255,255,.25); display: block; margin-top: 10px;
}

/* Materials */
#materials { background: var(--dark-bg); padding: 120px 72px; }
.materials-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; align-items: start; margin-top: 64px;
}
.materials-sticky { position: sticky; top: 100px; }
.mat-desc {
  font-family: var(--serif); font-size: 16px; font-weight: 300;
  line-height: 1.85; color: rgba(255,255,255,.58); margin-top: 12px;
}
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mat-card { cursor: none; }
.mat-swatch {
  width: 100%; height: 130px;
  position: relative; overflow: hidden;
  filter: grayscale(100%); transition: filter .6s ease;
}
.mat-card:hover .mat-swatch { filter: grayscale(0%); }
.sw-marble  { background: linear-gradient(135deg, #d8d4ce 25%, #c0bab4 55%, #e4e0da 80%); }
.sw-velvet  { background: linear-gradient(135deg, #1a1228 0%, #2e1e40 50%, #120c1e 100%); }
.sw-brass   { background: linear-gradient(135deg, #c09020 0%, #d8a840 50%, #a07818 100%); }
.sw-oak     { background: linear-gradient(135deg, #b08060 0%, #c89870 50%, #987048 100%); }
.sw-linen   { background: linear-gradient(135deg, #e0dbd4 0%, #d0cbc4 100%); }
.sw-plaster { background: linear-gradient(135deg, #c8c2bc 0%, #d8d2cc 100%); }
.swatch-lines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,.04) 8px, rgba(255,255,255,.04) 9px);
}
.mat-info { padding: 14px 0 0; }
.mat-name {
  font-family: var(--serif); font-size: 17px; font-weight: 400;
  color: var(--white); display: block; margin-bottom: 3px;
}
.mat-source {
  font-family: var(--sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.32); display: block; margin-bottom: 5px;
}
.mat-use {
  font-family: var(--sans); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,.48); line-height: 1.6;
}

/* Process */
#process { padding: 120px 72px; }
.process-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; margin-top: 64px;
}
.process-panel {
  background: var(--navy); padding: 56px 48px;
  position: sticky; top: 100px; overflow: hidden;
}
.panel-quote {
  font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 300;
  color: rgba(255,255,255,.72); line-height: 1.62;
}
.panel-author {
  font-family: var(--sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); margin-top: 28px;
}
.panel-deco {
  position: absolute; bottom: -40px; right: -20px;
  font-family: var(--serif); font-size: 220px; font-weight: 300;
  color: rgba(255,255,255,.025); line-height: 1; pointer-events: none;
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  border-bottom: 1px solid var(--light); padding: 32px 0;
  display: grid; grid-template-columns: 48px 1fr; gap: 24px;
  transition: padding-left .3s ease;
}
.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: none; }
.process-step:hover { padding-left: 8px; }
.ps-num {
  font-family: var(--serif); font-size: 30px; font-weight: 300;
  color: var(--navy); line-height: 1;
}
.ps-phase {
  font-family: var(--sans); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 6px;
}
.ps-name {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: var(--black); margin-bottom: 8px;
}
.ps-desc {
  font-family: var(--sans); font-size: 12.5px; font-weight: 300;
  line-height: 1.75; color: #666;
}
.ps-dur {
  display: inline-block; margin-top: 12px;
  font-family: var(--sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); border: 1px solid var(--navy); padding: 4px 12px;
}

/* Before/After */
#beforeafter { padding: 0 72px 120px; }
.ba-wrap {
  position: relative; overflow: hidden; cursor: none; user-select: none;
}
.ba-base { width: 100%; aspect-ratio: 16/7; display: block; }
.ba-base-ph {
  width: 100%; aspect-ratio: 16/7;
  background: linear-gradient(135deg, #b4aea8 0%, #888280 100%);
  filter: grayscale(100%);
  position: relative;
}
.ba-reveal {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 50%; overflow: hidden;
}
.ba-reveal-ph {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--fw, 100%);
  background: linear-gradient(135deg, #d8c8b0 0%, #b89c78 100%);
}
.ba-divider-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: var(--white);
  transform: translateX(-50%); z-index: 3;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.ba-handle svg { width: 18px; height: 18px; color: var(--navy); }
.ba-labels {
  position: absolute; bottom: 20px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 24px;
  z-index: 4; pointer-events: none;
}
.ba-label {
  font-family: var(--sans); font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  padding: 7px 16px; backdrop-filter: blur(8px);
}
.ba-label.before { background: rgba(10,10,10,.7); color: rgba(255,255,255,.8); }
.ba-label.after  { background: var(--navy); color: var(--white); }

/* Credits */
#credits { padding: 80px 72px; background: var(--off-white); }
.credits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 48px;
}
.credit-card {
  background: var(--white); padding: 28px 24px;
  border-bottom: 2px solid transparent;
  transition: border-color .3s ease;
}
.credit-card:hover { border-bottom-color: var(--navy); }
.credit-role {
  font-family: var(--sans); font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); display: block; margin-bottom: 10px;
}
.credit-name {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  color: var(--black); display: block; margin-bottom: 4px;
}
.credit-detail {
  font-family: var(--sans); font-size: 11px; font-weight: 300; color: var(--mid);
}

/* Nav back (detail page) */
.nav-back {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; cursor: none;
  transition: color .3s ease;
}
.nav-back:hover { color: var(--black); }
.nav-back .arr { transition: transform .3s ease; }
.nav-back:hover .arr { transform: translateX(-4px); }
.nav-right {
  display: flex; align-items: center; gap: 28px;
}
.nav-proj-num {
  font-family: var(--serif); font-size: 13px; font-weight: 300;
  color: var(--mid); letter-spacing: .06em;
}

/* CTA Banner */
.cta-banner {
  background: var(--navy); padding: 100px 72px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 60px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,.022) 60px, rgba(255,255,255,.022) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,.022) 60px, rgba(255,255,255,.022) 61px);
}
.cta-banner::after {
  content: 'HB';
  position: absolute; right: 160px; bottom: -60px;
  font-family: var(--serif); font-size: 260px; font-weight: 300;
  color: rgba(255,255,255,.025); line-height: 1; pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 58px);
  font-weight: 300; color: var(--white); line-height: 1.1;
}
.cta-title em { font-style: italic; color: rgba(255,255,255,.65); }
.cta-actions {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  #concept { grid-template-columns: 1fr; gap: 48px; }
  .concept-sticky { position: relative; top: 0; }
  .materials-layout { grid-template-columns: 1fr; }
  .materials-sticky { position: relative; }
  .process-layout { grid-template-columns: 1fr; }
  .process-panel { position: relative; top: 0; }
  .credits-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; gap: 40px; }
  .services-layout { grid-template-columns: 1fr; gap: 48px; }
  .services-sticky { position: relative; top: 0; }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  #hero { grid-template-columns: 1fr; height: auto; min-height: 100vh; }
  .hero-image-col { height: 52vh; }
  .hero-text-col { padding: 48px 24px 80px; }
  .hero-stat-strip { position: relative; width: 100%; }

  .about-inner { grid-template-columns: 1fr; }
  .about-img-ph, .about-img { min-height: 400px; }
  .about-content { padding: 56px 24px; }

  .section { padding: 80px 24px; }
  #services, #testimonials, #contact { padding: 80px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  .projects-hero { padding: 0 24px 48px; padding-top: 72px; }
  .projects-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .projects-filter { padding: 24px; gap: 0; flex-wrap: wrap; }
  .projects-section { padding: 40px 24px 80px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card, .project-card.w-wide, .project-card.w-full,
  .project-card.w-half, .project-card.w-third { grid-column: span 2; }
  .project-card.w-full .project-thumb { aspect-ratio: 4/3; }

  .detail-hero-content { grid-template-columns: 1fr; padding: 0 24px 56px; }
  .detail-hero-specs { margin-left: 0; margin-top: 36px; }
  .overview-strip { grid-template-columns: repeat(2, 1fr); }
  #concept, #gallery, #materials, #process, #beforeafter, #credits { padding-left: 24px; padding-right: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-12,.g-8,.g-4,.g-6,.g-5,.g-7,.g-3 { grid-column: span 2; }
  .g-12 .gal-inner,.g-8 .gal-inner,.g-5 .gal-inner,.g-7 .gal-inner { aspect-ratio: 4/3; }
  .g-4 .gal-inner, .g-3 .gal-inner { aspect-ratio: 4/3; }
  .materials-grid { grid-template-columns: 1fr 1fr; }
  .credits-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 80px 24px; }

  footer { flex-direction: column; gap: 24px; text-align: center; padding: 40px 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 540px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.w-wide, .project-card.w-full,
  .project-card.w-half, .project-card.w-third { grid-column: span 1; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-12,.g-8,.g-4,.g-6,.g-5,.g-7,.g-3 { grid-column: span 1; }
  .materials-grid { grid-template-columns: 1fr; }
  .hero-stat-strip { flex-wrap: wrap; }
  .detail-hero-specs { grid-template-columns: 1fr 1fr; }
  .overview-strip { grid-template-columns: 1fr 1fr; }
}

/* ── MOBILE: restore native cursor ── */
@media (hover: none) and (pointer: coarse) {
  #cursor,
  #cursor-ring { display: none !important; }
  body,
  a, button,
  input, select, textarea,
  .nav-cta, .form-submit,
  .social-link, .filter-btn,
  .overlay-link, .view-btn { cursor: auto; }
  a, button, .overlay-link, .view-btn { cursor: pointer; }
}

/* ═══════════════════════════════════════════════════════════
   DARK MODE — [data-theme="dark"]
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --black:      #F0ECE6;
  --white:      #ffffff;
  --off-white:  #121212;
  --navy:       #7F1D1D;
  --navy-hover: #991B1B;
  --navy-light: #DC2626;
  --mid:        #b2afaf;
  --light:      #252525;
  --dark-bg:    #080808;
}

/* ── BODY ── */
[data-theme="dark"] body { background: #0C0C0C; color: #F0ECE6; }

/* ── NAV ── */
[data-theme="dark"] nav {
  background: rgba(12, 12, 12, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .nav-logo { color: #F0ECE6; }
[data-theme="dark"] .nav-links a { color: #F0ECE6; }
[data-theme="dark"] .nav-links a::after { background: #DC2626; }
[data-theme="dark"] .nav-links a.active { color: #DC2626; }
[data-theme="dark"] .hamburger span { background: #F0ECE6; }

/* ── CURSOR ── */
[data-theme="dark"] #cursor { background: #DC2626; }
[data-theme="dark"] #cursor-ring { border-color: rgba(74, 112, 240, 0.4); }

/* ── SCROLL PROGRESS ── */
[data-theme="dark"] #progress { background: linear-gradient(to right, #DC2626 var(--p, 0%), transparent var(--p, 0%)); }

/* ── HERO ── */
[data-theme="dark"] #home { background: #0C0C0C; }
[data-theme="dark"] .hero-img-ph {
  background: linear-gradient(160deg, #1a1a1a 0%, #141414 50%, #0e0e0e 100%);
}
[data-theme="dark"] .hero-overline { color: #fff; }
[data-theme="dark"] .hero-overline::before { background: #DC2626; }
[data-theme="dark"] .hero-h1 { color: #F0ECE6; }
[data-theme="dark"] .hero-h1 em { color: #DC2626; }
[data-theme="dark"] .hero-title-line { color: #fff; }
[data-theme="dark"] .hero-intro { color: #aaa; }
/*[data-theme="dark"] .award-badge { background: rgba(42, 79, 214, 0.85); }*/
[data-theme="dark"] .hero-stat-strip { background: #111; border-top: 1px solid #222; }
[data-theme="dark"] .hero-stat { border-left-color: #222; }

/* ── SECTION LABEL ── */
[data-theme="dark"] .section-label { color: #DC2626; }
[data-theme="dark"] .section-label::before { background: #DC2626; }
[data-theme="dark"] .section-title { color: #F0ECE6; }
[data-theme="dark"] .section-title em { color: #DC2626; }
[data-theme="dark"] .section-subtitle { color: #888; }

/* ── BUTTONS ── */
[data-theme="dark"] .btn-primary { background: #7F1D1D; border-color: #7F1D1D; color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: transparent; color: #DC2626; border-color: #DC2626; }
[data-theme="dark"] .btn-outline { color: #DC2626; border-color: #DC2626; }
[data-theme="dark"] .btn-outline:hover { background: #7F1D1D; color: #fff; }
[data-theme="dark"] .btn-ghost { color: #aaa; }
[data-theme="dark"] .btn-ghost::after { background: #444; }
[data-theme="dark"] .btn-ghost:hover { color: #F0ECE6; }
[data-theme="dark"] .nav-cta { background: #7F1D1D; border-color: #7F1D1D; }
[data-theme="dark"] .nav-cta:hover { background: transparent; color: #DC2626; border-color: #DC2626; }

/* ── ABOUT ── */
[data-theme="dark"] #about { background: #080808; }
[data-theme="dark"] .about-img-ph { background: linear-gradient(180deg, #141414 0%, #0e0e0e 100%); }
[data-theme="dark"] .about-content .section-label { color: #DC2626; }
[data-theme="dark"] .about-content .section-label::before { background: #DC2626; }
[data-theme="dark"] .about-blockquote { border-left-color: #7F1D1D; color: rgba(240,236,230,.75); }
[data-theme="dark"] .tag { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.5); }
[data-theme="dark"] .tag.navy { background: #7F1D1D; border-color: #7F1D1D; color: #fff; }
[data-theme="dark"] .location-item::before { color: #DC2626; }

/* ── FEATURED / PROJECTS ── */
[data-theme="dark"] .projects-section { background: #0C0C0C; }
[data-theme="dark"] .card-client { color: #DC2626; }
[data-theme="dark"] .card-name { color: #F0ECE6; }
[data-theme="dark"] .card-desc { color: #fff; }
[data-theme="dark"] .projects-count { color: #555; }
[data-theme="dark"] .projects-count span { color: #F0ECE6; }

/* ── SERVICES ── */
[data-theme="dark"] #services,
[data-theme="dark"] .section-tinted { background: #111; }
[data-theme="dark"] .service-card { background: #181818; }
[data-theme="dark"] .service-card:hover { background: #1e1e1e; }
[data-theme="dark"] .service-card::after { background: #DC2626; }
[data-theme="dark"] .svc-num { color: #DC2626; }
[data-theme="dark"] .svc-name { color: #F0ECE6; }
[data-theme="dark"] .svc-desc { color: #777; }
[data-theme="dark"] .svc-badge { color: #DC2626; border-color: #DC2626; }
[data-theme="dark"] .location-item { color: #fff; }

/* ── TESTIMONIALS ── */
[data-theme="dark"] #testimonials { background: #080808; }
[data-theme="dark"] .testi-card { border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .testi-card:hover { border-color: rgba(74,112,240,.3); background: rgba(255,255,255,.02); }
[data-theme="dark"] .star { color: #7F1D1D; }
[data-theme="dark"] .testi-line { background: #7F1D1D; }

/* ── CONTACT ── */
[data-theme="dark"] #contact { background: #0C0C0C; }
[data-theme="dark"] .contact-item { border-left-color: #222; }
[data-theme="dark"] .contact-item-label { color: #DC2626; }
[data-theme="dark"] .contact-item-value { color: #F0ECE6; }
[data-theme="dark"] a.contact-item-value:hover { color: #DC2626; }
[data-theme="dark"] .contact-loc { color: #555; }
[data-theme="dark"] .contact-loc::before { color: #DC2626; }
[data-theme="dark"] .social-link { color: #aaa; border-color: #252525; }
[data-theme="dark"] .social-link:hover { background: #7F1D1D; border-color: #7F1D1D; color: #fff; }
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea { color: #F0ECE6; border-bottom-color: #252525; }
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus { border-bottom-color: #DC2626; }
[data-theme="dark"] .form-label { color: #555; }
[data-theme="dark"] .form-input::placeholder,
[data-theme="dark"] .form-textarea::placeholder { color: #333; }
[data-theme="dark"] .form-submit { background: #7F1D1D; border-color: #7F1D1D; }
[data-theme="dark"] .form-submit:hover { background: transparent; color: #DC2626; border-color: #DC2626; }

/* ── PROJECTS PAGE ── */
[data-theme="dark"] .projects-hero { background: #080808; }
[data-theme="dark"] .projects-filter {
  background: #0C0C0C;
  border-bottom-color: #1e1e1e;
  position: sticky; top: 60px; z-index: 100;
}
[data-theme="dark"] .filter-label { color: #444; }
[data-theme="dark"] .filter-btn { color: #555; }
[data-theme="dark"] .filter-btn:not(.active):hover { color: #aaa; }
[data-theme="dark"] .filter-btn.active { background: #7F1D1D; color: #fff; }

/* ── DETAIL PAGE ── */
[data-theme="dark"] .detail-hero-bg {
  background: linear-gradient(160deg, #141414 0%, #0e0e0e 50%, #080808 100%);
}
[data-theme="dark"] .overview-strip { background: #111; border-top: 1px solid #1e1e1e; }
[data-theme="dark"] .ov-item { border-right-color: #1e1e1e; }
[data-theme="dark"] .ov-item:hover { background: rgba(255,255,255,.03); }
[data-theme="dark"] .ov-label { color: rgba(255,255,255,.3); }
[data-theme="dark"] .ov-val { color: #F0ECE6; }
[data-theme="dark"] #concept { background: #0C0C0C; }
[data-theme="dark"] .concept-body { color: #888; }
[data-theme="dark"] .pull-quote { color: #DC2626; border-left-color: #7F1D1D; }
[data-theme="dark"] .c-data { background: #151515; }
[data-theme="dark"] .c-data:hover { background: #1a1a1a; }
[data-theme="dark"] .c-data-num { color: #DC2626; }
[data-theme="dark"] .c-data-label { color: #555; }
[data-theme="dark"] #gallery { background: #0C0C0C; }
[data-theme="dark"] .gallery-hint { color: #444; }
[data-theme="dark"] #materials { background: #080808; }
[data-theme="dark"] #process { background: #0C0C0C; }
[data-theme="dark"] .process-step { border-bottom-color: #1e1e1e; }
[data-theme="dark"] .ps-num { color: #DC2626; }
[data-theme="dark"] .ps-name { color: #F0ECE6; }
[data-theme="dark"] .ps-desc { color: #fff; }
[data-theme="dark"] .ps-dur { color: #DC2626; border-color: #7F1D1D; }
[data-theme="dark"] .process-panel { background: #111; }
[data-theme="dark"] #beforeafter { background: #0C0C0C; }
[data-theme="dark"] .ba-handle { background: #1a1a1a; border-color: #DC2626; }
[data-theme="dark"] .ba-handle svg { color: #DC2626; }
[data-theme="dark"] .ba-divider-line { background: rgba(255,255,255,.3); }
[data-theme="dark"] .ba-label.after { background: #7F1D1D; }
[data-theme="dark"] #credits { background: #111; }
[data-theme="dark"] .credit-card { background: #181818; }
[data-theme="dark"] .credit-card:hover { border-bottom-color: #DC2626; }
[data-theme="dark"] .credit-role { color: #DC2626; }
[data-theme="dark"] .credit-name { color: #F0ECE6; }
[data-theme="dark"] .credit-detail { color: #555; }

/* ── CTA BANNER ── */
[data-theme="dark"] .cta-banner { background: #111; }
[data-theme="dark"] .cta-title { color: #F0ECE6; }
[data-theme="dark"] .cta-title em { color: #DC2626; }
[data-theme="dark"] .btn-white { background: #F0ECE6; color: #0C0C0C; border-color: #F0ECE6; }
[data-theme="dark"] .btn-white:hover { background: transparent; color: #F0ECE6; }

/* ── FOOTER ── */
[data-theme="dark"] footer { background: #080808; border-top-color: #1a1a1a; }
[data-theme="dark"] .footer-logo span { color: #DC2626; }
[data-theme="dark"] .footer-links a:hover { color: #DC2626; }

/* ── MOBILE MENU ── */
[data-theme="dark"] .mobile-menu { background: #080808; }

/* ── DIVIDER ── */
[data-theme="dark"] .divider { background: linear-gradient(to right, #1e1e1e, transparent); }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid rgba(10, 10, 10, 0.15);
  border-radius: 50%;
  cursor: none;
  transition: border-color .3s ease, background .3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--navy); background: rgba(11, 24, 64, 0.06); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .theme-toggle:hover { border-color: #DC2626; background: rgba(74,112,240,.1); }
.theme-toggle svg { width: 16px; height: 16px; transition: opacity .3s ease; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle svg { color: #aaa; }

/* ── NAV BACK LINK (detail page dark) ── */
[data-theme="dark"] .nav-back { color: #555; }
[data-theme="dark"] .nav-back:hover { color: #F0ECE6; }
[data-theme="dark"] .nav-proj-num { color: #444; }

/* ── FOOTER ACTIVE LINK ── */
.footer-links a.active { color: rgba(255,255,255,.75); }
[data-theme="dark"] .footer-links a.active { color: rgba(255,255,255,.85); }

/* ── MODAL ── */
.pmodal {
  position: fixed; inset: 0; z-index: 8500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.pmodal.open { opacity: 1; pointer-events: all; }
.pmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,5,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pmodal-box {
  position: relative; z-index: 2;
  background: var(--white);
  width: 100%; max-width: 960px;
  max-height: 94vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(28px) scale(.97);
  transition: transform .42s cubic-bezier(.25,.46,.45,.94);
  box-shadow: 0 40px 100px rgba(0,0,0,.35);
}
[data-theme="dark"] .pmodal-box { background: #131313; }
.pmodal.open .pmodal-box { transform: none; }

.pmodal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--light); flex-shrink: 0;
}
[data-theme="dark"] .pmodal-header { border-bottom-color: #222; }
.pmodal-meta { display: flex; align-items: center; gap: 18px; }
.pmodal-idx {
  font-family: var(--serif); font-size: 26px; font-weight: 300;
  color: var(--navy); line-height: 1; flex-shrink: 0;
}
[data-theme="dark"] .pmodal-idx { color: #DC2626; }
.pmodal-client {
  font-family: var(--sans); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 4px;
}
.pmodal-name {
  font-family: var(--serif); font-size: 21px; font-weight: 400;
  color: var(--black); line-height: 1.1;
}
[data-theme="dark"] .pmodal-name { color: #f0ece6; }
.pmodal-close {
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--light);
  display: flex; align-items: center; justify-content: center;
  cursor: none; flex-shrink: 0;
  transition: border-color .25s, background .25s;
}
[data-theme="dark"] .pmodal-close { border-color: #2a2a2a; }
.pmodal-close:hover { border-color: var(--navy); background: var(--navy); }
[data-theme="dark"] .pmodal-close:hover { border-color: #DC2626; background: #DC2626; }
.pmodal-close svg { width: 16px; height: 16px; color: var(--mid); transition: color .25s; }
.pmodal-close:hover svg { color: white; }

/* ── SLIDER AREA ── */
.pmodal-slider {
  position: relative; flex-shrink: 0;
  width: 100%; aspect-ratio: 16/8;
  overflow: hidden;
  cursor: col-resize;
  user-select: none; -webkit-user-select: none;
  background: #111;
}

/* Loader */
.pmodal-loader {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: #111;
  transition: opacity .5s ease;
}
.pmodal-loader.done { opacity: 0; pointer-events: none; }
.pmodal-loader-bar {
  width: 160px; height: 1px; background: #2a2a2a; position: relative; overflow: hidden;
}
.pmodal-loader-bar::after {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);
  animation: lscan 1.2s ease infinite;
}
@keyframes lscan { 0%{transform:translateX(-100%)} 100%{transform:translateX(200%)} }
.pmodal-loader-txt {
  font-family: var(--sans); font-size: 9px;
  letter-spacing: .2em; text-transform: uppercase; color: #444;
}

/* BEFORE — grayscale, fills full slider, used as height reference */
.pmodal-before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.05);
  position: absolute; inset: 0;
}

/* AFTER wrapper — clipped, width driven by JS */
.pmodal-after-wrap {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;          /* JS controls this */
  overflow: hidden;
  z-index: 2;
}

/* AFTER image — always sized to the full slider in px (set by JS) */
.pmodal-after {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  /* width set in px by JS = slider pixel width */
  object-fit: contain;
}

/* Drag divider */
.pmodal-divider {
  position: absolute; top: 0; bottom: 0;
  left: 50%;           /* JS controls this */
  width: 2px;
  background: rgba(255,255,255,.95);
  transform: translateX(-50%);
  z-index: 4;
  display: flex; align-items: center; justify-content: center;
}
.pmodal-handle {
  width: 44px; height: 44px; border-radius: 50%;
  background: white; border: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.3); flex-shrink: 0;
}
[data-theme="dark"] .pmodal-handle { border-color: #DC2626; }
.pmodal-handle svg { width: 18px; height: 18px; color: var(--navy); }
[data-theme="dark"] .pmodal-handle svg { color: #DC2626; }

/* Labels */
.pmodal-lbl {
  position: absolute; bottom: 16px; z-index: 5;
  font-family: var(--sans); font-size: 8.5px; letter-spacing: .18em;
  text-transform: uppercase; padding: 6px 14px; pointer-events: none;
}
.pmodal-lbl-b { right: calc(50% + 12px); background: rgba(5,5,5,.72); color: rgba(255,255,255,.88); }
.pmodal-lbl-a { left:  calc(50% + 12px); background: var(--navy); color: white; }
[data-theme="dark"] .pmodal-lbl-a { background: #7F1D1D; }

/* Drag hint */
.pmodal-drag-hint {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 5; pointer-events: none;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.52); backdrop-filter: blur(6px);
  padding: 7px 16px;
  transition: opacity .5s ease;
}
.pmodal-drag-hint.hidden { opacity: 0; }
.pmodal-drag-hint svg { width: 13px; height: 13px; }

/* Footer */
.pmodal-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 28px; border-top: 1px solid var(--light); flex-shrink: 0;
}
[data-theme="dark"] .pmodal-footer { border-top-color: #222; }
.pmodal-desc {
  font-family: var(--serif); font-size: 15px; font-weight: 300;
  line-height: 1.65; color: #666; flex: 1;
}
[data-theme="dark"] .pmodal-desc { color: #fff; }
.pmodal-footer-right { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.pmodal-area {
  font-family: var(--sans); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mid);
  border: 1px solid var(--light); padding: 10px 16px;
}
[data-theme="dark"] .pmodal-area { border-color: #5c5a5a; color: #fff; }

@media (max-width: 640px) {
  .pmodal { padding: 0; align-items: flex-end; }
  .pmodal-box { border-radius: 0; max-height: 96vh; }
  .pmodal-slider { aspect-ratio: 4/3; }
  .pmodal-footer { flex-direction: column; align-items: flex-start; }
  .pmodal-footer-actions { flex-wrap: wrap; }
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid rgba(10, 10, 10, 0.15);
  border-radius: 50%;
  cursor: none;
  transition: border-color .3s ease, background .3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--navy); background: rgba(11, 24, 64, 0.06); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .theme-toggle:hover { border-color: #DC2626; background: rgba(74,112,240,.1); }
.theme-toggle svg { width: 16px; height: 16px; transition: opacity .3s ease; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle svg { color: #aaa; }


.music-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid rgba(10, 10, 10, .14);
    border-radius: 50%;
    cursor: none;
    transition: border-color .3s ease, background .3s ease;
    position: relative;
    flex-shrink: 0;
}

.music-bars {
    display: none;
    align-items: flex-end;
    justify-content: center;
    gap: 2.5px;
    height: 14px;
    width: 16px;
}

.music-bars .bar {
    width: 3px;
    background: var(--navy);
    border-radius: 2px;
    transform-origin: bottom;
}
.b1 {
    height: 6px;
    animation: musicBar 1.1s ease-in-out .0s infinite alternate;
}

.b2 {
    height: 12px;
    animation: musicBar 1.1s ease-in-out .18s infinite alternate;
}

.b3 {
    height: 9px;
    animation: musicBar 1.1s ease-in-out .34s infinite alternate;
}

.b4 {
    height: 5px;
    animation: musicBar 1.1s ease-in-out .1s infinite alternate;
}

.music-play-icon {
    width: 14px;
    height: 14px;
    color: var(--navy);
    display: block;
    transition: opacity .25s ease, transform .25s ease;
}

/* playing state */
.music-toggle.playing .music-play-icon { display: none; }
.music-toggle.playing .music-bars      { display: flex;  }
.music-toggle.playing { border-color: var(--navy); }

/* fade in/out for the audio */
@keyframes musicFadeIn  { from { opacity: 0; } to { opacity: 1; } }