/* ============================================================
   RESITAL ESTATE - Design System
   Archetype: Brutalist Mono | Layout: Side Rail
   Palette: Forest & Bone | Surface: Flat Hairline | Shape: Sharp
   ============================================================ */

/* --- Google Fonts ----------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Variables -------------------------------------------------- */
:root {
  --ink: #F4EFE6;
  --text: #0D1F12;
  --text-mid: #3A4D3F;
  --muted: #6B7D70;

  --surface: #EDE8DE;
  --surface-2: #E5E0D6;
  --line: rgba(13,31,18,.12);
  --line-2: rgba(13,31,18,.22);

  --accent: #1B4332;
  --accent-text: #F4EFE6;
  --mint: #52B788;
  --mint-light: rgba(82,183,136,.10);
  --alarm: #C1121F;

  --display: 'JetBrains Mono', 'Courier New', monospace;
  --body: 'Work Sans', 'Helvetica Neue', sans-serif;

  --maxw: 1100px;
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 4px;
  --rail-w: 260px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur: 200ms;
}

/* --- Reset ------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* --- Base ------------------------------------------------------- */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 1000;
  transition: none;
}

/* --- Typography ------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

p {
  max-width: 65ch;
  text-wrap: pretty;
  color: var(--text-mid);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease-snap);
}

a:hover { color: var(--mint); }

strong { font-weight: 600; color: var(--text); }

/* Inline icon guard */
li > svg, p > svg, a > svg, button > svg, span > svg, td > svg, label > svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  vertical-align: -0.15em;
}

/* --- Page Layout: Side Rail ------------------------------------- */
.page-wrap {
  display: flex;
  min-height: 100vh;
}

/* The fixed left rail nav */
.rail-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-right: 1px solid var(--line-2);
  background: var(--ink);
  z-index: 100;
}

.rail-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  text-decoration: none;
  color: var(--text);
}

.rail-logo svg { width: 32px; height: 32px; flex: none; }

.rail-logo-text {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rail-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.rail-links a {
  display: block;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease-snap), border-color var(--dur) var(--ease-snap), background var(--dur) var(--ease-snap);
  text-decoration: none;
}

.rail-links a:hover,
.rail-links a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--surface);
}

.rail-cta {
  margin-top: auto;
}

.rail-cta a {
  display: block;
  text-align: center;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--dur) var(--ease-snap), transform 80ms ease;
}

.rail-cta a:hover { background: #163A2A; color: var(--accent-text); }
.rail-cta a:active { transform: scale(0.97); }

/* Main content offset by rail */
.main-content {
  margin-left: var(--rail-w);
  flex: 1;
  min-width: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 150ms var(--ease-snap), opacity 150ms var(--ease-snap);
}

.nav-toggle span + span { margin-top: 5px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Full-screen mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  background: var(--ink);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 200ms var(--ease-snap);
}

.nav-overlay.open {
  display: flex;
  opacity: 1;
}

.nav-overlay a {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 12px 24px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease-snap);
}

.nav-overlay a:hover { border-color: var(--line-2); color: var(--text); }

.nav-overlay .mobile-cta {
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  font-size: 1rem;
}

/* --- Sections --------------------------------------------------- */
.section {
  padding: 80px 48px;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type { border-bottom: none; }

.section-inner {
  max-width: var(--maxw);
}

/* Section eyebrow */
.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 12px;
}

/* --- Hero ------------------------------------------------------- */
.hero {
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--line);
  min-height: calc(100svh - 0px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner {
  max-width: var(--maxw);
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 52ch;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* --- Tabbed Console (Hero Device) ------------------------------- */
.console {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  padding: 0;
}

.console-tab {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 12px 20px;
  border: none;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms var(--ease-snap), background 150ms var(--ease-snap);
}

.console-tab:hover { color: var(--text); background: var(--surface); }

.console-tab[aria-selected="true"] {
  color: var(--text);
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  margin-bottom: -1px;
}

.console-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.console-list {
  border-right: 1px solid var(--line);
  padding: 16px;
  overflow-y: auto;
}

.console-detail {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.console-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.88rem;
  transition: border-color 150ms var(--ease-snap), background 150ms var(--ease-snap);
  background: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
}

.console-row:hover, .console-row.sel {
  border-color: var(--line-2);
  background: var(--ink);
}

.console-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

.console-row .row-title {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-row .row-tag {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  flex: none;
}

/* Detail pane */
.detail-title {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.detail-heading {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--muted);
}

.detail-meta span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.detail-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-top: 8px;
}

.detail-price {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

/* Float chips (Tabbed Console hero device motion) */
.float-chip {
  position: absolute;
  padding: 8px 14px;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
  animation: floatChip 4s ease-in-out infinite;
}

.float-chip.fc-1 { top: -14px; right: -14px; }
.float-chip.fc-2 { bottom: -14px; left: -14px; animation-delay: -2s; }

.float-chip .fc-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  margin-right: 6px;
}

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease-snap), color var(--dur) var(--ease-snap), border-color var(--dur) var(--ease-snap), transform 80ms ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-2);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #163A2A;
  color: var(--accent-text);
  border-color: #163A2A;
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease-snap);
}

