/* ══════════════════════════════════
   PRELOADER
══════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--noir);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease-out-expo), visibility .6s;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pl-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pl-mark {
  font-size: 28px;
  color: var(--gold);
  animation: plSpin 2.4s linear infinite;
  display: block;
  line-height: 1;
}
@keyframes plSpin {
  0%   { transform: rotate(0deg)   scale(1);    opacity: .4; }
  25%  { transform: rotate(90deg)  scale(1.15); opacity: 1;  }
  50%  { transform: rotate(180deg) scale(1);    opacity: .4; }
  75%  { transform: rotate(270deg) scale(1.15); opacity: 1;  }
  100% { transform: rotate(360deg) scale(1);    opacity: .4; }
}

.pl-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 7px;
  color: var(--ivory);
  opacity: .35;
  text-transform: uppercase;
}

.pl-bar {
  width: 120px;
  height: 1px;
  background: rgba(184,151,90,.15);
  overflow: hidden;
  position: relative;
}
.pl-bar-fill {
  position: absolute;
  inset: 0 100% 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-l));
  animation: plFill 1.2s var(--ease-out-expo) forwards;
}
@keyframes plFill {
  0%   { right: 100%; }
  60%  { right: 10%;  }
  100% { right: 0%;   }
}

/* Пока preloader активен — скрыть скролл */
body.loading {
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   ALVYTERA — Premium CSS
   Palette: Deep Noir · Antique Gold · Ivory
   Fonts: Cormorant Garamond + Inter + DM Mono
═══════════════════════════════════════════ */

:root {
  --noir:     #080a0e;
  --noir-2:   #0d1017;
  --noir-3:   #141820;
  --noir-4:   #1c2230;
  --gold:     #b8975a;
  --gold-l:   #d4b07a;
  --gold-d:   #8a6e3e;
  --ivory:    #f2ede6;
  --ivory-d:  #ccc4b8;
  --muted:    #5a6070;
  --muted-l:  #8a95a8;
  --line:     rgba(184,151,90,0.12);
  --line-s:   rgba(184,151,90,0.22);
  --white:    #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout:    cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1320px;
  --gap: clamp(28px, 4vw, 64px);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-body);
  background: var(--noir);
  color: var(--ivory);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ─── CONTAINER ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ─── REVEAL SYSTEM ─── */

/* Одиночные элементы: transition задан заранее, opacity меняется при .visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease-out-expo), transform .85s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger-группы: transition предопределён — срабатывает при добавлении visible-group */
.stagger-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease-out-expo), transform .75s var(--ease-out-expo);
}
.stagger-group.visible-group > * {
  opacity: 1;
  transform: translateY(0);
}

/* Последовательные задержки: 65 мс между элементами, до 8 штук */
.stagger-group.visible-group > *:nth-child(1) { transition-delay: .00s }
.stagger-group.visible-group > *:nth-child(2) { transition-delay: .065s }
.stagger-group.visible-group > *:nth-child(3) { transition-delay: .13s }
.stagger-group.visible-group > *:nth-child(4) { transition-delay: .195s }
.stagger-group.visible-group > *:nth-child(5) { transition-delay: .26s }
.stagger-group.visible-group > *:nth-child(6) { transition-delay: .325s }
.stagger-group.visible-group > *:nth-child(7) { transition-delay: .39s }
.stagger-group.visible-group > *:nth-child(8) { transition-delay: .455s }

/* Hero-разделители: только fade, без сдвига по Y */
.hero-bottom.stagger-group > .hero-divider {
  transform: none;
  transition: opacity .4s var(--ease-out-expo);
}
.hero-bottom.stagger-group.visible-group > .hero-divider {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .stagger-group > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ─── SECTION LABELS ─── */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
  flex-shrink: 0;
}

