/* ==========================================================================
   Me vs. Me — Design system & styles
   --------------------------------------------------------------------------
   01. Design tokens
   02. Reset & base
   03. Layout primitives
   04. Typography
   05. Motion primitives
   06. Buttons & links
   07. Header / nav / language / progress
   08. Hero
   09. Split sections (Concept)
   10. Values
   11. App section
   12. Product experience (feature rows)
   13. Phone mockup
   14. Train together (Crew)
   15. Updates
   16. Final CTA
   17. Footer
   18. Responsive
   19. Reduced motion
   ========================================================================== */


/* ============ 01. DESIGN TOKENS ========================================== */
:root {
  /* Base palette — black, white, charcoal, with ONE accent. */
  --black:    #000000;
  --white:    #ffffff;
  --charcoal: #141414;
  --charcoal-2: #1e1e1e;

  /* Single accent, used sparingly: CTAs, one heading line, section numbers. */
  --accent:      #c9a84c;
  --accent-line: rgba(201, 168, 76, 0.30);

  --muted: #a0a0a0;

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

  /* Motion */
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui:    cubic-bezier(0.4, 0, 0.2, 1);
  --t-micro:  220ms;
  --t-ui:     280ms;
  --t-enter:  760ms;

  /* Space */
  --pad-x:     clamp(1.25rem, 5vw, 6rem);
  --section-y: clamp(5rem, 11vh, 9rem);
  --max:       1240px;

  /* Type */
  --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 needs a different stack and looser tracking to stay readable. */
html[lang="ja"] { --font: var(--font-jp); }


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

html {
  scroll-behavior: auto;          /* smooth scrolling is JS-driven */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;               /* generous, per brand spec */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;             /* guards against any horizontal spill */
  transition: background-color 600ms var(--ease-ui),
              color 600ms var(--ease-ui);
}

body.theme-light { background: var(--white); color: var(--black); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* Visible focus for every keyboard user. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link — first tab stop. */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-160%);
  transition: transform var(--t-ui) var(--ease-ui);
}
.skip-link:focus-visible { transform: translateY(0); }

body.menu-open { overflow: hidden; }


/* ============ 03. LAYOUT PRIMITIVES ====================================== */
.section {
  position: relative;
  padding: var(--section-y) var(--pad-x);
}

.wrap        { width: 100%; max-width: var(--max); margin: 0 auto; }
.wrap-narrow { width: 100%; max-width: 820px;      margin: 0 auto; }

/* Inverted (white) sections for contrast rhythm. */
.is-light {
  --bg:       var(--white);
  --fg:       var(--black);
  --fg-muted: #5a5a5a;
  --hairline: rgba(0, 0, 0, 0.12);
  --surface:  #f4f4f4;
  background: var(--white);
  color: var(--black);
}

.is-dark {
  --bg:       var(--black);
  --fg:       var(--white);
  --fg-muted: var(--muted);
  --hairline: rgba(255, 255, 255, 0.12);
  --surface:  var(--charcoal);
  background: var(--black);
  color: var(--white);
}

/* Section eyebrow: number + label, preceded by a short accent rule. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(1.1rem, 2.4vw, 1.7rem);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: var(--accent);
}
html[lang="ja"] .eyebrow { letter-spacing: 0.12em; }


/* ============ 04. TYPOGRAPHY ============================================= */
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;        /* tight, per brand spec */
}

/* Japanese headings need looser tracking and more leading. */
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4 {
  letter-spacing: -0.01em;
  line-height: 1.26;
  font-weight: 700;
}

/* Display scale is capped against viewport HEIGHT as well as width, so the
   hero CTA stays above the fold on short laptop screens. */
.h-display { font-size: clamp(2.5rem, min(7.2vw, 10.4vh), 6rem); }
.h1 { font-size: clamp(2rem,   5.2vw, 3.9rem); }
.h2 { font-size: clamp(1.6rem, 3.6vw, 2.7rem); }
.h3 { font-size: clamp(1.1rem, 1.9vw, 1.45rem); letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.72;
  color: var(--fg);
  max-width: 54ch;
}
html[lang="ja"] .lead { line-height: 1.95; max-width: 40ch; }

