/* ============================================================
   MIND MATTER — Design System
   Fonts: Cinzel (display) · Space Grotesk (body) · Space Mono (labels)
   Palette: ink / ivory / hot magenta / star / ember
   ============================================================ */

:root {
  --ink: #070d18;
  --ink2: #0c1526;
  --panel: rgba(12, 21, 38, 0.78);
  --ivory: #eae3d2;
  --ivory-dim: #a9a493;
  /* Hot magenta — high contrast on deep space blue */
  --gold: #ff2d6f;
  --gold-bright: #ff5c9a;
  --gold-rgb: 255, 45, 111;
  --star: #9ec8e0;
  --ember: #ff8ab0; /* softer pink secondary */
  --ink-on-gold: #12030a; /* near-black for text on magenta buttons */
  --hair: rgba(234, 227, 210, 0.14);
  --hair-strong: rgba(234, 227, 210, 0.30);
  --serif: 'Cinzel', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --radius: 4px;
  --transition: 0.25s ease;
  /* Scrollbars — solid ink track (never white) */
  --scroll-track: #070c17;
  --scroll-thumb: #2a3a55;
  --scroll-thumb-hover: #ff2d6f;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  /* Free continuous scroll — no snap / delayed smooth-page-scroll */
  scroll-behavior: auto;
  /* Force dark native scrollbars (macOS / Chrome / Safari / Firefox) */
  color-scheme: dark;
  background-color: #070c17;
}
body {
  font-family: var(--sans);
  color: var(--ivory);
  overflow-x: hidden;
  background-color: #070c17;
  background-image:
    radial-gradient(1100px 760px at 86% -8%, rgba(80, 140, 210, 0.16), transparent 60%),
    radial-gradient(900px 700px at -8% 36%, rgba(255, 45, 111, 0.11), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(255, 92, 154, 0.07), transparent 60%),
    linear-gradient(180deg, #0a1120 0%, #070c17 42%, #0a1120 100%);
  background-attachment: fixed;
  line-height: 1.6;
}
/* No page scrollbar while "Curating your experience..." is up */
html.is-loading,
html.is-loading body,
body.is-loading {
  overflow: hidden !important;
  height: 100%;
}
::selection { background: var(--gold); color: #fff; }

/* ---------- Scrollbars (solid dark track — never white) ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
body {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

/* WebKit / Blink (Chrome, Safari, Edge) — paint solid ink under the bar */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: var(--scroll-track);
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background-color: var(--scroll-track);
  border-radius: 0;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb);
  border-radius: 6px;
  border: 2px solid var(--scroll-track);
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll-thumb-hover);
  border: 2px solid var(--scroll-track);
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
  background-color: var(--gold);
  border: 2px solid var(--scroll-track);
  background-clip: padding-box;
}
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background-color: var(--scroll-track);
}
::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Twinkling Star Layer ---------- */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stars i {
  position: absolute; border-radius: 50%; background: #e8ecf4;
  opacity: 0.12; animation: twinkle linear infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.06; } 50% { opacity: 0.75; } }

/* ---------- Layout Helpers ---------- */
section { position: relative; z-index: 2; }
.wrap { max-width: 1300px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 50px); }

/* ---------- Typography ---------- */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 700 10px/1 var(--mono); letter-spacing: 0.32em;
  color: var(--gold); text-transform: uppercase;
}
.kicker::before { content: ''; width: 42px; height: 1px; background: var(--gold); }

