/* ═══════════════════════════════════════════════════
   APPLE DESIGN SYSTEM — PORTFOLIO FRONTEND STYLES
   ═══════════════════════════════════════════════════ */

:root {
  /* Constants */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --surface-black: #000000;
  --surface-chip-translucent: rgba(210, 210, 215, 0.64);
  --ink-muted-48: #7a7a7a;

  /* Typography Font Families */
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

  /* Spacing Scale */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 17px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 80px;

  /* Border Radii */
  --radius-none: 0px;
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --radius-full: 9999px;

  /* Depth */
  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0px;
  --button-focus-outline: 2px solid #0071e3;

  /* Theme-Dependent Palette (Default to Dark theme) */
  --canvas-bg: #000000;
  --canvas-text: #ffffff;
  
  --tile-light-bg: #151517;
  --tile-light-text: #f5f5f7;
  --tile-light-muted: #86868b;
  
  --tile-parchment-bg: #1c1c1e;
  --tile-parchment-text: #f5f5f7;
  --tile-parchment-muted: #86868b;
  
  --tile-dark-bg: #000000;
  --tile-dark-text: #ffffff;
  --tile-dark-muted: #86868b;
  
  --tile-dark2-bg: #121212;
  --tile-dark3-bg: #0c0c0e;
  
  --card-bg: #1c1c1e;
  --card-text: #f5f5f7;
  --card-text-muted: #86868b;
  --card-border: rgba(255, 255, 255, 0.12);
  
  --chip-bg: #272729;
  --chip-text: #f5f5f7;
  --chip-border: rgba(255, 255, 255, 0.15);
  
  --input-bg: #1c1c1e;
  --input-text: #ffffff;
  --input-border: rgba(255, 255, 255, 0.15);
  
  --nav-frosted-bg: rgba(28, 28, 30, 0.8);
  --nav-frosted-text: #f5f5f7;
  --nav-hairline: rgba(255, 255, 255, 0.1);
  
  --footer-bg: #151517;
  --footer-text: #86868b;
  --footer-text-strong: #f5f5f7;
  --footer-text-legal: #6e6e73;
}

/* Light Theme Variables */
[data-theme="light"] {
  --canvas-bg: #ffffff;
  --canvas-text: #1d1d1f;
  
  --tile-light-bg: #ffffff;
  --tile-light-text: #1d1d1f;
  --tile-light-muted: #6e6e73;
  
  --tile-parchment-bg: #f5f5f7;
  --tile-parchment-text: #1d1d1f;
  --tile-parchment-muted: #6e6e73;
  
  --tile-dark-bg: #272729;
  --tile-dark-text: #ffffff;
  --tile-dark-muted: #cccccc;
  
  --tile-dark2-bg: #2a2a2c;
  --tile-dark3-bg: #252527;
  
  --card-bg: #ffffff;
  --card-text: #1d1d1f;
  --card-text-muted: #6e6e73;
  --card-border: #e0e0e0;
  
  --chip-bg: #ffffff;
  --chip-text: #1d1d1f;
  --chip-border: #e0e0e0;
  
  --input-bg: #ffffff;
  --input-text: #1d1d1f;
  --input-border: rgba(0, 0, 0, 0.08);
  
  --nav-frosted-bg: rgba(245, 245, 247, 0.8);
  --nav-frosted-text: #1d1d1f;
  --nav-hairline: #e0e0e0;
  
  --footer-bg: #f5f5f7;
  --footer-text: #333333;
  --footer-text-strong: #1d1d1f;
  --footer-text-legal: #7a7a7a;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  background-color: var(--canvas-bg);
  color: var(--canvas-text);
  transition: background-color 0.4s, color 0.4s;
  overflow-x: hidden;
  line-height: 1.47;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--canvas-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ── TYPOGRAPHY STYLES ── */
.hero-display {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.display-md {
  font-family: var(--font-text);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  line-height: 1.47;
  letter-spacing: -0.374px;
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
}
.lead-airy {
  font-family: var(--font-text);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}
.tagline {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}
.body-strong {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}
.body {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}
.dense-link {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 2.41;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.224px;
}
.caption-strong {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}
.button-large {
  font-family: var(--font-text);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: 0;
}
.button-utility {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: -0.224px;
}
.fine-print {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.12px;
}
.micro-legal {
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.08px;
}
.nav-link {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.12px;
}

/* ── DOUBLE NAVIGATION SYSTEM ── */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.global-nav {
  height: 44px;
  background-color: var(--surface-black);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.global-nav-content {
  width: 100%;
  max-width: 1024px;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.global-nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--on-dark);
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: opacity 0.2s;
}
.global-nav-logo:hover {
  opacity: 0.8;
}

.global-nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.global-nav-links a {
  color: #adadad;
  text-decoration: none;
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: -0.12px;
  transition: color 0.25s;
}

.global-nav-links a:hover,
.global-nav-links a.active {
  color: var(--on-dark);
}

.global-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button inside Global Nav */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background-color 0.2s;
}
.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Frosted Sub-Navigation */
.sub-nav-frosted {
  height: 52px;
  background-color: var(--nav-frosted-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: background-color 0.4s, border-bottom-color 0.4s;
}

.sub-nav-content {
  width: 100%;
  max-width: 1024px;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-nav-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--nav-frosted-text);
  letter-spacing: 0.231px;
}

.sub-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── BUTTON STYLES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.2s, border-color 0.2s, color 0.2s;
  outline: none;
  white-space: nowrap;
}

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

