/* ═══════════════════════════════════════════
   G.L.O.W. Agency — Editorial Luxe Aesthetic
   Font: Cormorant Garamond (display) + Outfit (body)
   Palette: Warm almond, champagne gold, dusty blush
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --almond:        #FAF8F4;
  --almond-deep:   #F0EBE2;
  --champagne:     #E8D5B0;
  --champagne-hot: #D4B97A;
  --blush:         #FFD1DC;
  --blush-hot:     #FFB3C7;
  --ink:           #6B5C4C;
  --ink-deep:      #4A3F34;
  --ink-faint:     #B0A087;
  --white:         #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: clamp(80px, 12vw, 160px);
  --container-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--almond);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ── Floating Orbs ── */
.orb-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,213,176,0.6), transparent 70%);
  top: -10%; left: -5%;
  animation-duration: 25s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,209,220,0.4), transparent 70%);
  bottom: 10%; right: -5%;
  animation-duration: 30s;
  animation-delay: -8s;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(232,213,176,0.35), transparent 70%);
  top: 50%; left: 40%;
  animation-duration: 22s;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.1); }
  66%  { transform: translate(-20px, 40px) scale(0.95); }
  100% { transform: translate(30px, 20px) scale(1.05); }
}

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

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne-hot);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-deep);
  margin-bottom: 48px;
}

.section-title em {
  font-style: italic;
  color: var(--champagne-hot);
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(24px, 5vw, 64px);
  background: rgba(250, 248, 244, 0.75);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(232, 213, 176, 0.2);
  transition: all 0.4s var(--ease-luxe);
}

#site-header.scrolled {
  padding: 14px clamp(24px, 5vw, 64px);
  background: rgba(250, 248, 244, 0.92);
  box-shadow: 0 4px 40px rgba(107, 92, 76, 0.06);
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-deep);
  transition: opacity 0.3s;
}

.logo:hover { opacity: 0.7; }

#main-nav ul {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

#main-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  transition: color 0.3s;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--champagne-hot);
  transition: width 0.3s var(--ease-luxe);
}

#main-nav a:hover { color: var(--ink-deep); }
#main-nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 28px !important;
  border: 1.5px solid var(--champagne-hot) !important;
  border-radius: 40px !important;
  transition: all 0.3s ease !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--champagne-hot) !important;
  color: var(--white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink-deep);
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 140px clamp(24px, 5vw, 80px) 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: revealUp 1s var(--ease-luxe) 0.3s forwards;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne-hot);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-deep);
  margin-bottom: 32px;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideIn 0.8s var(--ease-luxe) forwards;
}

.hero-line-1 { animation-delay: 0.5s; }
.hero-line-2 { animation-delay: 0.7s; }
.hero-line-3 { animation-delay: 0.9s; }
.hero-line-4 { animation-delay: 1.1s; }

.glow-initial {
  display: inline-block;
  font-weight: 700;
  color: var(--champagne-hot);
  text-shadow: 0 0 20px rgba(212, 185, 122, 0.4);
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-line-1 .glow-initial { animation-delay: 0s; }
.hero-line-2 .glow-initial { animation-delay: 1s; }
.hero-line-3 .glow-initial { animation-delay: 2s; }
.hero-line-4 .glow-initial { animation-delay: 3s; }

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: revealUp 0.8s var(--ease-luxe) 1.4s forwards;
}

.hero-visual {
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: revealUp 1.2s var(--ease-luxe) 0.6s forwards;
}

.hero-carousel {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(107, 92, 76, 0.12), 0 8px 32px rgba(107, 92, 76, 0.06);
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink-deep);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s var(--ease-luxe);
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 1.5s var(--ease-luxe);
}

.carousel-slide.active img {
  transform: scale(1.05);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 32px 32px;
  background: linear-gradient(to top, rgba(74, 63, 52, 0.95) 0%, rgba(74, 63, 52, 0.6) 40%, transparent 100%);
  color: var(--white);
}

.carousel-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 12px;
}

.carousel-desc {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

.carousel-controls {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.carousel-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--champagne-hot);
  color: var(--ink-deep);
}

.carousel-indicators {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--champagne);
}

/* Scroll indicator */
.scroll-indicator {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 16px;
  opacity: 0;
  animation: revealUp 0.6s var(--ease-luxe) 2s forwards;
}

