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

html {
  width: 100%;
  height: 100%;
  background: #000;
  scroll-behavior: auto;
}

body {
  width: 100%;
  min-height: 100%;
  overflow: hidden; /* locked during intro, unlocked after */
  background: #000;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

body.scrollable {
  overflow-y: auto;
  overflow-x: hidden;
}

/* ===== Scroll Container ===== */
#scroll-container {
  position: relative;
}

/* Hide everything below the hero until scrolling is enabled */
body:not(.scrollable) #meteor-spacer,
body:not(.scrollable) #page-two {
  display: none;
}

/* ===== PAGE 1: Hero ===== */
#page-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 3;
}

/* ===== Intro Overlay ===== */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#geo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.geo-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0;
}

#center-dash {
  position: absolute;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#brand-text {
  position: absolute;
  z-index: 7;
  text-align: left;
  opacity: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  white-space: nowrap;
}

#brand-text .brand-the {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  opacity: 0;
}

#brand-text .brand-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.015em;
  opacity: 0;
}

#brand-text .brand-name em {
  font-style: italic;
  font-weight: 400;
}

#brand-text .brand-lab {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-top: 0;
  opacity: 0;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* ===== Hero ===== */
#hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.08) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

/* ===== Hero Tagline ===== */
#hero-tagline {
  position: absolute;
  bottom: clamp(80px, 12vh, 140px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  max-width: 600px;
  padding: 0 24px;
  opacity: 0;
}

#hero-tagline p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.3vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* ===== Explore Prompt ===== */
#explore-prompt {
  position: absolute;
  bottom: clamp(24px, 4vh, 48px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#explore-prompt:hover {
  opacity: 1 !important;
}

.explore-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.explore-arrow {
  animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Meteor Spacer ===== */
#meteor-spacer {
  height: 100vh;
  position: relative;
}

/* ===== Meteor Scene (fixed canvas overlay) ===== */
#meteor-scene {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

#meteor-canvas {
  width: 100%;
  height: 100%;
}

/* ===== Meteor Text Lines ===== */
#meteor-text {
  position: absolute;
  left: clamp(30px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 36px);
  max-width: 50%;
}

.mt-line {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 28px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
}

/* ===== Impact Flash ===== */
#impact-flash {
  position: fixed;
  inset: 0;
  z-index: 51;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(255, 200, 100, 1) 0%,
    rgba(255, 160, 60, 0.8) 20%,
    rgba(255, 120, 40, 0.4) 40%,
    rgba(255, 80, 20, 0) 70%
  );
  opacity: 0;
  pointer-events: none;
}

/* ===== PAGE 2 ===== */
#page-two {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  z-index: 2;
}

.page-two-inner {
  max-width: 700px;
  padding: 60px 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.page-two-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.page-two-inner p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.75;
  letter-spacing: 0.01em;
}

/* ===== Enter Arrow (Page 2 → Main Site) ===== */
#enter-arrow {
  position: absolute;
  right: clamp(30px, 5vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

#enter-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

#enter-arrow svg {
  animation: pulseArrowRight 2s ease-in-out infinite;
}

@keyframes pulseArrowRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ===== PAGE 3: Main Site ===== */
#main-site {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

#main-site.active {
  transform: translateX(0);
}

/* Back zone: invisible hover strip on the left edge */
#back-zone {
  position: fixed;
  left: 0;
  top: 0;
  width: 48px;
  height: 100%;
  z-index: 210;
  cursor: pointer;
}

#back-arrow {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#back-zone:hover #back-arrow {
  opacity: 0.6;
  transform: translateY(-50%) translateX(0);
}

#back-zone:hover #back-arrow:hover {
  opacity: 1;
}

/* ===== Brand Animation ===== */
#main-brand {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #111;
  white-space: nowrap;
  z-index: 205;
  pointer-events: none;
  line-height: 1;
}

/* .final used during GSAP slide animation only */
#main-brand.final {
  top: 24px;
  left: 20px;
  transform: translate(0, 0) scale(0.38);
  transform-origin: top left;
  opacity: 1;
}

/* Once docked in nav, override everything */

.mb-text {
  display: inline;
  vertical-align: baseline;
}