.btn:focus-visible {
  outline: var(--button-focus-outline);
  outline-offset: 2px;
}

/* Primary Capsule Button */
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
.btn-primary:hover {
  background-color: var(--primary-focus);
}

/* Secondary Ghost Pill */
.btn-secondary-pill {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}
.btn-secondary-pill:hover {
  background-color: rgba(0, 102, 204, 0.05);
}
[data-theme="dark"] .btn-secondary-pill {
  color: var(--primary-on-dark);
  border-color: var(--primary-on-dark);
}
[data-theme="dark"] .btn-secondary-pill:hover {
  background-color: rgba(41, 151, 255, 0.05);
}

/* Store Hero Button */
.btn-store-hero {
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-text);
  font-size: 18px;
  font-weight: 300;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
}
.btn-store-hero:hover {
  background-color: var(--primary-focus);
}

/* Dark Utility Button */
.btn-dark-utility {
  background-color: #1d1d1f;
  color: var(--on-dark);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
}
.btn-dark-utility:hover {
  background-color: #272729;
}

/* Pearl Button Capsule */
.btn-pearl-capsule {
  background-color: var(--color-surface-pearl, #fafafc);
  color: var(--color-ink-muted-80, #333333);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  border: 3px solid var(--color-divider-soft, #f0f0f0);
  border-radius: var(--radius-md);
}
.btn-pearl-capsule:hover {
  background-color: #f0f0f4;
}

/* Circular Icon Button */
.btn-icon-circular {
  background-color: var(--surface-chip-translucent);
  color: #1d1d1f;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.btn-icon-circular:hover {
  background-color: rgba(210, 210, 215, 0.8);
}

/* Text Links */
.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link-on-dark {
  color: var(--primary-on-dark);
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.text-link-on-dark:hover {
  text-decoration: underline;
}

/* ── FULL-BLEED INTERACTIVE PRODUCT TILES ── */
.page-wrap {
  padding-top: 96px; /* 44px global-nav + 52px sub-nav */
  min-height: 100vh;
}

.product-tile {
  width: 100%;
  padding: var(--space-section) 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-none);
}

.product-tile-light {
  background-color: var(--tile-light-bg);
  color: var(--tile-light-text);
  transition: background-color 0.4s, color 0.4s;
}

.product-tile-parchment {
  background-color: var(--tile-parchment-bg);
  color: var(--tile-parchment-text);
  transition: background-color 0.4s, color 0.4s;
}

.product-tile-dark {
  background-color: var(--tile-dark-bg);
  color: var(--tile-dark-text);
  transition: background-color 0.4s, color 0.4s;
}

.product-tile-dark-2 {
  background-color: var(--tile-dark2-bg);
  color: var(--on-dark);
}

.product-tile-dark-3 {
  background-color: var(--tile-dark3-bg);
  color: var(--on-dark);
}

.product-tile-black {
  background-color: var(--surface-black);
  color: var(--on-dark);
}

.tile-content {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.tile-label {
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
}
[data-theme="dark"] .tile-label {
  color: var(--primary-on-dark);
}

.tile-headline {
  margin-top: 4px;
}

.tile-tagline {
  max-width: 540px;
  color: var(--tile-light-muted);
}
.product-tile-dark .tile-tagline,
.product-tile-dark-2 .tile-tagline,
.product-tile-dark-3 .tile-tagline,
.product-tile-black .tile-tagline {
  color: var(--tile-dark-muted);
}

.tile-actions {
  display: flex;
  gap: 16px;
  margin-top: var(--space-xs);
  justify-content: center;
  align-items: center;
}

/* Premium Surface Shadow applied only to product image renders resting on surfaces */
.product-render-container {
  margin-top: var(--space-xxl);
  max-width: 600px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.product-render {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.product-render-surface {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--product-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: background-color 0.4s, border-color 0.4s;
}

/* ── PREMIUM CARDS & CONTAINERS ── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1024px;
  margin-top: var(--space-xl);
  padding: 0 var(--space-md);
}

.store-utility-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
  position: relative;
  color: var(--card-text);
  overflow: hidden;
  height: 100%;
}

.store-utility-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
[data-theme="dark"] .store-utility-card:hover {
  border-color: var(--primary-on-dark);
}

.card-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-lg);
  height: 140px;
}

.card-emoji-visual {
  font-size: 64px;
  user-select: none;
}

.card-title {
  color: var(--card-text);
  margin-bottom: var(--space-xxs);
}

.card-desc {
  color: var(--card-text-muted);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.card-action-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* Configurator option chip */
.configurator-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  max-width: 800px;
  width: 100%;
  margin-top: var(--space-md);
}

.configurator-option-chip {
  background-color: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  font-family: var(--font-text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.configurator-option-chip:hover {
  border-color: var(--primary);
}

.configurator-option-chip.selected {
  border: 2px solid var(--primary-focus);
  padding: 11px 15px; /* offset the 2px border */
}

/* Floating sticky bar */
.floating-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--nav-frosted-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--nav-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: transform 0.3s ease;
}

.floating-bar-content {
  width: 100%;
  max-width: 1024px;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── INPUTS & FORM CONTROLS ── */
.search-input-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.search-input {
  width: 100%;
  background-color: var(--input-bg);
  color: var(--input-text);
  font-family: var(--font-text);
  font-size: 17px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-pill);
  padding: 12px 20px 12px 46px;
  height: 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.search-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted-48);
  font-size: 16px;
  pointer-events: none;
}

/* Premium Form Elements */
.premium-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}

.form-label {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tile-light-muted);
  margin-bottom: var(--space-xs);
}
.product-tile-dark .form-label {
  color: var(--tile-dark-muted);
}

.premium-input,
.premium-textarea {
  width: 100%;
  background-color: var(--input-bg);
  color: var(--input-text);
  font-family: var(--font-text);
  font-size: 17px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.premium-input:focus,
.premium-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.premium-input.invalid,
.premium-textarea.invalid {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15) !important;
}

.premium-textarea {
  height: 140px;
  resize: vertical;
}

.field-error {
  color: #ff3b30;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.field-error.show {
  display: block;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.result-banner {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: 14px;
  align-items: center;
  gap: 8px;
}
.result-banner.show {
  display: flex;
}
.success-banner {
  background-color: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  color: #34c759;
}
.error-banner {
  background-color: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.25);
  color: #ff3b30;
}

/* ── DETAILS & CHRONOLOGY TIMELINE ── */
.timeline-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  text-align: left;
}

.timeline-item {
  position: relative;
  padding-left: var(--space-xxl);
  padding-bottom: var(--space-xxl);
  border-left: 2px solid var(--card-border);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  border: 2px solid var(--tile-dark-bg);
}

.timeline-content-box {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition: border-color 0.3s;
}
.timeline-content-box:hover {
  border-color: var(--primary);
}

.timeline-period {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xxs);
}

