@font-face {
  font-family: 'AppBody';
  src: url('assets/fonts/app-body-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'DisplayHeading';
  src: url('assets/fonts/display-heading-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'AppCode';
  src: url('assets/fonts/app-code-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* ==========================================================================
   DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  color-scheme: dark;
  --deep: #111111;
  --surface: #161616;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.12);
  --panel-border-hover: rgba(255, 255, 255, 0.35);

  --ink: #ffffff;
  --muted: #bdbdbd;
  --subtle: #898989;

  --violet: #bdbdbd;
  --violet-glow: rgba(255, 255, 255, 0.14);
  --pink: #f5f5f5;
  --pink-glow: rgba(255, 255, 255, 0.12);
  --cyan: #e5e5e5;

  --font-main: 'AppBody', system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'DisplayHeading', 'AppBody', system-ui, sans-serif;
  --font-code: 'AppCode', ui-monospace, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --header-height: 80px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--deep);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ==========================================================================
   LAYOUT & SHELL
   ========================================================================== */
.page-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #2c2c2c 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, #1f1f1f 0%, transparent 50%),
    var(--deep);
}

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  isolation: isolate;
  padding: clamp(100px, 15vh, 140px) clamp(20px, 6vw, 100px) clamp(60px, 8vh, 90px);
}

.scene-content {
  position: relative;
  z-index: 2;
  width: min(1140px, 100%);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(20px, 5vw, 60px);
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(17, 17, 17, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  z-index: 102;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 20px var(--pink-glow);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav-link[aria-current="page"]::after,
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-only-action {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 102;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.25s ease;
}

.header-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.action-icon {
  color: var(--pink);
  transition: transform 0.25s ease;
}

.header-action:hover .action-icon {
  transform: translate(2px, -2px);
}

/* Hamburger Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  gap: 6px;
  z-index: 102;
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   TYPOGRAPHY & BUTTONS
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(40px, 8vw, 110px);
}

h2 {
  font-size: clamp(32px, 6vw, 80px);
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.7) 70%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  max-width: 640px;
}

.hero-content .lede {
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.hero-content {
  transform: translateY(clamp(110px, 18vh, 170px));
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 140px;
  height: 52px;
  padding: 0 28px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
}

.button-primary {
  background: #050505;
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button-primary:hover {
  background: #000;
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.button-lg {
  height: 60px;
  padding: 0 36px;
  font-size: 16px;
}

/* ==========================================================================
   SCENE 1: HERO
   ========================================================================== */
.scene-hero {
  text-align: center;
}

.aurora {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.aurora-one {
  top: 10%;
  left: 15%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #353535, transparent 70%);
  animation: pulse-aurora 10s ease-in-out infinite alternate;
}

.aurora-two {
  right: 10%;
  bottom: 15%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #2c2c2c, transparent 70%);
  animation: pulse-aurora 8s ease-in-out infinite alternate-reverse;
}

.aurora-three {
  top: 40%;
  left: 45%;
  width: 25vw;
  height: 25vw;
  background: radial-gradient(circle, #4a4a4a, transparent 70%);
  opacity: 0.3;
}

/* Floating 3D Cards background */
.floating-grid {
  position: absolute;
  z-index: -1;
  inset: 6% 3% 4%;
  pointer-events: none;
}

.grid-card {
  position: absolute;
  width: clamp(118px, 11vw, 168px);
  aspect-ratio: 3 / 4;
  margin: 0;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  opacity: 0.72;
  transform: rotate(var(--r));
  animation: float 6s ease-in-out infinite;
}

.grid-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(10, 10, 10, 0.58));
}

.grid-card img {
  position: absolute;
  left: 50%;
  bottom: -3%;
  width: 116%;
  height: 112%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: saturate(0.78) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.48));
}

.grid-card-a { --r: -7deg; top: 10%; left: 5%; animation-delay: 0s; }
.grid-card-b { --r: 8deg; top: 9%; right: 6%; animation-delay: 0.8s; }
.grid-card-c { --r: 5deg; top: 38%; left: 1%; animation-delay: 1.6s; }
.grid-card-d { --r: -8deg; top: 40%; right: 1%; animation-delay: 2.4s; }
.grid-card-e { --r: 6deg; bottom: 5%; left: 10%; animation-delay: 3.2s; }
.grid-card-f { --r: -5deg; bottom: 5%; right: 11%; animation-delay: 4s; }
.grid-card-g { --r: -3deg; bottom: -5%; left: 30%; animation-delay: 4.8s; }
.grid-card-h { --r: 4deg; bottom: -5%; right: 30%; animation-delay: 5.6s; }

/* Hero Center Orbit Visual */
.hero-visual {
  position: absolute;
  z-index: 0;
  top: 51%;
  left: 50%;
  width: min(48vw, 560px);
  height: min(82vh, 760px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.halo {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(189, 189, 189, 0.12) 50%, transparent 70%);
  filter: blur(20px);
}

.hero-orbit {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: rotate(35deg) skewX(-10deg);
}

.orbit-one {
  animation: spin 25s linear infinite;
  border-top-color: var(--pink);
}

.orbit-two {
  top: 18%;
  left: 18%;
  width: 64%;
  transform: rotate(-45deg) skewX(20deg);
  animation: spin-reverse 30s linear infinite;
  border-bottom-color: var(--violet);
}

.hero-core {
  position: absolute;
  top: 28%;
  left: 31%;
  width: 38%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(189, 189, 189, 0.15));
  box-shadow: 0 0 80px var(--violet-glow);
  animation: morph 8s ease-in-out infinite alternate;
}

.hero-role {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -4%;
  width: 100%;
  height: 98%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: translateX(-50%);
  filter: saturate(0.72) contrast(1.04) drop-shadow(0 28px 40px rgba(0, 0, 0, 0.72));
  -webkit-mask-image: radial-gradient(ellipse 74% 72% at 50% 46%, #000 43%, rgba(0, 0, 0, 0.88) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 72% at 50% 46%, #000 43%, rgba(0, 0, 0, 0.88) 62%, transparent 100%);
  transition: opacity 0.8s ease;
}

.hero-role.is-active {
  opacity: 0.78;
}

/* Scroll Cue Component */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-icon {
  width: 20px;
  height: 32px;
  border: 2px solid var(--panel-border);
  border-radius: 99px;
  position: relative;
}

.scroll-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--pink);
  animation: scroll-bob 2s ease-in-out infinite;
}