.body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 56ch;
}
.body + .body { margin-top: 1.3rem; }
.body.lead-body { color: var(--fg); font-weight: 500; }
html[lang="ja"] .body { line-height: 2; max-width: 42ch; }

/* The single accent — applied to ONE line of a heading, never a whole block. */
.accent { color: var(--accent); }


/* ============ 05. MOTION PRIMITIVES ======================================
   Everything animates transform/opacity only, so compositing stays on the
   GPU and scrolling holds 60fps.
   ====================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 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); }

[data-reveal="left"]  { transform: translate3d(-36px, 0, 0); }
[data-reveal="right"] { transform: translate3d(36px, 0, 0); }
[data-reveal="scale"] { transform: translate3d(0, 24px, 0) scale(0.98); }
[data-reveal="left"].in,
[data-reveal="right"].in,
[data-reveal="scale"].in { transform: translate3d(0, 0, 0) scale(1); }

/* Heading line-wipe: text rises from behind an overflow mask. */
.wipe { display: block; }
.wipe .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;          /* room for descenders inside the mask */
  margin-bottom: -0.08em;
}
.wipe .line > span {
  display: block;
  transform: translate3d(0, 110%, 0);
  transition: transform 820ms var(--ease-enter);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
.wipe.in .line > span { transform: translate3d(0, 0, 0); }

[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }

/* Language swap: brief fade so the change reads as intentional. */
[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] {
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  transition-duration: 150ms;
}


/* ============ 06. BUTTONS & LINKS ======================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  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);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
/* The Apple mark is a 3:4 glyph. Forcing it into a square box letterboxes it
   and visually clips the leaf, so give it its true aspect ratio. */
.btn svg[viewBox="0 0 384 512"] {
  width: 0.88em;
  height: 1.18em;
  margin-top: -0.12em;              /* optically centre against the cap height */
}
html[lang="ja"] .btn { letter-spacing: 0.05em; text-transform: none; }

/* Primary — accent fill, with a sweep on hover. */
.btn-gold {
  background: var(--accent);
  color: var(--black);
}
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #e0c272, var(--accent) 55%, #b8963b);
  transform: translate3d(-101%, 0, 0);
  transition: transform 480ms var(--ease-enter);
}
.btn-gold:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 12px 34px rgba(201, 168, 76, 0.26);
}
.btn-gold:hover::after { transform: translate3d(0, 0, 0); }
.btn-gold:active { transform: translate3d(0, 0, 0) scale(0.985); transition-duration: 90ms; }

/* Secondary — outline that fills on hover. */
.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--fg);
}
.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  transform: translate3d(0, 101%, 0);
  transition: transform 420ms var(--ease-enter);
}
.btn-ghost:hover { color: var(--bg); border-color: var(--fg); transform: translate3d(0, -2px, 0); }
.btn-ghost:hover::after { transform: translate3d(0, 0, 0); }
.btn-ghost:active { transform: scale(0.985); transition-duration: 90ms; }

.btn-sm { padding: 0.68rem 1.25rem; font-size: 0.74rem; }

/* Text link with an underline that grows from the left. */
.ul-link {
  position: relative;
  display: inline-block;
  color: var(--fg-muted);
  transition: color var(--t-micro) var(--ease-ui);
}
.ul-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms var(--ease-enter);
}
.ul-link:hover { color: var(--fg); }
.ul-link:hover::after { transform: scaleX(1); }

/* Official Apple badge — decorative companion to the primary CTA.
   Rendered at its native 3:1-ish ratio; never stretched. */
.badge-apple {
  display: inline-flex;
  opacity: 0.9;
  transition: transform var(--t-ui) var(--ease-ui), opacity var(--t-ui) var(--ease-ui);
}
.badge-apple img { height: 46px; width: auto; }
.badge-apple:hover { transform: translate3d(0, -2px, 0); opacity: 1; }
.is-dark .badge-apple img {
  filter: invert(1) brightness(1.12);     /* white badge on black */
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.1rem);
  margin-top: clamp(1.6rem, 3vw, 2.3rem);
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 44ch;
}