/* ─── SECTION TITLES ─── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.5px;
  color: var(--ivory);
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  color: var(--gold-l);
}
.section-lead {
  font-size: 20px;
  font-weight: 300;
  color: var(--muted-l);
  max-width: 580px;
  line-height: 1.8;
}
.section-header { margin-bottom: clamp(32px, 3.5vw, 56px); }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-lead { margin: 0 auto; }

/* ─── BUTTONS ─── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--noir);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background .3s, color .3s, transform .2s;
}
.btn-gold:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ivory);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid rgba(242,237,230,0.2);
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.btn-outline:hover {
  border-color: var(--ivory-d);
  color: var(--ivory);
}
.btn-arrow { transition: transform .3s; }
.btn-gold:hover .btn-arrow,
.btn-outline:hover .btn-arrow { transform: translateX(4px); }

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
header#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 72px;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
header#nav.scrolled {
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 5px;
  color: var(--ivory);
  font-weight: 400;
}
.logo-mark {
  position: relative;
  width: 44px;
  height: 40px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  overflow: visible;
  transition: transform .3s;
}
.logo-mark-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.logo-aa {
  position: absolute;
  top: -7px;
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 300;
  line-height: 1;
}
.logo-aa-shadow {
  left: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184,151,90,.46);
  text-shadow: 0 0 14px rgba(184,151,90,.16);
}
.logo-aa-main {
  left: 9px;
  background: linear-gradient(135deg, var(--gold-l), var(--gold) 54%, var(--gold-d));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-logo:hover .logo-mark { transform: translateY(-2px); }
.footer-logo .logo-mark {
  width: 39px;
  height: 36px;
  flex-basis: 39px;
}
.footer-logo .logo-aa {
  top: -7px;
  font-size: 32px;
}
.footer-logo .logo-aa-main { left: 8px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-l);
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,151,90,0.35);
  padding: 9px 20px;
  transition: background .3s, color .3s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--noir);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ivory);
  transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--noir-2);
  z-index: 190;
  padding: 48px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-120vh);
  transition: transform .4s var(--ease-inout), opacity .25s ease, visibility 0s linear .4s;
  will-change: transform;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform .4s var(--ease-inout), opacity .25s ease, visibility 0s;
}
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mm-link {
  display: block;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--ivory);
  transition: color .2s, padding-left .3s;
}
.mm-link:hover {
  color: var(--gold-l);
  padding-left: 12px;
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px clamp(24px, 5vw, 80px) 130px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-noise {
  position: absolute;
  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.035'/%3E%3C/svg%3E");
  opacity: .4;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(184,151,90,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(184,151,90,0.04) 0%, transparent 60%);
}
.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,151,90,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,151,90,0.04) 1px, transparent 1px);
  background-size: 120px 120px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.eyebrow-line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(68px, 10vw, 148px);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -1px;
  color: var(--ivory);
  margin-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-title .italic {
  font-style: italic;
  color: var(--gold-l);
  letter-spacing: 0;
}
.hero-title .title-line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .6s var(--ease-out-expo), transform .6s var(--ease-out-expo);
}
.hero-title .title-line.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-descriptor {
  max-width: 560px;
  font-size: 19px;
  font-weight: 300;
  color: var(--muted-l);
  line-height: 1.8;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero stats */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  border-top: 1px solid var(--line);
}
.hero-stat {
  flex: 1;
  padding: 28px clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-stat:first-child { padding-left: clamp(24px, 5vw, 80px); }
.hero-divider {
  width: 1px;
  background: var(--line);
  margin: 16px 0;
  flex-shrink: 0;
}
.stat-n {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1;
}
.stat-l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold-d));
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ══════════════════════════════════
   SERVICES
══════════════════════════════════ */
.services {
  padding: var(--gap) 0;
  background: var(--noir);
}
.services .container { padding-top: var(--gap); padding-bottom: calc(var(--gap) * 0.5); }
.services-list {
  display: flex;
  flex-direction: column;
}
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr 80px;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  cursor: default;
  transition: background .3s;
  position: relative;
}
.service-row::before {
  content: '';
  position: absolute;
  left: -80px;
  right: -80px;
  top: 0;
  bottom: 0;
  background: rgba(184,151,90,0.025);
  opacity: 0;
  transition: opacity .35s;
}
.service-row:hover::before { opacity: 1; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  padding-top: 6px;
}
.service-body { display: flex; flex-direction: column; gap: 16px; }
.service-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.service-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.1;
  flex-shrink: 0;
  transition: color .3s;
}
.service-row:hover .service-name { color: var(--gold-l); }
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.service-tags li,
.service-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(90,96,112,.3);
  padding: 4px 10px;
}
.service-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted-l);
  line-height: 1.85;
  max-width: 660px;
}
.service-icon-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 4px;
}
.service-icon-wrap svg {
  width: 52px;
  height: 52px;
  color: var(--gold-d);
  transition: color .3s, transform .4s var(--ease-out-expo);
}
.service-row:hover .service-icon-wrap svg {
  color: var(--gold);
  transform: scale(1.08);
}