.mb-flask-wrap {
  display: inline-block;
  position: relative;
  width: 0.58em;
  height: 1em;
  vertical-align: baseline;
}

.mb-a-letter {
  position: absolute;
  left: 0;
  bottom: 0;
  line-height: 1;
}

.mb-flask {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 0.82em;
  width: auto;
  opacity: 0;
}

.flask-body {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
}

.flask-rim {
  opacity: 0;
}

.flask-liquid {
  opacity: 0.85;
}

.mb-tagline {
  display: block;
  font-family: 'Caveat', cursive;
  font-weight: 400;
  font-size: 0.55em;
  color: #2ecc71;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin-top: 4px;
  white-space: nowrap;
}

.flask-bubbles circle {
  fill: rgba(46, 204, 113, 0.6);
}

/* ===== Main Site Content ===== */
#ms-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#ms-content.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Nav */
#ms-nav {
  position: sticky;
  top: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(30px, 5vw, 80px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ms-nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 500;
  color: transparent;
  letter-spacing: -0.01em;
  pointer-events: none;
  user-select: none;
}

/* Brand logo docked inside nav after animation */
#main-brand.in-nav {
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  opacity: 1 !important;
  font-size: clamp(22px, 2vw, 30px);
  z-index: auto;
  pointer-events: auto;
}

#main-brand.in-nav ~ .ms-nav-logo {
  display: none;
}

.ms-nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}

.ms-nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 400;
  color: #555;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.ms-nav-links a:hover {
  color: #111;
}

/* ===== Consistent Section Typography ===== */
.ms-section-h2,
#ms-hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #111;
}

/* Section headings */
#ms-gap h2, #ms-about h2, #ms-capabilities h2,
#ms-work h2, #ms-principles h2, #ms-closing h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 24px;
}

/* Section body text */
#ms-gap p, #ms-about p, #ms-closing p,
.ms-hero-sub, .ms-work-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  color: #444;
}

/* Offset anchors for sticky nav */
#ms-about, #ms-work, #ms-principles, #ms-footer, #ms-gap, #ms-capabilities, #ms-closing {
  scroll-margin-top: 80px;
}

/* Section labels */
.ms-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 14px;
}

.ms-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2ecc71;
  margin-bottom: 14px;
}

/* Shared two-column section layout */
.ms-split {
  display: flex;
  align-items: center;
  gap: clamp(40px, 4vw, 72px);
  padding: clamp(48px, 6vh, 80px) clamp(40px, 6vw, 100px);
  max-width: 1400px;
  margin: 0 auto;
}

.ms-split-text {
  flex: 1;
  min-width: 0;
}

.ms-split-illus {
  flex-shrink: 0;
  width: clamp(300px, 30vw, 420px);
}

.ms-split-illus svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Renaissance Banner */
#ms-renaissance {
  padding: clamp(60px, 8vh, 100px) clamp(40px, 6vw, 100px) 0;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.ms-renaissance-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: clamp(32px, 4vh, 56px);
}

.ms-renaissance-ai {
  color: #000;
}

.ms-renaissance-pct {
  text-decoration: underline;
  text-decoration-color: #2ecc71;
  text-underline-offset: 4px;
}

.ms-renaissance-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.4vw, 20px);
  color: #555;
  max-width: 720px;
  margin: 0 auto clamp(32px, 4vh, 56px);
  line-height: 1.6;
}

.ms-renaissance-img {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 9;
  box-shadow: 0 2px 40px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
}

.ms-renaissance-img video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

/* Hero */
#ms-hero {
  padding-top: 60px;
}

#ms-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #111;
  margin-bottom: 20px;
}

.ms-hero-sub {
  max-width: 600px;
}

/* About */

#ms-about p + p {
  margin-top: 16px;
}

/* Capabilities */
#ms-capabilities {
  padding: clamp(48px, 6vh, 80px) clamp(40px, 6vw, 100px);
  max-width: 1400px;
  margin: 0 auto;
}

.ms-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ms-cap-item {
  padding: clamp(24px, 2.5vw, 36px);
  border: 1px solid #eee;
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ms-cap-item:hover {
  border-color: #ccc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.ms-cap-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}

.ms-cap-icon svg {
  width: 100%;
  height: 100%;
}

.ms-cap-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 500;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ms-cap-item p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 300;
  line-height: 1.6;
  color: #666;
}

/* Work */
#ms-work {
  padding: clamp(48px, 6vh, 80px) clamp(40px, 6vw, 100px);
  max-width: 1400px;
  margin: 0 auto;
}