.scroll-indicator span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--champagne-hot), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Primary Button ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-deep);
  background: transparent;
  border: 2px solid var(--champagne-hot);
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: revealUp 0.8s var(--ease-luxe) 1.6s forwards;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blush);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.btn-primary:hover {
  border-color: var(--blush-hot);
  box-shadow: 0 8px 24px rgba(255,255,255,0.12), 0 4px 16px rgba(212,185,122,0.15);
  transform: translateY(-2px);
}

.btn-primary:hover::before { opacity: 0.3; }

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--almond) 0%, var(--almond-deep) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-left {
  position: sticky;
  top: 120px;
}

.about-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 24px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.pillar {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(232,213,176,0.3);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-luxe);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(107,92,76,0.08);
  border-color: var(--champagne);
}

.pillar-letter {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--champagne-hot);
  line-height: 1;
  margin-bottom: 6px;
}

.pillar-word {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-deep);
  margin-bottom: 6px;
}

.pillar-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   SERVICES — Circular Framework
   ═══════════════════════════════════════════ */
.services {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  overflow: hidden;
  text-align: center;
}

.services-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--ink);
  max-width: 580px;
  margin: -20px auto 60px;
  line-height: 1.7;
  opacity: 0.8;
}

/* ── Orbit container ── */
.services-orbit {
  position: relative;
  width: 700px;
  height: 700px;
  margin: 0 auto;
}

/* ── SVG ring ── */
.orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.orbit-path {
  animation: orbitSpin 60s linear infinite;
  transform-origin: 350px 350px;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes mobileArrowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Mobile circular arrow (hidden on desktop) ── */
.orbit-mobile-arrow {
  display: none;
}

/* ── Center hub ── */
.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  border: 1.5px solid rgba(232, 213, 176, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 40px rgba(107,92,76,0.08), 0 0 0 1px rgba(232,213,176,0.15);
  z-index: 5;
}

.orbit-center-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--champagne-hot);
  line-height: 1;
}

.orbit-center-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ── Service nodes ── */
.service-node {
  position: absolute;
  width: 240px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(232,213,176,0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.5s var(--ease-luxe);
  cursor: default;
  z-index: 4;
  text-align: center;
}

.service-node:hover {
  transform: translate(-50%, -50%) scale(1.04) !important;
  box-shadow: 0 20px 60px rgba(107,92,76,0.12);
  border-color: var(--champagne);
  background: rgba(255,255,255,0.8);
  z-index: 10;
}

/* Position each node around the orbit */
.service-node-top {
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.service-node-top:hover {
  transform: translateX(-50%) scale(1.04) !important;
}

.service-node-right {
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
}
.service-node-right:hover {
  transform: translateY(-50%) scale(1.04) !important;
}

.service-node-bottom {
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}
.service-node-bottom:hover {
  transform: translateX(-50%) scale(1.04) !important;
}

.service-node-left {
  top: 50%;
  left: -60px;
  transform: translateY(-50%);
}
.service-node-left:hover {
  transform: translateY(-50%) scale(1.04) !important;
}

/* ── Step number ── */
.service-step {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--champagne-hot);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(212,185,122,0.3);
}

/* ── G.L.O.W. letter ── */
.service-letter {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--champagne-hot);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(212,185,122,0.2);
}

.service-node h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-deep);
  margin-bottom: 8px;
}

.service-node p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ── Phase label ── */
.service-phase {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne-hot);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(212,185,122,0.3);
  background: rgba(212,185,122,0.08);
}

/* ═══════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════ */
.portfolio {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  background: var(--almond-deep);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 28px;
}

.case-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s var(--ease-luxe);
}

.case-card:hover { transform: translateY(-4px); }
.case-card-wide { grid-row: span 2; }

.case-image {
  width: 100%;
  height: 100%;
}

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

.case-card:hover .case-image img { transform: scale(1.06); }

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,63,52,0.88) 0%, rgba(74,63,52,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.case-card:hover .case-overlay { opacity: 1; }

.case-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 8px;
}

.case-overlay h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.case-overlay p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 16px;
}

.case-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--champagne);
  transition: color 0.3s;
}

.case-card:hover .case-cta { color: var(--blush); }

