/* ─────────────────────────────────────────────────────────────
   ARKENSTONE DESIGN SYSTEM V2 — TOKEN ARCHITECTURE
   Three-tier token model per V2 Spec §2:
     Tier 1 — Primitives (raw values)
     Tier 2 — Semantic (contextual roles)
     Tier 3 — Component (element-specific)
   Theme strategy: dark-first (root), light override via [data-theme="light"]
   ───────────────────────────────────────────────────────────── */
:root {
  /* ── TIER 1 — PRIMITIVES ─────────────────────────────────── */
  /* Gold palette (V2 §2.1) */
  --gold-primary:  #C9A84C;
  --gold-light:    #E8C96A;
  --gold-pale:     #F5EDD0;
  --gold-faint:    #FBF7EC;

  /* Status palette */
  --status-green:  #2B6845;
  --status-amber:  #C07830;
  --status-red:    #A83830;
  --accent-warm:   #D4956A;

  /* Spatial primitives */
  --sp-section:    clamp(60px, 8vw, 100px);
  --sp-gap:        clamp(16px, 2vw, 24px);

  /* Easing & timing (V2 §4.2) */
  --ease-luxe:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-exp:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-gallery:   0.8s;

  /* Radii */
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-kpi:    2px 2px 10px 10px;   /* V2 §8.1 KPI strip profile */
  --radius-pill:   20px;

  /* ── TIER 2 — SEMANTIC (DARK-FIRST DEFAULTS, V2 §2.1) ────── */
  --color-canvas-primary:    #0E0C08;
  --color-canvas-secondary:  #131109;
  --color-surface-card:      #16130C;
  --color-ink-primary:       #F0EAD6;
  --color-ink-mid:           #C9BFA5;
  --color-ink-muted:         #8A7A58;
  --color-ink-faint:         #5C5340;
  --color-border-rule:       rgba(201, 168, 76, 0.20);
  --color-glass-surface:     rgba(22, 19, 12, 0.70);
  --color-glass-border:      rgba(201, 168, 76, 0.18);
  --color-nav-bg:            rgba(14, 12, 8, 0.92);
  --color-section-alt:       #131109;
  --color-divider-soft:      rgba(201, 168, 76, 0.08);
  --color-status-bar-track:  rgba(201, 168, 76, 0.10);

  /* Inverse ink for dark-on-canvas regions (always-dark contact section, etc.) */
  --color-ink-inverse:       #FDFBF4;

  /* ── ELEVATION & GLASS (V2 §2.2) ─────────────────────────── */
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.12);
  --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 12px 24px rgba(0, 0, 0, 0.25);
  --glass-blur:  blur(12px);

  /* ── TIER 3 — COMPONENT TOKENS (back-compat shorthands) ──── */
  --canvas:    var(--color-canvas-primary);
  --card-bg:   var(--color-surface-card);
  --white:     var(--color-ink-inverse);
  --ink:       var(--color-ink-primary);
  --ink-mid:   var(--color-ink-mid);
  --ink-muted: var(--color-ink-muted);
  --ink-faint: var(--color-ink-faint);
  --gold:      var(--gold-primary);
  --rule:      var(--color-border-rule);
  --green:     var(--status-green);
  --green-l:   rgba(43, 104, 69, 0.18);
  --amber:     var(--status-amber);
  --red:       var(--status-red);
}

/* ── LIGHT THEME OVERRIDE (V2 §2.1 data-theme attribute) ──── */
[data-theme="light"] {
  --color-canvas-primary:    #F8F4E8;
  --color-canvas-secondary:  #F2EDD6;
  --color-surface-card:      #FDFAF0;
  --color-ink-primary:       #1E1A10;
  --color-ink-mid:           #4A4232;
  --color-ink-muted:         #8A7A58;
  --color-ink-faint:         #BFB49A;
  --color-border-rule:       #DDD0A8;
  --color-glass-surface:     rgba(253, 250, 240, 0.75);
  --color-glass-border:      rgba(201, 168, 76, 0.32);
  --color-nav-bg:            rgba(248, 244, 232, 0.92);
  --color-section-alt:       #F2EDD6;
  --color-divider-soft:      #EDE8D4;
  --color-status-bar-track:  #EDE8D4;

  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.18);
  --shadow-deep: 0 24px 60px rgba(30, 26, 16, 0.18);
  --shadow-card: 0 12px 24px rgba(30, 26, 16, 0.06);
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-canvas-primary);
  color-scheme: dark;
}
[data-theme="light"] html { color-scheme: light; }

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