#ms-work h2 {
  margin-bottom: 16px;
}

.ms-work-sub {
  margin-bottom: 36px;
  max-width: 800px;
}

.ms-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ms-card-illus {
  margin: calc(-1 * clamp(28px, 3vw, 40px));
  margin-bottom: 16px;
  margin-top: calc(-1 * clamp(28px, 3vw, 40px) - 1px);
}

.ms-card-illus svg {
  width: calc(100% + 2px);
  height: auto;
  display: block;
  border-radius: 12px 12px 0 0;
  margin-left: -1px;
}

.ms-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  padding: clamp(28px, 3vw, 40px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ms-card:hover {
  border-color: #bbb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.ms-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 500;
  color: #111;
  margin-bottom: 10px;
}

.ms-card p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 300;
  line-height: 1.6;
  color: #666;
}

/* Principles */
#ms-principles {
  padding: clamp(48px, 6vh, 80px) clamp(40px, 6vw, 100px);
  max-width: 1400px;
  margin: 0 auto;
}

#ms-principles h2 {
  margin-bottom: 36px;
}

.ms-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ms-principle {
  padding: clamp(24px, 2.5vw, 36px);
  border-left: 3px solid #2ecc71;
}

.ms-principle h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 500;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ms-principle p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 0.9vw, 15px);
  font-weight: 300;
  line-height: 1.7;
  color: #555;
}

/* Closing */
#ms-closing {
  padding: clamp(60px, 8vh, 100px) clamp(40px, 6vw, 100px);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

#ms-closing h2 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#ms-closing p {
  max-width: 700px;
  margin: 0 auto 32px;
}

.ms-cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 500;
  color: #fff;
  background: #111;
  padding: 14px 36px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.ms-cta:hover {
  background: #333;
}

/* Footer */
#ms-footer {
  margin-top: clamp(40px, 5vh, 60px);
  padding: clamp(30px, 4vh, 50px) clamp(40px, 6vw, 100px);
  border-top: 1px solid #e0e0e0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.ms-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.ms-footer-links {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
}

.ms-footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 400;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ms-footer-links a:hover {
  color: #111;
}

.ms-footer-email {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 400;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ms-footer-email:hover {
  color: #111;
}

.ms-footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 300;
  color: #999;
}