.case-fictional-note {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════════ */
.results {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.stat {
  padding: 48px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(232,213,176,0.2);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease-luxe);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(107,92,76,0.08);
  border-color: var(--champagne);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--champagne-hot);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  background: var(--almond-deep);
  text-align: center;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.testimonial-card {
  padding: 44px 36px;
  border-radius: 20px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(232,213,176,0.25);
  backdrop-filter: blur(10px);
  text-align: left;
  transition: all 0.4s var(--ease-luxe);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(107,92,76,0.08);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-deep);
  line-height: 1.6;
  margin-bottom: 28px;
}

.testimonial-card cite {
  font-style: normal;
  display: block;
}

.cite-name {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-deep);
}

.cite-role {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-deep);
  margin-bottom: 24px;
}

.contact-title em {
  font-style: italic;
  color: var(--champagne-hot);
}

.contact-text {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.form-group input,
.form-group textarea {
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-deep);
  background: rgba(255,255,255,0.5);
  border: 1.5px solid rgba(232,213,176,0.3);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-faint);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--champagne-hot);
  box-shadow: 0 0 0 3px rgba(212,185,122,0.12);
  background: rgba(255,255,255,0.8);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  opacity: 1;
  animation: none;
  align-self: flex-start;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 48px;
  background: var(--ink-deep);
  text-align: center;
}

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

.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--champagne);
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(232,213,176,0.5);
  line-height: 1.7;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(232,213,176,0.6);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--champagne); }

.footer-copy {
  font-size: 12px;
  color: rgba(232,213,176,0.3);
  border-top: 1px solid rgba(232,213,176,0.1);
  padding-top: 32px;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 40%, 100% {
    text-shadow: 0 0 20px rgba(212,185,122,0.2);
  }
  15%, 25% {
    text-shadow: 0 0 20px rgba(212,185,122,0.8), 0 0 40px rgba(212,185,122,0.4), 0 0 60px rgba(255,255,255,0.2);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* Scroll-triggered reveals */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-luxe), transform 0.8s var(--ease-luxe);
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-luxe), transform 0.6s var(--ease-luxe);
}