.display-xl {
  font: 900 clamp(2.2rem, 5.4vw, 4.5rem)/1 var(--serif);
  letter-spacing: 0.015em;
}
.display-lg {
  font: 900 clamp(2.1rem, 5vw, 3.7rem)/1 var(--serif);
  letter-spacing: 0.02em;
}
.display-md {
  font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.1 var(--serif);
  letter-spacing: 0.01em;
}
.gold { color: var(--gold); text-shadow: 0 0 46px rgba(255, 45, 111, 0.5); }
.lede {
  color: var(--ivory-dim); font-size: clamp(0.93rem, 1.3vw, 1.05rem);
  line-height: 1.65; max-width: 62ch; font-weight: 300;
}
.lede b { color: var(--star); font-weight: 500; }
.sec-note {
  font: 400 10px/1.9 var(--mono); letter-spacing: 0.16em;
  color: var(--ivory-dim); max-width: 30ch; text-align: right;
}
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 26px; margin-bottom: 46px; flex-wrap: wrap;
}
.section-divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--hair), transparent);
  margin: 0 auto; max-width: 1300px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 24px; border: 1px solid transparent; cursor: pointer;
  transition: var(--transition); border-radius: var(--radius);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover {
  background: var(--gold-bright); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 45, 111, 0.42);
}
.btn-ghost { border-color: var(--hair-strong); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 15px; font-size: 9.5px; letter-spacing: 0.16em; }
.btn.wide { width: 100%; }
.btn-danger { background: var(--ember); color: #fff; }
.btn-danger:hover { background: #e0825e; }

/* ---------- Header ---------- */
#siteHeader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
#siteHeader.scrolled {
  background: rgba(7, 12, 23, 0.86); backdrop-filter: blur(12px);
  border-color: var(--hair);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ivory);
}
/* Mind Matter diamond glyph — same react/spin as the old star */
.brand svg.mm-glyph,
.brand .mm-glyph {
  flex: none;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s;
  filter: drop-shadow(0 0 4px rgba(255, 45, 111, 0.55));
}
.brand:hover svg.mm-glyph,
.brand:hover .mm-glyph {
  transform: rotate(90deg);
  filter: drop-shadow(0 0 8px rgba(255, 45, 111, 0.95));
}
.brand b { font: 700 15px var(--serif); letter-spacing: 0.34em; display: block; }
.brand small {
  font: 400 7.5px var(--mono); letter-spacing: 0.3em;
  color: var(--ivory-dim); margin-top: 3px; display: block;
}
nav { display: flex; gap: 30px; }
nav a {
  font: 700 9.5px var(--mono); letter-spacing: 0.24em; color: var(--ivory-dim);
  text-decoration: none; position: relative; padding: 4px 0;
  transition: color 0.25s; text-transform: uppercase;
}
nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  height: 1px; width: 0; background: var(--gold); transition: width 0.3s;
}
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }
.head-right { display: flex; align-items: center; gap: 12px; }

/* Header profile / account menu */
.nav-profile {
  position: relative;
  z-index: 50;
}
.nav-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory, #f2f4f8);
  cursor: pointer;
  font: 600 10px var(--mono, ui-monospace, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.15s, background 0.15s;
}
.nav-profile-btn:hover,
.nav-profile.is-open .nav-profile-btn {
  border-color: rgba(255, 45, 111, 0.45);
  background: rgba(255, 45, 111, 0.08);
}
.nav-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 10px var(--mono, ui-monospace, monospace);
  color: #fff;
  background: linear-gradient(135deg, #ff2d6f, #c4124a);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.nav-profile-avatar.has-img {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.nav-profile-label {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0e1524;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-profile-menu[hidden] { display: none !important; }
.nav-profile-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #eef1f6;
  font: 500 0.88rem system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.nav-profile-item:hover {
  background: rgba(255, 45, 111, 0.12);
  color: #fff;
}
.nav-profile-item.danger {
  color: #f5a9a0;
}
.nav-profile-item.danger:hover {
  background: rgba(231, 76, 60, 0.12);
}
@media (max-width: 720px) {
  .nav-profile-label { display: none; }
  .nav-profile-btn { padding: 4px; }
}

/* Cart button */
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--hair-strong); color: var(--ivory);
  padding: 9px 16px; font: 700 9.5px var(--mono); letter-spacing: 0.2em;
  cursor: pointer; transition: var(--transition); border-radius: 3px;
  text-transform: uppercase;
}
.cart-btn:hover { border-color: var(--gold); color: var(--gold); }
#cartCount {
  position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 50%; background: var(--gold); color: #fff;
  font: 700 9px/17px var(--mono); text-align: center;
  transform: scale(0); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#cartCount.on { transform: scale(1); }
