/* ==========================================================
   ABBYS CONSULT — ABYSSAL FUTURISM
   Deep navy · gold accents · sharp corporate lines
   ========================================================== */

:root {
  /* Depth scale — abyss */
  --abyss-deep: #050B14;
  --abyss: #0A1628;
  --abyss-soft: #0F1E3A;
  --abyss-mist: #162A4D;

  /* Gold scale */
  --gold: #C9A84C;
  --gold-bright: #E0BC5A;
  --gold-deep: #8B7534;
  --gold-glow: rgba(201, 168, 76, 0.22);

  /* Light */
  --white: #FFFFFF;
  --white-90: rgba(255, 255, 255, 0.92);
  --white-70: rgba(255, 255, 255, 0.72);
  --white-50: rgba(255, 255, 255, 0.52);
  --white-30: rgba(255, 255, 255, 0.32);
  --white-15: rgba(255, 255, 255, 0.15);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-gold: rgba(201, 168, 76, 0.25);

  /* Typography */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
  --font-accent: "Fraunces", "Cormorant Garamond", Georgia, serif;

  /* Motion */
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1320px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--abyss);
  color: var(--white-90);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0.005em;
  min-height: 100vh;
}

/* Ambient depth layers */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(201, 168, 76, 0.08), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(22, 42, 77, 0.8), transparent 70%),
    linear-gradient(180deg, var(--abyss-deep), var(--abyss) 40%, var(--abyss-deep));
  pointer-events: none;
}

/* Subtle technical grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 85%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 85%);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--abyss-deep);
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  white-space: nowrap;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.eyebrow.centered {
  justify-content: center;
}

.eyebrow.centered::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

em,
.italic {
  font-style: italic;
}

/* ==========================================================
   LAYOUT PRIMITIVES
   ========================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section {
  padding: clamp(6rem, 12vw, 10rem) 0;
  position: relative;
}

/* ==========================================================
   SCROLL PROGRESS BAR
   ========================================================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
  z-index: 200;
  pointer-events: none;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 50%, var(--gold-bright));
  box-shadow: 0 0 12px var(--gold-glow);
  transition: width 0.08s linear;
}

/* ==========================================================
   DEPTH GAUGE (side indicator)
   ========================================================== */
.depth-gauge {
  position: fixed;
  left: 1.8rem;
  top: 50%;
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--white-30);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  padding: 1rem 0;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .depth-gauge {
    display: none;
  }
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.8rem 0;
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease),
    padding 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 11, 20, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--hairline);
  padding: 1.1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transition: transform 0.8s var(--ease), opacity 0.6s var(--ease);
}

.logo-mark::after {
  transform: rotate(45deg);
  opacity: 0.45;
}

.logo:hover .logo-mark::after {
  transform: rotate(90deg);
  opacity: 0.8;
}

.logo-mark span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 500;
  position: relative;
  z-index: 1;
  letter-spacing: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.35rem;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
}

.nav-links a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--white-70);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease);
  padding: 0.6rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease), left 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.nav-icon {
  display: none;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s var(--ease), transform 0.5s var(--ease);
}

.nav-links a:hover .nav-icon svg {
  transform: translateY(-1px);
}

/* Icon-only nav between 640px and 975px */
@media (max-width: 975px) {
  .nav-links {
    gap: 1.4rem;
  }
  .nav-links a {
    padding: 0.6rem 0.4rem;
  }
  .nav-links a::before {
    display: none;
  }
  .nav-text {
    display: none;
  }
  .nav-icon {
    display: inline-flex;
  }
}

/* ==========================================================
   LANGUAGE SWITCHER (dropdown)
   ========================================================== */
.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
  line-height: 1;
  text-transform: uppercase;
}

.lang-current:hover,
.lang-switcher.is-open .lang-current {
  color: var(--gold);
  border-color: var(--hairline-gold);
  background: rgba(201, 168, 76, 0.04);
}

.lang-current .lang-chevron {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.lang-switcher.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 100%;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-gold);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.lang-switcher.is-open .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 0.8rem;
  background: transparent;
  border: none;
  color: var(--white-50);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  line-height: 1;
  text-align: left;
}