.timeline-title {
  margin-bottom: var(--space-xxs);
}

.timeline-subtitle {
  color: var(--card-text-muted);
  font-size: 14px;
  margin-bottom: var(--space-sm);
}

.timeline-desc {
  font-size: 15px;
  color: var(--card-text-muted);
}

.timeline-badge {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}
.badge-done {
  background-color: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.2);
  color: #34c759;
}
.badge-wip {
  background-color: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.2);
  color: #ff9500;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* ── SKELETON LOADERS ── */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--tile-light-bg) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-text-title {
  height: 36px;
  width: 50%;
  margin-bottom: 20px;
}
.skel-text-body {
  height: 16px;
  width: 80%;
  margin-bottom: 12px;
}
.skel-card {
  height: 240px;
  border-radius: var(--radius-lg);
}

/* ── MUSEUM GALLERY FOOTER ── */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 5% 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--nav-hairline);
  transition: background-color 0.4s, color 0.4s;
}

.footer-content {
  width: 100%;
  max-width: 1024px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  color: var(--footer-text-strong);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.224px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.footer-links a {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 2.41; /* The signature Apple 2.41 relaxed leading for link lists */
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0;
}

.footer-links a:hover {
  color: var(--footer-text-strong);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: var(--nav-hairline);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.footer-legal-top {
  font-family: var(--font-text);
  font-size: 12px;
  color: var(--footer-text-legal);
  line-height: 1.5;
  letter-spacing: -0.12px;
}

.footer-legal-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--footer-text-legal);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-md);
}

.footer-legal-links a {
  color: var(--footer-text-legal);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--footer-text-strong);
}

/* ── RESPONSIVE RESPONSIVENESS ── */
@media (max-width: 1024px) {
  .global-nav-content, .sub-nav-content, .footer-content {
    max-width: 100%;
  }
}

@media (max-width: 833px) {
  /* Hamburger Menu Placeholder / Simple Mobile adjustments */
  .global-nav-content {
    position: relative;
  }
  .global-nav-links {
    display: none; /* simple collapse for hamburger, or render inline if small */
  }
  .global-nav-links.mobile-show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    background-color: var(--surface-black);
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1001;
    gap: 16px;
  }
  /* Mobile menu button */
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--on-dark);
    font-size: 18px;
    cursor: pointer;
  }
  
  .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .product-tile {
    padding: 64px var(--space-md);
  }
}

@media (max-width: 734px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    padding-left: var(--space-xl);
  }
}

@media (max-width: 640px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-bar-content {
    padding: 0 var(--space-md);
  }
  
  .hero-display {
    font-size: 34px;
  }
}

@media (max-width: 419px) {
  .sub-nav-title {
    font-size: 17px;
  }
  .hero-display {
    font-size: 28px;
  }
}
