/* ==========================================================================
   Me vs. Me — Brand Site Stylesheet
   --------------------------------------------------------------------------
   SECTIONS
   01. Design tokens
   02. Reset & base
   03. Typography system
   04. Motion primitives (reveal / mask-wipe / stagger)
   05. Buttons & links (micro-interactions)
   06. Header + nav + language toggle + scroll progress
   07. Intro (page-load cinematic sequence)
   08. Hero
   09. Concept
   10. Story (white section)
   11. Values
   12. App section (6a intro / 6b features / 6c showcase / 6d closer)
   13. Phone mockup component
   14. Ecosystem
   15. Community
   16. Footer
   17. Custom cursor
   18. Responsive
   19. prefers-reduced-motion
   ========================================================================== */

/* ============ 01. DESIGN TOKENS ========================================== */
:root {
  /* Brand palette — strict */
  --black: #000000;
  --white: #ffffff;
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.14);
  --gold-line: rgba(201, 168, 76, 0.28);
  --muted: #a0a0a0;

  /* Contextual (flipped by .is-light sections) */
  --bg: var(--black);
  --fg: var(--white);
  --fg-muted: var(--muted);
  --hairline: rgba(255, 255, 255, 0.12);

  /* Motion system */
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --t-micro: 240ms;
  --t-ui: 300ms;
  --t-enter: 820ms;
  --t-section: 700ms;

  /* Rhythm */
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --section-y: clamp(5.5rem, 12vh, 10rem);
  --max: 1280px;

  /* Fonts */
  --font-en: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-jp: "Noto Sans JP", "Inter", system-ui, sans-serif;
  --font: var(--font-en);
}

/* Japanese mode swaps the primary stack + loosens tracking slightly */
html[lang="ja"] {
  --font: var(--font-jp);
}

/* ============ 02. RESET & BASE ============================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* smooth scrolling handled in JS for custom easing */
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Animated black <-> white page transition as sections enter */
  transition: background-color var(--t-section) var(--ease-ui),
              color var(--t-section) var(--ease-ui);
}

/* Page-level theme, driven by JS observer */
body.theme-light { background: var(--white); color: var(--black); }

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--black); }

/* Focus visibility (accessibility, on-brand) */
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* Lock scroll while the intro plays */
body.intro-lock { overflow: hidden; height: 100vh; }

/* ============ 03. TYPOGRAPHY SYSTEM ====================================== */
.section {
  position: relative;
  padding: var(--section-y) var(--pad-x);
  isolation: isolate;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }
.wrap-narrow { max-width: 880px; margin: 0 auto; }

/* Light (white) sections invert local tokens */
.is-light {
  --bg: var(--white);
  --fg: var(--black);
  --fg-muted: #6c6c6c;
  --hairline: rgba(0, 0, 0, 0.12);
  background: var(--white);
  color: var(--black);
}
.is-dark {
  background: var(--black);
  color: var(--white);
}

/* Eyebrow — small caps gold label + hairline */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.625rem, 1.4vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.75rem;
}
.eyebrow::before {
  content: "";
  width: clamp(24px, 5vw, 48px);
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}
.eyebrow.no-rule::before { display: none; }

/* Section number */
.sec-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--gold);
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.24;
}

/* Display scale is capped against viewport HEIGHT too, so the hero CTA
   always stays above the fold on short laptop screens. */
.h-display { font-size: clamp(2.6rem, min(7.6vw, 11.2vh), 6.6rem); }
.h1 { font-size: clamp(2.1rem, 5.6vw, 4.4rem); }
.h2 { font-size: clamp(1.75rem, 4vw, 3.1rem); }
.h3 { font-size: clamp(1.15rem, 2.1vw, 1.6rem); letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 400;
  color: var(--fg-muted);
  max-width: 62ch;
  line-height: 1.75;
}
.body {
  font-size: clamp(0.98rem, 1.15vw, 1.075rem);
  color: var(--fg-muted);
  max-width: 62ch;
  line-height: 1.8;
}
.body + .body { margin-top: 1.5rem; }

.gold { color: var(--gold); }
.em-white { color: var(--fg); font-weight: 700; }