#cartCount.pulse { animation: pulse 0.42s; }
@keyframes pulse { 50% { transform: scale(1.5); } }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 80px);
  background: #101a2e; border: 1px solid rgba(255, 45, 111, 0.45);
  color: var(--ivory); padding: 13px 22px;
  font: 500 12.5px var(--sans); letter-spacing: 0.04em;
  /* Above Studio sheet (140) so cart can open over Customize */
  z-index: 160; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
  opacity: 0; max-width: min(420px, 92vw); text-align: center; border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
#toast.confirm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px 18px;
  text-align: left;
  border-color: rgba(232, 93, 93, 0.4);
}
#toast .toast-msg {
  font: 500 13px/1.4 var(--sans);
  letter-spacing: 0.02em;
  color: var(--ivory);
}
#toast .toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#toast .toast-btn {
  border-radius: 4px;
  font: 700 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
#toast .toast-btn-ghost {
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--ivory-dim);
}
#toast .toast-btn-ghost:hover {
  color: var(--ivory);
  border-color: var(--hair-strong);
}
#toast .toast-btn-danger {
  background: rgba(232, 93, 93, 0.18);
  border: 1px solid rgba(232, 93, 93, 0.55);
  color: #f0a0a0;
}
#toast .toast-btn-danger:hover {
  background: rgba(232, 93, 93, 0.32);
  color: #fff;
}

/* ---------- Loading Screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
  overflow: hidden;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-brand {
  font: 900 clamp(1.6rem, 4vw, 2.8rem) var(--serif);
  letter-spacing: 0.12em; color: var(--ivory);
  display: flex; align-items: center; gap: 12px; justify-content: center;
}
/* Diamond mark spins continuously on load screen (same motion as the old star) */
.loader-brand svg.mm-glyph {
  animation: spin 4s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 45, 111, 0.75));
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-bar {
  width: 200px; height: 2px; background: var(--hair);
  margin: 24px auto 16px; border-radius: 1px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0; background: var(--gold);
  transition: width 0.3s; border-radius: 1px;
}
.loader-sub {
  font: 400 10px var(--mono); letter-spacing: 0.24em;
  color: var(--ivory-dim); text-transform: uppercase;
}

/* ---------- Free enhance modal (blocks UI while AI runs) ---------- */
.enhance-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Visible when not [hidden] */
}
.enhance-modal[hidden] {
  display: none !important;
}
/* Force visible on every pass (including enhance-again) */
.enhance-modal.is-open:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.enhance-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.enhance-modal-card {
  position: relative;
  z-index: 1;
  width: min(360px, 92vw);
  padding: 32px 28px 24px;
  border-radius: 8px;
  border: 1px solid var(--hair-strong);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 45, 111, 0.12), transparent 55%),
    radial-gradient(90% 70% at 80% 100%, rgba(80, 140, 210, 0.1), transparent 50%),
    var(--ink2);
  box-shadow:
    0 0 0 1px rgba(255, 45, 111, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(255, 45, 111, 0.12);
  text-align: center;
}
.enhance-modal-brand {
  font: 900 clamp(1.15rem, 3.5vw, 1.55rem) var(--serif);
  letter-spacing: 0.12em;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}
/* Mind Matter diamond mark (replaces ✦ stars sitewide) */
.mm-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.12em;
  color: var(--gold, #ff2d6f);
  line-height: 0;
  flex: none;
}
.mm-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.mm-mark-glow {
  filter: drop-shadow(0 0 8px rgba(255, 45, 111, 0.65));
}
/* Fluent continuous spin — keep eyes on the diamond while upscale runs */
.mm-mark-spin,
.enhance-modal-glyph.mm-mark-spin,
.ps-mm-spin {
  animation:
    mmMarkSpinFluent 1.6s linear infinite,
    mmMarkGlowPulse 1.6s ease-in-out infinite;
  will-change: transform, filter;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
@keyframes mmMarkSpinFluent {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(360deg) scale(1); }
}
@keyframes mmMarkGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 45, 111, 0.55)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 45, 111, 0.95)); }
}