.btn:hover .arrow { transform: translateX(3px); }

/* Ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(13,31,18,.12);
  transform: scale(0);
  animation: ripple 500ms ease-out forwards;
  pointer-events: none;
}

.btn-primary .btn-ripple { background: rgba(244,239,230,.15); }

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* --- Feature Columns -------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.feature-card {
  background: var(--ink);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--dur) var(--ease-snap);
}

.feature-card:hover { background: var(--surface); }

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--accent);
  transition: transform 200ms var(--ease-snap);
}

.feature-card:hover .feature-icon { transform: scale(1.08); }

.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* --- Deep Dive (split layout) ----------------------------------- */
.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.deep-dive-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.deep-dive-content h2 { margin-bottom: 16px; }
.deep-dive-content p { margin-bottom: 16px; }

.stat-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.stat-item {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.stat-item .stat-label {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat-item .stat-value {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

/* --- FAQ -------------------------------------------------------- */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  border: none;
  background: none;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-btn:hover { color: var(--accent); }

.faq-icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform 200ms var(--ease-snap);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease);
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --- CTA Band --------------------------------------------------- */
.cta-band {
  padding: 80px 48px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cta-band h2 { margin-bottom: 16px; }
.cta-band p {
  margin: 0 auto 28px;
  max-width: 48ch;
  color: var(--text-mid);
}

.cta-band .btn-primary {
  padding: 16px 48px;
  font-size: 0.95rem;
}

/* --- Footer ----------------------------------------------------- */
.site-footer {
  padding: 40px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.78rem;
  text-decoration: none;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur) var(--ease-snap);
}

.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { width: 100%; }

/* --- Forms (fully themed by element selector) ------------------- */
input, textarea, select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--dur) var(--ease-snap);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27,67,50,.10);
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7D70' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea { min-height: 120px; resize: vertical; }

label {
  display: block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 6px;
}

.form-row {
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

.form-success p {
  margin-inline: auto;
}

/* --- Slider / Carousel ------------------------------------------ */
[data-slider] {
  position: relative;
}

[data-slider-track] {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

[data-slider-track]::-webkit-scrollbar { display: none; }

[data-slider-track] > * {
  flex: 0 0 calc(33.333% - 1px);
  scroll-snap-align: start;
  grid-column: auto !important;
  min-width: 280px;
  height: 100%;
}

.slider-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.slider-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur) var(--ease-snap);
  padding: 0;
}

.slider-btn:hover { background: var(--surface); }
.slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* --- Scroll Reveal ---------------------------------------------- */
.sr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.sr.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.sr-stagger > .sr:nth-child(1) { transition-delay: 0ms; }
.sr-stagger > .sr:nth-child(2) { transition-delay: 60ms; }
.sr-stagger > .sr:nth-child(3) { transition-delay: 120ms; }
.sr-stagger > .sr:nth-child(4) { transition-delay: 180ms; }
.sr-stagger > .sr:nth-child(5) { transition-delay: 240ms; }
.sr-stagger > .sr:nth-child(6) { transition-delay: 300ms; }

/* --- Focus Visible ---------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Prose (content pages) -------------------------------------- */
.prose ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.prose li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
  color: var(--text-mid);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.prose li strong { color: var(--text); }

/* --- Responsive ------------------------------------------------- */
@media (max-width: 1000px) {
  .rail-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-content { margin-left: 0; }

  .hero { padding: 80px 24px 48px; min-height: auto; }
  .section { padding: 56px 24px; }
  .cta-band { padding: 56px 24px; }
  .site-footer { padding: 32px 24px; }

  .console-body { grid-template-columns: 1fr; }
  .console-list { border-right: none; border-bottom: 1px solid var(--line); }

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

  .deep-dive-grid { grid-template-columns: 1fr; gap: 24px; }

  .form-grid { grid-template-columns: 1fr; }

  .float-chip { display: none; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); }

  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .section { padding: 40px 16px; }
  .cta-band { padding: 40px 16px; }
  .site-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 16px;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }

  .stat-row { flex-direction: column; gap: 16px; }

  .console-tab { font-size: 0.72rem; padding: 10px 12px; }
  .console-row { font-size: 0.82rem; }

  .detail-heading { font-size: 1.1rem; }
  .detail-price { font-size: 1.3rem; }
}

/* --- Reduced Motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .sr { opacity: 1; transform: none; }
  .float-chip { animation: none; }
  .scroll-progress { display: none; }
}