/* Gold hairline divider */
.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border: 0;
  margin: 0;
  transform-origin: left center;
}

/* ============ 04. MOTION PRIMITIVES ====================================== */

/* (a) Standard reveal: fade + rise */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--t-enter) var(--ease-enter),
              transform var(--t-enter) var(--ease-enter);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: translate3d(0, 0, 0); }

/* (b) Directional reveals for the feature blocks */
[data-reveal="left"]  { transform: translate3d(-48px, 0, 0); }
[data-reveal="right"] { transform: translate3d(48px, 0, 0); }
[data-reveal="scale"] { transform: translate3d(0, 28px, 0) scale(0.97); }
[data-reveal="left"].in,
[data-reveal="right"].in,
[data-reveal="scale"].in { transform: translate3d(0, 0, 0) scale(1); }

/* (c) Mask-wipe headings: each line rises from behind an overflow mask */
.wipe { display: block; }
.wipe .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em; /* prevents descender clipping */
  margin-bottom: -0.06em;
}
.wipe .line > span {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 900ms var(--ease-enter);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
.wipe.in .line > span { transform: translate3d(0, 0, 0); }

/* (d) Gold line draw-in */
[data-draw] {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-enter);
  transition-delay: var(--d, 0ms);
}
[data-draw].in { transform: scaleX(1); }

/* (e) Parallax layers (JS-driven translate on --py) */
[data-parallax] {
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}

/* (f) Continuous float — hero phone */
@keyframes float-y {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -14px, 0); }
}
.float { animation: float-y 4s var(--ease-ui) infinite; }

/* (g) Ambient gold glow used behind hero / app blocks */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  background: radial-gradient(circle, rgba(201, 168, 76, 0.22), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* (h) Language-swap fade */
.lang-swapping [data-i18n],
.lang-swapping [data-i18n-html] {
  opacity: 0;
  transform: translate3d(0, 4px, 0);
}
[data-i18n], [data-i18n-html] {
  transition: opacity 200ms var(--ease-ui), transform 200ms var(--ease-ui);
}
.lang-swapping [data-i18n],
.lang-swapping [data-i18n-html] {
  transition-duration: 150ms;
}

/* ============ 05. BUTTONS & LINKS ======================================== */

/* Primary gold CTA — fill sweep + scale + glow */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 2.1rem;
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-ui) var(--ease-ui),
              box-shadow var(--t-ui) var(--ease-ui),
              color var(--t-ui) var(--ease-ui),
              border-color var(--t-ui) var(--ease-ui);
  will-change: transform;
}
.btn svg { width: 1em; height: 1em; flex: none; }

.btn-gold {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 0 rgba(201, 168, 76, 0);
}
/* sweep layer */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #e2c471, var(--gold) 55%, #b8963b);
  transform: translate3d(-101%, 0, 0);
  transition: transform 520ms var(--ease-enter);
}
.btn-gold:hover {
  transform: translate3d(0, -2px, 0) scale(1.03);
  box-shadow: 0 14px 44px rgba(201, 168, 76, 0.32);
}
.btn-gold:hover::after { transform: translate3d(0, 0, 0); }
.btn-gold:active { transform: translate3d(0, 0, 0) scale(0.985); transition-duration: 90ms; }

/* Ghost CTA */
.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--fg);
}
.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translate3d(-101%, 0, 0);
  transition: transform 520ms var(--ease-enter);
}
.btn-ghost:hover { color: var(--black); border-color: var(--gold); transform: translate3d(0, -2px, 0) scale(1.02); }
.btn-ghost:hover::after { transform: translate3d(0, 0, 0); }
.btn-ghost:active { transform: scale(0.985); transition-duration: 90ms; }

.btn-sm { padding: 0.72rem 1.35rem; font-size: 0.76rem; }

/* Underline-grow link */
.ul-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.ul-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-ui) var(--ease-ui);
}
.ul-link:hover::after { transform: scaleX(1); }