.enhance-modal-glyph {
  animation:
    mmMarkSpinFluent 1.6s linear infinite,
    mmMarkGlowPulse 1.6s ease-in-out infinite;
  flex: none;
  transform-origin: 50% 50%;
  will-change: transform, filter;
  backface-visibility: hidden;
  width: 40px;
  height: 54px;
}
.enhance-modal-bar {
  width: 100%;
  max-width: 220px;
  height: 3px;
  background: var(--hair);
  margin: 8px auto 14px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
/* Sliding shimmer so the bar always feels alive (real % is unreliable mid-run) */
.enhance-modal-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 45, 111, 0.85),
    transparent
  );
  animation: enhanceBarSweep 1.4s ease-in-out infinite;
  pointer-events: none;
}
.enhance-modal.is-finishing .enhance-modal-bar::after {
  animation: none;
  opacity: 0;
}
@keyframes enhanceBarSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.enhance-modal-bar-fill {
  height: 100%;
  width: 0%;
  min-width: 0;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.45s ease-out;
  opacity: 0.55;
}
.enhance-modal-status {
  margin: 0 0 6px;
  font: 400 10px var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.enhance-modal-eta {
  margin: 0 0 18px;
  font: 400 12px/1.4 var(--sans);
  color: var(--ivory-dim);
  opacity: 0.9;
}
.enhance-modal-cancel {
  min-width: 100px;
}
/* Upscale: keep product canvas visible under modal; don't hard-freeze the page */
body.enhance-blocking {
  overflow: hidden !important;
}
body.enhance-blocking #canvasStage,
body.enhance-blocking .stage-editor {
  visibility: visible !important;
}
.enhance-modal {
  /* Allow seeing the product under the dim layer while DPI improves */
  background: transparent;
}
.enhance-modal-backdrop {
  background: rgba(4, 8, 16, 0.55) !important;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hair); padding: 58px 0 36px;
  background: rgba(7, 12, 23, 0.6); position: relative; z-index: 2;
}
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 42px; }
.f-grid h4 {
  font: 700 10px var(--mono); letter-spacing: 0.26em;
  color: var(--gold); margin-bottom: 18px; text-transform: uppercase;
}
.f-grid a {
  display: block; font: 400 13px var(--sans); color: var(--ivory-dim);
  text-decoration: none; padding: 5px 0; transition: color 0.2s;
}
.f-grid a:hover { color: var(--gold); }
.f-brand p {
  color: var(--ivory-dim); font-size: 0.92rem; line-height: 1.7;
  max-width: 36ch; margin-top: 14px; font-weight: 300;
}
.f-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--hair);
  font: 400 9.5px var(--mono); letter-spacing: 0.14em;
  color: var(--ivory-dim); text-transform: uppercase;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field label {
  display: block; font: 700 9px var(--mono); letter-spacing: 0.22em;
  color: var(--ivory-dim); margin-bottom: 8px; text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%; background: rgba(7, 12, 23, 0.6);
  border: 1px solid var(--hair); color: var(--ivory);
  padding: 12px 14px; font: 400 14px var(--sans);
  transition: border-color 0.2s; border-radius: 3px; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.fine {
  font: 400 9.5px/1.8 var(--mono); letter-spacing: 0.12em;
  color: var(--ivory-dim); margin-top: 14px;
}

/* ---------- Responsive Base ---------- */
@media (max-width: 900px) {
  nav { display: none; }
  .sec-note { text-align: left; }
  .f-grid { grid-template-columns: 1fr; gap: 30px; }
  .f-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .f-grid { grid-template-columns: 1fr; }
}
