/* ============ FATY FLYNS ============ */

:root {
  --ink: #0a0a0a;
  --paper: #f6f4ef;
  --line: rgba(255, 255, 255, 0.12);

  --c-bg: #0a1a1c;
  --c-bg-2: #0e3536;
  --c-surface: #0d2326;
  --c-accent: #00d6c6;
  --c-accent-2: #d72bd3;
  --c-accent-3: #7e5fb3;
  --c-text: #ecf3f3;
  --c-mute: rgba(236, 243, 243, 0.55);
  --c-circuit: #e6c66a;

  --nav-bg: rgba(126, 95, 179, 0.85);

  --font-display: "Outfit", "Sora", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --motion: 1;
  --grain: 1;

  --topbar-h: 72px;
}

/* ====== PAGE PALETTES ====== */
[data-page="home"] {
  --c-bg: #0a1a1c; --c-bg-2: #0e3536; --c-surface: #103133;
  --c-accent: #1cdcc4; --c-accent-2: #d72bd3; --c-accent-3: #7e5fb3;
  --c-text: #ecf3f3; --c-mute: rgba(236, 243, 243, 0.55);
  --c-circuit: #e6c66a;
  --nav-bg: rgba(126, 95, 179, 0.55);
}
[data-page="business"] {
  --c-bg: #1a0e07; --c-bg-2: #3a1a0a; --c-surface: #2a160c;
  --c-accent: #ff7a2a; --c-accent-2: #ffb86b; --c-accent-3: #6b2e10;
  --c-text: #fff3e8; --c-mute: rgba(255, 243, 232, 0.55);
  --c-circuit: #ff9a4d;
  --nav-bg: rgba(58, 26, 10, 0.7);
}
[data-page="entertainment"] {
  --c-bg: #14041a; --c-bg-2: #2a0938; --c-surface: #1c0a26;
  --c-accent: #ff2bd6; --c-accent-2: #b026ff; --c-accent-3: #fff04a;
  --c-text: #fbeaff; --c-mute: rgba(251, 234, 255, 0.6);
  --c-circuit: #ff2bd6;
  --nav-bg: rgba(40, 8, 56, 0.7);
}
[data-page="education"] {
  --c-bg: #050d24; --c-bg-2: #0e1b4d; --c-surface: #0a1638;
  --c-accent: #4d7cff; --c-accent-2: #ffd23f; --c-accent-3: #5fb3a4;
  --c-text: #e8efff; --c-mute: rgba(232, 239, 255, 0.6);
  --c-circuit: #ffd23f;
  --nav-bg: rgba(14, 27, 77, 0.7);
}
[data-page="xperience"] {
  --c-bg: #f0ece1; --c-bg-2: #e8e1d3; --c-surface: #ffffff;
  --c-accent: #1ba0a8; --c-accent-2: #d72bd3; --c-accent-3: #5a5a5a;
  --c-text: #1a1a1a; --c-mute: rgba(26, 26, 26, 0.55);
  --c-circuit: #b8a98a;
  --nav-bg: rgba(90, 90, 90, 0.85);
  --line: rgba(0,0,0,0.12);
}
[data-page="store"] {
  --c-bg: #08070d; --c-bg-2: #1a1525; --c-surface: #14101e;
  --c-accent: #d72bd3; --c-accent-2: #00d6c6; --c-accent-3: #7e5fb3;
  --c-text: #f0ecf6; --c-mute: rgba(240, 236, 246, 0.55);
  --c-circuit: #d72bd3;
  --nav-bg: rgba(26, 21, 37, 0.7);
}
[data-page="contact"] {
  --c-bg: #5ec8d4; --c-bg-2: #e8e1d3; --c-surface: #ffffff;
  --c-accent: #d72bd3; --c-accent-2: #1ba0a8; --c-accent-3: #4a4a4a;
  --c-text: #1a1a1a; --c-mute: rgba(26, 26, 26, 0.6);
  --c-circuit: #ffffff;
  --nav-bg: rgba(80, 80, 80, 0.85);
  --line: rgba(0,0,0,0.12);
}