/* Official Apple badge wrapper */
.badge-apple {
  display: inline-block;
  transition: transform var(--t-ui) var(--ease-ui), opacity var(--t-ui) var(--ease-ui);
  opacity: 0.92;
}
.badge-apple img { height: 46px; width: auto; }
.badge-apple:hover { transform: translate3d(0, -2px, 0) scale(1.03); opacity: 1; }
/* Black Apple badge needs a hairline to read on pure black */
.is-dark .badge-apple img,
.badge-apple.on-dark img {
  border-radius: 8px;
  outline: 1px solid rgba(255, 255, 255, 0.22);
  outline-offset: -1px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.5rem;
}
.cta-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* ============ 06. HEADER / NAV / PROGRESS ================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(201,168,76,0.45), var(--gold));
  z-index: 120;
  pointer-events: none;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1rem, 2.2vw, 1.75rem) var(--pad-x);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding 520ms var(--ease-enter),
              background-color 520ms var(--ease-ui),
              border-color 520ms var(--ease-ui),
              backdrop-filter 520ms var(--ease-ui);
}
.header.scrolled {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}
.brand img {
  width: clamp(38px, 4.4vw, 52px);
  height: auto;
  border-radius: 10px;
  transition: width 520ms var(--ease-enter), transform var(--t-ui) var(--ease-ui);
}
.header.scrolled .brand img { width: clamp(32px, 3.4vw, 40px); }
.brand:hover img { transform: scale(1.05); }
.brand-name {
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  padding: 0.35rem 0;
  transition: color var(--t-ui) var(--ease-ui);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms var(--ease-enter);
}
.nav a:hover { color: #fff; }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
  flex: none;
}

/* Language toggle */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang button {
  position: relative;
  padding: 0.3rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transition: color var(--t-ui) var(--ease-ui), background-color var(--t-ui) var(--ease-ui);
}
.lang button:hover { color: #fff; }
.lang button.on { color: var(--black); background: var(--gold); }

/* Mobile menu */
.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}
.burger span {
  display: block;
  position: relative;
  width: 16px; height: 1.5px;
  background: #fff;
  transition: transform var(--t-ui) var(--ease-ui), opacity var(--t-ui) var(--ease-ui);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 1.5px;
  background: #fff;
  transition: transform var(--t-ui) var(--ease-ui);
}
.burger span::before { top: -5px; }
.burger span::after  { top: 5px; }
body.menu-open .burger span { transform: rotate(45deg); }
body.menu-open .burger span::before { transform: translateY(5px) rotate(-90deg); }
body.menu-open .burger span::after  { opacity: 0; transform: scaleX(0); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 6rem var(--pad-x) 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 460ms var(--ease-ui), visibility 460ms;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a {
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  padding: 0.42rem 0;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 620ms var(--ease-enter), transform 620ms var(--ease-enter), color var(--t-ui);
}
body.menu-open .drawer a { opacity: 1; transform: none; }
.drawer a:hover { color: var(--gold); }
.drawer .drawer-cta { margin-top: 2rem; align-self: flex-start; }

/* ============ 07. INTRO SEQUENCE ========================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  display: grid;
  place-items: center;
  transition: opacity 720ms var(--ease-ui), visibility 720ms;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-inner { text-align: center; padding: 0 1.5rem; }

.intro-logo {
  position: relative;
  width: clamp(84px, 15vw, 132px);
  margin: 0 auto 1.9rem;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 860ms var(--ease-enter), transform 1100ms var(--ease-enter);
  border-radius: 16px;
  overflow: hidden;
}
.intro.step1 .intro-logo { opacity: 1; transform: scale(1); }

/* gold sweep across the mark */
.intro-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(201, 168, 76, 0.55) 50%, transparent 66%);
  transform: translate3d(-110%, 0, 0);
}
.intro.step1 .intro-logo::after {
  animation: sweep 1150ms var(--ease-enter) 260ms forwards;
}
@keyframes sweep { to { transform: translate3d(110%, 0, 0); } }