.lang-btn:not(:last-child) {
  border-bottom: 1px solid var(--hairline);
}

.lang-btn:hover {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.lang-btn.is-active {
  color: var(--gold);
  position: relative;
}

.lang-btn.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}


/* ==========================================================
   CTA BUTTONS
   ========================================================== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.9rem;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.7s var(--ease);
  z-index: 0;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta:hover {
  color: var(--abyss-deep);
}

.cta:hover::before {
  transform: translateX(0);
}

.cta .arrow {
  font-size: 1rem;
  transition: transform 0.5s var(--ease);
  line-height: 1;
}

.cta:hover .arrow {
  transform: translateX(5px);
}

.cta.cta-filled {
  background: var(--gold);
  color: var(--abyss-deep);
  border-color: var(--gold);
}

.cta.cta-filled::before {
  background: var(--gold-bright);
}

.cta.cta-filled:hover {
  color: var(--abyss-deep);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline-gold);
  background: transparent;
  position: relative;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.5s var(--ease);
}

.mobile-toggle span {
  top: 22px;
}

.mobile-toggle span::before {
  top: -6px;
}

.mobile-toggle span::after {
  top: 6px;
}

.nav.is-open .mobile-toggle span {
  background: transparent;
}

.nav.is-open .mobile-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .mobile-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 20, 0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: var(--gutter);
}

.mobile-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
    color 0.4s var(--ease);
}

.mobile-panel a:hover {
  color: var(--gold);
}

.mobile-panel.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-panel.is-open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-panel.is-open a:nth-child(2) { transition-delay: 0.18s; }
.mobile-panel.is-open a:nth-child(3) { transition-delay: 0.26s; }
.mobile-panel.is-open a:nth-child(4) { transition-delay: 0.34s; }
.mobile-panel.is-open .cta { transition-delay: 0.44s; }

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 0 6rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  width: 120vmin;
  height: 120vmin;
  background: radial-gradient(circle at center, var(--gold-glow), transparent 55%);
  transform: translate(-50%, -50%);
  animation: breathe 10s ease-in-out infinite;
}

/* Vertical light ray — aligned with the 2-column grid seam */
.hero-bg::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 58%;
  width: 1px;
  height: 120%;
  background: linear-gradient(to bottom, transparent 10%, var(--gold) 50%, transparent 90%);
  transform: translateX(-50%) rotate(-4deg);
  transform-origin: top center;
  opacity: 0.22;
}

@keyframes breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-col-text {
  min-width: 0;
}

.hero-col-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
  animation-delay: 0.35s;
}

.hero-headline {
  margin: 1.4rem 0 1.6rem;
  position: relative;
}

/* ----------------------------------------------------------
   HERO HEADLINE — left column (text), 3D logo in right column
   ---------------------------------------------------------- */
.hero-logo-3d {
  display: block;
  position: relative;
  width: 100%;
  max-width: clamp(320px, 42vw, 520px);
  aspect-ratio: 5 / 4;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
  pointer-events: none;
}

.hero-logo-3d.is-loaded {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Text fallback — flows inline inside the left column */
.hero-headline-fallback {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.hero-headline-fallback .line-abyss {
  display: block;
  font-size: clamp(3.4rem, 7.2vw, 7.4rem);
  opacity: 0;
  transform: translateY(60px);
  animation: fadeUp 1.5s var(--ease) forwards;
  animation-delay: 0.55s;
}

.hero-headline-fallback .line-consult {
  display: block;
  font-style: italic;
  color: var(--gold-bright);
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  margin-left: clamp(0.8rem, 3vw, 3rem);
  margin-top: -0.15em;
  font-weight: 500;
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.5s var(--ease) forwards;
  animation-delay: 0.8s;
}

.hero-logo-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Subtle gold halo behind canvas */
.hero-logo-3d::after {
  content: "";
  position: absolute;
  inset: -4%;
  background: radial-gradient(
    ellipse at center,
    rgba(201, 168, 76, 0.12),
    transparent 60%
  );
  z-index: -1;
  pointer-events: none;
  animation: logoHalo 7s ease-in-out infinite;
}

@keyframes logoHalo {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white-90);
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s var(--ease) forwards;
  animation-delay: 1s;
  line-height: 1.3;
}

.hero-tagline .dot {
  color: var(--gold);
  font-style: normal;
  margin: 0 0.6rem;
  display: inline-block;
  transform: translateY(-0.15em);
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--white-70);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 2.4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s var(--ease) forwards;
  animation-delay: 1.15s;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s var(--ease) forwards;
  animation-delay: 1.3s;
}