/* ══════════════════════════════════
   PHILOSOPHY
══════════════════════════════════ */
.philosophy {
  position: relative;
  padding: var(--gap) 0;
  background: var(--noir-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.philosophy-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(184,151,90,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.philosophy .container { position: relative; z-index: 1; padding-top: var(--gap); padding-bottom: var(--gap); }
.acro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 60px;
}
.acro-item {
  background: var(--noir-2);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: default;
  transition: background .35s;
}
.acro-item:hover { background: var(--noir-3); }
.acro-letter {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--gold);
  opacity: .7;
  transition: opacity .3s, transform .4s var(--ease-out-expo);
}
.acro-item:hover .acro-letter {
  opacity: 1;
  transform: translateY(-4px);
}
.acro-content {}
.acro-word {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 10px;
}
.acro-content p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted-l);
  line-height: 1.8;
}

/* ─── ACRO GRID — entrance animation ─── */
.acro-grid.stagger-group > .acro-item {
  transform: translateY(48px) scale(0.96);
  transition: opacity 1.1s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.acro-grid.stagger-group.visible-group > .acro-item {
  transform: translateY(0) scale(1);
}
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(1) { transition-delay: .00s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(2) { transition-delay: .10s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(3) { transition-delay: .20s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(4) { transition-delay: .30s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(5) { transition-delay: .40s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(6) { transition-delay: .50s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(7) { transition-delay: .60s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(8) { transition-delay: .70s }

/* Letter drops in from above, slightly after the card */
.acro-grid.stagger-group .acro-letter {
  opacity: 0;
  transform: translateY(-28px) scale(1.1);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
.acro-grid.stagger-group.visible-group > .acro-item .acro-letter {
  opacity: .7;
  transform: translateY(0) scale(1);
}
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(1) .acro-letter { transition-delay: .12s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(2) .acro-letter { transition-delay: .22s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(3) .acro-letter { transition-delay: .32s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(4) .acro-letter { transition-delay: .42s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(5) .acro-letter { transition-delay: .52s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(6) .acro-letter { transition-delay: .62s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(7) .acro-letter { transition-delay: .72s }
.acro-grid.stagger-group.visible-group > .acro-item:nth-child(8) .acro-letter { transition-delay: .82s }

/* Restore snappy hover on letter after entrance */
.acro-grid.stagger-group.visible-group > .acro-item:hover .acro-letter {
  opacity: 1;
  transform: translateY(-4px) scale(1);
  transition: opacity .3s, transform .4s var(--ease-out-expo);
  transition-delay: 0s;
}

/* ══════════════════════════════════
   PROCESS
══════════════════════════════════ */
.process {
  padding: var(--gap) 0;
  background: var(--noir);
}
.process .container { padding-top: var(--gap); padding-bottom: var(--gap); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.process-step {
  padding: 48px 36px 44px;
  border-right: 1px solid var(--line);
  transition: background .3s;
  cursor: default;
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: rgba(184,151,90,0.025); }
.step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-d);
  margin-bottom: 32px;
}
.step-line {
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
  opacity: .4;
  transition: width .4s var(--ease-out-expo), opacity .3s;
}
.process-step:hover .step-line {
  width: 48px;
  opacity: .8;
}
.step-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 14px;
  line-height: 1.2;
}
.step-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted-l);
  line-height: 1.8;
}

/* ══════════════════════════════════
   INDUSTRIES
══════════════════════════════════ */
.industries {
  background: var(--noir-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--gap) 0;
}
.industries .container { padding-top: var(--gap); }
.industries .section-header { max-width: 520px; }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  margin: 60px clamp(16px, 5vw, 80px) 0;
}
.ind-item {
  background: var(--noir-3);
  padding: 44px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: default;
  transition: background .3s;
}
.ind-item:hover { background: var(--noir-4); }
.ind-icon {
  width: 40px;
  height: 40px;
  color: var(--gold-d);
  transition: color .3s, transform .4s var(--ease-out-expo);
}
.ind-item:hover .ind-icon {
  color: var(--gold);
  transform: translateY(-3px);
}
.ind-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.25;
}
.ind-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

/* ══════════════════════════════════
   CONTACT
══════════════════════════════════ */
.contact {
  padding: var(--gap) 0;
  background: var(--noir-2);
}
.contact .container { padding-top: var(--gap); padding-bottom: var(--gap); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  color: var(--ivory);
  margin-bottom: 28px;
}
.contact-title em {
  font-style: italic;
  color: var(--gold-l);
}
.contact-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted-l);
  line-height: 1.8;
  margin-bottom: 48px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 300;
  color: var(--muted-l);
  transition: color .25s;
}
.contact-detail-row:first-child { border-top: 1px solid var(--line); }
.contact-detail-row:hover { color: var(--ivory); }
.cd-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-s);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: border-color .25s;
}
.cd-icon svg { width: 16px; height: 16px; }
.contact-detail-row:hover .cd-icon { border-color: var(--gold-d); }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(242,237,230,0.03);
  border: 1px solid rgba(242,237,230,0.1);
  color: var(--ivory);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 16px;
  transition: border-color .25s, background .25s;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(184,151,90,0.4);
  background: rgba(184,151,90,0.03);
}
.form-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpolyline points='1,1 6,7 11,1' fill='none' stroke='%235a6070' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: rgba(242,237,230,0.03);
}
.form-field select option {
  background: var(--noir-2);
  color: var(--ivory);
}
.form-field textarea {
  resize: none;
  line-height: 1.7;
  font-family: var(--font-body);
}
.form-submit {
  align-self: flex-start;
  margin-top: 8px;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: var(--noir);
  border-top: 1px solid var(--line);
  padding: var(--gap) 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 5px;
  color: var(--ivory);
  margin-bottom: 20px;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted-l);
  line-height: 1.5;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  transition: color .2s;
}
.footer-col a:hover { color: var(--ivory-d); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}
.footer-legal {
  display: flex;
  gap: 28px;
}
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--ivory-d); }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
/* ══════════════════════════════════
   RESPONSIVE — 1280px tablet landscape
══════════════════════════════════ */
@media (max-width: 1280px) {
  :root { --container: 1080px; }

  .service-row { gap: 28px; }
  .service-name { font-size: 28px; }
  .acro-letter { font-size: 64px; }
  .acro-item { padding: 36px 28px; }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { gap: 56px; }
}