.intro-tag {
  font-size: clamp(0.66rem, 1.9vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  overflow: hidden;
}
.intro-tag > span {
  display: block;
  transform: translate3d(0, 110%, 0);
  transition: transform 900ms var(--ease-enter);
}
.intro.step2 .intro-tag > span { transform: none; }

.intro-line {
  width: min(280px, 52vw);
  height: 1px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 1000ms var(--ease-enter);
}
.intro.step2 .intro-line { transform: scaleX(1); }

/* ============ 08. HERO =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(6.5rem, 14vh, 9.5rem) var(--pad-x) clamp(5rem, 11vh, 8rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -12% 0 -12%;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 78% 18%, rgba(201, 168, 76, 0.15), transparent 62%),
    radial-gradient(60% 55% at 12% 92%, rgba(201, 168, 76, 0.09), transparent 60%);
}
/* faint gold grid, adds depth without noise */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 78%);
}

.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.hero h1 { margin-bottom: clamp(1.4rem, 2.4vh, 2.1rem); }
.hero h1 .l2 { color: var(--gold); }
.hero .lead { margin-bottom: clamp(1.5rem, 2.4vh, 2.1rem); font-size: clamp(1.05rem, 1.6vw, 1.32rem); }
.hero .lead b { color: #fff; font-weight: 700; }

.scroll-ind {
  position: absolute;
  left: 50%;
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}
.scroll-ind span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.scroll-ind i {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, var(--gold), transparent);
  overflow: hidden;
}
.scroll-ind i::after {
  content: "";
  display: block;
  width: 1px; height: 100%;
  background: var(--gold);
  animation: drop 2.2s var(--ease-ui) infinite;
}
@keyframes drop {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ============ 09. CONCEPT ================================================ */
.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.concept-quote {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-left: clamp(1.1rem, 2vw, 1.8rem);
  border-left: 1px solid var(--gold-line);
}
.concept-quote p {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.concept-quote small {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============ 10. STORY (WHITE) ========================================== */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.story-list { margin-top: 2.6rem; display: grid; gap: 0; }
.story-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.story-list li:last-child { border-bottom: 1px solid var(--hairline); }
.story-list b {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 0.35rem;
}
.story-list p { margin: 0; font-size: 0.98rem; line-height: 1.75; color: var(--fg-muted); }
.story-list strong { color: var(--fg); font-weight: 700; }

.pull {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.pull .gold { display: block; }

/* ============ 11. VALUES ================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.value {
  position: relative;
  padding: clamp(1.9rem, 3.2vw, 2.75rem) clamp(1.5rem, 2.4vw, 2.1rem) clamp(2.2rem, 3.4vw, 3rem);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 620ms var(--ease-enter),
              border-color var(--t-ui) var(--ease-ui),
              background-color var(--t-ui) var(--ease-ui);
}
.value::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 620ms var(--ease-enter);
}
.value:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.035);
}
.value:hover::before { transform: scaleX(1); }
.value .num {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--gold);
  margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem);
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 700ms var(--ease-enter), transform 700ms var(--ease-enter);
  transition-delay: var(--dn, 220ms); /* numbers land AFTER their text */
}
.value.in .num { opacity: 1; transform: none; }
.value h3 { margin-bottom: 0.55rem; }
.value .jp {
  font-family: var(--font-jp);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}
.value p { margin: 0; font-size: 0.94rem; line-height: 1.8; color: var(--fg-muted); }

/* ============ 12. APP SECTION ============================================ */
.app-intro { position: relative; overflow: hidden; }
.app-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.app-intro .h1 { margin-bottom: 1.6rem; }
.app-intro .lead { margin-bottom: 2.4rem; }

.app-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  margin-top: clamp(2.4rem, 4vw, 3.2rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--hairline);
}
.app-stat b {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gold);
}
.app-stat span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* 6b — feature rows */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--hairline);
}
.feature:first-of-type { border-top: 0; }
.feature.flip .feature-media { order: -1; }
.feature-copy .num {
  display: block;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--gold);
  opacity: 0.22;
  margin-bottom: 1.1rem;
  transition: opacity 700ms var(--ease-ui);
}
.feature:hover .feature-copy .num { opacity: 0.55; }
.feature-copy .jp {
  font-family: var(--font-jp);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0.5rem 0 1.1rem;
}
.feature-copy p { margin: 0; font-size: 1rem; line-height: 1.8; color: var(--fg-muted); max-width: 46ch; }
.feature-media { display: flex; justify-content: center; }

