/* ============================================================
   ARKENSTONE DESIGN — PREMIUM DESIGN SYSTEM
   CSS Variables + Core Styles
   ============================================================ */

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

/* ── DARK MODE (default) ── */
:root {
  --canvas: #0E0C08;
  --canvas-2: #131109;
  --card-bg: #16130C;
  --card-bg-2: #1C1810;
  --white: #F8F4E8;

  --ink: #F0EAD6;
  --ink-mid: #C8BC9A;
  --ink-muted: #8A7A58;
  --ink-faint: #4A4232;

  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-pale: rgba(201,168,76,0.12);
  --gold-faint: rgba(201,168,76,0.06);
  --rule: rgba(201,168,76,0.2);
  --rule-solid: #2A2418;

  --green: #2B6845;
  --green-l: rgba(43,104,69,0.15);
  --amber: #C07830;
  --red: #A83830;
  --chart-warm: #D4956A;

  --nav-bg: rgba(14,12,8,0.85);
  --glass-bg: rgba(22,19,12,0.7);
  --glass-border: rgba(201,168,76,0.15);

  --shadow-gold: 0 0 40px rgba(201,168,76,0.12);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-deep: 0 24px 80px rgba(0,0,0,0.6);

  --radius-card: 12px;
  --radius-kpi: 2px 2px 10px 10px;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
  --canvas: #F8F4E8;
  --canvas-2: #F2EDD6;
  --card-bg: #FDFAF0;
  --card-bg-2: #FBF7E8;
  --white: #FDFBF4;

  --ink: #1E1A10;
  --ink-mid: #4A4232;
  --ink-muted: #8A7A58;
  --ink-faint: #BFB49A;

  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-pale: #F5EDD0;
  --gold-faint: #FBF7EC;
  --rule: #DDD0A8;
  --rule-solid: #EDE8D4;

  --nav-bg: rgba(248,244,232,0.88);
  --glass-bg: rgba(253,250,240,0.75);
  --glass-border: rgba(201,168,76,0.3);

  --shadow-gold: 0 0 40px rgba(201,168,76,0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-deep: 0 16px 60px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: auto;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Suppress default hand pointer on all interactive elements */
a, 
button, 
.card, 
.service-card, 
.masonry-item, 
.team-card, 
.filter-btn, 
.nav-cta, 
.theme-toggle, 
.gallery-item, 
.atelier-card,
[role="button"] {
  cursor: none !important;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s;
}
body.cursor-hover .cursor { width: 6px; height: 6px; background: var(--gold-light); }
body.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--gold); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}
.display { font-size: clamp(56px, 8vw, 112px); font-weight: 700; letter-spacing: -0.02em; }
.display-sm { font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -0.015em; }
.heading-xl { font-size: clamp(28px, 3.5vw, 48px); font-weight: 600; }
.heading-lg { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; }
.heading-md { font-size: 19px; font-weight: 600; color: var(--ink); }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.body-lg { font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--ink-mid); }
.body-sm { font-size: 11.5px; font-weight: 300; line-height: 1.6; color: var(--ink-muted); }
.caption { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }

a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

section { position: relative; }

/* ── GOLD RULE ── */
.gold-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  border-radius: 2px;
}
.gold-rule-thin {
  height: 0.5px;
  background: var(--rule);
  flex-grow: 1;
}

/* ── SECTION EYEBROW ── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.section-eyebrow .eyebrow { white-space: nowrap; }

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 28px 28px 24px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(201,168,76,0.35);
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}

/* ── KPI CARD ── */
.kpi-card {
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-kpi);
  padding: 16px 16px 14px;
}
.kpi-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gold);
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.badge-gold {
  background: rgba(201,168,76,0.12);
  color: #C9A84C;
  border: 0.5px solid rgba(201,168,76,0.4);
}
.badge-green {
  background: var(--green-l);
  color: var(--green);
  border: 0.5px solid rgba(43,104,69,0.35);
}
.badge-amber {
  background: rgba(192,120,48,0.12);
  color: var(--amber);
  border: 0.5px solid rgba(192,120,48,0.35);
}
.badge-neutral {
  background: rgba(138,122,88,0.1);
  color: var(--ink-muted);
  border: 0.5px solid rgba(138,122,88,0.25);
}

