/* ═══════════════════════════════════════════════════════════════
   Mind Momentum — retail redesign
   Fonts: Space Grotesk (display) + JetBrains Mono (utility)
   ═══════════════════════════════════════════════════════════════ */

/* ─────────── FONTS ─────────── */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─────────── TOKENS ─────────── */
:root[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-elev: #ffffff;
  --bg-soft: #efeae0;
  --ink: #0f0f0f;
  --ink-2: #29261b;
  --ink-3: #6b6760;
  --line: rgba(15, 15, 15, 0.10);
  --line-strong: rgba(15, 15, 15, 0.22);
  --accent: #d97757;
  --accent-soft: rgba(217, 119, 87, 0.18);
  --accent-ink: #b85a3a;
  --grid: rgba(15, 15, 15, 0.05);
}
:root[data-theme="dark"] {
  --bg: #0f0e0d;
  --bg-elev: #181614;
  --bg-soft: #1c1a17;
  --ink: #f6f4ef;
  --ink-2: #e6e2d8;
  --ink-3: #8c887e;
  --line: rgba(246, 244, 239, 0.10);
  --line-strong: rgba(246, 244, 239, 0.22);
  --accent: #d97757;
  --accent-soft: rgba(217, 119, 87, 0.22);
  --accent-ink: #e88e6f;
  --grid: rgba(246, 244, 239, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  transition: background 350ms ease, color 350ms ease;
}
body { overflow-x: hidden; }

::selection { background: var(--accent); color: #fff; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-soft); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

/* ─────────── LAYOUT ─────────── */
.page { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─────────── NAV ─────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-left { display: flex; align-items: center; gap: 20px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-mid {
  display: flex; list-style: none; margin: 0; padding: 0; gap: 28px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.04em;
}
.nav-mid a { color: var(--ink-2); transition: color 200ms ease; }
.nav-mid a:hover { color: var(--accent); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent); color: #fff; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.logo { display: inline-flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-size: 18px; letter-spacing: -0.01em; }
.logo-text { display: inline-flex; gap: 4px; align-items: baseline; }
.logo-text strong { font-weight: 700; }
.logo-text em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.logo-mark { display: inline-flex; flex-direction: column; gap: 2px; }
.logo-mark span { display: block; height: 3px; background: var(--ink); border-radius: 1px; }
.logo-mark span:nth-child(1) { width: 16px; }
.logo-mark span:nth-child(2) { width: 12px; background: var(--accent); }
.logo-mark span:nth-child(3) { width: 18px; }

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  padding: 80px 0 56px;
  min-height: 76vh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
  overflow: hidden;
}
.hero-spotlight { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  transition: background 200ms linear; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero > *:not(.hero-spotlight):not(.hero-grid) { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }

.hero-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(64px, 11vw, 176px);
  line-height: 0.92; letter-spacing: -0.045em; margin: 0; text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-strike { position: relative; color: var(--ink-3); font-style: italic; font-weight: 400; }
.hero-strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 6px;
  background: var(--accent); transform-origin: left;
  animation: strike 1100ms cubic-bezier(.7,.05,.2,1) 500ms both;
}
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero-sub { font-size: 19px; line-height: 1.45; max-width: 54ch; color: var(--ink-2);
  text-wrap: pretty; margin: 0; }
.hero-sub em { color: var(--accent); font-style: normal; font-weight: 500; }
.hero-cta { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  padding: 16px 24px; border-radius: 999px; font-size: 15px; font-weight: 500;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }
.btn-primary--xl { padding: 22px 34px; font-size: 17px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 1px 0;
}
.meta-col { background: var(--bg); padding: 18px 4px 4px;
  display: flex; flex-direction: column; gap: 10px; }
.meta-val { font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 500;
  letter-spacing: -0.02em; }
.meta-val--accent { color: var(--accent); }

/* ─────────── MARQUEE ─────────── */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 -32px; padding: 22px 0; overflow: hidden; background: var(--bg);
}
.marquee-track {
  display: flex; gap: 56px; animation: scroll 40s linear infinite; width: max-content;
  font-family: "JetBrains Mono", monospace; font-size: 14px; letter-spacing: 0.08em;
}
.marquee-item { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-2);
  white-space: nowrap; }
.marquee-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────── SECTION HEADS ─────────── */
.section-head { display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 48px; max-width: 900px; }
.section-head--split { flex-direction: row; max-width: none;
  justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(38px, 5.2vw, 72px); line-height: 1.0; letter-spacing: -0.035em;
  margin: 0; text-wrap: balance;
}
.section-title-muted { color: var(--ink-3); font-style: italic; font-weight: 400; }
.section-sub { font-size: 18px; line-height: 1.5; color: var(--ink-2);
  max-width: 60ch; text-wrap: pretty; margin: 0; }
.section-sub--right { text-align: right; }

/* ─────────── ZONES / CATALOGUE ─────────── */
.zone { padding: 88px 0 8px; }
.zone--business { padding-top: 72px; }
.zone--studio { padding-top: 72px; }

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

.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 24px;
  padding: 30px; display: flex; flex-direction: column; gap: 16px; height: 100%;
  position: relative;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 320ms ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: 30px; line-height: 1.05; letter-spacing: -0.025em; margin: 0;
  max-width: 18ch; text-wrap: balance;
}
.card-body { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0;
  text-wrap: pretty; }