/* ====== BASE ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  transition: background 700ms cubic-bezier(.65,0,.35,1), color 700ms;
}
body[data-cursor="custom"] { cursor: none; }
body[data-cursor="custom"] a,
body[data-cursor="custom"] button,
body[data-cursor="custom"] input,
body[data-cursor="custom"] select,
body[data-cursor="custom"] textarea { cursor: none; }
@media (hover: none) { body { cursor: auto !important; } .cursor, .cursor-dot, .cursor-lens, .cursor-canvas { display: none !important; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--c-accent); color: var(--c-bg); }

/* ====== CURSOR ====== */
.cursor-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9997;
}
.cursor-lens {
  position: fixed; top: 0; left: 0;
  width: 60px; height: 60px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px) saturate(180%) hue-rotate(-8deg);
  -webkit-backdrop-filter: blur(4px) saturate(180%) hue-rotate(-8deg);
  background: radial-gradient(circle,
    rgba(28, 220, 196, 0.08) 0%,
    rgba(28, 220, 196, 0.04) 40%,
    transparent 70%);
  border: 1px solid rgba(28, 220, 196, 0.18);
  box-shadow:
    inset 0 0 20px rgba(28, 220, 196, 0.12),
    0 0 30px rgba(28, 220, 196, 0.08);
  transition: width 260ms cubic-bezier(.2,.7,.2,1), height 260ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.cursor-lens.is-hover {
  width: 110px; height: 110px;
  backdrop-filter: blur(8px) saturate(220%) hue-rotate(-15deg);
  -webkit-backdrop-filter: blur(8px) saturate(220%) hue-rotate(-15deg);
  border-color: rgba(215, 43, 211, 0.32);
  background: radial-gradient(circle,
    rgba(215, 43, 211, 0.10) 0%,
    rgba(28, 220, 196, 0.06) 50%,
    transparent 75%);
}
.cursor {
  position: fixed; top: 0; left: 0;
  width: 28px; height: 28px;
  border: 1.5px solid var(--c-accent);
  border-radius: 999px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 200ms ease, height 200ms ease, border-color 200ms;
}
.cursor.is-hover { width: 64px; height: 64px; border-color: var(--c-accent-2); }
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--c-accent);
  border-radius: 999px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

/* ====== TOP BAR ====== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 250;
  height: var(--topbar-h);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

[data-page="xperience"] .topbar,
[data-page="contact"] .topbar {
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent);
}

.topbar-center {
  flex: 1;
  display: flex; justify-content: center; align-items: center;
}
.topbar-current {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-page="xperience"] .topbar-current,
[data-page="contact"] .topbar-current {
  color: #fff;
  background: rgba(0,0,0,0.55);
}
.topbar-current span:nth-child(1) { color: var(--c-accent); }
.topbar-current span:nth-child(2) { opacity: 0.4; }

.nav-logo {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #00d6c6 0%, #2a0a3a 70%);
  border: 3px solid #00d6c6;
  box-shadow: 0 0 20px rgba(0, 214, 198, 0.55), 0 0 0 2px #d72bd3;
  flex: 0 0 auto;
  position: relative;
}
.nav-logo::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: inherit;
  border: 1px dashed rgba(255,255,255,0.25);
  animation: spin 24s linear infinite;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 6px #d72bd3, 0 0 10px #00d6c6;
}
.nav-logo-text small { font-size: 5px; font-weight: 400; letter-spacing: 0.08em; opacity: 0.85; display: block; margin-top: 2px; }

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

/* ====== MENU TOGGLE BUTTON ====== */
.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px;
  padding: 0 18px 0 22px;
  border-radius: 999px;
  background: var(--c-text);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  position: relative;
  z-index: 210;
  transition: transform 200ms, background 200ms, color 200ms;
}
.menu-toggle:hover { transform: translateY(-2px); }
[data-page="xperience"] .menu-toggle,
[data-page="contact"] .menu-toggle { background: var(--c-text); color: var(--c-bg); }
.menu-toggle.is-open { background: #fff; color: #000; }
.menu-toggle-icon {
  width: 22px; height: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.menu-toggle-icon span {
  display: block; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 300ms cubic-bezier(.65,0,.35,1), opacity 200ms;
}
.menu-toggle-icon span:nth-child(1) { width: 22px; }
.menu-toggle-icon span:nth-child(2) { width: 14px; align-self: flex-end; }
.menu-toggle:hover .menu-toggle-icon span:nth-child(2) { width: 22px; }
.menu-toggle.is-open .menu-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg); width: 22px;
}
.menu-toggle.is-open .menu-toggle-icon span:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg); width: 22px;
}