.hero-meta {
  position: absolute;
  bottom: 3rem;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-30);
  opacity: 0;
  animation: fadeIn 1.5s var(--ease) forwards;
  animation-delay: 1.7s;
}

.hero-meta::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-30);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  opacity: 0;
  animation: fadeIn 1.5s var(--ease) forwards;
  animation-delay: 1.7s;
}

.scroll-hint::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@media (max-width: 1100px) {
  .scroll-hint { display: none; }
  .hero-meta { display: none; }
}

@keyframes scrollLine {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(10px);
    opacity: 0.4;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================
   SERVICES SECTION
   ========================================================== */
.services {
  position: relative;
  border-top: 1px solid var(--hairline);
}

.services-header {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  margin-bottom: clamp(4rem, 8vw, 6rem);
  align-items: end;
}

.services-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-top: 1.8rem;
}

.services-header h2 em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 500;
}

.services-header p {
  color: var(--white-70);
  font-size: 1rem;
  max-width: 50ch;
  line-height: 1.8;
  font-weight: 300;
}

@media (max-width: 900px) {
  .services-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline-gold);
  border-bottom: 1px solid var(--hairline-gold);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service {
  padding: 3.2rem 2.6rem 3.8rem;
  border-right: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  transition: background 0.8s var(--ease);
  cursor: pointer;
  outline: none;
}

.service:focus-visible {
  background: rgba(201, 168, 76, 0.04);
  box-shadow: inset 0 0 0 1px var(--hairline-gold);
}

/* Toggle indicator — top-right plus/cross */
.service-toggle {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline-gold);
  z-index: 2;
  transition: border-color 0.5s var(--ease), transform 0.6s var(--ease),
    background 0.4s var(--ease);
}

.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--gold);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.service-toggle::before {
  width: 12px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.service-toggle::after {
  width: 1px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.service:hover .service-toggle,
.service:focus-visible .service-toggle {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.service.is-expanded .service-toggle {
  border-color: var(--gold);
  background: var(--gold);
  transform: rotate(45deg);
}

.service.is-expanded .service-toggle::before,
.service.is-expanded .service-toggle::after {
  background: var(--abyss-deep);
}

/* Collapsible details wrapper */
.service-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
  pointer-events: none;
}

.service.is-expanded .service-details {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .service-details {
    transition: none;
  }
}

.service:last-child {
  border-right: none;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease);
}

.service::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.05), transparent 80%);
  transition: height 0.8s var(--ease);
  pointer-events: none;
}

.service:hover::before {
  transform: scaleX(1);
}

.service:hover::after {
  height: 100%;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 2.8rem;
  display: inline-block;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 2.2rem;
  border: 1px solid var(--hairline-gold);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  transition: border-color 0.7s var(--ease), transform 0.8s var(--ease);
}

.service:hover .service-icon {
  border-color: var(--gold);
  transform: rotate(45deg);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.8s var(--ease);
}

.service:hover .service-icon svg {
  transform: rotate(-45deg);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.4rem;
  letter-spacing: -0.008em;
  position: relative;
  z-index: 1;
}

.service p {
  font-size: 0.92rem;
  color: var(--white-50);
  line-height: 1.75;
  max-width: 30ch;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

/* ==========================================================
   ABOUT SECTION
   ========================================================== */
.about {
  position: relative;
  border-top: 1px solid var(--hairline);
  background: rgba(5, 11, 20, 0.35);
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(201, 168, 76, 0.05),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-header {
  margin-bottom: clamp(2.8rem, 5vw, 4rem);
}

.about-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 1.4rem;
}

.about-header h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--white-90);
  max-width: 780px;
  margin: 0 auto clamp(2.8rem, 5vw, 4rem);
  padding: 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  letter-spacing: 0.002em;
}