/* ==========================================================================
   SCENE 2: STUDIO
   ========================================================================== */
.scene-studio {
  background: linear-gradient(180deg, var(--deep) 0%, var(--surface) 50%, var(--deep) 100%);
}

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
}

.card-stack-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 380px;
}

.feature-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 240px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.3s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.45) 47%, transparent 78%);
  pointer-events: none;
}

.feature-role {
  position: absolute;
  right: -8%;
  bottom: -13%;
  width: 66%;
  height: 116%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.78) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.58));
}

.card-tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--pink);
}

.feature-card b {
  position: relative;
  z-index: 2;
  width: 58%;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.feature-card-back {
  transform: translateY(0) rotate(-8deg) scale(0.92);
  opacity: 0.4;
}

.feature-card-mid {
  transform: translateY(30px) rotate(4deg) scale(0.96);
  opacity: 0.7;
}

.feature-card-front {
  transform: translateY(60px) rotate(-2deg);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(189, 189, 189, 0.04));
}

.card-stack-wrapper:hover .feature-card-back {
  transform: translateY(-20px) rotate(-12deg) scale(0.92);
}

.card-stack-wrapper:hover .feature-card-mid {
  transform: translateY(20px) rotate(8deg) scale(0.96);
}

.card-stack-wrapper:hover .feature-card-front {
  transform: translateY(70px) rotate(0deg) scale(1.02);
}

.section-index {
  position: absolute;
  right: clamp(20px, 5vw, 60px);
  bottom: 30px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-code);
  letter-spacing: 0.25em;
}

/* Scattered mascot artwork */
.mascot-scatter {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-mascot {
  position: absolute;
  width: clamp(118px, 13vw, 190px);
  object-fit: contain;
  opacity: 0.36;
  filter: grayscale(0.14) saturate(0.76) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.44));
  animation: mascot-drift 8s ease-in-out infinite;
}

.mascot-studio-a { --tilt: -13deg; left: 2%; bottom: 4%; }
.mascot-studio-b { --tilt: 9deg; right: 2%; top: 7%; opacity: 0.27; animation-delay: 1.4s; }
.mascot-bond-a { --tilt: -10deg; left: 1%; top: 43%; opacity: 0.3; animation-delay: 2.1s; }
.mascot-bond-b { --tilt: 12deg; right: 1%; top: 47%; opacity: 0.28; animation-delay: 3.2s; }
.mascot-contact-a { --tilt: -9deg; left: 4%; top: 19%; opacity: 0.4; animation-delay: 1.1s; }
.mascot-contact-b { --tilt: 11deg; left: 18%; bottom: 14%; width: clamp(100px, 11vw, 160px); opacity: 0.25; animation-delay: 2.8s; }

/* ==========================================================================
   SCENE 3: BOND
   ========================================================================== */
.scene-bond {
  background: radial-gradient(circle at 50% 50%, #1f1f1f 0%, var(--deep) 70%);
}

.bond-content {
  text-align: center;
}

.bond-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.bond-orb-one {
  width: min(80vw, 720px);
  aspect-ratio: 1;
  animation: spin 60s linear infinite;
}

.bond-orb-two {
  width: min(55vw, 500px);
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.2);
  animation: spin-reverse 45s linear infinite;
}

.avatar-field {
  position: absolute;
  z-index: 1;
  inset: 9% 5% 7%;
  pointer-events: none;
}