/* ============ 06b. INTRO LOCKUP ==========================================
   Full-screen brand lockup on arrival: mark -> wordmark -> rule -> est line,
   then the curtain lifts. Runs once per session; fully bypassed under
   prefers-reduced-motion (see section 19).
   ====================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;                      /* above the skip link (200) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  /* The curtain itself lifts away rather than simply fading. */
  transition: opacity 620ms var(--ease-enter),
              transform 820ms var(--ease-enter),
              visibility 820ms;
}
.intro.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -2.5%, 0);
}
/* Lock scrolling only while the curtain is up. */
body.intro-lock { overflow: hidden; }

.intro-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--pad-x);
  text-align: center;
}

/* --- Brand mark --- */
.intro-mark {
  width: clamp(104px, 15vw, 188px);
  margin-bottom: clamp(1.4rem, 3vh, 2.3rem);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 760ms var(--ease-enter), transform 900ms var(--ease-enter);
}
.intro-mark img { width: 100%; height: auto; }
.intro.step1 .intro-mark { opacity: 1; transform: scale(1); }

/* --- Wordmark: rises from behind an overflow mask ---
   Same lockup spec as the header: Inter Bold, tracking -70. --- */
.intro-word {
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.intro-word > span {
  display: block;
  font-family: "Inter", sans-serif;   /* never falls back to the JP stack */
  font-weight: 700;                   /* Inter Bold */
  letter-spacing: -0.07em;            /* tracking -70 */
  line-height: 1;
  font-size: clamp(2.9rem, min(11vw, 14vh), 7.4rem);
  color: var(--white);
  transform: translate3d(0, 110%, 0);
  transition: transform 900ms var(--ease-enter);
}
.intro.step2 .intro-word > span { transform: translate3d(0, 0, 0); }
/* The wordmark is a logotype — the JP page must not restyle it. */
html[lang="ja"] .intro-word > span { font-weight: 700; letter-spacing: -0.07em; }

/* --- Rule + establishment line --- */
.intro-rule {
  width: clamp(130px, 22vw, 260px);
  height: 1px;
  margin: clamp(1.3rem, 3vh, 2rem) 0 clamp(0.85rem, 1.8vh, 1.2rem);
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 780ms var(--ease-enter);
}
.intro.step3 .intro-rule { transform: scaleX(1); }

.intro-est {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.62rem, 1.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;               /* offsets the trailing letter-space */
  color: var(--accent);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 640ms var(--ease-enter), transform 640ms var(--ease-enter);
}
.intro.step3 .intro-est { opacity: 1; transform: translate3d(0, 0, 0); }

/* Header + hero hold still until the curtain starts lifting. */
body.intro-lock .header { opacity: 0; }
.header { transition: background-color 420ms var(--ease-ui),
                      padding 420ms var(--ease-ui),
                      box-shadow 420ms var(--ease-ui),
                      color 420ms var(--ease-ui),
                      opacity 520ms var(--ease-enter); }


/* ============ 07. HEADER / NAV / PROGRESS ================================ */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.header {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(0.9rem, 1.8vw, 1.35rem) var(--pad-x);
  color: #fff;
  transition: background-color 420ms var(--ease-ui),
              padding 420ms var(--ease-ui),
              box-shadow 420ms var(--ease-ui),
              color 420ms var(--ease-ui);
}
/* Condense + solidify once the page scrolls. */
.header.scrolled {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Over white sections the header inverts so it stays legible. */
.header.over-light.scrolled {
  background: rgba(255, 255, 255, 0.86);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
.header.over-light.scrolled .brand img { filter: invert(1); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img {
  width: clamp(34px, 3.4vw, 44px);
  height: auto;
  transition: width 420ms var(--ease-ui), transform var(--t-ui) var(--ease-ui);
}
.header.scrolled .brand img { width: clamp(30px, 3vw, 36px); }
.brand:hover img { transform: scale(1.04); }
/* Wordmark lockup — FIXED SPEC, do not alter:
   Inter Bold (700), tracking -70 (i.e. -0.07em).
   Always set as "Me vs. Me" in sentence case, matching the brand lockup. */
.brand-name {
  font-family: "Inter", sans-serif;   /* never falls back to the JP stack */
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  font-weight: 700;                   /* Inter Bold */
  letter-spacing: -0.07em;            /* tracking -70 */
  line-height: 1;
  white-space: nowrap;
}
/* The JP page must not re-letterspace the wordmark. */
html[lang="ja"] .brand-name { letter-spacing: -0.07em; font-weight: 700; }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav a {
  position: relative;
  padding: 0.3rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.72;
  transition: opacity var(--t-micro) var(--ease-ui), color var(--t-micro) var(--ease-ui);
}
html[lang="ja"] .nav a { letter-spacing: 0.06em; text-transform: none; font-size: 0.82rem; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-enter);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { opacity: 1; color: var(--accent); }

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

/* Language switcher */
.lang {
  display: inline-flex;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0.86;
}
.lang button {
  padding: 0.34rem 0.74rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: currentColor;
  transition: background-color var(--t-micro) var(--ease-ui),
              color var(--t-micro) var(--ease-ui);
}
.lang button:hover { background: rgba(255, 255, 255, 0.12); }
.header.over-light.scrolled .lang button:hover { background: rgba(0, 0, 0, 0.08); }
/* Current language is unmistakable — filled, and aria-pressed="true". */
.lang button.on { background: var(--accent); color: var(--black); }

/* Burger (mobile) */
.burger { display: none; width: 34px; height: 34px; position: relative; }
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform var(--t-ui) var(--ease-ui), opacity var(--t-ui) var(--ease-ui);
}
.burger span { top: 50%; margin-top: -0.75px; }
.burger span::before,
.burger span::after { content: ""; left: 0; transform: none; }
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
body.menu-open .burger span { transform: translateX(-50%) rotate(45deg); }
body.menu-open .burger span::before { transform: translateY(6px) rotate(-90deg); }
body.menu-open .burger span::after  { opacity: 0; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 5rem var(--pad-x) 3rem;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms var(--ease-ui), visibility 380ms;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
.drawer a {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 500ms var(--ease-enter), transform 500ms var(--ease-enter),
              color var(--t-micro) var(--ease-ui);
}
body.menu-open .drawer a { opacity: 1; transform: none; }
.drawer a:hover { color: var(--accent); }
.drawer .drawer-cta { margin-top: 1.4rem; align-self: flex-start; font-size: 0.82rem; }


/* ============ 08. HERO =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 16vh, 10rem) var(--pad-x) clamp(5rem, 12vh, 7rem);
  overflow: hidden;
}

/* Full-bleed brand photograph, heavily darkened so type stays legible. */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;     /* keeps the subject right, copy left */
  opacity: 0.42;
  filter: grayscale(1) contrast(1.06);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 6%, rgba(0,0,0,0.78) 42%, rgba(0,0,0,0.25) 100%),
    linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0.5) 88%, #000 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.hero h1 { margin-bottom: clamp(1.3rem, 2.4vh, 1.9rem); }
.hero .lead {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.8;
  color: var(--muted);
  max-width: 48ch;
}
html[lang="ja"] .hero-sub { max-width: 34ch; line-height: 2; }

.scroll-ind {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-ind i {
  display: block;
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  position: relative;
}
.scroll-ind i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: drop 2.4s var(--ease-ui) infinite;
}
@keyframes drop {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}


/* ============ 09. SPLIT SECTIONS (Concept) =============================== */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split-media {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}
.split-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform 900ms var(--ease-enter);
}
.split-media:hover img { transform: scale(1.03); }


/* ============ 10. VALUES ================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.2vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.value {
  position: relative;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.value::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 620ms var(--ease-enter);
  transition-delay: var(--d, 0ms);
}
.value.in::before { transform: scaleX(1); }
.value .num {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.value h3 { margin-bottom: 0.7rem; }
.value p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--fg-muted);
  max-width: 34ch;
}


/* ============ 11. APP SECTION ============================================ */
.app-split { align-items: center; grid-template-columns: 1fr 0.8fr; }
.app-intro .h1 { margin-bottom: 1.4rem; }

/* Verified-facts strip. Definition list = correct semantics for label/value. */
.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: clamp(2.2rem, 4.5vw, 3.2rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--hairline);
}
.fact dt {
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
}
.fact dd {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
html[lang="ja"] .fact dd { letter-spacing: 0.04em; text-transform: none; }


/* ============ 12. PRODUCT EXPERIENCE ===================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.8rem, 6vw, 4.8rem) 0;
  border-top: 1px solid var(--hairline);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature.flip .feature-media { order: -1; }
.feature-copy .num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.feature-copy h3 { margin-bottom: 1rem; }
.feature-copy p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--fg-muted);
  max-width: 44ch;
}
html[lang="ja"] .feature-copy p { line-height: 2.05; max-width: 36ch; }
.feature-media { display: flex; justify-content: center; }


/* ============ 13. PHONE MOCKUP ===========================================
   A real device frame so app screenshots read as product, not decoration.
   Screens are shown large enough that UI detail stays legible.
   ====================================================================== */
.phone-wrap { perspective: 1100px; }

.phone {
  position: relative;
  width: min(260px, 72vw);
  aspect-ratio: 471 / 1014;
  border-radius: 34px;
  padding: 7px;
  background: linear-gradient(160deg, #2a2a2a, #0a0a0a 60%);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 28px 60px rgba(0, 0, 0, 0.55);
  transition: transform 860ms var(--ease-enter), box-shadow 600ms var(--ease-enter);
}
.phone-hero { width: min(290px, 76vw); }

/* On white sections a deep blur reads as grey mud — tighten it. */
.is-light .phone {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 20px 42px rgba(0, 0, 0, 0.17),
    0 4px 12px rgba(0, 0, 0, 0.09);
}

.phone-wrap:hover .phone { box-shadow: 0 0 0 1px rgba(201,168,76,0.3), 0 34px 70px rgba(0,0,0,0.6); }
.is-light .phone-wrap:hover .phone { box-shadow: 0 0 0 1px rgba(201,168,76,0.4), 0 26px 50px rgba(0,0,0,0.2); }

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.phone-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
html[lang="ja"] .phone-caption { letter-spacing: 0.08em; text-transform: none; }

/* --------------------------------------------------------------------------
   BRAND MASK — TEMPORARY.
   The screenshots on file predate the v1.1 rename, so their in-app header
   still shows the previous product name. This strip covers that header row
   with the Me vs. Me mark, so only the current product name appears.
   WHEN v1.1 SCREENSHOTS ARRIVE: delete `has-brandmask` (and `tall-mask`)
   from the .phone elements in index.html and this block becomes inert.
   -------------------------------------------------------------------------- */
.brandmask { display: none; }
.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) carry an avatar
   row beneath it, so they need a taller strip to clear it cleanly. */
.has-brandmask.tall-mask .brandmask {
  height: 28.5%;
  padding-top: 0;
  background: linear-gradient(180deg, #000 0%, #000 94%,
              rgba(0,0,0,0.55) 98%, rgba(0,0,0,0) 100%);
}
.brandmask img { width: 16px; height: 16px; }
/* In-mask wordmark follows the same lockup spec: Inter Bold, tracking -70. */
.brandmask b {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  color: #fff;
}


/* ============ 14. TRAIN TOGETHER (Crew) ================================== */
.crew-head { max-width: 640px; }
.crew-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2.8rem, 6vw, 4.5rem);
}
.crew-gallery figure { margin: 0; }
.crew-gallery .phone-wrap:nth-child(2) .phone { transform: translateY(-1.6rem) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); }