/* ── INSIGHT BLOCK ── */
.insight {
  background: rgba(201,168,76,0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 11px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.insight-diamond { color: var(--gold); font-size: 8px; margin-top: 3px; flex-shrink: 0; }

/* ── PROGRESS BARS ── */
.progress-track {
  height: 7px;
  background: var(--rule-solid);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--glass-border);
  transition: var(--transition);
}
#nav.scrolled .nav-inner { padding: 14px 40px; }

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter var(--transition-fast);
}
[data-theme="light"] .nav-logo-img {
  filter: brightness(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  position: relative;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 0.5px;
  background: var(--gold);
  transition: width var(--transition-fast);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.theme-toggle {
  width: 44px; height: 24px;
  background: var(--rule-solid);
  border: 0.75px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
[data-theme="light"] .theme-toggle { background: var(--gold-pale); }
[data-theme="light"] .theme-toggle::after { transform: translateX(20px); background: var(--gold); }

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-icon {
  font-size: 11px;
  color: var(--ink-muted);
  transition: color var(--transition-fast);
  user-select: none;
}

.nav-cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 0.75px solid var(--gold);
  padding: 8px 18px;
  border-radius: 2px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--canvas);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  width: 24px; height: 1px;
  background: var(--ink);
  transition: var(--transition-fast);
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 16px 20px; }
  .nav-cta { display: none; }
}

/* Mobile Nav Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color var(--transition-fast);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
}
.nav-mobile-close:hover { 
  background: var(--gold);
  color: var(--canvas);
  border-color: var(--gold);
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(14,12,8,0.7) 80%,
    var(--canvas) 100%
  );
  z-index: 1;
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.02) 40%,
    rgba(248,244,232,0.6) 80%,
    var(--canvas) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: 12%;
  left: 0; right: 0;
  z-index: 2;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
}
.hero-eyebrow-line {
  width: 40px; height: 0.5px;
  background: var(--gold);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: #F0EAD6;
  opacity: 0;
  transform: translateY(40px);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,234,214,0.7);
  opacity: 0;
  transform: translateY(20px);
  max-width: 400px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 4%;
  right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}
.hero-scroll-text {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 0.5px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}
.hero-location {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  opacity: 0;
}
.hero-location span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
}
.hero-frame-counter {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0;
}
.hero-frame-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(201,168,76,0.5);
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .hero-content { padding: 0 24px; bottom: 16%; }
  .hero-scroll-hint { right: 24px; }
  .hero-location { right: 24px; }
  .hero-frame-counter { left: 24px; }
}

/* ── INTRO MARQUEE ── */
#intro-marquee {
  padding: 32px 0;
  overflow: hidden;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
  background: var(--canvas);
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  white-space: nowrap;
}
.marquee-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.marquee-dot { color: var(--gold); font-size: 8px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── ABOUT SECTION ── */
#about {
  padding: 120px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual-col {
  position: relative;
}
.about-img-stack {
  position: relative;
  height: 560px;
}
.about-img-main {
  position: absolute;
  top: 0; right: 0;
  width: 85%;
  height: 460px;
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.about-img-accent {
  position: absolute;
  bottom: 0; left: 0;
  width: 55%;
  height: 280px;
  background: var(--card-bg-2);
  border: 0.75px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-img-label {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--canvas);
  padding: 14px 20px;
  border-radius: 8px;
}
.about-img-label .heading-md { color: var(--canvas); font-size: 28px; }
.about-img-label .caption { color: rgba(14,12,8,0.7); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--rule);
  border: 0.75px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.about-stat {
  background: var(--card-bg);
  padding: 20px 16px;
  text-align: center;
}
.about-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  letter-spacing: -0.02em;
}
.about-stat-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
  display: block;
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 40px;
}
.pillar {
  background: var(--gold-faint);
  border: 0.5px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
  transition: var(--transition-fast);
}
.pillar:hover {
  border-color: rgba(201,168,76,0.4);
  background: var(--gold-pale);
}
.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: rgba(201,168,76,0.25);
  line-height: 1;
  margin-bottom: 6px;
}
.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.pillar-desc { font-size: 11px; color: var(--ink-muted); line-height: 1.5; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-stack { height: 400px; }
  .philosophy-pillars { grid-template-columns: 1fr; }
}

/* ── SERVICES SECTION ── */
#services {
  padding: 120px 0;
  background: var(--canvas-2);
}
.services-header {
  text-align: center;
  margin-bottom: 80px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.service-card:hover { border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-gold); }
.service-card:hover .service-img-wrap { transform: scale(1.02); }
.service-img-wrap {
  height: 280px;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-img-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--card-bg-2), var(--rule-solid));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.service-img-inner::after {
  content: '◆';
  color: var(--rule);
  font-size: 20px;
}
.service-img-inner.has-img::after { display: none; }
.service-img-inner.has-img { background: none; }
.service-img-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.service-body { padding: 24px; }
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 400;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  float: right;
  margin-left: 12px;
  margin-top: -8px;
}
.service-title { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.service-desc { font-size: 12px; font-weight: 300; color: var(--ink-muted); line-height: 1.65; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.service-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.service-card-wide .service-img-wrap { height: auto; min-height: 240px; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .service-card-wide .service-img-wrap { height: 200px; }
}

/* ── PROJECTS SECTION ── */
#projects {
  padding: 120px 0;
}
.projects-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 24px;
}
.projects-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  border: 0.5px solid var(--rule);
  background: transparent;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.filter-btn.active, .filter-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-faint);
}