.about-quote::before,
.about-quote::after {
  position: absolute;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-style: normal;
  font-weight: 500;
  line-height: 0.6;
  opacity: 0.9;
}

.about-quote::before {
  content: "«";
  left: 0;
  top: 0.2em;
}

.about-quote::after {
  content: "»";
  right: 0;
  bottom: -0.1em;
}

/* Visually hidden but crawlable — about-content stays in DOM for
   SEO/GEO (Googlebot, GPTBot, ClaudeBot, PerplexityBot), but is
   not rendered to sighted users. */
.about-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

.about-paragraph p {
  font-size: 1rem;
  color: var(--white-70);
  line-height: 1.8;
  font-weight: 300;
}

.about-paragraph p + p {
  margin-top: 1rem;
}

.about-paragraph strong {
  color: var(--white);
  font-weight: 500;
}

.about-paragraph em,
.about-principles strong {
  font-style: italic;
  color: var(--gold-bright);
  font-family: var(--font-accent);
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding-bottom: 0.1em;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  text-shadow: 0 0 12px rgba(224, 188, 90, 0.12);
}

.about-sub {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.1rem;
}

.about-sub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.about-sub-center {
  padding-left: 0;
  text-align: center;
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
}

.about-sub-center::before {
  display: none;
}

.about-principles {
  max-width: 760px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  text-align: center;
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--hairline);
  border-top: 1px solid var(--hairline-gold);
  border-bottom: 1px solid var(--hairline-gold);
  background: rgba(5, 11, 20, 0.3);
}

.about-principles p {
  font-size: 0.98rem;
  color: var(--white-70);
  line-height: 1.8;
  font-weight: 300;
}

/* .about-principles strong styling is shared with .about-paragraph em above */

/* Methodology 4-phase grid */
.about-methodology {
  max-width: 1100px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  text-align: left;
}

.about-methodology-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.about-methodology-header h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 1.2rem;
}

.about-methodology-header h3 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline-gold);
  border-bottom: 1px solid var(--hairline-gold);
}

@media (max-width: 900px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method-step {
  padding: 2rem 1.6rem 2.2rem;
  border-right: 1px solid var(--hairline);
  position: relative;
  transition: background 0.6s var(--ease);
}

.method-step:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .method-step:nth-child(2) {
    border-right: none;
  }
  .method-step:nth-child(1),
  .method-step:nth-child(2) {
    border-bottom: 1px solid var(--hairline);
  }
}

@media (max-width: 560px) {
  .method-step {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .method-step:last-child {
    border-bottom: none;
  }
}

.method-step:hover {
  background: rgba(5, 11, 20, 0.5);
}

.method-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.method-step h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.9rem;
  letter-spacing: -0.005em;
}

.method-step p {
  font-size: 0.88rem;
  color: var(--white-50);
  line-height: 1.7;
  font-weight: 300;
}

/* Reference card sub label */
.reference-card-sub {
  display: block;
  font-size: 0.72em;
  color: var(--white-30);
  font-style: italic;
  font-weight: 400;
  margin-top: 0.1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: clamp(2.5rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--hairline-gold);
  border-bottom: 1px solid var(--hairline-gold);
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  max-width: 820px;
}

@media (max-width: 640px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-stat {
  text-align: center;
  position: relative;
}

.about-stat + .about-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--hairline-gold),
    transparent
  );
}

@media (max-width: 640px) {
  .about-stat + .about-stat::before {
    display: none;
  }
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.about-stat-num span {
  color: var(--gold);
  font-style: italic;
  margin-left: 0.08em;
}

.about-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 0.85rem;
  font-weight: 500;
}

.about-signature {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.about-sig-mark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 0.4;
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.about-sig-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
}

.about-sig-role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--gold);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  font-weight: 500;
}

/* ==========================================================
   WHY SECTION
   ========================================================== */
.why {
  position: relative;
  overflow: hidden;
}

.why-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

@media (max-width: 900px) {
  .why-inner {
    grid-template-columns: 1fr;
  }
}

.why-image-wrap {
  position: relative;
}

.why-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.why-image:hover img {
  transform: scale(1.03);
}