/* ══════════════════════════════════
   RESPONSIVE — 1024px tablet
══════════════════════════════════ */
@media (max-width: 1024px) {
  .acro-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3n) { border-right: none; }
  .process-step:nth-child(4),
  .process-step:nth-child(5) { border-top: 1px solid var(--line); }

  .footer-top { gap: 48px; }
  .footer-nav { gap: 28px; }

  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .contact-title { font-size: clamp(40px, 6vw, 72px); }
}

/* ══════════════════════════════════
   RESPONSIVE — 900px tablet portrait
══════════════════════════════════ */
@media (max-width: 900px) {
  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { padding: 0 24px; }
  .mobile-menu { display: block; }

  /* Hero */
  .hero { padding: 100px 24px 0; min-height: 100svh; }
  .hero-title { font-size: clamp(48px, 11vw, 88px); }
  .hero-descriptor { font-size: 18px; max-width: 100%; }
  .hero-actions { gap: 14px; }
  .hero-bottom {
    position: static;
    flex-wrap: wrap;
    margin-top: 40px;
    border-top: 1px solid var(--line);
  }
  .hero-stat { flex: 1 1 50%; padding: 20px 16px; }
  .hero-divider:nth-child(4) { display: none; }
  .scroll-indicator { display: none; }

  /* Section padding */
  .services .container,
  .philosophy .container,
  .process .container { padding-top: 60px; padding-bottom: 60px; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(36px, 7vw, 60px); }

  /* Services */
  .service-row {
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 28px 0;
  }
  .service-icon-wrap { display: none; }
  .service-name { font-size: 26px; }
  .service-desc { font-size: 16px; }

  /* Philosophy */
  .acro-grid { grid-template-columns: repeat(2, 1fr); }
  .acro-item { padding: 32px 24px; }
  .acro-letter { font-size: 56px; }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { padding: 28px 24px; }
  .process-step:nth-child(2n) { border-right: none; }
  .process-step:nth-child(3),
  .process-step:nth-child(4),
  .process-step:nth-child(5) { border-top: 1px solid var(--line); }
  .process-step:nth-child(3) { border-right: 1px solid var(--line); }
  .process-step:nth-child(5) { border-right: none; }

  /* Industries */
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .ind-item { padding: 32px 20px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-title { font-size: clamp(40px, 10vw, 72px); }
  .contact-sub { font-size: 16px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  /* Legal */
  .legal-page { padding: calc(72px + 48px) 24px 64px; }
  .legal-page h1 { font-size: clamp(36px, 9vw, 60px); }
}

/* ══════════════════════════════════
   RESPONSIVE — 640px mobile
══════════════════════════════════ */
@media (max-width: 640px) {
  /* Hero */
  .hero { padding: 88px 20px 0; }
  .hero-title { font-size: clamp(42px, 13vw, 72px); letter-spacing: -0.5px; }
  .hero-eyebrow { margin-bottom: 24px; }
  .eyebrow-text { font-size: 9px; letter-spacing: 2px; }
  .hero-descriptor { font-size: 17px; margin-bottom: 32px; }
  .btn-gold, .btn-outline { padding: 13px 22px; font-size: 12px; }
  .hero-stat { flex: 1 1 50%; }
  .stat-n { font-size: 28px; }

  /* Section */
  .section-title { font-size: clamp(32px, 9vw, 52px); }
  .section-lead { font-size: 18px; }

  /* Services */
  .service-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .service-num { display: none; }
  .service-name { font-size: 24px; }
  .service-header { flex-direction: column; gap: 12px; }

  /* Philosophy */
  .acro-grid { grid-template-columns: 1fr; }
  .acro-item { padding: 28px 20px; flex-direction: row; align-items: flex-start; gap: 20px; }
  .acro-letter { font-size: 48px; flex-shrink: 0; }
  .acro-word { margin-bottom: 6px; }

  /* Process */
  .process-grid { grid-template-columns: 1fr; border: none; gap: 0; }
  .process-step {
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 24px 0;
  }
  .process-step:last-child { border-bottom: none !important; }

  /* Industries */
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-item { padding: 28px 16px; gap: 12px; }
  .ind-name { font-size: 15px; }
  .ind-desc { display: none; }

  /* Contact */
  .contact-title { font-size: clamp(36px, 11vw, 60px); }
  .form-row { grid-template-columns: 1fr; }
  .contact-details { margin-bottom: 8px; }

  /* Footer */
  .footer-top { padding-bottom: 32px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-legal { gap: 20px; }

  /* Toast */
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

/* ══════════════════════════════════
   RESPONSIVE — 380px small mobile
══════════════════════════════════ */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(36px, 14vw, 52px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-gold, .btn-outline { text-align: center; justify-content: center; }
  .hero-stat { flex: 1 1 100%; }
  .hero-divider { display: none; }
  .acro-item { flex-direction: column; }
  .ind-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .contact-title { font-size: clamp(32px, 12vw, 48px); }
}

/* ─── FORM STATUS / VALIDATION ─── */
.form-field.error input,
.form-field.error textarea,
.form-field.error select {
  border-color: rgba(200, 60, 60, 0.55);
}
.form-field .field-error {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: #c05050;
  margin-top: 4px;
  display: none;
}
.form-field.error .field-error { display: block; }
.req { color: var(--gold-d); }
.form-status {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  min-height: 0;
  transition: all .3s;
}
.form-status.success { color: #6dbf8f; }
.form-status.error-msg { color: #c07070; }

/* ─── LOADING STATE ─── */
.btn-gold.loading {
  opacity: .65;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-gold.sent {
  background: rgba(184,151,90,.45);
  color: var(--ivory);
  border-color: rgba(184,151,90,.3);
  cursor: default;
  pointer-events: none;
}

/* ─── SKIP LINK (accessibility) ─── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--noir);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ─── PRIVACY / TERMS PAGES ─── */
.legal-page {
  padding: calc(72px + 80px) clamp(24px,5vw,80px) 100px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: 12px;
  line-height: 1.05;
}
.legal-page .legal-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 56px;
  display: block;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ivory);
  margin: 44px 0 14px;
  line-height: 1.2;
}
.legal-page p,
.legal-page li {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted-l);
  line-height: 1.85;
  margin-bottom: 14px;
}
.legal-page ul { padding-left: 20px; }
.legal-page a { color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; }

/* ─── TOAST NOTIFICATION ─── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--noir-3);
  border: 1px solid var(--line-s);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 300;
  padding: 16px 24px;
  max-width: 320px;
  z-index: 500;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .4s var(--ease-out-expo), opacity .4s;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-color: rgba(100,180,120,.3); }

/* ─── MOBILE TOUCH & SAFE AREA ─── */
@supports (padding: env(safe-area-inset-bottom)) {
  header#nav {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-menu {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
}

/* Tap highlight off on interactive elements */
a, button, .service-row, .acro-item, .ind-item {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent text size adjust on orientation change */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Better touch scrolling */
.mobile-menu {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* Prevent hero bottom from overlapping on short screens */
@media (max-height: 820px) {
  .hero-title { font-size: clamp(52px, 8vw, 110px); }
}
@media (max-height: 700px) {
  .hero-title { font-size: clamp(42px, 7vw, 80px); }
  .hero { padding-top: 80px; padding-bottom: 110px; }
  .hero-descriptor { font-size: 16px; margin-bottom: 32px; }
}
@media (max-height: 600px) and (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-title { font-size: clamp(36px, 10vw, 60px); }
  .hero-bottom { display: none; }
}


/* ══════════════════════════════════
   PRELOADER — A-split animation
══════════════════════════════════ */
.pl-mark { display: none; }
.pl-logo { display: none; }

.pl-logo-anim {
  position: relative;
  width: clamp(210px, 32vw, 300px);
  height: clamp(210px, 32vw, 300px);
  display: grid;
  place-items: center;
  user-select: none;
  line-height: 1;
}

.pl-brand-avatar {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 18px 36px rgba(184,151,90,.08));
}

.pl-brand-a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 580px;
  font-weight: 400;
  transform-box: fill-box;
  transform-origin: center;
}

.pl-brand-shadow {
  animation: plBrandShadowSplit 1.15s var(--ease-out-expo) .12s both;
}

.pl-brand-main {
  animation: plBrandMainSplit 1.15s var(--ease-out-expo) .12s both;
}

@keyframes plBrandShadowSplit {
  0%   { opacity: 0; transform: translateX(68px) scale(1.05); }
  30%  { opacity: .22; }
  100% { transform: translateX(0) scale(1); }
}

@keyframes plBrandMainSplit {
  0%   { opacity: 0; transform: translateX(-58px) scale(1.05); }
  30%  { opacity: 1; }
  100% { transform: translateX(0) scale(1); }
}

.pl-a {
  font-family: var(--font-display);
  font-size: clamp(118px, 16vw, 166px);
  font-weight: 300;
  position: absolute;
  top: 2px;
  display: block;
  line-height: 1;
}

.pl-a-shadow {
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(184,151,90,.42);
  text-shadow: 0 0 24px rgba(184,151,90,.16);
  animation: plShadowSplit 1.15s var(--ease-out-expo) .12s both;
}

.pl-a-main {
  background: linear-gradient(135deg, var(--gold-l), var(--gold) 54%, var(--gold-d));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 26px rgba(184,151,90,.12));
  animation: plMainSplit 1.15s var(--ease-out-expo) .12s both;
}

.pl-word {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 7px;
  color: var(--ivory);
  opacity: 0;
  white-space: nowrap;
  animation: plWordFade .55s ease-out .9s both;
}

@keyframes plShadowSplit {
  0%   { opacity: 0; transform: translateX(0) scale(1.18); }
  26%  { opacity: .55; }
  100% { opacity: .72; transform: translateX(-34px) scale(1); }
}

@keyframes plMainSplit {
  0%   { opacity: 0; transform: translateX(0) scale(1.18); }
  26%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(34px) scale(1); }
}

@keyframes plWordFade {
  0%   { opacity: 0; transform: translate(-50%, 8px); }
  100% { opacity: .38; transform: translate(-50%, 0); }
}

.pl-logo-anim + .pl-bar {
  width: min(210px, 52vw);
  margin-top: -38px;
}

/* ══════════════════════════════════
   LOGO — SVG A mark
══════════════════════════════════ */
.logo-aa-main,
.logo-aa-shadow {
  pointer-events: none;
}

/* ══════════════════════════════════
   TEAM SECTION
══════════════════════════════════ */
.team-section {
  padding: var(--gap) 0 0;
  background: var(--noir);
  border-top: 1px solid var(--line);
}

.team-section .container { padding-top: var(--gap); }

/* ── Founder Block ── */
.founder-block {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px) 0 var(--gap);
}

.founder-portrait {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: start;
}

.founder-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(184,151,90,0.28);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(184,151,90,0.06),
    0 0 60px rgba(184,151,90,0.05);
}

