@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=Dancing+Script:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
a { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0b0f1a;
  color: #e0e4ed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
  height: 100vh;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #7df3ff;
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 100;
  border-bottom: none;
  transition: background 0.3s ease;
}

.topbar.scrolled {
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar .logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  color: #b8f8ff;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  text-shadow:
    0 0 4px #fff,
    0 0 10px #7df3ff,
    0 0 25px #7df3ff,
    0 0 50px #0fa8c4,
    0 0 100px #0fa8c4,
    0 0 150px #0fa8c4;
  opacity: 0;
}

.logo-text.flicker {
  animation: neonFlicker 2s ease forwards;
}

@keyframes neonFlicker {
  0%   { opacity: 0; }
  5%   { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 10px #7df3ff, 0 0 25px #7df3ff, 0 0 50px #0fa8c4; }
  8%   { opacity: 0.2; text-shadow: none; }
  12%  { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 10px #7df3ff, 0 0 25px #7df3ff, 0 0 50px #0fa8c4; }
  16%  { opacity: 0; text-shadow: none; }
  22%  { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 10px #7df3ff, 0 0 25px #7df3ff, 0 0 50px #0fa8c4; }
  25%  { opacity: 0.4; text-shadow: 0 0 2px #7df3ff; }
  30%  { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 10px #7df3ff, 0 0 25px #7df3ff, 0 0 50px #0fa8c4; }
  33%  { opacity: 0.1; text-shadow: none; }
  40%  { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 10px #7df3ff, 0 0 25px #7df3ff, 0 0 50px #0fa8c4, 0 0 100px #0fa8c4; }
  100% { opacity: 1; text-shadow: 0 0 4px #fff, 0 0 10px #7df3ff, 0 0 25px #7df3ff, 0 0 50px #0fa8c4, 0 0 100px #0fa8c4, 0 0 150px #0fa8c4; }
}

.logo-studio {
  font-family: 'Dancing Script', cursive;
  font-weight: 400;
  font-size: 14px;
  color: #b8f8ff;
  white-space: nowrap;
  text-shadow:
    0 0 4px #fff,
    0 0 10px #7df3ff,
    0 0 25px #7df3ff,
    0 0 50px #0fa8c4,
    0 0 100px #0fa8c4;
}

.nav-desktop {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-desktop a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: #7df3ff;
}

.nav-desktop a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  outline: none;
}
.nav-desktop a:focus { outline: none; background: transparent; }
.nav-desktop a:focus-visible {
  outline: 2px solid #7df3ff;
  outline-offset: 3px;
  border-radius: 2px;
}
.nav-desktop a.active {
  color: #fff;
  border-bottom-color: #7df3ff;
  text-shadow: 0 0 8px rgba(125, 243, 255, 0.5);
}
.nav-mobile a { outline: none; }
.nav-mobile a:focus-visible {
  outline: 2px solid #7df3ff;
  outline-offset: 3px;
}

/* Diagnostic nav CTA (outline pill) */
.nav-desktop a.nav-cta {
  color: #7df3ff;
  border: 1px solid rgba(125, 243, 255, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-desktop a.nav-cta:hover {
  background: rgba(125, 243, 255, 0.1);
  border-color: #7df3ff;
  color: #b8f8ff;
}
.nav-desktop a.nav-cta.active { box-shadow: 0 0 12px rgba(125, 243, 255, 0.35); }

.nav-mobile a.active {
  color: #7df3ff;
}
.nav-mobile a.nav-cta {
  color: #7df3ff;
  border: 1px solid rgba(125, 243, 255, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 8px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.hamburger.open span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 26, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 20px 24px;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
}

.nav-mobile a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid #1a1f2e;
}
.nav-mobile a:last-child { border-bottom: none; }

/* Hero */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 40px 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -4px;
  color: #fff;
  margin-bottom: 16px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-hero {
  display: inline-block;
  align-self: flex-start;
  margin-top: 24px;
  padding: 14px 32px;
  background: #7df3ff;
  color: #0b0f1a;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
  opacity: 0;
}

.cta-hero.show {
  animation: fadeInUp 0.48s ease forwards;
}

.cta-hero:hover {
  background: #b8f8ff;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8892a8;
  border: 1px solid #2a3448;
  border-radius: 50%;
  opacity: 0;
  text-decoration: none;
  animation: scrollCueIn 0.6s ease 3.2s forwards, scrollCueBounce 2s ease-in-out 4s infinite;
  transition: color 0.2s, border-color 0.2s;
}
.scroll-cue:hover {
  color: #7df3ff;
  border-color: #7df3ff;
}
@keyframes scrollCueIn {
  to { opacity: 0.7; }
}
@keyframes scrollCueBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (max-width: 600px) {
  .scroll-cue { bottom: 24px; }
  .hero { padding-bottom: 120px; }
}

/* Beliefs */
.beliefs {
  background: none;
  padding: 0;
}

.belief {
  border-bottom: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.belief-content {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1000px;
  width: 100%;
  padding: 80px 60px;
}

.belief-inner {
  flex: 1;
}

/* Number slides in from left: orange → white → faded */
.belief-number {
  font-size: clamp(100px, 15vw, 180px);
  font-weight: 900;
  opacity: 0;
  letter-spacing: -6px;
  font-variant-numeric: tabular-nums;
  color: #7df3ff;
  line-height: 1;
  flex-shrink: 0;
  width: 200px;
  transform: translateX(-80px);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s ease;
  user-select: none;
}

.belief-number.visible {
  opacity: 1;
  transform: translateX(0);
  color: #fff;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease 0.3s;
}

.belief-number.settled {
  color: rgba(255, 255, 255, 0.08);
  transition: color 0.8s ease;
}

/* Text slides in from right */
.belief h2,
.belief p {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.belief h2.visible,
.belief p.visible {
  opacity: 1;
  transform: translateX(0);
}

.belief p.visible {
  transition-delay: 0.3s;
}

.belief h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: #f0f2f8;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.15;
}

.belief p {
  font-size: 18px;
  color: rgba(224, 228, 237, 0.7);
  line-height: 1.8;
  max-width: 620px;
  letter-spacing: 0.01em;
}

.belief p strong {
  color: #f0f2f8;
  font-weight: 700;
}

.belief:nth-child(1)  { background: #0f1729; }
.belief:nth-child(2)  { background: #0f2028; }
.belief:nth-child(3)  { background: #1a1530; }
.belief:nth-child(4)  { background: #0d1f1f; }
.belief:nth-child(5)  { background: #1c1525; }
.belief:nth-child(6)  { background: #121a2e; }
.belief:nth-child(7)  { background: #181228; }

/* Contact */
.contact {
  padding: 20px 40px 100px;
  background: #0b0f1a;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: #f0f2f8;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.contact p {
  font-size: 18px;
  color: #8892a8;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.availability {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7df3ff;
  background: rgba(125, 243, 255, 0.1);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
}

/* Contact form */
.contact-form {
  max-width: 560px;
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-field {
  flex: 1;
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #8892a8;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #1a1f2e;
  border-radius: 6px;
  color: #f0f2f8;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #7df3ff;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.cta-contact {
  display: inline-block;
  padding: 16px 36px;
  background: #7df3ff;
  color: #0b0f1a;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.cta-contact:hover {
  background: #b8f8ff;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-links a {
  color: #4a5568;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #f0f2f8;
}

/* Bio strip (home, below hero) */
.bio-strip {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}
.bio-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 720px;
}
.bio-strip-photo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(20%);
}
.bio-strip-text p {
  font-size: 17.5px;
  color: #c9d0de;
  line-height: 1.75;
  letter-spacing: -0.003em;
}
.bio-strip-text p strong {
  color: #ffffff;
  font-weight: 700;
}
.bio-strip-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #8892a8;
  text-decoration: none;
  border-bottom: 1px dashed #3a4560;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.bio-strip-link:hover {
  color: #7df3ff;
  border-color: #7df3ff;
}

/* Proof strip (home) */
.proof-strip {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px;
  border-top: 1px solid #1a1f2e;
  border-bottom: 1px solid #1a1f2e;
}
.proof-strip-inner {
  max-width: 820px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  color: #e0e4ed;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proof-strip-inner li {
  padding-left: 18px;
  position: relative;
}
.proof-strip-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7df3ff;
  box-shadow: 0 0 6px rgba(125, 243, 255, 0.5);
}
.proof-strip-inner strong {
  color: #7df3ff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(125, 243, 255, 0.3);
}

/* Signature quote (home) */
.signature {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 40px;
}
.signature-inner {
  max-width: 820px;
  padding-left: 32px;
  border-left: 3px solid #7df3ff;
}
.signature-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7df3ff;
  margin-bottom: 20px;
}
.signature-quote {
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.028em;
  margin: 0 0 24px;
}
.signature-link {
  display: inline-block;
  font-size: 14px;
  color: #8892a8;
  text-decoration: none;
  border-bottom: 1px dashed #3a4560;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.signature-link:hover {
  color: #7df3ff;
  border-color: #7df3ff;
}

/* Dual CTA (home close) */
.dual-cta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  border-top: 1px solid #1a1f2e;
}
.dual-cta-inner {
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.dual-cta-block h3 {
  font-size: 20px;
  font-weight: 800;
  color: #f0f2f8;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.dual-cta-block p {
  font-size: 15px;
  color: #8892a8;
  line-height: 1.5;
  margin-bottom: 18px;
}
.dual-cta-btn {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.dual-cta-btn.primary {
  background: #7df3ff;
  color: #0b0f1a;
}
.dual-cta-btn.primary:hover { background: #b8f8ff; }
.dual-cta-btn.secondary {
  background: transparent;
  color: #e0e4ed;
  border: 1px solid #2a3448;
}
.dual-cta-btn.secondary:hover {
  border-color: #7df3ff;
  color: #7df3ff;
}

/* Page hero (used on About / Contact, smaller than home hero) */
.page-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 40px 60px;
}
.page-hero h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.038em;
  color: #fff;
  margin-bottom: 20px;
}
.page-hero .page-lede {
  font-size: 18px;
  color: #8892a8;
  line-height: 1.65;
  max-width: 620px;
  letter-spacing: 0.005em;
}

/* About page: extended bio block */
.about-bio {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.about-bio-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(20%);
  flex-shrink: 0;
}
.about-bio-text {
  max-width: 620px;
}
.about-bio-text p {
  font-size: 17px;
  color: #e0e4ed;
  line-height: 1.75;
  margin-bottom: 16px;
  letter-spacing: -0.002em;
}
.about-bio-text p:last-child { margin-bottom: 0; }

.about-bio-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-bio-list li {
  font-size: 17px;
  color: #e0e4ed;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
  letter-spacing: -0.002em;
}
.about-bio-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: #7df3ff;
}

/* About close CTAs (re-uses dual-cta) */
.about-close {
  border-top: 1px solid #1a1f2e;
}

/* Footer */
footer {
  padding: 40px 40px 32px;
  font-size: 13px;
  color: #4a5568;
  border-top: 1px solid #1a1f2e;
}
.footer-hero {
  max-width: 1000px;
  margin: 0 auto 20px;
  text-align: center;
}
.footer-logo {
  font-size: 15px !important;
  font-weight: 700;
  opacity: 0;
  text-shadow:
    0 0 2px #fff,
    0 0 6px #7df3ff,
    0 0 14px #0fa8c4;
}
.footer-logo.flicker {
  animation: neonFlicker 2s ease forwards;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-nav a {
  color: #4a5568;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #7df3ff; }
.footer-nav a.footer-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.footer-copy { color: #2d3548; }

/* Mobile */
@media (max-width: 600px) {
  .topbar {
    padding: 16px 20px;
    gap: 12px;
    justify-content: flex-end;
  }
  .nav-desktop {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .footer-logo {
    font-size: 13px !important;
    line-height: 1.3;
    max-width: 100%;
    display: inline-block;
  }
  .hero {
    padding: 100px 20px 120px;
    min-height: auto;
  }
  .hero h1 {
    font-size: clamp(36px, 10vw, 56px);
    letter-spacing: -2px;
  }
  .beliefs {
    padding: 0;
  }
  .belief-content {
    flex-direction: column;
    gap: 16px;
    padding: 48px 20px;
  }
  .belief-number {
    font-size: 80px;
    width: auto;
  }
  .contact {
    padding: 60px 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  #trailCanvas {
    display: none;
  }
  .bio-strip, .proof-strip, .signature, .dual-cta, .about-bio {
    padding-left: 20px;
    padding-right: 20px;
  }
  .bio-strip { padding: 40px 20px 56px; }
  .bio-strip-inner { gap: 16px; flex-direction: column; align-items: flex-start; }
  .bio-strip-photo img { width: 64px; height: 64px; }
  .bio-strip-text p { font-size: 16.5px; line-height: 1.7; }
  .bio-strip-link { margin-top: 16px; }
  .proof-strip { padding: 48px 20px; }
  .proof-strip-inner { gap: 18px; font-size: 16px; line-height: 1.5; }
  .signature { padding: 64px 20px; }
  .signature-inner { padding-left: 20px; }
  .dual-cta { padding: 60px 20px 80px; }
  .dual-cta-inner { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { padding: 100px 20px 40px; }
  .about-bio {
    flex-direction: column;
    gap: 20px;
    padding: 32px 20px 60px;
  }
  .about-bio-photo img { width: 80px; height: 80px; }
  footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
}