/* Masonry Grid */
.masonry-grid {
  columns: 3;
  column-gap: 20px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  transition: var(--transition);
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
}
.masonry-item.masonry-hidden {
  display: none !important;
}
.masonry-item:hover { border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-card); }
.masonry-item:hover .masonry-img-inner { transform: scale(1.04); }
.masonry-img {
  overflow: hidden;
}
.masonry-img-inner {
  background: linear-gradient(135deg, var(--card-bg-2), var(--rule-solid));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.masonry-img-inner::after {
  content: '◆';
  color: var(--rule);
  font-size: 16px;
}
.masonry-img-inner.has-img::after { display: none; }
.masonry-img-inner.has-img { background: none; }
.masonry-img-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.masonry-body { padding: 18px 18px 16px; }
.masonry-status { margin-bottom: 8px; }
.masonry-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.masonry-location { font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.masonry-scope { font-size: 11px; color: var(--ink-muted); line-height: 1.5; }

@media (max-width: 1024px) { .masonry-grid { columns: 2; } }
@media (max-width: 640px) {
  .masonry-grid { columns: 1; }
  .projects-header { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════
   PROJECT GALLERY
══════════════════════════════════════════════════════ */
#gallery {
  padding: 120px 0;
  background: var(--canvas-2);
}
.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}
.gallery-header p {
  margin: 0 auto;
}
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.gallery-grid {
  columns: 4;
  column-gap: 12px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: galleryFadeIn 0.6s ease both;
}
.gallery-item.gallery-hidden {
  display: none;
}
@keyframes galleryFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}
.gallery-item-overlay span {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

@media (max-width: 1200px) { .gallery-grid { columns: 3; } }
@media (max-width: 768px) { .gallery-grid { columns: 3; column-gap: 6px; } }
@media (max-width: 480px) { .gallery-grid { columns: 3; column-gap: 4px; } }
@media (max-width: 480px) { .gallery-item { margin-bottom: 4px; border-radius: 5px; } }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  cursor: none;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.lightbox-caption {
  margin-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  right: 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: rgba(201,168,76,0.5);
  letter-spacing: 0.1em;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 28px;
  color: rgba(240,234,214,0.6);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
  z-index: 10;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: rgba(240,234,214,0.4);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
  z-index: 10;
  padding: 16px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold);
}

/* ── GLOBAL PRESENCE ── */
#global {
  padding: 120px 0;
}
.global-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.global-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.4;
  margin-bottom: 32px;
  position: relative;
  padding-left: 24px;
}
.global-quote::before {
  content: '"';
  position: absolute;
  left: 0; top: -8px;
  font-size: 60px;
  line-height: 1;
  color: var(--gold);
  font-style: normal;
}
.location-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.location-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  border-radius: 10px;
  padding: 16px 20px;
  transition: var(--transition-fast);
}
.location-card:hover { border-color: rgba(201,168,76,0.4); }
.location-flag {
  font-size: 28px;
  flex-shrink: 0;
}
.location-city {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.location-country { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.location-status {
  margin-left: auto;
}
.global-visual {
  position: relative;
  height: 480px;
}
.global-img-frame {
  width: 100%; height: 100%;
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.global-img-overlay {
  position: absolute;
  bottom: 24px; left: 24px;
  right: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 0.75px solid var(--glass-border);
  border-radius: 10px;
  padding: 16px 20px;
}

@media (max-width: 960px) {
  .global-grid { grid-template-columns: 1fr; }
  .global-visual { height: 300px; }
}

/* ── ATELIER SECTION ── */
#atelier {
  padding: 120px 0;
  background: var(--canvas-2);
}

/* Atelier Hero Image */
.atelier-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 64px;
  height: 420px;
}
.atelier-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.atelier-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
}
.atelier-hero-text {
  padding: 40px 48px;
}

.atelier-intro { max-width: 680px; margin: 0 auto 80px; text-align: center; }
.atelier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.atelier-card {
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}
.atelier-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.atelier-card-img {
  height: 180px;
  overflow: hidden;
}
.atelier-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.atelier-card:hover .atelier-card-img img {
  transform: scale(1.06);
}
.atelier-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 24px 8px;
}
.atelier-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  padding: 0 24px 24px;
}