.founder-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  filter: grayscale(8%) contrast(1.08) brightness(0.92) saturate(0.85);
  transition: filter 0.5s ease, transform 0.8s var(--ease-out-expo);
}

.founder-portrait-frame:hover img {
  filter: grayscale(2%) contrast(1.1) brightness(0.98) saturate(0.95);
  transform: scale(1.015);
}

.founder-portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,10,14,0.55) 0%,
    rgba(8,10,14,0.1) 38%,
    rgba(8,10,14,0) 60%
  );
  pointer-events: none;
}

.founder-portrait-badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 14px;
  background: var(--noir-3);
  border: 1px solid var(--line-s);
  border-left: 2px solid var(--gold);
}

.founder-portrait-badge-line {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.founder-portrait-badge-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-l);
}

.founder-body {
  max-width: 620px;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.95;
  margin-bottom: 16px;
}

.founder-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ivory);
  margin: 0;
  letter-spacing: -0.5px;
}

.founder-sep {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0 26px;
  opacity: 0.65;
}

.founder-bio {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ivory-d);
  margin: 0 0 36px;
}

.founder-team-card {
  position: relative;
  padding: 22px 24px 22px 26px;
  background: rgba(20,24,32,0.55);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-d);
  border-radius: 2px;
}

.founder-team-card-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
  margin-bottom: 10px;
}