/* ====== MENU OVERLAY ====== */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
}
.menu-overlay.is-open { pointer-events: auto; }

/* Animated background panels: slide up from bottom in cascade */
.menu-bg {
  position: absolute; inset: 0;
  display: flex;
  z-index: 1;
}
.menu-bg span {
  flex: 1;
  transform: translateY(100%);
  transition: transform 700ms cubic-bezier(.76,0,.24,1);
}
.menu-bg span:nth-child(1) { background: #0a1a1c; transition-delay: 0ms; }
.menu-bg span:nth-child(2) { background: #14041a; transition-delay: 60ms; }
.menu-bg span:nth-child(3) { background: #050d24; transition-delay: 120ms; }
.menu-bg span:nth-child(4) { background: #08070d; transition-delay: 180ms; }
.menu-overlay.is-open .menu-bg span { transform: translateY(0); }
.menu-overlay.is-closing .menu-bg span { transform: translateY(-100%); }
.menu-overlay.is-closing .menu-bg span:nth-child(1) { transition-delay: 180ms; }
.menu-overlay.is-closing .menu-bg span:nth-child(2) { transition-delay: 120ms; }
.menu-overlay.is-closing .menu-bg span:nth-child(3) { transition-delay: 60ms; }
.menu-overlay.is-closing .menu-bg span:nth-child(4) { transition-delay: 0ms; }

.menu-inner {
  position: relative;
  z-index: 2;
  width: 100%; height: 100%;
  display: grid;
  padding: calc(var(--topbar-h) + 36px) 40px 40px;
  overflow-y: auto;
  color: #fff;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}

/* Big link list */
.menu-list {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.menu-link {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 600ms cubic-bezier(.2,.7,.2,1),
    transform 600ms cubic-bezier(.2,.7,.2,1),
    padding 350ms cubic-bezier(.2,.7,.2,1),
    color 300ms;
}
.menu-overlay.is-open .menu-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0.5s), var(--delay, 0.5s), 0s, 0s;
}
.menu-overlay.is-closing .menu-link {
  opacity: 0;
  transform: translateY(-20px);
  transition-delay: 0s !important;
  transition-duration: 300ms;
}

.menu-link-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
}
.menu-link-label {
  font-size: clamp(36px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.menu-link-en {
  display: inline-block;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), color 300ms;
}
.menu-link-arrow {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 300ms, transform 350ms cubic-bezier(.2,.7,.2,1);
  color: var(--c-accent, #1cdcc4);
}
.menu-link:hover { padding-left: 24px; }
.menu-link:hover .menu-link-en { color: #1cdcc4; transform: translateX(8px); }
.menu-link:hover .menu-link-arrow { opacity: 1; transform: translateX(0); }
.menu-link.is-current .menu-link-num { color: #1cdcc4; }
.menu-link.is-current .menu-link-en::after {
  content: "·"; color: #1cdcc4; margin-left: 12px;
}

/* Preview side */
.menu-side {
  display: flex; flex-direction: column; gap: 28px;
  position: sticky;
  top: 0;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1);
}
.menu-overlay.is-open .menu-side {
  opacity: 1;
  transition-delay: 0.9s;
}
.menu-overlay.is-closing .menu-side { opacity: 0; transition-delay: 0s; transition-duration: 200ms; }

.menu-preview { width: 100%; }
.menu-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
}
.menu-preview-img,
.menu-preview-frame .placeholder {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 500ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.menu-preview-img.is-active,
.menu-preview-frame .placeholder.is-active {
  opacity: 1;
  transform: scale(1);
}
.menu-preview-meta {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  z-index: 3;
}

.menu-meta { display: flex; flex-direction: column; gap: 14px; }
.menu-meta-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.menu-meta-val {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}
.menu-social {
  display: flex; gap: 12px; margin-top: 12px;
}
.menu-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: background 200ms, color 200ms;
}
.menu-social a:hover { background: #1cdcc4; color: #000; border-color: #1cdcc4; }

/* ====== WHATSAPP FAB ====== */
.wa {
  position: fixed; right: 28px; bottom: 28px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #25D366;
  display: grid; place-items: center;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ====== UTILS ====== */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--c-mute);
}

.huge {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 14vw, 240px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.95);
}

.italics { font-style: italic; }
.outline-text { -webkit-text-stroke: 1.5px currentColor; color: transparent; }

/* btn */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 200ms, background 200ms;
}
.btn:hover { transform: translateY(-2px); background: var(--c-accent-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-text); border: 1px solid currentColor; }
.btn-ghost:hover { background: var(--c-text); color: var(--c-bg); }
.btn .arrow {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  transition: transform 200ms;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ====== PAGE TRANSITION — LIQUID GLASS ====== */
.page-wipe {
  position: fixed; inset: 0;
  z-index: 150;
  pointer-events: none;
  display: flex;
  /* the wipe sits on top of the page; each panel is a translucent frosted slab
     that drops in then drops out */
}
.page-wipe-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      rgba(255,255,255,0.18) 0%,
      rgba(255,255,255,0.05) 40%,
      rgba(255,255,255,0.22) 60%,
      rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-left: 1px solid rgba(255,255,255,0.25);
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -40px 80px -20px rgba(255,255,255,0.08);
  transform: scaleY(0);
  transform-origin: top;
}
.page-wipe-panel::before {
  /* specular highlight */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.4) 0%,
    rgba(255,255,255,0) 22%,
    rgba(255,255,255,0) 78%,
    rgba(255,255,255,0.15) 100%
  );
  pointer-events: none;
}
.page-wipe-panel::after {
  /* faint colored chromatic tint that shifts per panel */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
}
.page-wipe-panel:nth-child(1)::after { background: radial-gradient(ellipse at 30% 30%, #00d6c6, transparent 65%); }
.page-wipe-panel:nth-child(2)::after { background: radial-gradient(ellipse at 50% 50%, #d72bd3, transparent 65%); }
.page-wipe-panel:nth-child(3)::after { background: radial-gradient(ellipse at 70% 30%, #7e5fb3, transparent 65%); }
.page-wipe-panel:nth-child(4)::after { background: radial-gradient(ellipse at 50% 70%, #ff7a2a, transparent 65%); }

.page-wipe.is-in .page-wipe-panel { animation: wipe-in 700ms cubic-bezier(.76,0,.24,1) forwards; }
.page-wipe.is-out .page-wipe-panel {
  transform: scaleY(1);
  transform-origin: bottom;
  animation: wipe-out 700ms cubic-bezier(.76,0,.24,1) forwards;
}
.page-wipe-panel:nth-child(1) { animation-delay: 0ms !important; }
.page-wipe-panel:nth-child(2) { animation-delay: 80ms !important; }
.page-wipe-panel:nth-child(3) { animation-delay: 160ms !important; }
.page-wipe-panel:nth-child(4) { animation-delay: 240ms !important; }
@keyframes wipe-in { to { transform: scaleY(1); } }
@keyframes wipe-out { to { transform: scaleY(0); } }

/* ====== REVEAL ====== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-lines { overflow: hidden; }
.reveal-lines > * { display: block; transform: translateY(110%); transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
.reveal-lines.is-in > * { transform: translateY(0); }

/* ====== APP ====== */
.app { min-height: 100vh; position: relative; }
.page {
  padding-top: var(--topbar-h);
  position: relative;
  z-index: 2;
  /* overflow: clip (not hidden!) — keeps decor inside page bounds
     WITHOUT breaking position:sticky on descendants */
  overflow: clip;
}
/* Safari < 16 fallback: contain replaces clip without breaking sticky */
@supports not (overflow: clip) {
  .page { contain: paint; }
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.wide { max-width: 1700px; margin: 0 auto; padding: 0 32px; }

/* ====== CIRCUIT BG ====== */
.circuit-bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.55; }

/* ====== TYPE HELPERS ====== */
.t-mono { font-family: var(--font-mono); }
.t-mute { color: var(--c-mute); }
.t-accent { color: var(--c-accent); }
.t-accent-2 { color: var(--c-accent-2); }
.t-bold { font-weight: 700; }

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-stage {
  position: relative;
  flex: 1;
  padding: 100px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
}
.hero-headline {
  position: relative;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(64px, 17vw, 300px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-align: center;
  z-index: 4;
  pointer-events: none;
  color: rgba(255,255,255,0.98);
  width: 100%;
  max-width: 100%;
  padding: 0 24px;
  word-break: keep-all;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-headline em { font-style: italic; color: var(--c-accent); font-weight: 300; }
.hero-headline .of { -webkit-text-stroke: 1.5px rgba(255,255,255,0.6); color: transparent; font-weight: 200; }
.hero-img-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(98vw, 1500px);
  height: 95vh;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1200ms cubic-bezier(.2,.7,.2,1) 100ms;
}
.hero-img-wrap.is-loaded {
  opacity: 1;
}
.hero-img-wrap img,
.hero-img-wrap .placeholder {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.55));
}
.hero-img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.25) 100%),
    linear-gradient(to bottom, transparent 50%, var(--c-bg));
  pointer-events: none;
}

.hero-meta {
  position: absolute;
  left: 32px; top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 220px;
}
.hero-meta-r {
  position: absolute;
  right: 32px; top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex; flex-direction: column; gap: 12px;
  text-align: right;
  max-width: 220px;
}

.hero-marquee-row {
  position: relative;
  z-index: 4;
  padding: 24px 0 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, var(--c-bg), transparent);
}

/* MARQUEE */
.marquee {
  display: flex; overflow: hidden; white-space: nowrap; gap: 60px;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex; gap: 60px;
  animation: marq 36s linear infinite;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(32px, 7vw, 100px);
  letter-spacing: -0.04em;
  align-items: center;
  flex-shrink: 0;
}
.marquee-track > span { display: flex; align-items: center; gap: 60px; }
.marquee-track svg { width: 0.7em; height: 0.7em; flex: 0 0 auto; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-track.rev { animation-direction: reverse; }

/* SECTIONS */
section.block { padding: 120px 0; position: relative; }
.block-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.block-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.block-title em { color: var(--c-accent); font-style: italic; }
.block-sub { color: var(--c-mute); font-size: 17px; line-height: 1.55; max-width: 520px; }

/* MISSION */
.mission {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  padding: 160px 0;
}
.mission-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.mission-quote strong { color: var(--c-accent); font-weight: 500; }
.mission-meta { display: flex; flex-direction: column; gap: 18px; }
.mission-stat { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.mission-stat-num { font-family: var(--font-display); font-size: 38px; font-weight: 300; color: var(--c-accent); }
.mission-stat-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--c-mute); align-self: end; }

/* SERVICES GRID */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--c-surface);
  padding: 56px 44px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background 400ms;
  text-align: left;
}
.svc:hover { background: var(--c-bg-2); }
.svc-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; color: var(--c-mute); }
.svc-title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 5vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.svc-title em { color: var(--c-accent); font-style: italic; }
.svc-desc { color: var(--c-mute); font-size: 16px; line-height: 1.55; max-width: 380px; }
.svc-arrow {
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 1px solid var(--c-text);
  display: grid; place-items: center;
  transition: background 200ms, color 200ms;
}
.svc:hover .svc-arrow { background: var(--c-accent); color: var(--c-bg); border-color: var(--c-accent); }
.svc-bg {
  position: absolute; inset: 0;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
  transition: opacity 400ms, transform 800ms;
}
.svc:hover .svc-bg { opacity: 0.18; transform: scale(1.06); }
.svc-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 500ms;
}
.svc:hover .svc-photo { opacity: 0.18; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2); }
.svc > *:not(.svc-bg):not(.svc-photo) { position: relative; z-index: 2; }