.stagger-children.visible > * { opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.26s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding-top: 120px;
  }

  .hero-visual { order: -1; max-width: 500px; margin: 0 auto; }

  .about-grid { grid-template-columns: 1fr; }
  .about-left { position: static; }

  /* Services orbit → stacked on tablet */
  .services-orbit {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
  }

  .orbit-ring { display: none; }

  .orbit-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 12px;
  }

  .service-node {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 480px;
    text-align: center;
  }

  .service-node:hover {
    transform: scale(1.02) !important;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .case-card-wide { grid-row: span 1; }
  .case-overlay { opacity: 1; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-track { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ── Mobile Navigation Panel ── */
  .menu-toggle { display: flex; }

  #site-header.nav-open {
    height: 100dvh;
    height: 100vh;
    background: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    align-items: flex-start;
  }

  #main-nav {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-luxe);
    z-index: 999;
  }

  #main-nav.open {
    opacity: 1;
    pointer-events: all;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    list-style: none;
    padding: 0;
  }

  #main-nav a {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-deep);
    display: inline-block;
    padding: 8px 16px;
    transition: color 0.3s, transform 0.3s;
  }

  #main-nav a:hover {
    color: var(--champagne-hot);
    transform: translateX(4px);
  }

  #main-nav a::after { display: none; }

  .nav-cta {
    font-size: 20px !important;
    padding: 14px 36px !important;
    margin-top: 8px;
  }

  /* Ensure toggle stays above the nav overlay */
  .menu-toggle {
    z-index: 1001;
  }

  /* ── Hero ── */
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    gap: 32px;
  }

  .hero-visual {
    max-width: 100%;
  }

  .hero-carousel {
    border-radius: 16px;
    aspect-ratio: 3/4;
  }

  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }

  .hero-tagline {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .btn-primary {
    padding: 14px 36px;
    font-size: 14px;
    width: 100%;
    max-width: 280px;
  }

  /* Hide scroll indicator on mobile */
  .scroll-indicator { display: none; }

  /* ── About ── */
  .about-text {
    font-size: 15px;
    line-height: 1.75;
  }

  .about-pillars { grid-template-columns: 1fr 1fr; gap: 16px; }

  .pillar {
    padding: 20px 16px;
  }

  .pillar-letter {
    font-size: 28px;
  }

  .pillar-desc {
    font-size: 12px;
  }

  /* ── Services: 2×2 orbital grid ── */
  .services-orbit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 16px;
    position: relative;
    width: 100%;
    height: auto;
    /* reset tablet flex */
    flex-direction: unset;
    align-items: unset;
    justify-content: unset;
  }

  /* Show the SVG ring again — it's position:absolute so it spans behind the grid */
  .orbit-ring {
    display: block;
    opacity: 0.55;
  }

  /* Circular arrow — visible on mobile only, centered on hub via negative margin */
  .orbit-mobile-arrow {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: mobileArrowSpin 8s linear infinite;
    transform-origin: 50% 50%;
    pointer-events: none;
    z-index: 11;
  }

  /* Hub floats at grid center */
  .orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    z-index: 10;
    margin-bottom: 0;
  }

  .orbit-center-text { font-size: 12px; letter-spacing: 0.04em; }
  .orbit-center-sub { font-size: 9px; margin-top: 2px; }

  /* Clockwise node placement: 01 top-left, 02 top-right, 03 bottom-right, 04 bottom-left */
  .service-node-top    { grid-column: 1; grid-row: 1; }
  .service-node-right  { grid-column: 2; grid-row: 1; }
  .service-node-bottom { grid-column: 2; grid-row: 2; }
  .service-node-left   { grid-column: 1; grid-row: 2; }

  .service-node {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    padding: 18px 12px 14px;
    border-radius: 14px;
    /* inner corner padding to give room for center hub */
    min-height: 160px;
  }

  .service-node:hover { transform: scale(1.02) !important; }

  /* Step badge centered top of each card */
  .service-step {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .service-letter { font-size: 22px; margin-bottom: 4px; }
  .service-node h3 { font-size: 14px; margin-bottom: 6px; line-height: 1.3; }
  .service-node p  { font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
  .service-phase   { font-size: 9px; padding: 3px 8px; }

  /* ── Portfolio ── */
  .case-card {
    border-radius: 16px;
    min-height: 280px;
  }

  .case-overlay {
    padding: 24px;
  }

  .case-overlay h3 {
    font-size: 22px;
  }

  .case-overlay p {
    font-size: 13px;
    margin-bottom: 12px;
  }

  /* ── Stats ── */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat {
    padding: 28px 16px;
    border-radius: 16px;
  }
  .stat-number { font-size: clamp(2rem, 8vw, 3rem); }
  .stat-label { font-size: 13px; }

  /* ── Testimonials ── */
  .testimonial-card {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .testimonial-quote {
    font-size: 17px;
    margin-bottom: 20px;
  }

  /* ── Contact ── */
  .contact-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .contact-text {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .contact-form {
    gap: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px; /* prevents iOS zoom on focus */
    border-radius: 10px;
  }

  .btn-submit {
    width: 100%;
    padding: 16px 32px;
  }

  /* ── Footer ── */
  footer {
    padding: 60px 0 36px;
  }

  .footer-logo {
    font-size: 26px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .footer-links a {
    font-size: 15px;
    padding: 4px 0;
  }

  .footer-copy {
    font-size: 11px;
    padding-top: 24px;
    margin-top: 8px;
  }

  /* ── Section spacing ── */
  .section-title {
    margin-bottom: 32px;
  }

  .services-subtitle {
    font-size: 15px;
    margin: -12px auto 40px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 48px;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .hero-carousel {
    aspect-ratio: 3/4;
  }

  .carousel-caption {
    padding: 60px 20px 24px;
  }

  .carousel-desc {
    font-size: 14px;
  }

  .carousel-controls {
    bottom: 24px;
    right: 20px;
    gap: 12px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pillar {
    padding: 20px;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .section-container {
    padding: 0 20px;
  }

  /* Tighter section padding on very small screens */
  :root {
    --section-pad: clamp(60px, 10vw, 100px);
  }
}

/* ════════════════════════════
   FORM — validation error states
   ════════════════════════════ */
.form-error {
  display: none;
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 6px;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.form-status {
  font-size: 0.9rem;
  font-family: var(--font-body);
  padding: 0;
  margin-bottom: 0;
  min-height: 0;
  transition: all 0.3s ease;
}

.form-status--success {
  color: #2e7d32;
  padding: 12px 16px;
  background: rgba(46,125,50,0.08);
  border-radius: 8px;
  margin-bottom: 12px;
}

.form-status--error {
  color: #c0392b;
  padding: 12px 16px;
  background: rgba(192,57,43,0.07);
  border-radius: 8px;
  margin-bottom: 12px;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