.founder-team-card-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted-l);
  margin: 0;
}

.team-caption {
  padding-top: 0;
  padding-bottom: var(--gap);
}

.team-caption p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  border-left: 1px solid var(--line-s);
  padding-left: 20px;
}

@media (max-width: 900px) {
  .founder-block {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 48px);
    padding: clamp(28px, 6vw, 48px) 0 var(--gap);
  }
  .founder-portrait { justify-self: center; max-width: 380px; }
}

@media (max-width: 600px) {
  .founder-portrait-frame { aspect-ratio: 4 / 5; }
  .founder-portrait-badge {
    left: -8px;
    bottom: 16px;
    padding: 8px 14px 8px 10px;
    gap: 10px;
  }
  .founder-portrait-badge-text { font-size: 0.52rem; letter-spacing: 2.5px; }
  .founder-sep { margin: 22px 0 20px; }
  .founder-bio { margin-bottom: 28px; }
  .founder-team-card { padding: 18px 18px 18px 20px; }
  .team-caption { padding-bottom: calc(var(--gap) * 0.6); }
}

/* ══════════════════════════════════
   GLOBAL PRESENCE
══════════════════════════════════ */
.presence {
  padding: var(--gap) 0;
  background: var(--noir-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.presence .container { padding-top: var(--gap); }

/* ── Interactive Globe ── */
.presence-globe-wrap {
  position: relative;
  margin-top: 56px;
  min-height: 560px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  opacity: 0;
  animation: globeFadeIn 1s var(--ease-out-expo) 0.3s forwards;
}

@keyframes globeFadeIn {
  to { opacity: 1; }
}

#globeCanvas {
  display: block;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#globeCanvas:active {
  cursor: grabbing;
}

/* Location tags row */
.presence-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-bottom: var(--gap);
  justify-content: center;
}

