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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--nocturne-void);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan-500);
  outline-offset: 3px;
}

.nocturne-hero :focus-visible,
.mrf-root :focus-visible,
.nav-pill:not(.nav-pill--scrolled) :focus-visible {
  outline-color: var(--aqua-300);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 14px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--petrol-900);
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
}

@media (max-width: 640px) {
  .container {
    padding-inline: 18px;
  }
}

/* Extreme Typography Scale (Inter 10px wide tracked labels vs massive 72px+ tight headings) */
.label-micro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  line-height: 1.4;
}

.label-micro--dark {
  color: rgba(255, 255, 255, 0.62);
}

.label-micro--light {
  color: var(--petrol-700);
}

.label-micro__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua-300);
  flex-shrink: 0;
}

.label-micro--light .label-micro__dot {
  background: var(--cyan-500);
}

.heading-section {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.section-lead {
  margin-top: 16px;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* Glassmorphic Pill Button Spec (Adapted strictly to MTPT Palette) */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: all 0.3s var(--ease-ui);
}

.btn-glass:hover {
  background: rgba(0, 182, 217, 0.22);
  border-color: rgba(106, 243, 227, 0.45);
  box-shadow: 0 8px 32px 0 rgba(0, 182, 217, 0.18);
  transform: scale(1.05);
}

.btn-glass--primary {
  background: rgba(106, 243, 227, 0.92);
  color: var(--petrol-950);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 28px 0 rgba(106, 243, 227, 0.22);
}

.btn-glass--primary:hover {
  background: #ffffff;
  color: var(--petrol-950);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 36px 0 rgba(106, 243, 227, 0.35);
  transform: scale(1.05);
}

.btn-glass--light {
  background: rgba(0, 57, 68, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 83, 99, 0.2);
  color: var(--petrol-900);
}

.btn-glass--light:hover {
  background: var(--petrol-900);
  border-color: var(--petrol-900);
  color: #ffffff;
  box-shadow: 0 8px 32px 0 rgba(0, 57, 68, 0.18);
  transform: scale(1.05);
}

.btn-glass--solid-light {
  background: var(--petrol-900);
  border: 1px solid var(--petrol-900);
  color: #ffffff;
}

.btn-glass--solid-light:hover {
  background: var(--petrol-700);
  border-color: var(--cyan-500);
  box-shadow: 0 8px 32px 0 rgba(0, 182, 217, 0.22);
  transform: scale(1.05);
}

.btn-glass--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-glass--full {
  width: 100%;
}

.btn-glass svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 3s Floating Icon Keyframe */
@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.icon-float {
  animation: icon-float 3s ease-in-out infinite;
}

.icon-float--delay-1 {
  animation-delay: 0.5s;
}

.icon-float--delay-2 {
  animation-delay: 1s;
}

/* Scroll Fade In / Fade Out Transitions with Blur & Stagger */
.scroll-fade {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 720ms var(--ease-expo) var(--fade-delay, 0ms),
    transform 720ms var(--ease-expo) var(--fade-delay, 0ms),
    filter 720ms var(--ease-expo) var(--fade-delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.scroll-fade.is-leaving-top {
  opacity: 0.12;
  transform: translateY(-20px) scale(0.985);
  filter: blur(4px);
}

.scroll-fade--d1 { --fade-delay: 100ms; }
.scroll-fade--d2 { --fade-delay: 200ms; }
.scroll-fade--d3 { --fade-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-fade,
  .scroll-fade.is-visible,
  .scroll-fade.is-leaving-top {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .icon-float,
  .nocturne-aurora-a,
  .nocturne-aurora-b,
  .nocturne-aurora-c,
  .nocturne-curtain-1,
  .nocturne-curtain-2,
  .breath-orb__core,
  .breath-orb__ring {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