/* ===== Hamburger Button (hidden on desktop) ===== */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 220;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile: Tablets & Phones (768px) ===== */
@media (max-width: 768px) {

  /* =============================================
     INTRO / HERO / METEOR PAGES (first-time visitors)
     ============================================= */

  /* Hero tagline — lift above iOS safe area */
  #hero-tagline {
    bottom: 100px;
    padding: 0 20px;
    max-width: 90%;
  }

  /* Explore prompt — safe positioning above bottom edge */
  #explore-prompt {
    bottom: 40px;
  }

  /* Brand text in intro — scale down for mobile */
  #brand-text .brand-name {
    font-size: clamp(28px, 8vw, 50px);
  }

  #brand-text .brand-the {
    font-size: clamp(12px, 3vw, 20px);
  }

  #brand-text .brand-lab {
    font-size: clamp(18px, 5vw, 34px);
  }

  /* Meteor text — wider on mobile so text isn't cramped */
  #meteor-text {
    max-width: 85%;
    left: 7%;
  }

  .mt-line {
    font-size: clamp(14px, 3.5vw, 22px);
  }

  /* Page Two — stack text & arrow vertically */
  #page-two {
    flex-direction: column;
    padding: 60px 24px;
    text-align: center;
  }

  .page-two-inner {
    max-width: 100%;
    padding: 40px 0;
  }

  .page-two-inner h2 {
    font-size: clamp(26px, 7vw, 48px);
  }

  .page-two-inner p {
    font-size: clamp(14px, 3.5vw, 17px);
  }

  /* Enter arrow: move below text instead of absolute right */
  #enter-arrow {
    position: static;
    transform: none;
    margin-top: 24px;
  }

  #enter-arrow svg {
    /* Rotate arrow to point down instead of right */
    transform: rotate(90deg);
  }

  @keyframes pulseArrowRight {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(6px); }
  }

  /* =============================================
     MAIN SITE NAV
     ============================================= */

  .hamburger-btn {
    display: block;
    margin-left: auto;
  }

  .ms-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .ms-nav-links.open {
    display: flex;
  }

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

  #ms-nav {
    padding: 16px 20px;
    position: sticky;
  }

  /* In-nav brand shrink */
  #main-brand.in-nav {
    font-size: 20px;
  }

  #main-brand.in-nav .mb-tagline {
    font-size: 0.5em;
  }

  /* =============================================
     RENAISSANCE BANNER
     ============================================= */

  #ms-renaissance {
    padding: 40px 20px 0;
  }

  .ms-renaissance-heading {
    font-size: clamp(26px, 7vw, 44px);
    margin-bottom: 20px;
  }

  .ms-renaissance-sub {
    font-size: clamp(14px, 3.5vw, 17px);
    margin-bottom: 24px;
  }

  .ms-renaissance-img {
    border-radius: 12px;
  }

  .ms-renaissance-img video {
    border-radius: 12px;
  }

  /* =============================================
     SPLIT LAYOUTS — stack vertically
     ============================================= */

  .ms-split {
    flex-direction: column;
    padding: 40px 20px;
    gap: 28px;
  }

  .ms-split-text {
    width: 100%;
  }

  .ms-split-illus {
    width: 100%;
    max-width: 320px;
    flex-shrink: 1;
    order: -1;
  }

  /* Text-first sections: keep text on top, illustration below */
  #ms-hero .ms-split-text,
  #ms-about .ms-split-text {
    order: -1;
  }

  #ms-hero .ms-split-illus,
  #ms-about .ms-split-illus {
    order: 0;
  }

  /* Illus-first section (gap): text on top, illus below */
  #ms-gap.ms-split {
    flex-direction: column;
  }

  #ms-gap .ms-split-text {
    order: -1;
  }

  #ms-gap .ms-split-illus {
    order: 0;
  }

  /* Hero section top padding */
  #ms-hero {
    padding-top: 32px;
  }

  /* =============================================
     GRIDS
     ============================================= */

  .ms-cap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ms-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .ms-principles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Section padding */
  #ms-capabilities,
  #ms-work,
  #ms-principles,
  #ms-closing {
    padding: 40px 20px;
  }

  /* =============================================
     CLOSING / CTA
     ============================================= */

  #ms-closing h2 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .ms-cta {
    padding: 12px 28px;
  }

  /* =============================================
     FOOTER
     ============================================= */

  #ms-footer {
    padding: 30px 20px;
  }

  .ms-footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ms-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Mobile: Small Phones (480px) ===== */
@media (max-width: 480px) {

  /* Intro brand text */
  #brand-text .brand-name {
    font-size: clamp(24px, 9vw, 40px);
  }

  /* Meteor text */
  #meteor-text {
    max-width: 92%;
    left: 4%;
  }

  .mt-line {
    font-size: clamp(13px, 3.8vw, 18px);
  }

  /* Page two */
  .page-two-inner h2 {
    font-size: clamp(22px, 6.5vw, 36px);
  }

  /* Renaissance heading */
  .ms-renaissance-heading {
    font-size: clamp(22px, 6.5vw, 34px);
  }

  .ms-renaissance-sub {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  /* Section headings */
  #ms-hero h1 {
    font-size: clamp(24px, 7vw, 34px);
  }

  #ms-gap h2, #ms-about h2, #ms-capabilities h2,
  #ms-work h2, #ms-principles h2, #ms-closing h2 {
    font-size: clamp(20px, 5.5vw, 30px);
  }

  /* Grids go single column */
  .ms-cap-grid {
    grid-template-columns: 1fr;
  }

  .ms-cards {
    grid-template-columns: 1fr;
  }

  /* Split illustrations smaller */
  .ms-split-illus {
    max-width: 260px;
  }

  /* Card illustration fix for single column */
  .ms-card-illus svg {
    border-radius: 12px 12px 0 0;
  }
}