.why-image-frame {
  position: absolute;
  top: 1.8rem;
  left: 1.8rem;
  right: -1.8rem;
  bottom: -1.8rem;
  border: 1px solid var(--gold);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.why-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 1.8rem 0 3.2rem;
}

.why-content h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.why-list {
  display: grid;
  gap: 0;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
  transition: padding 0.5s var(--ease);
}

.why-item:first-child {
  padding-top: 0;
}

.why-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why-item:hover {
  padding-left: 0.8rem;
}

.why-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.22em;
  padding-top: 0.45rem;
  font-weight: 500;
  min-width: 2rem;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.why-item p {
  font-size: 0.94rem;
  color: var(--white-50);
  line-height: 1.75;
  max-width: 52ch;
  font-weight: 300;
}

/* ==========================================================
   REFERENCES
   ========================================================== */
.references {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
  position: relative;
  background: rgba(5, 11, 20, 0.4);
}

.references-eyebrow {
  text-align: center;
  margin-bottom: 3.5rem;
}

.references-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.references-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
  will-change: transform;
}

.references-marquee:hover .references-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-25%, 0, 0); }
}

.reference-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--white-50);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  margin: 0 2.4rem;
  transition: color 0.5s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
}

.reference-logo:hover {
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .references-track {
    animation: none;
  }
}

/* ==========================================================
   REFERENCES — textual cards under the marquee
   ========================================================== */
/* Visually hidden but crawlable — references content stays in DOM for
   SEO/GEO (AI crawlers + Google), but is not rendered to sighted users.
   Using clip instead of display:none so bots still parse the content. */
.references-cards {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .references-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .references-cards {
    grid-template-columns: 1fr;
  }
}

.reference-card {
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--hairline);
  position: relative;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.reference-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}

.reference-card:hover {
  border-color: var(--hairline-gold);
  background: rgba(5, 11, 20, 0.4);
  transform: translateY(-2px);
}

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

.reference-card-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--gold);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 0.9rem;
}

.reference-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.reference-card-desc {
  font-size: 0.9rem;
  color: var(--white-50);
  line-height: 1.65;
  font-weight: 300;
}

.reference-card-impact {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--white-10, rgba(255, 255, 255, 0.1));
  font-size: 0.78rem;
  color: var(--gold, #C8A55A);
  letter-spacing: 0.02em;
  line-height: 1.5;
  font-weight: 400;
}

/* ==========================================================
   SERVICES — expanded content (Pour qui / Comment / Livrables)
   ========================================================== */
.service-block {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  position: relative;
  z-index: 1;
}

.service-block + .service-block {
  margin-top: 1rem;
  padding-top: 1rem;
}

.service-block-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--gold);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 0.55rem;
}

.service-block p {
  font-size: 0.88rem;
  color: var(--white-50);
  line-height: 1.65;
  max-width: none;
  font-weight: 300;
}

.service-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.service-block li {
  font-size: 0.85rem;
  color: var(--white-50);
  line-height: 1.55;
  padding-left: 1rem;
  position: relative;
  font-weight: 300;
}

.service-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* ==========================================================
   FAQ SECTION
   ========================================================== */
.faq {
  position: relative;
  border-top: 1px solid var(--hairline);
}

.faq-inner {
  max-width: 920px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.faq-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 1.4rem;
}

.faq-header h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline-gold);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  transition: background 0.5s var(--ease);
}

.faq-item[open] {
  background: rgba(5, 11, 20, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.8rem 1.5rem 1.8rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  transition: color 0.4s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--gold);
}

.faq-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.24em;
  font-weight: 500;
  min-width: 2.2rem;
  padding-left: 1.5rem;
}

.faq-question {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline-gold);
  display: grid;
  place-items: center;
  position: relative;
  color: var(--gold);
  flex-shrink: 0;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.5s var(--ease);
}

.faq-icon::before {
  width: 12px;
  height: 1px;
}

.faq-icon::after {
  width: 1px;
  height: 12px;
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  border-color: var(--gold);
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 2rem calc(2.2rem + 1.5rem + 1.4rem);
  max-width: 72ch;
}

.faq-answer p {
  font-size: 0.98rem;
  color: var(--white-70);
  line-height: 1.75;
  font-weight: 300;
}