/* ====== SUBPAGE HERO ====== */
.sub-hero {
  min-height: 88vh;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  overflow: hidden;
}
.sub-hero-img {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-2);
}
.sub-hero-img > img,
.sub-hero-img > .placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}
.sub-hero-content {
  padding: 100px 56px 56px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  z-index: 2;
}
.sub-hero-content .huge {
  font-size: clamp(56px, 11vw, 180px);
}

/* FEATURE GRID */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.feature { background: var(--c-surface); padding: 40px 32px; min-height: 260px; display: flex; flex-direction: column; gap: 14px; }
.feature-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; color: var(--c-accent); }
.feature-title { font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.feature-desc { color: var(--c-mute); font-size: 15px; line-height: 1.55; }

/* ====== XP CATALOG ====== */
.xp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.xp-card {
  background: var(--c-surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 300ms, border-color 300ms;
}
.xp-card:hover { transform: translateY(-6px); border-color: var(--c-accent); }
.xp-thumb {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.xp-thumb img, .xp-thumb .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms; }
.xp-card:hover .xp-thumb img,
.xp-card:hover .xp-thumb .placeholder { transform: scale(1.06); }
.xp-thumb-meta {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 10px; background: rgba(0,0,0,0.55); color: #fff; border-radius: 4px;
  z-index: 2;
}
.xp-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.xp-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.xp-desc { color: var(--c-mute); font-size: 14px; line-height: 1.5; }
.xp-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }

/* PLACEHOLDER */
.placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--c-bg-2) 0%, var(--c-surface) 100%);
  position: relative;
  display: grid; place-items: center;
  color: var(--c-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}
.placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.04) 14px 15px);
  pointer-events: none;
}
.placeholder span { position: relative; max-width: 240px; }

/* STORE */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.store-card { background: var(--c-surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform 300ms; }
.store-card:hover { transform: translateY(-6px); }
.store-thumb { aspect-ratio: 1/1; background: var(--c-bg-2); position: relative; }
.store-thumb img, .store-thumb .placeholder { width: 100%; height: 100%; object-fit: cover; }
.store-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.store-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.store-price { font-family: var(--font-mono); font-size: 13px; color: var(--c-accent); letter-spacing: 0.1em; }
.store-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-mute); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-mute); }
.field input, .field textarea, .field select {
  font: inherit;
  font-family: var(--font-display);
  font-size: 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 12px 0;
  color: var(--c-text);
  outline: none;
  resize: none;
  width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--c-accent); }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-row-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent); }
.contact-row-val { font-family: var(--font-display); font-size: 20px; word-break: break-word; }

/* FOOTER */
footer.foot { padding: 80px 0 32px; position: relative; z-index: 5; border-top: 1px solid var(--line); }
.foot-huge {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(60px, 18vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-align: center;
  -webkit-text-stroke: 1.5px var(--c-accent);
  color: transparent;
}
.foot-huge-logo { display: block; width: min(90%, 900px); margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 32px; align-items: start; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-mute); margin-bottom: 18px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-display); font-size: 16px; }
.foot-bot { display: flex; justify-content: space-between; padding: 24px 0 0; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-mute); flex-wrap: wrap; gap: 12px; }