/* Atelier Photo Strip */
.atelier-strip {
  border-radius: 12px;
  overflow: hidden;
  border: 0.75px solid var(--rule);
}
.atelier-strip-track {
  display: flex;
  overflow-x: auto;
  gap: 2px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.atelier-strip-track::-webkit-scrollbar { display: none; }
.atelier-strip-track.dragging { cursor: grabbing; }
.atelier-strip-item {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
}
.atelier-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.atelier-strip-item:hover img {
  transform: scale(1.04);
}

.atelier-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 0.75px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.advantage {
  background: var(--card-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.advantage-icon { font-size: 18px; margin-bottom: 4px; }
.advantage-title { font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }
.advantage-desc { font-size: 10.5px; color: var(--ink-muted); line-height: 1.5; }

@media (max-width: 768px) {
  .atelier-grid { grid-template-columns: 1fr; }
  .atelier-advantages { grid-template-columns: 1fr; }
  .atelier-hero { height: 260px; }
  .atelier-hero-text { padding: 24px; }
  .atelier-strip-item { width: 220px; height: 160px; }
}

/* ── PROCESS SECTION ── */
#process {
  padding: 120px 0;
  overflow: hidden;
}
.process-timeline {
  position: relative;
  margin-top: 80px;
}
.process-line {
  position: absolute;
  top: 32px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: 0.3;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.process-num-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0.75px solid var(--rule);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.process-step:hover .process-num-wrap {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.2);
}
.process-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.process-step-title { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.process-step-quote { font-size: 10px; font-style: italic; color: var(--ink-muted); line-height: 1.5; }
.process-step-desc { font-size: 10.5px; color: var(--ink-muted); line-height: 1.6; }

@media (max-width: 1024px) {
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-line { display: none; }
}
@media (max-width: 640px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ── TEAM SECTION ── */
#team {
  padding: 120px 0;
  background: var(--canvas-2);
}
.team-intro { max-width: 560px; margin-bottom: 80px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.team-card {
  background: var(--card-bg);
  border: 0.75px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.team-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.team-img {
  aspect-ratio: 3 / 4;
  height: auto;
  background: #000;
  position: relative;
  overflow: hidden;
}
.team-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.team-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.team-card:hover .team-img-overlay { opacity: 1; }
.team-body { padding: 16px; }
.team-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.team-role { font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.team-bio { font-size: 10.5px; color: var(--ink-muted); line-height: 1.5; font-style: italic; }

.team-featured {
  grid-column: span 2;
}
.team-featured .team-img { height: 280px; }

@media (max-width: 1200px) { .team-grid { grid-template-columns: repeat(3, 1fr); } .team-featured { grid-column: span 1; } }
@media (max-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ── KPI SECTION ── */
#kpis {
  padding: 80px 0;
  background: var(--canvas-2);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── CONTACT / CTA SECTION ── */
#contact {
  padding: 120px 0 80px;
}
.contact-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.contact-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 24px;
}
.contact-tagline em { font-style: italic; color: var(--gold); }
.contact-sub { font-size: 14px; color: var(--ink-muted); margin-bottom: 48px; line-height: 1.7; }
.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--gold);
  color: var(--canvas);
  padding: 14px 36px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }
.btn-secondary {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--ink);
  padding: 14px 36px;
  border-radius: 2px;
  border: 0.75px solid var(--rule);
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.contact-details {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 0.5px solid var(--rule);
}
.contact-detail-item { text-align: center; }
.contact-detail-label { font-size: 8px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.contact-detail-value { font-size: 13px; color: var(--ink); }

@media (max-width: 640px) {
  .contact-details { flex-direction: column; gap: 24px; }
}

/* ── FOOTER ── */
footer {
  padding: 40px 0;
  border-top: 0.5px solid var(--rule);
  background: var(--canvas);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  height: 20px;
  width: auto;
  display: block;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-fast);
}
.footer-logo:hover .footer-logo-img { opacity: 0.8; }
[data-theme="light"] .footer-logo-img {
  filter: brightness(0);
}
.footer-copy { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.06em; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(0px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* ── LOADING SCREEN ── */
#loader {
  position: fixed;
  inset: 0;
  background: #0E0C08;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.loaded { opacity: 0; visibility: hidden; }
.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo-img {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) invert(0.94) sepia(0.3) hue-rotate(10deg);
}
.loader-bar-track {
  width: 200px;
  height: 1px;
  background: rgba(201,168,76,0.2);
  border-radius: 1px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C9A84C, #E8C96A);
  border-radius: 1px;
  transition: width 0.1s linear;
}
.loader-copy {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(201,168,76,0.5);
  text-align: center;
  margin: 0;
  min-height: 1.4em;
  transition: opacity 0.35s ease;
}
.loader-percent {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.6);
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.4;
}

/* ── UTILITIES ── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--ink-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* ── TOUCH DEVICE OVERRIDES ── */
@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  .lightbox { cursor: auto; }
}