/* ─── V2 FLUID TYPOGRAPHIC SCALE (§3.2) ───────────────────── */
.t-display-xl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 1.1;
  letter-spacing: 0;
}
.t-display-sm {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-heading-lg {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  letter-spacing: 0;
}
.t-kpi-value {
  font-family: 'DM Sans', sans-serif;  /* V2 spec: Google Sans 700; DM Sans 700 used as available equivalent */
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.t-body-base {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  letter-spacing: 0;
}
.t-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Suppress default hand pointer on interactive elements (V2 §7.3) */
a,
button,
.card,
.service-card,
.process-step,
.team-card,
.advantage-card,
.capability-card,
.principle-card,
.kpi-card,
.masonry-item,
.theme-toggle,
.logo-item,
[role="button"] {
  cursor: none !important;
}

/* ─── V2 §7.3 CUSTOM CURSOR ─────────────────────────────────
   Default:  10px solid gold dot  +  36px ring at 1px translucent gold border
   Hovered:   6px brighter dot     +  56px fully-opaque gold ring
   ─────────────────────────────────────────────────────────── */
.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 var(--ease-luxe),
              height 0.3s var(--ease-luxe),
              background 0.3s var(--ease-luxe),
              opacity 0.3s var(--ease-luxe);
  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 var(--ease-luxe),
              height 0.5s var(--ease-luxe),
              border-color 0.3s var(--ease-luxe);
}
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); }
/* Touch devices: hide custom cursor */
@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  a, button, .card, .service-card, .process-step, .team-card,
  .advantage-card, .capability-card, .principle-card, .kpi-card,
  .masonry-item, .theme-toggle, .logo-item { cursor: pointer !important; }
}

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

/* V2 §2.2: gold-rule emits subtle luminous glow via --shadow-gold */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent 100%);
  border-radius: 2px;
  margin: 0;
  box-shadow: var(--shadow-gold);
  opacity: 0.7;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.eyebrow-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.eyebrow-line {
  flex: 1;
  height: 0.5px;
  background: var(--color-border-rule);
}

.section { padding: var(--sp-section) 0; }
.section-alt { background: var(--color-section-alt); }

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; color: var(--color-ink-primary); }

.card {
  background: var(--color-surface-card);
  border: 0.75px solid var(--color-border-rule);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  color: var(--color-ink-primary);
  transition: border-color 0.4s var(--ease-luxe), box-shadow 0.4s var(--ease-luxe), transform 0.4s var(--ease-luxe);
}
.card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: var(--shadow-gold);
}

.card-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--color-ink-primary);
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}
/* V2 §8.2: 10–15% opacity bg, 100% darkened color text, 30–50% opacity border */
.badge-gold {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-light);
  border: 0.5px solid rgba(201, 168, 76, 0.50);
}
[data-theme="light"] .badge-gold { color: #7A5A18; border-color: rgba(201, 168, 76, 0.45); }
.badge-green {
  background: rgba(43, 104, 69, 0.15);
  color: #6FAA85;
  border: 0.5px solid rgba(43, 104, 69, 0.45);
}
[data-theme="light"] .badge-green { color: var(--status-green); border-color: rgba(43, 104, 69, 0.40); }
.badge-amber {
  background: rgba(192, 120, 48, 0.15);
  color: #E0A878;
  border: 0.5px solid rgba(192, 120, 48, 0.50);
}
[data-theme="light"] .badge-amber { color: var(--status-amber); border-color: rgba(192, 120, 48, 0.40); }
.badge-neutral {
  background: rgba(138, 122, 88, 0.15);
  color: var(--color-ink-mid);
  border: 0.5px solid rgba(138, 122, 88, 0.40);
}

/* Insight Callout — V2 §8.1: flat-left edge, 3px gold accent, rounded right */
.insight-block {
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.insight-diamond { color: var(--gold); font-size: 11px; margin-top: 2px; flex-shrink: 0; }
.insight-text { font-size: 11.5px; color: var(--color-ink-mid); line-height: 1.55; }

/* ─── NAVBAR ─── */
:root {
  --nav-h: 64px;
}
@media (max-width: 768px) {
  :root { --nav-h: 84px; }
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 0.75px solid var(--color-border-rule);
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-ink-primary);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-luxe);
}
.nav-links a:hover { color: var(--gold); }