.faq-answer p + p {
  margin-top: 0.9rem;
}

@media (max-width: 640px) {
  .faq-item summary {
    padding: 1.4rem 0.5rem 1.4rem 0;
    gap: 0.9rem;
  }
  .faq-num {
    padding-left: 0.5rem;
    min-width: auto;
  }
  .faq-answer {
    padding: 0 0.5rem 1.5rem 0.5rem;
  }
  .faq-question {
    font-size: 1.15rem;
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: clamp(5rem, 10vw, 7rem) 0 2.5rem;
  position: relative;
}

/* Footer CTA block — pre-contact teaser */
.footer-cta {
  max-width: 720px;
  margin: 0 auto clamp(4rem, 8vw, 6rem);
  text-align: center;
  padding-bottom: clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.footer-cta .eyebrow {
  justify-content: center;
}

.footer-cta .eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 1.6rem 0 1.4rem;
}

.footer-cta-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.footer-cta-desc {
  font-size: 1rem;
  color: var(--white-70);
  line-height: 1.75;
  max-width: 48ch;
  margin: 0 auto 2.4rem;
  font-weight: 300;
}

/* Footer inner grid */
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand .logo {
  margin-bottom: 1.8rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--white-90);
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.005em;
  max-width: none;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  font-weight: 500;
  display: block;
}

.footer-label-spaced {
  margin-top: 2.2rem;
}

.footer-contact {
  display: grid;
  gap: 1.3rem;
}

.footer-contact a {
  color: var(--white-90);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.1rem;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
  padding: 0.55rem 0;
  position: relative;
}

.footer-contact a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact a:hover::after {
  width: 100%;
}

.footer-contact .contact-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline-gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.footer-contact a:hover .contact-icon {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.footer-contact .contact-value {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.003em;
  font-variant-numeric: tabular-nums;
}

.footer-contact .contact-label-small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact .contact-label-small::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.footer-address {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.15rem;
  color: var(--white-90);
  line-height: 1.5;
  font-weight: 400;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--hairline-gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--abyss-deep);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--white-30);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-bottom .separator {
  color: var(--gold);
  margin: 0 0.5rem;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-brand {
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 2rem;
    margin-bottom: 0.5rem;
  }
  .footer-cta-title {
    font-size: 2.2rem;
  }
  .footer-cta-desc {
    font-size: 0.94rem;
  }
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .hero {
    padding-top: 7rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-col-visual {
    order: -1;
  }

  .hero-logo-3d {
    max-width: clamp(260px, 55vw, 420px);
    margin: 0 auto;
  }

  .hero-headline-fallback .line-abyss {
    font-size: clamp(3.2rem, 9vw, 5.6rem);
  }

  .hero-headline-fallback .line-consult {
    font-size: clamp(1.8rem, 5.4vw, 3.4rem);
  }

  .hero-tagline {
    font-size: 1.3rem;
  }
}

/* Smartphone: full mobile menu with hamburger */
@media (max-width: 640px) {
  .nav {
    padding: 1.2rem 0;
  }
  .nav.is-scrolled {
    padding: 0.8rem 0;
  }
  .nav-inner {
    gap: 1rem;
  }
  .nav-links { display: none; }
  .nav .cta { display: none; }
  .nav-inner > .lang-switcher { display: none; }

  .lang-switcher-mobile {
    display: flex;
    gap: 0;
    margin-top: 1.2rem;
    align-self: center;
    border: 1px solid var(--hairline-gold);
    overflow: hidden;
  }

  .lang-btn-mobile {
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: var(--white-30);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: color 0.3s var(--ease), background 0.3s var(--ease);
  }

  .lang-btn-mobile:not(:last-child) {
    border-right: 1px solid var(--hairline-gold);
  }

  .lang-btn-mobile:hover {
    color: var(--gold);
  }

  .lang-btn-mobile.is-active {
    color: var(--abyss-deep);
    background: var(--gold);
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }
  .logo-name {
    font-size: 1.25rem;
  }
  .logo-sub {
    font-size: 0.52rem;
    letter-spacing: 0.26em;
  }

  .mobile-panel {
    gap: 1.4rem;
    padding: 6rem var(--gutter) 3rem;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .mobile-panel::before {
    content: "MENU";
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--gold);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--hairline-gold);
    width: 100%;
    margin-bottom: 1.2rem;
  }
  .mobile-panel a:not(.cta) {
    font-size: 2rem;
    line-height: 1.1;
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--hairline);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }
  .mobile-panel a:not(.cta)::after {
    content: "→";
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: normal;
    opacity: 0.6;
    transform: translateX(-4px);
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }
  .mobile-panel a:not(.cta):hover::after {
    opacity: 1;
    transform: translateX(0);
  }
  .mobile-panel .cta {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
  }
}

