/* ================================================================
   STUDIO RIPPLE — Shared Styles
   ================================================================ */

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

:root {
  --bg:           #07090D;
  --bg2:          #0B1523;
  --navy:         #0D2847;
  --navy-mid:     #173A61;
  --blue:         #3E75B8;
  --blue-light:   #7BAAD8;
  --blue-glow:    rgba(62, 117, 184, 0.18);
  --text:         #EEF2F7;
  --text-dim:     #8A9BB5;
  --border:       rgba(62, 117, 184, 0.14);
  --border-soft:  rgba(238, 242, 247, 0.07);
  --max:          1400px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ─── PAGE TRANSITION CURTAIN ─── */
#curtain {
  position: fixed;
  inset: 0;
  background: var(--bg2);
  z-index: 99999;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.72s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
body.page-in #curtain {
  clip-path: inset(0 0 0 100%);
}
body.page-out #curtain {
  clip-path: inset(0 0 0 0);
  transition-duration: 0.56s;
}
.curtain-logo {
  opacity: 1;
  transition: opacity 0.25s ease;
}
body.page-in .curtain-logo { opacity: 0; }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  z-index: 9999;
  transition: none;
}

/* ─── CUSTOM CURSOR ─── */
.cursor-dot, .cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--blue-light);
  transition: width .2s, height .2s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(123, 170, 216, 0.5);
  background: transparent;
  transition: width .3s, height .3s, border-color .3s, background .3s;
}
.cursor-dot.hov  { width: 0; height: 0; }
.cursor-ring.hov {
  width: 64px; height: 64px;
  border-color: rgba(123,170,216,.35);
  background: rgba(123,170,216,.06);
}
@media (hover:none) { .cursor-dot,.cursor-ring{ display:none } body { cursor: auto } }

/* ─── CLICK RIPPLE ─── */
.click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(123, 170, 216, 0.5);
  pointer-events: none;
  z-index: 9990;
  animation: clickRipple .9s ease-out forwards;
}
@keyframes clickRipple {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: .7; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  transition: background .5s, padding .4s, border-color .5s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(7, 9, 13, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 18px 48px;
  border-bottom: 1px solid var(--border-soft);
}
.nav-logo { text-decoration: none; cursor: none; display: block; }
.nav-logo svg { display: block; height: 44px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color .3s;
  cursor: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background .3s, transform .2s !important;
}
.nav-cta:hover { background: var(--blue-light) !important; transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border-soft);
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo svg { height: 32px; opacity: .5; }
.footer-brand .footer-tagline {
  font-size: 12px; color: var(--text-dim);
  margin-top: 14px; max-width: 240px; line-height: 1.7;
}
.footer-nav-col h4 {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px; font-weight: 500;
}
.footer-nav-col a {
  display: block; color: var(--text-dim); text-decoration: none;
  font-size: 13px; margin-bottom: 10px;
  transition: color .3s; cursor: none;
}
.footer-nav-col a:hover { color: var(--text); }
.footer-contact-col { text-align: right; }
.footer-contact-col .contact-email {
  display: block; font-family: 'Gloock', serif;
  font-size: 18px; color: var(--text); text-decoration: none;
  margin-bottom: 16px; cursor: none;
  transition: color .3s;
}
.footer-contact-col .contact-email:hover { color: var(--blue-light); }
.footer-social { display: flex; gap: 12px; justify-content: flex-end; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); text-decoration: none; font-size: 11px;
  transition: border-color .3s, color .3s; cursor: none;
}
.footer-social a:hover { border-color: var(--blue); color: var(--blue-light); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.footer-copy { font-size: 11px; color: var(--text-dim); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 11px; color: var(--text-dim);
  text-decoration: none; cursor: none; transition: color .3s;
}
.footer-legal a:hover { color: var(--text); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 100px;
  font-size: 14px; font-weight: 400;
  text-decoration: none;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  cursor: none; letter-spacing: .01em;
}
.btn-primary { background: var(--text); color: var(--bg); font-weight: 500; }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-secondary {
  border: 1px solid var(--border-soft); color: var(--text);
}
.btn-secondary:hover { border-color: rgba(238,242,247,.22); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--blue-light);
}
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.d1 { transition-delay: .06s; }
.d2 { transition-delay: .14s; }
.d3 { transition-delay: .22s; }
.d4 { transition-delay: .30s; }

/* ─── SECTION COMMON ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
.section-eyebrow {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 16px; font-weight: 500;
}
.section-headline {
  font-family: 'Gloock', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}
.section-headline em { font-style: normal; color: var(--blue-light); }

/* ─── TICKER ─── */
.ticker-wrapper {
  overflow: hidden;
  background: var(--navy);
  padding: 14px 0;
  border-top: 1px solid var(--navy-mid);
  border-bottom: 1px solid var(--navy-mid);
  position: relative; z-index: 4;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 32s linear infinite;
}
.ticker-track span {
  font-size: 11px; letter-spacing: .14em;
  color: rgba(238,242,247,.45);
  padding: 0 48px; font-weight: 400;
}
.ticker-track em {
  font-style: normal; color: var(--blue-light);
}
@keyframes ticker { to { transform: translateX(-33.333%); } }

/* ─── BACK LINK ─── */
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-dim); text-decoration: none;
  font-size: 13px; cursor: none;
  transition: color .3s;
  margin-bottom: 40px;
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

/* ─── LIGHT MODE ─── */
html.light {
  --bg:           #f5f5f2;
  --bg2:          #eaeae6;
  --navy:         #dce8f0;
  --navy-mid:     #b8d0e4;
  --blue:         #3E75B8;
  --blue-light:   #2D5F96;
  --blue-glow:    rgba(62, 117, 184, 0.10);
  --text:         #111;
  --text-dim:     #555;
  --border:       rgba(0, 0, 0, 0.08);
  --border-soft:  rgba(0, 0, 0, 0.06);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-links { gap: 20px; }
  .nav-links li:not(:last-child) { display: none; }
  .container { padding: 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact-col { text-align: left; }
  .footer-social { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