/* SCROLL STORY */
.story { position: relative; height: 240vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.story-card { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 32px; opacity: 0; transition: opacity 500ms; }
.story-card.is-active { opacity: 1; }
.story-num { font-family: var(--font-mono); color: var(--c-accent); font-size: 12px; letter-spacing: 0.3em; margin-bottom: 24px; }
.story-headline {
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(40px, 9vw, 140px);
  line-height: 0.9; letter-spacing: -0.04em;
  max-width: 1100px;
}
.story-headline em { color: var(--c-accent); font-style: italic; }

/* GRAIN */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: calc(var(--grain) * 0.08);
  z-index: 50;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* DOT GRID */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 80%);
}
[data-page="xperience"] .dot-grid,
[data-page="contact"] .dot-grid {
  background-image: radial-gradient(circle, rgba(0,0,0,0.16) 1px, transparent 1.5px);
}

/* GLOW ORB */
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

/* RING DECOR */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--c-accent);
  pointer-events: none;
  opacity: 0.4;
}

/* RESPONSIVE BPS */

/* Tablet */
@media (max-width: 1100px) {
  .container, .wide { padding: 0 24px; }
  .menu-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .xp-grid, .store-grid { grid-template-columns: repeat(2, 1fr); }
  .block-head { grid-template-columns: 1fr; gap: 24px; }
  .mission { grid-template-columns: 1fr; gap: 40px; padding: 100px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sub-hero-content { padding: 80px 40px 56px; }
  section.block { padding: 90px 0; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --topbar-h: 64px; }
  .topbar { padding: 0 16px; }
  .topbar-current { padding: 6px 12px; font-size: 10px; }
  .nav-logo { width: 48px; height: 48px; }
  .nav-logo-text { font-size: 9px; }
  .menu-toggle { height: 40px; padding: 0 14px 0 16px; font-size: 11px; }
  .menu-toggle-icon { width: 18px; height: 12px; }

  .menu-inner { padding: 88px 20px 32px; }
  .menu-grid { grid-template-columns: 1fr; gap: 32px; }
  .menu-side { position: static; }
  .menu-preview-frame { aspect-ratio: 16/10; }
  .menu-link { grid-template-columns: 40px 1fr auto; gap: 14px; padding: 14px 0; }
  .menu-link-num { font-size: 11px; }
  .menu-link-label { font-size: 40px; }
  .menu-link:hover { padding-left: 8px; }
  .menu-meta-row { grid-template-columns: 100px 1fr; }

  .container, .wide { padding: 0 16px; }
  section.block { padding: 64px 0; }
  .block-head { margin-bottom: 48px; }

  .hero { padding-top: 0; min-height: 100svh; }
  .hero-stage { padding-top: 16px; }
  .hero-headline {
    font-size: clamp(56px, 16vw, 88px);
    white-space: normal;
    padding: 0 12px;
  }
  .hero-img-wrap { width: 96vw; height: 70vh; }
  .hero-meta, .hero-meta-r { display: none; }
  .hero-marquee-row { padding: 16px 0 12px; }

  .features { grid-template-columns: 1fr; }
  .xp-grid, .store-grid { grid-template-columns: 1fr; }

  .sub-hero { grid-template-columns: 1fr; min-height: auto; }
  .sub-hero-img { min-height: 50vh; aspect-ratio: 16/10; }
  .sub-hero-content { padding: 48px 20px; min-height: auto; }

  .mission { padding: 60px 0; }
  .mission-stat { grid-template-columns: 60px 1fr; gap: 16px; }
  .mission-stat-num { font-size: 28px; }

  .foot-grid { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .foot-bot { font-size: 10px; }

  .wa { width: 48px; height: 48px; right: 16px; bottom: 16px; }
  .wa svg { width: 24px; height: 24px; }

  .contact-row { grid-template-columns: 120px 1fr; gap: 12px; }
  .contact-row-val { font-size: 16px; }

  .btn { padding: 14px 20px; font-size: 12px; }
}

/* very small */
@media (max-width: 380px) {
  .topbar-current { display: none; }
  .menu-link-label { font-size: 32px; }
}

/* Tablet landscape menu */
@media (min-width: 720px) and (max-width: 1100px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-side { position: static; flex-direction: row; align-items: flex-start; }
  .menu-preview { flex: 1; max-width: 360px; }
  .menu-meta { flex: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