/* 6c — showcase gallery */
.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.showcase-gallery .phone-wrap:nth-child(2) { transform: translateY(-2.2rem); }
/* gentle lift on hover (transform only — GPU friendly) */
.showcase-gallery .phone-wrap > div,
.feature-media .phone-wrap {
  transition: transform 620ms var(--ease-enter);
}
.showcase-gallery .phone-wrap:hover > div { transform: translate3d(0, -10px, 0); }
.feature-media .phone-wrap:hover { transform: translate3d(0, -8px, 0); }
.philosophy {
  text-align: center;
  max-width: 22ch;
  margin: 0 auto;
  font-size: clamp(1.5rem, 3.6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.philosophy .gold { display: block; }

/* 6d — closer */
.app-closer {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.app-closer .h-display { margin-bottom: 2.4rem; }
.app-closer .cta-row { justify-content: center; }
.app-closer .eyebrow { justify-content: center; }

/* ============ 13. PHONE MOCKUP =========================================== */
.phone-wrap {
  perspective: 1400px;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(150deg, #2c2c2e, #0a0a0a 42%, #1c1c1e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 34px 80px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(201, 168, 76, 0.07);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, 0, 0);
  transform-style: preserve-3d;
  transition: transform 620ms var(--ease-enter), box-shadow 620ms var(--ease-enter);
  will-change: transform;
}
.phone-wrap:hover .phone {
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.26),
    0 46px 100px rgba(0, 0, 0, 0.68),
    0 0 120px rgba(201, 168, 76, 0.16);
}

/* On WHITE sections a dark blur reads as grey mud — use a tighter,
   more contained shadow so the frames sit crisply on the page. */
.is-light .phone {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 22px 44px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.1);
}
.is-light .phone-wrap:hover .phone {
  box-shadow:
    0 0 0 1px rgba(201, 168, 76, 0.5),
    0 32px 60px rgba(0, 0, 0, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.12);
}
.phone-screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 471 / 1024;
}
.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* notch */
.phone::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 20px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
/* side button hints */
.phone::after {
  content: "";
  position: absolute;
  right: -1.5px; top: 27%;
  width: 2px; height: 62px;
  border-radius: 2px;
  background: linear-gradient(180deg, #3a3a3c, #1c1c1e);
}

/* Brand mask over the app's own in-product header.
   Keeps the site 100% on-brand ("the Me vs. Me app").
   -> Remove class `has-brandmask` once rebranded screenshots are supplied. */
.has-brandmask .brandmask {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 16%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding-top: 2.2%;
  /* Solid black must fully clear the app's own header row before fading,
     otherwise the in-product wordmark ghosts through the gradient. */
  background: linear-gradient(180deg, #000 0%, #000 92%, rgba(0, 0, 0, 0.6) 97%, rgba(0, 0, 0, 0) 100%);
}
/* Screens whose in-app header sits lower (Crew / Check In) need more cover. */
.has-brandmask.tall-mask .brandmask {
  height: 21.5%;
  padding-top: 0.5%;
}
.brandmask { display: none; }
.brandmask img {
  width: 17px;
  border-radius: 4px;
  flex: none;
}
.brandmask b {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
/* screen glare */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.075) 0%, transparent 34%, transparent 66%, rgba(255, 255, 255, 0.035) 100%);
}
/* caption under a mockup */
.phone-caption {
  margin-top: 1.15rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.is-light .phone-caption { color: #6c6c6c; }

.phone-hero { max-width: 330px; }
.phone-hero-holder { position: relative; }
.phone-hero-holder .glow {
  width: 70%; aspect-ratio: 1;
  left: 15%; top: 18%;
  z-index: -1;
}

/* ============ 14. ECOSYSTEM ============================================== */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--hairline);
}
.eco {
  position: relative;
  padding: clamp(2rem, 3.4vw, 3rem) clamp(1.2rem, 2vw, 1.8rem) clamp(2.4rem, 4vw, 3.4rem);
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  overflow: hidden;
  transition: background-color 520ms var(--ease-ui);
}
.eco:first-child { border-left: 1px solid var(--hairline); }
.eco::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 520ms var(--ease-ui);
}
.eco:hover::before { opacity: 1; }
.eco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
.eco-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--fg-muted);
  white-space: nowrap;
}
.eco-tag.live { color: var(--black); background: var(--gold); border-color: var(--gold); }
.eco h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0.7rem;
}
.eco p { margin: 0; font-size: 0.9rem; line-height: 1.75; color: var(--fg-muted); }
.eco .eco-link { margin-top: 1.3rem; display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

/* ============ 15. COMMUNITY ============================================== */
.community { position: relative; overflow: hidden; text-align: center; }
.community .eyebrow { justify-content: center; }
.community .h1 { margin-bottom: 1.8rem; }
.community .lead { margin: 0 auto 2.8rem; text-align: center; }
.community .cta-row { justify-content: center; }
.community-marquee {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* NOTE: spacing uses padding-right (NOT `gap`) so each item's box width is
   uniform — that makes translate3d(-50%) land exactly on a repeat boundary
   and the loop becomes seamless. `gap` would offset the seam by half a gap. */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  padding-right: 3rem;
  flex: none;
}
.marquee-track span:nth-child(even) { -webkit-text-stroke-color: rgba(201, 168, 76, 0.55); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ============ 16. FOOTER ================================================= */
.footer {
  padding: clamp(4rem, 8vw, 6rem) var(--pad-x) clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--black);
  color: var(--white);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand img { width: 52px; border-radius: 12px; margin-bottom: 1.4rem; }
.footer-brand p { margin: 0; font-size: 0.92rem; color: var(--muted); max-width: 34ch; line-height: 1.8; }
.footer-brand .f-tag {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer h4 {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.footer li { margin-bottom: 0.7rem; }
.footer li a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); transition: color var(--t-ui); }
.footer li a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
}

/* ============ 17. CUSTOM CURSOR ========================================== */
/* Elegant, restrained: 5px dot + slow trailing ring. Desktop + fine pointer only. */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 300ms var(--ease-ui), width 300ms var(--ease-ui), height 300ms var(--ease-ui);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--gold);
  margin: -2.5px 0 0 -2.5px;
}
.cursor-ring {
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 1px solid rgba(201, 168, 76, 0.45);
}
body.cursor-on .cursor-dot,
body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--gold); }
body.cursor-hover .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ 18. RESPONSIVE ============================================= */
@media (max-width: 1080px) {
  .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco:nth-child(3) { border-left: 1px solid var(--hairline); }
  .eco:first-child { border-left: 1px solid var(--hairline); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header .btn-gold.header-cta { display: none; }
  .concept-grid,
  .story-grid,
  .app-intro-grid { grid-template-columns: minmax(0, 1fr); }
  .app-intro-grid .phone-hero-holder { order: -1; margin-bottom: 1rem; }
  .values-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { order: -1; }
  /* On mobile, directional slide-ins become vertical to avoid overflow */
  [data-reveal="left"], [data-reveal="right"] { transform: translate3d(0, 26px, 0); }
  .showcase-gallery { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2.6rem; }
  .showcase-gallery .phone-wrap:nth-child(2) { transform: none; }
  .showcase-gallery .phone { max-width: 268px; }
}

@media (max-width: 560px) {
  .eco-grid { grid-template-columns: minmax(0, 1fr); }
  .eco { border-left: 1px solid var(--hairline); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .cta-row { gap: 0.9rem; }
  .cta-row .badge-apple { width: auto; }
  .phone { max-width: 258px; border-radius: 40px; padding: 7px; }
  .phone-screen { border-radius: 33px; }
  .footer-bottom { justify-content: flex-start; }
}

/* ============ 19. REDUCED MOTION ========================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], .wipe .line > span, [data-draw], .value .num {
    opacity: 1 !important;
    transform: none !important;
  }
  .float { animation: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .marquee-track { animation: none !important; }
  [data-parallax] { transform: none !important; }
}
