/* ── Background 3D Rings ── */
.bg-rings {
  position: fixed; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
  perspective: 500px; perspective-origin: 50% 50%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.bg-rings .atom {
  position: relative; width: 1200px; height: 1200px;
  transform-style: preserve-3d; will-change: transform;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.bg-rings .ring-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 3px; height: 180px;
  background: linear-gradient(180deg, transparent, rgba(222,215,196,0.65) 20%, rgba(170,210,235,0.8) 50%, rgba(222,215,196,0.65) 80%, transparent);
  opacity: 0.9; pointer-events: none;
  box-shadow: 0 0 30px rgba(170,210,235,0.3), 0 0 60px rgba(222,215,196,0.2);
}
.ring-group {
  position: absolute; top: 50%; left: 50%;
  transform-style: preserve-3d; will-change: transform;
}
.ring-group .r {
  position: absolute; inset: 0;
  border-radius: 50%; border-style: solid;
  transform-style: preserve-3d; will-change: transform;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}

/* ── Header ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 0.5px solid transparent;
}
.header.is-scrolled {
  background: rgba(7,7,8,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo img { width: 30px; height: 30px; border-radius: 6px; border: 0.5px solid var(--border); object-fit: cover; }
.header__logo span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); }
.header__nav { display: flex; align-items: center; gap: 32px; justify-content: center; grid-column: 2; }
.header__nav a {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-secondary);
  position: relative; transition: color 0.3s;
}
.header__nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 0.5px; background: var(--accent); transition: width 0.4s;
}
.header__nav a:hover, .header__nav a.is-active { color: var(--text); }
.header__nav a:hover::after, .header__nav a.is-active::after { width: 100%; }
.header__right { display: flex; align-items: center; gap: 12px; justify-self: end; }

/* ── Language Button ── */
.lang-btn {
  background: none; border: 0.5px solid var(--border); border-radius: 3px;
  color: var(--text-secondary); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.08em; padding: 0 8px; height: 24px;
  cursor: pointer; transition: all 0.3s; font-family: var(--font-sans);
}
.lang-btn:hover, .lang-btn.is-active { color: var(--text); border-color: var(--border-strong); }

/* ── Mobile Toggle ── */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 4px; padding: 4px;
}
.mobile-toggle span { display: block; width: 16px; height: 1px; background: var(--text); transition: all 0.3s; }

/* ── Hero ── */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 60px;
  max-width: var(--max-w); margin: 0 auto;
}
.hero__inner { position: relative; z-index: 2; max-width: 600px; margin-top: 20px; }
.hero__label {
  display: inline-block; font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px;
  border: 0.5px solid var(--border); border-radius: 999px; padding: 8px 16px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500; line-height: 0.93;
  letter-spacing: -0.02em; color: var(--text); margin-bottom: 16px;
}
.hero__sub {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 500px; line-height: 1.6; margin: 0 auto 32px;
}
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 14px 28px;
  border-radius: var(--radius); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.35s; cursor: pointer;
}
.btn--primary { background: var(--text); color: var(--bg); border: 0.5px solid var(--text); }
.btn--primary:hover { background: transparent; color: var(--text); }
.btn--outline { background: transparent; color: var(--text); border: 0.5px solid var(--border-strong); }
.btn--outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Section Base ── */
.section { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 100px var(--gutter); }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500; line-height: 1.08;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 16px;
}
.section__label {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.section__desc { font-size: 1rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 40px; }

/* ── Agency Grid ── */
.agency__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.agency__item {
  padding: 24px; border-radius: var(--radius);
  border: 0.5px solid var(--border); background: var(--surface);
  transition: all 0.4s;
}
.agency__item:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.agency__item-num {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 500;
  color: var(--accent); line-height: 1; margin-bottom: 12px;
}
.agency__item h3 {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text); margin-bottom: 8px;
}
.agency__item p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Roster ── */
.roster__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.roster__item {
  padding: 20px 16px; border-radius: var(--radius);
  border: 0.5px solid var(--border); background: var(--surface);
  text-align: center; transition: all 0.4s;
}
.roster__item:hover { border-color: var(--border-strong); transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.roster__item-name { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.roster__item-role { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.03em; }

/* ── Stats ── */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.04em; }

/* ── Contact ── */
.contact { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; padding: 80px var(--gutter); }
.contact__wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start; margin-top: 20px; padding: 40px;
  border-radius: var(--radius); border: 0.5px solid var(--border); background: var(--surface);
}
.contact__left p { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }
.contact__right { text-align: right; }
.contact__email { font-family: var(--font-serif); font-size: 1.4rem; color: var(--text); display: inline-block; margin-bottom: 16px; transition: color 0.3s; }
.contact__email:hover { color: var(--accent); }
.contact__details { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }

/* ── Foam Line ── */
.foam-line {
  position: fixed; left: 0; width: 100%; height: 1.5px;
  pointer-events: none; z-index: 1; opacity: 0.5;
  background: linear-gradient(90deg,
    transparent 5%, rgba(160,210,240,0.6) 15%, rgba(140,200,235,0.8) 25%,
    rgba(160,210,240,0.5) 35%, transparent 40%, rgba(140,200,235,0.3) 50%,
    rgba(160,210,240,0.6) 60%, transparent 70%, rgba(140,200,235,0.4) 80%,
    rgba(160,210,240,0.6) 90%, transparent 95%
  );
  filter: blur(0.5px);
  box-shadow: 0 0 8px rgba(160,210,240,0.3), 0 0 20px rgba(140,200,235,0.15);
}

/* ── Page Wrapper (isolates content from 3D rings) ── */
#page-content {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* ── Footer ── */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 24px var(--gutter);
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text-muted);
  position: relative; z-index: 2;
}
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--text); }

/* ── Scroll Hint ── */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; text-align: center;
}
.scroll-hint__label {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.scroll-hint__line {
  width: 1px; height: 40px; margin: 8px auto 0;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: hintPulse 2s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── GSAP Reveal (initial state) ── */
.gsap-reveal { opacity: 0; transform: translateY(30px); }