/* ============ 15. UPDATES ================================================ */
#updates .lead { margin-top: 1.4rem; }

/* Secondary Instagram account — the other language's feed, kept quiet so the
   primary (language-matched) account stays the obvious action. */
.ig-alt {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}


/* ============ 16. FINAL CTA ============================================== */
.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: clamp(6rem, 14vh, 10rem);
  padding-bottom: clamp(6rem, 14vh, 10rem);
}
.final-media { position: absolute; inset: 0; z-index: 0; }
.final-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(1) contrast(1.05);
}
.final-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.9) 65%, #000 100%);
}
.final-inner { position: relative; z-index: 1; }
.final-h { margin-bottom: 1.6rem; }
.final-cta .lead { margin-left: auto; margin-right: auto; }
.final-cta .cta-row { justify-content: center; }
.final-cta .cta-note { margin-left: auto; margin-right: auto; }

.final-tag {
  margin-top: clamp(2.8rem, 6vw, 4.2rem);
  padding-top: clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid var(--accent-line);
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
html[lang="ja"] .final-tag { letter-spacing: 0; font-weight: 700; }


/* ============ 17. FOOTER ================================================= */
.footer {
  background: var(--black);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad-x) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand img { margin-bottom: 1.1rem; }
.footer-brand .f-tag {
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
html[lang="ja"] .footer-brand .f-tag { letter-spacing: 0; font-weight: 700; }
.footer-brand .f-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 36ch;
}
.footer-col h2 {
  margin-bottom: 1.1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="ja"] .footer-col h2 { letter-spacing: 0.08em; text-transform: none; }
.footer-col li + li { margin-top: 0.75rem; }
.footer-col a { font-size: 0.9rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  max-width: var(--max);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  color: var(--muted);
}
.footer-bottom .f-legal { max-width: 46ch; }


/* ============ 18. RESPONSIVE =============================================
   Mobile: headline -> photo -> app screen -> CTA must flow naturally, with
   no horizontal overflow and no clipped text.
   ====================================================================== */
@media (max-width: 1040px) {
  .split, .app-split { grid-template-columns: 1fr; gap: clamp(2.2rem, 6vw, 3.2rem); }
  .split-media { order: -1; }
  .app-split .phone-hero-holder { order: -1; display: flex; flex-direction: column; align-items: center; }
  .feature { grid-template-columns: 1fr; gap: 2rem; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { justify-content: flex-start; }
  .values-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-cta { display: none; }

  .hero { min-height: 92svh; align-items: flex-end; }
  .hero-media img { object-position: 62% center; opacity: 0.38; }
  .hero-media::after {
    background:
      linear-gradient(180deg, #000 0%, rgba(0,0,0,0.3) 26%, rgba(0,0,0,0.82) 62%, #000 100%);
  }
  .scroll-ind { display: none; }

  /* Full-width CTAs are easier to hit on a phone. */
  .cta-row { gap: 0.8rem; }
  .cta-row .btn { width: 100%; }
  .badge-apple { display: none; }      /* the primary CTA already covers this */

  .crew-gallery { gap: 2.5rem; }
  .crew-gallery .phone-wrap:nth-child(2) .phone { transform: none; }

  /* Horizontal slide-ins need gutter room to sit in. The mobile gutter is
     only ~20px, so a 36px pre-reveal offset pushes the page sideways.
     Fall back to the vertical reveal, which also reads better on a phone. */
  [data-reveal="left"],
  [data-reveal="right"] { transform: translate3d(0, 20px, 0); }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .phone { width: min(248px, 78vw); }
}


/* ============ 19. REDUCED MOTION =========================================
   Honour the OS setting completely: content appears, nothing moves.
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal="scale"] { opacity: 1 !important; transform: none !important; }
  .wipe .line > span { transform: none !important; }
  .value::before { transform: scaleX(1) !important; }
  .scroll-ind i::after { display: none; }
  [data-parallax] { transform: none !important; }

  /* The intro curtain is skipped entirely. JS removes the node, but this is
     the CSS safety net in case scripts are slow or blocked. */
  .intro { display: none !important; }
  body.intro-lock { overflow: auto !important; }
  body.intro-lock .header { opacity: 1 !important; }
}

/* Same safety net when JavaScript never runs: the curtain must not be left
   covering the page. Scripts are what make it visible in the first place. */
.no-js .intro { display: none; }