/* Theme toggle — V2 §2.1 dark/light environment switcher */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0.75px solid var(--color-border-rule);
  background: var(--color-glass-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--gold);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none !important;
  transition: border-color 0.3s var(--ease-luxe), box-shadow 0.3s var(--ease-luxe), transform 0.3s var(--ease-luxe);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun  { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 768px) {
  .navbar { padding: 0 20px; flex-direction: column; justify-content: center; gap: 6px; }
  .nav-right { width: 100%; justify-content: center; gap: 16px; }
  .nav-links { overflow-x: auto; padding: 4px 0; gap: 20px; flex: 1; justify-content: center; }
  .nav-links::-webkit-scrollbar { display: none; }
  .theme-toggle { width: 30px; height: 30px; font-size: 12px; }
}

/* ─── HERO ─── */
.hero {
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 40px auto 0;
  padding: 0 40px;
  width: 100%;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1E1A10 0%, #2C2415 40%, #3A3020 70%, #1E1A10 100%);
  z-index: 0;
}
/* Decorative geometric overlay */
.hero-bg-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(201,168,76,0.03) 80px, rgba(201,168,76,0.03) 81px),
    repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(201,168,76,0.03) 80px, rgba(201,168,76,0.03) 81px);
}
.hero-bg-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(30,26,16,0.85), transparent);
}

/* Image placeholder in hero */
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img-placeholder .img-placeholder-inner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E1A10 0%, #2C2415 40%, #3A3020 70%, #1E1A10 100%);
}
.placeholder-note {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(201,168,76,0.4);
  border-radius: 8px;
  padding: 20px 32px;
  text-align: center;
  color: rgba(201,168,76,0.6);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  z-index: 1;
  white-space: nowrap;
}

.hero-main-banner {
  width: 100%;
  height: clamp(300px, 35vh, 450px);
  position: relative;
  z-index: 5;
  overflow: hidden;
  background: #111;
}
@media (max-width: 768px) {
  .hero-main-banner { height: 45vh; }
}
.hero-main-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: bannerScale 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes bannerScale {
  from { transform: scale(1.1); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '◆';
  font-size: 8px;
}
/* V2 §3.2 display-xl scale */
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  color: #FDFBF4;
  margin-bottom: 14px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 600;
}
.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(253, 251, 244, 0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2vw, 22px);
  font-style: italic;
  color: rgba(253, 251, 244, 0.82);
  max-width: 540px;
  line-height: 1.45;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
/* V2 §3.1: numerals in 700 weight, -0.02em tracking */
.hero-stat-value {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 251, 244, 0.5);
  margin-top: 6px;
}
@media (max-width: 768px) {
  .hero-content { padding: 0 20px; }
  .hero-stats { gap: 24px; }
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
/* V2 §3.2 display-sm */
.about-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--color-ink-primary);
}
.about-text h2 em { font-style: italic; color: var(--gold); }
.about-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--color-ink-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── IMAGE PLACEHOLDER ─── */
.img-placeholder {
  background: rgba(201, 168, 76, 0.06);
  border: 0.75px dashed var(--color-border-rule);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-ink-muted);
}
.img-placeholder .ph-icon {
  font-size: 28px;
  opacity: 0.5;
}
.img-placeholder .ph-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}
.img-placeholder .ph-desc {
  font-size: 10.5px;
  color: var(--color-ink-faint);
  text-align: center;
  padding: 0 20px;
}

/* ─── V2 §8.1 KPI STRIP ─────────────────────────────────────
   Special border profile: flat top edge, rounded bottom (2px 2px 10px 10px)
   3px solid gold top border denotes highest hierarchy.
   ─────────────────────────────────────────────────────────── */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sp-gap);
  margin: clamp(30px, 4vw, 50px) 0;
}
.kpi-card {
  background: var(--color-surface-card);
  border: 0.75px solid var(--color-border-rule);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-kpi);
  padding: 18px 16px 14px;
  text-align: center;
  transition: box-shadow 0.4s var(--ease-luxe), transform 0.4s var(--ease-luxe);
}
.kpi-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
/* V2 §3.1: numeric values in 700 weight, -0.02em tracking, fluid scaling */
.kpi-value {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink-primary);
  line-height: 1.0;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.kpi-value span { color: var(--gold); }
.kpi-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