.role-avatar {
  position: absolute;
  display: block;
  width: clamp(68px, 7vw, 104px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), transparent 58%),
    #181818;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.025);
  animation: avatar-float 7s ease-in-out infinite;
}

.role-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.82);
}

.role-avatar-a { top: 14%; left: 7%; animation-delay: 0s; }
.role-avatar-b { top: 8%; right: 8%; animation-delay: 1.2s; }
.role-avatar-c { bottom: 13%; left: 13%; animation-delay: 2.4s; }
.role-avatar-d { right: 12%; bottom: 12%; animation-delay: 3.6s; }
.role-avatar-e { right: 27%; bottom: 1%; width: clamp(58px, 6vw, 86px); animation-delay: 4.8s; }

.message-clouds {
  position: relative;
  width: min(760px, 100%);
  height: 220px;
  margin: 50px auto 0;
}

.cloud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 99px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cloud:hover {
  transform: translateY(-4px) scale(1.03) !important;
  border-color: var(--pink);
}

.cloud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.cloud-a { top: 10%; left: 5%; transform: rotate(-5deg); }
.cloud-b { top: 40%; right: 5%; transform: rotate(4deg); }
.cloud-c { bottom: 10%; left: 32%; transform: rotate(-2deg); }

/* ==========================================================================
   SCENE 4: CONTACT & FOOTER
   ========================================================================== */
.scene-contact {
  min-height: 80svh;
  justify-content: space-between;
  padding-bottom: 30px;
}

.contact-bg-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.16), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.contact-role {
  position: absolute;
  z-index: 0;
  right: clamp(-70px, 2vw, 30px);
  bottom: 0;
  width: min(34vw, 430px);
  max-height: 88%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0.32;
  filter: grayscale(0.38) saturate(0.72) drop-shadow(0 28px 48px rgba(0, 0, 0, 0.74));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 78%, transparent 100%);
  pointer-events: none;
}

.contact-content {
  text-align: center;
  margin: auto 0;
}

.contact-actions {
  margin-top: 40px;
}

.site-footer {
  width: min(1140px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
}

.footer-company {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.site-footer a {
  transition: color 0.25s ease;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

@keyframes avatar-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes mascot-drift {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-10px) rotate(var(--tilt)); }
}

@keyframes pulse-aurora {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.15); opacity: 0.65; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

/* Tablet & Mobile (<= 868px) */
@media (max-width: 868px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding: 0 20px;
  }

  .header-action {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile Nav Drawer */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 80vw);
    height: 100vh;
    height: 100dvh;
    padding: 100px 30px 40px;
    background: rgba(22, 22, 22, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--panel-border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 101;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 18px;
    font-weight: 600;
    width: 100%;
  }

  .mobile-only-action {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--panel-border);
    color: var(--pink);
  }

  /* Mobile Overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Hamburger active state */
  .mobile-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .mobile-toggle.is-active .hamburger-bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* Section Adjustments */
  .split-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .studio-text .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .card-stack {
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
  }

  .feature-card {
    height: 200px;
    padding: 20px;
  }

  .feature-card b {
    font-size: 18px;
  }

  .floating-grid {
    display: none; /* Hide background grid on tablet/mobile to prevent clutter */
  }

  .hero-visual {
    top: 48%;
    width: min(88vw, 500px);
    height: min(72vh, 650px);
  }

  .hero-role.is-active {
    opacity: 0.52;
  }

  .page-mascot {
    width: 104px;
    opacity: 0.2;
  }

  .mascot-studio-b,
  .mascot-bond-b,
  .mascot-contact-b {
    display: none;
  }

  .mascot-studio-a { left: -3%; bottom: 10%; }
  .mascot-bond-a { left: -4%; top: 54%; }
  .mascot-contact-a { left: -3%; top: 22%; }

  .avatar-field {
    inset: 10% 0 8%;
  }

  .role-avatar-a { top: 17%; left: 3%; }
  .role-avatar-b { top: 15%; right: 3%; }
  .role-avatar-c { bottom: 9%; left: 6%; }
  .role-avatar-d { right: 5%; bottom: 8%; }
  .role-avatar-e { display: none; }

  .message-clouds {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
  }

  .cloud {
    position: static;
    transform: none !important;
    width: min(300px, 90vw);
    justify-content: center;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    text-align: center;
  }

  .contact-role {
    right: 50%;
    width: min(76vw, 390px);
    opacity: 0.2;
    transform: translateX(50%);
  }

  .footer-col {
    width: 45%;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .scene {
    padding-left: 16px;
    padding-right: 16px;
  }

  .action-row {
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    width: 105vw;
    height: 68svh;
  }

  .scene-hero .scene-content {
    padding-top: 22px;
  }

  .hero-content {
    transform: translateY(60px);
  }

  .role-avatar {
    width: 64px;
  }

  .role-avatar-c,
  .role-avatar-d {
    bottom: 4%;
  }

  .footer-col {
    width: 100%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