/* ==========================================================
   SMARTPHONE — ≤ 640px
   ========================================================== */
@media (max-width: 640px) {
  :root {
    --gutter: 1.25rem;
  }

  body {
    font-size: 14.5px;
  }

  /* Kill fixed side elements that clutter mobile */
  .depth-gauge,
  .scroll-hint,
  .hero-meta {
    display: none !important;
  }

  /* HERO */
  .hero {
    padding: 6.5rem 0 4rem;
  }
  .hero-grid {
    gap: 1.8rem;
  }
  .hero-headline {
    margin: 1.2rem 0 1.2rem;
  }
  .hero-logo-3d {
    max-width: min(74vw, 300px);
  }
  .hero-headline-fallback .line-abyss {
    font-size: clamp(2.8rem, 13vw, 4.4rem);
  }
  .hero-headline-fallback .line-consult {
    font-size: clamp(1.6rem, 8vw, 2.6rem);
  }
  .hero-tagline {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 1.4rem;
  }
  .hero-tagline .dot {
    margin: 0 0.35rem;
  }
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }
  .hero-actions .cta {
    justify-content: center;
    width: 100%;
    padding: 1.1rem 1.5rem;
  }

  /* SECTIONS */
  .section {
    padding: 4.5rem 0;
  }

  /* SERVICES */
  .services-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  .services-header h2 {
    font-size: 2.4rem;
    margin-top: 1.2rem;
  }
  .services-header p {
    font-size: 0.95rem;
  }
  .service {
    padding: 2.4rem 1.6rem 2.6rem;
  }
  .service h3 {
    font-size: 1.6rem;
  }
  .service-num {
    margin-bottom: 2rem;
  }

  /* WHY */
  .why-inner {
    gap: 3rem;
  }
  .why-image-frame {
    top: 1rem;
    left: 1rem;
    right: -1rem;
    bottom: -1rem;
  }
  .why-content h2 {
    font-size: 2.4rem;
    margin: 1.2rem 0 2rem;
  }
  .why-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.5rem 0;
  }
  .why-num {
    padding-top: 0;
  }
  .why-item h3 {
    font-size: 1.4rem;
  }
  .why-item:hover {
    padding-left: 0;
  }

  /* REFERENCES */
  .references {
    padding: 3.5rem 0;
  }
  .references-eyebrow {
    margin-bottom: 2rem;
  }
  .reference-logo {
    font-size: 1.1rem;
    margin: 0 1.5rem;
  }
  .references-track {
    animation-duration: 28s;
  }

  /* FOOTER */
  .footer {
    padding-top: 4rem;
  }
  .footer-inner {
    gap: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .footer-tagline {
    font-size: 1.25rem;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* ==========================================================
   SMALL SMARTPHONE — ≤ 380px
   ========================================================== */
@media (max-width: 380px) {
  .hero-logo-3d {
    max-width: 68vw;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .services-header h2,
  .why-content h2 {
    font-size: 2rem;
  }
}

/* ==========================================================
   AGENTATION WIDGET — force bottom-right anchor
   Overrides any dragged/persisted position from the bundle.
   ========================================================== */
[class*="styles-module__toolbar___"] {
  bottom: 1.25rem !important;
  right: 1.25rem !important;
  top: auto !important;
  left: auto !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-logo-3d,
  .hero-logo-3d img,
  .hero-tagline,
  .hero-desc,
  .hero-actions,
  .hero-eyebrow,
  .hero-meta,
  .scroll-hint {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