/* ─── PHILOSOPHY ─── */
.philosophy-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.5vw, 42px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-ink-primary);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}
.philosophy-quote em { color: var(--gold); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-gap);
}
.principle-card {
  background: var(--color-surface-card);
  border: 0.75px solid var(--color-border-rule);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe);
}
.principle-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: rgba(201, 168, 76, 0.35);
}
.principle-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}
.principle-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.18);
  line-height: 1;
  margin-bottom: -8px;
}
.principle-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink-primary);
  margin-bottom: 8px;
}
.principle-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: var(--color-ink-muted);
  line-height: 1.55;
}

/* ─── FACTORY / FACILITY ─── */
.facility-hero-img {
  height: 320px;
  margin-bottom: 40px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.75px solid var(--color-border-rule);
  box-shadow: var(--shadow-deep);
}
.facility-hero-img img {
  transition: transform var(--dur-gallery) var(--ease-luxe);
}
.facility-hero-img:hover img {
  transform: scale(1.03);
}
.facility-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-gap);
  margin-bottom: 32px;
  align-items: stretch;
}

.capability-card {
  background: var(--color-surface-card);
  border: 0.75px solid var(--color-border-rule);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: box-shadow 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe), transform 0.4s var(--ease-luxe);
}
.capability-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: rgba(201, 168, 76, 0.40);
  transform: translateY(-2px);
}
.capability-icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 168, 76, 0.12);
  border: 0.75px solid rgba(201, 168, 76, 0.32);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.capability-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ink-primary);
}
.capability-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--color-ink-muted);
  line-height: 1.55;
}

/* Manpower */
.manpower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 700px) {
  .manpower-grid { grid-template-columns: 1fr; }
}

/* V2 §3.3 — Minimal data table: 13px vertical padding, 0.5px bottom border only */
.team-dept-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 0.5px solid var(--color-divider-soft);
  gap: 12px;
}
.team-dept-row:last-child { border-bottom: none; }
.team-dept-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--color-ink-mid);
  flex: 1;
}
.team-dept-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink-primary);
  width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.team-dept-bar-wrap {
  width: 100px;
  height: 7px;
  background: var(--color-status-bar-track);
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}
.team-dept-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ─── SERVICES / WHAT WE DO ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-gap);
  align-items: start;
}

.service-card {
  background: var(--color-surface-card);
  border: 0.75px solid var(--color-border-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe), transform 0.4s var(--ease-luxe);
}
.service-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: rgba(201, 168, 76, 0.40);
  transform: translateY(-3px);
}
.service-card-img {
  height: auto;
  position: relative;
  overflow: hidden;
}
.service-card-img img {
  transition: transform 0.8s var(--ease-luxe);
}
.service-card:hover .service-card-img img {
  transform: scale(1.05);
}
.service-card-body { padding: 20px 22px 18px; }
.service-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-ink-primary);
  margin-bottom: 8px;
}
.service-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: var(--color-ink-muted);
  line-height: 1.55;
}

/* ─── PROCESS ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-gap);
  align-items: stretch;
}
.process-step {
  background: var(--color-surface-card);
  border: 0.75px solid var(--color-border-rule);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe);
}
.process-step:hover {
  box-shadow: var(--shadow-gold);
  border-color: rgba(201, 168, 76, 0.35);
}
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.18);
  line-height: 1;
  margin-bottom: -12px;
}
.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink-primary);
  margin-bottom: 8px;
}
.step-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 8px;
}
.step-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--color-ink-muted);
  line-height: 1.55;
}

/* ─── TEAM ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-gap);
  align-items: start;
}

.team-card {
  background: var(--color-surface-card);
  border: 0.75px solid var(--color-border-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe), transform 0.4s var(--ease-luxe);
}
.team-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px);
}
.team-card.featured {
  border-color: var(--gold);
  border-width: 1px;
  box-shadow: 0 0 0 0.5px rgba(201, 168, 76, 0.20);
}
.team-photo {
  height: auto;
  position: relative;
  background: rgba(201, 168, 76, 0.06);
}
.team-info { padding: 18px 16px 16px; }
.team-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink-primary);
  margin-bottom: 4px;
}
.team-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.team-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

/* ─── PHILOSOPHY ADVANTAGES ─── */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-gap);
  align-items: stretch;
}