.presence-loc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3.5px;
  color: var(--ivory);
  opacity: 0.42;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: opacity 0.35s, color 0.35s;
}

.presence-loc:hover { opacity: 0.75; }
.presence-loc.globe-active { opacity: 1; color: var(--gold-l); }

.presence-loc::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(184,151,90,0.6);
}

/* Stagger on location tags */
.presence-locations.stagger-group > * { transition-duration: 0.5s; }
.presence-locations.stagger-group.visible-group > *:nth-child(1) { transition-delay: .00s }
.presence-locations.stagger-group.visible-group > *:nth-child(2) { transition-delay: .05s }
.presence-locations.stagger-group.visible-group > *:nth-child(3) { transition-delay: .10s }
.presence-locations.stagger-group.visible-group > *:nth-child(4) { transition-delay: .15s }
.presence-locations.stagger-group.visible-group > *:nth-child(5) { transition-delay: .20s }
.presence-locations.stagger-group.visible-group > *:nth-child(6) { transition-delay: .25s }
.presence-locations.stagger-group.visible-group > *:nth-child(7) { transition-delay: .30s }
.presence-locations.stagger-group.visible-group > *:nth-child(8) { transition-delay: .35s }
.presence-locations.stagger-group.visible-group > *:nth-child(9) { transition-delay: .40s }
.presence-locations.stagger-group.visible-group > *:nth-child(10) { transition-delay: .45s }
.presence-locations.stagger-group.visible-group > *:nth-child(11) { transition-delay: .50s }