.card-list {
  list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  font-family: "JetBrains Mono", monospace; font-size: 12.5px; letter-spacing: 0.02em;
}
.card-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); }
.card-bullet { color: var(--accent); font-weight: 600; line-height: 1.3; }

/* ownership + price — the signature line every product carries */
.card-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.own-stamp {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 7px;
}
.own-stamp .diamond { color: var(--accent); font-size: 9px; }
.price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.price-from { font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.price-val { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1; }

.card-buy {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.04em;
  color: var(--accent-ink);
  border-bottom: 1px dashed transparent; padding-bottom: 2px;
  transition: border-color 200ms ease, gap 200ms ease;
}
.card-buy:hover { border-color: var(--accent); gap: 12px; }

/* featured (Concierge) */
.card--featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card--featured .mono-tag { color: color-mix(in srgb, var(--bg) 66%, var(--ink)); }
.card--featured .card-body { color: color-mix(in srgb, var(--bg) 84%, var(--ink)); }
.card--featured .card-bullet { color: var(--accent); }
.card--featured .card-list { border-top-color: color-mix(in srgb, var(--bg) 26%, var(--ink)); }
.card--featured .card-list li { color: color-mix(in srgb, var(--bg) 86%, var(--ink)); }
.card--featured .card-foot { border-top-color: color-mix(in srgb, var(--bg) 26%, var(--ink)); }
.card--featured .own-stamp { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.card--featured .price-from { color: color-mix(in srgb, var(--bg) 66%, var(--ink)); }
.card--featured .card-buy { color: var(--accent); }

/* wide (spans both columns) */
.card--wide { grid-column: 1 / -1; }
.card--wide .card-title { font-size: 40px; max-width: 16ch; }

/* compact studio cards */
.cat-grid--studio { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card--compact { padding: 24px; gap: 12px; border-radius: 20px; }
.card--compact .card-title { font-size: 21px; max-width: none; }
.card--compact .card-body { font-size: 14px; }
.card--compact .card-foot { padding-top: 14px; }
.card--compact .own-stamp { font-size: 10px; }

/* ─────────── PROCESS ─────────── */
.process { padding: 96px 0; }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.process-row {
  display: grid; grid-template-columns: 100px 180px 1fr 40px; gap: 32px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: background 300ms ease, padding 300ms ease;
}
.process-row:hover { background: var(--bg-soft); padding-left: 16px; padding-right: 16px; }
.process-row:hover .process-arrow { color: var(--accent); transform: translateX(6px); }
.process-n { font-family: "JetBrains Mono", monospace; font-size: 14px; color: var(--ink-3); }
.process-label { padding-top: 4px; }
.process-content h3 {
  font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 30px;
  letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 10px; text-wrap: balance;
}
.process-content p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0;
  max-width: 58ch; text-wrap: pretty; }
.process-arrow { color: var(--ink-3); display: flex; justify-content: flex-end;
  padding-top: 6px; transition: color 300ms ease, transform 300ms ease; }

/* ─────────── CTA ─────────── */
.cta { padding: 32px 0 96px; }
.cta-card {
  background: var(--ink); color: var(--bg); border-radius: 32px;
  padding: 80px 64px 36px; display: flex; flex-direction: column; gap: 26px;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  top: -300px; right: -200px; pointer-events: none;
}
.cta-card .mono-tag { color: color-mix(in srgb, var(--bg) 66%, var(--ink)); }
.cta-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(44px, 6.5vw, 88px); line-height: 1.0; letter-spacing: -0.04em;
  margin: 0; text-wrap: balance; max-width: 15ch;
}
.cta-title em { color: var(--accent); font-style: italic; font-weight: 400; }
.cta-sub { font-size: 19px; line-height: 1.5; color: color-mix(in srgb, var(--bg) 78%, var(--ink));
  max-width: 56ch; text-wrap: pretty; margin: 0; }
.cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.cta-card .btn-primary { background: var(--bg); color: var(--ink); }
.cta-card .btn-primary:hover { background: var(--accent); color: #fff; }
.cta-or { display: flex; align-items: center; }
.cta-email {
  font-family: "JetBrains Mono", monospace; font-size: 17px; color: var(--bg);
  border-bottom: 1px dashed color-mix(in srgb, var(--bg) 48%, var(--ink)); padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.cta-email:hover { color: var(--accent); border-color: var(--accent); }
.cta-strip { border-top: 1px solid color-mix(in srgb, var(--bg) 26%, var(--ink)); padding-top: 20px; margin-top: 12px; }

/* ─────────── FOOTER ─────────── */
.footer { border-top: 1px solid var(--line); padding: 32px 0;
  display: flex; flex-direction: column; gap: 16px; }
.footer-row { display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; }
.footer-row--bottom { color: var(--ink-3); }
.footer-legal {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 28px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.footer-legal-col { display: flex; flex-direction: column; gap: 10px; }
.footer-legal-col address { font-style: normal; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.footer-legal-val { font-family: "JetBrains Mono", monospace; font-size: 14px;
  letter-spacing: 0.02em; color: var(--ink-2); }
.footer-link {
  font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--accent);
  border-bottom: 1px dashed transparent; transition: border-color 200ms ease; align-self: flex-start;
}
.footer-link:hover { border-bottom-color: var(--accent); }

/* ─────────── SCROLL REVEAL ─────────── */
/* Gated on html.js so the page is fully visible when JavaScript is off. */
html.js .reveal { opacity: 0; transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 960px) {
  .page { padding: 0 20px; }
  .marquee { margin: 0 -20px; }
  .nav-mid { display: none; }
  .hero { min-height: auto; padding: 48px 0 32px; }
  .hero-foot { grid-template-columns: 1fr; gap: 24px; }
  .hero-cta { justify-content: flex-start; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid--studio { grid-template-columns: 1fr 1fr; }
  .card--wide .card-title { font-size: 30px; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .section-sub--right { text-align: left; }
  .process-row { grid-template-columns: 60px 1fr; }
  .process-label { grid-column: 2; }
  .process-content { grid-column: 2; }
  .process-arrow { display: none; }
  .cta-card { padding: 48px 28px 24px; border-radius: 24px; }
  .card-list { grid-template-columns: 1fr; }
  .footer-legal { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .cat-grid--studio { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .price { align-items: flex-start; text-align: left; }
}

/* ─────────── REDUCED MOTION ─────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-strike::after { transform: scaleX(1); }
}