.advantage-card {
  background: var(--color-surface-card);
  border: 0.75px solid var(--color-border-rule);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.4s var(--ease-luxe), border-color 0.4s var(--ease-luxe);
}
.advantage-card:hover {
  box-shadow: var(--shadow-gold);
  border-color: rgba(201, 168, 76, 0.35);
}
.adv-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.adv-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink-primary);
  margin-bottom: 5px;
}
.adv-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--color-ink-muted);
  line-height: 1.55;
}

/* ─── CONTACT / FOOTER ─── always-dark cinematic experience */
.contact-section {
  background: #0E0C08;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(201,168,76,0.025) 80px, rgba(201,168,76,0.025) 81px);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 1;
}
/* V2 §3.2 display-sm */
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink-inverse);
  margin-bottom: 12px;
}
.contact-title em { font-style: italic; color: var(--gold-light); }
.contact-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(253, 251, 244, 0.55);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.btn-primary,
.btn-secondary {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease-luxe);
}
.btn-primary {
  background: var(--gold);
  color: var(--color-canvas-primary);
  border: 0.75px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--color-ink-inverse);
  border: 0.75px solid rgba(201, 168, 76, 0.4);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}
@media (max-width: 700px) {
  .contact-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}
.contact-item-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-item-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-ink-inverse);
}
.footer-rule {
  height: 0.5px;
  background: rgba(253, 251, 244, 0.12);
  margin-bottom: 28px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: rgba(253, 251, 244, 0.65);
}
.footer-logo span { color: var(--gold); }
.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: rgba(253, 251, 244, 0.35);
  letter-spacing: 0.06em;
}

/* ─── CLIENT LOGOS SECTION ─── */
.logo-carousel-wrap {
  padding: 20px 0;
  margin: 0;
  background: transparent;
  position: relative;
}
.logo-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 80px;
  width: 100%;
}
.logo-item {
  padding: 10px 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-item img {
  height: 100%;
  max-width: 160px;
  object-fit: contain;
  /* Dark mode: invert + soft fade so brand marks remain legible on obsidian canvas */
  filter: brightness(0) invert(1) opacity(0.45);
  transition: filter 0.4s var(--ease-luxe), transform 0.4s var(--ease-luxe);
}
[data-theme="light"] .logo-item img {
  filter: brightness(0) opacity(0.5);
}
.logo-item img:hover {
  filter: brightness(0) invert(1) opacity(0.95);
  transform: scale(1.05);
}
[data-theme="light"] .logo-item img:hover {
  filter: brightness(1) opacity(1);
  transform: scale(1.05);
}

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: transform, opacity;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ─── V2 §4.2 MASONRY GRID — native columns + break-inside:avoid ─── */
.masonry-grid {
  column-count: 3;
  -webkit-column-count: 3;
  column-gap: var(--sp-gap);
  -webkit-column-gap: var(--sp-gap);
  width: 100%;
}
.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: var(--sp-gap);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0.75px solid var(--color-border-rule);
  background: var(--color-surface-card);
  /* V2 §4.2: 0.8s with cubic-bezier(0.25, 0.46, 0.45, 0.94) */
  transition: transform var(--dur-gallery) var(--ease-luxe),
              box-shadow var(--dur-gallery) var(--ease-luxe),
              border-color var(--dur-gallery) var(--ease-luxe);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
@media (max-width: 992px) {
  .masonry-grid { column-count: 2; -webkit-column-count: 2; }
}
@media (max-width: 600px) {
  .masonry-grid { column-count: 3; -webkit-column-count: 3; column-gap: 6px; -webkit-column-gap: 6px; }
  .masonry-item { margin-bottom: 6px; border-radius: 6px; }
}
.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(201, 168, 76, 0.40);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  /* V2 §4.2: image scales 1.05x at 0.8s with luxe easing */
  transition: transform var(--dur-gallery) var(--ease-luxe);
}
.masonry-item:hover img {
  transform: scale(1.05);
}
@media (max-width: 900px) {
  .masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .masonry-grid { column-count: 3; column-gap: 6px; }
  .masonry-item { margin-bottom: 6px; }
}

/* ─── 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: 14px;
  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); }
@media (hover: none) { .lightbox { cursor: auto; } }

/* ── PROJECTS GRID ── */
/* (was an inline <style> inside the projects section markup) */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: var(--sp-gap);
align-items: stretch;
}
.projects-grid > .card {
display: flex;
flex-direction: column;
justify-content: space-between;
}