/* ══════════════════════════════════
   PARTNERS
══════════════════════════════════ */
.partners {
  padding: var(--gap) 0;
  background: var(--noir);
  border-top: 1px solid var(--line);
}

.partners .container { padding-top: var(--gap); padding-bottom: var(--gap); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 60px;
  border: 1px solid rgba(184,151,90,0.12);
  gap: 0;
}

.partner-card {
  padding: 44px 32px;
  border-right: 1px solid rgba(184,151,90,0.1);
  background: var(--noir-2);
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}

.partner-card:hover::before { width: 100%; }

.partner-card:last-child { border-right: none; }

.partner-card:hover {
  background: var(--noir-3);
}

.partner-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.1;
  transition: color 0.25s;
}

.partner-card:hover .partner-logo { color: var(--gold-l); }

.partner-domain {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--ivory);
  opacity: 0.3;
  text-transform: lowercase;
}

.partner-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--ivory);
  opacity: 0.48;
  line-height: 1.7;
  flex: 1;
  transition: opacity 0.25s;
}

.partner-card:hover .partner-desc { opacity: 0.65; }

.partner-arrow {
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  align-self: flex-end;
  margin-top: 4px;
}

.partner-card:hover .partner-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* Non-clickable partner card */
.partner-card-static { cursor: default; }
.partner-card-static::before { content: none; }
.partner-card-static:hover { background: var(--noir-2); }
.partner-card-static:hover .partner-logo { color: var(--gold); }
.partner-card-static:hover .partner-desc { opacity: 0.48; }

@media (max-width: 1024px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-card:nth-child(2) { border-right: none; }
  .partner-card:nth-child(3),
  .partner-card:nth-child(4) { border-top: 1px solid rgba(184,151,90,0.1); }
}

@media (max-width: 640px) {
  .partners-grid { grid-template-columns: 1fr; }
  .partner-card { border-right: none !important; border-bottom: 1px solid rgba(184,151,90,0.1); }
  .partner-card:last-child { border-bottom: none; }
}

/* ══════════════════════════════════
   RESPONSIVE — new sections
══════════════════════════════════ */
@media (max-width: 900px) {
  .presence-globe-wrap {
    margin-top: 32px;
    min-height: auto;
  }
  .presence-locations {
    margin-top: 12px;
    gap: 9px 18px;
  }
}

@media (max-width: 640px) {
  .team-caption { padding-top: 28px; }
  .presence-globe-wrap { margin-top: 22px; }
  .presence-locations {
    margin-top: 4px;
    gap: 8px 14px;
    padding-bottom: 44px;
  }
  .presence-loc {
    font-size: 0.58rem;
    letter-spacing: 2.4px;
  }
}

/* Tap highlight */
.partner-card, .team-member {
  -webkit-tap-highlight-color: transparent;
}

/* ══════════════════════════════════
   PARTNER LOGO SVG MARKS
══════════════════════════════════ */
.partner-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.1;
  transition: color 0.25s;
}

.partner-card:hover .partner-logo { color: var(--gold-l); }

.partner-logo-svg {
  width: auto;
  height: 32px;
  max-width: 110px;
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.72;
  transition: opacity 0.25s, transform 0.3s;
}

.partner-card:hover .partner-logo-svg {
  opacity: 0.95;
  transform: scale(1.06);
}

.partner-logo span {
  flex: 1;
}

