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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-feature-settings: 'ss01' 1, 'cv11' 1;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.18), transparent 20%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.03), transparent 30%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  transition: background 220ms ease, color 220ms ease;
}

html[data-theme$='-dark'] body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.015), transparent 22%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.26), transparent 34%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-primary: #f9f9f9;
  --bg-secondary: #efefef;
  --surface-primary: #eeeeee;
  --surface-secondary: #e8e8e8;
  --surface-tertiary: #f3f3f3;
  --surface-contrast: #ffffff;
  --surface-dark: #111111;
  --surface-dark-soft: #1a1a1a;
  --text-primary: #1a1c1c;
  --text-secondary: #474747;
  --text-inverse: #f5f5f5;
  --line-ghost: rgba(198, 198, 198, 0.15);
  --shadow-soft: 0 20px 40px rgba(26, 28, 28, 0.05);
  --shadow-medium: 0 22px 40px rgba(26, 28, 28, 0.07);
  --accent: #000000;
  --accent-soft: #3b3b3b;
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.5rem;
  --nav-blur: blur(12px);
}

html[data-theme='graphite-light'] {
  color-scheme: light;
  --bg-primary: #f9f9f9;
  --bg-secondary: #efefef;
  --surface-primary: #eeeeee;
  --surface-secondary: #e8e8e8;
  --surface-tertiary: #f3f3f3;
  --surface-contrast: #ffffff;
  --surface-dark: #111111;
  --surface-dark-soft: #1a1a1a;
  --text-primary: #1a1c1c;
  --text-secondary: #474747;
  --text-inverse: #f5f5f5;
  --line-ghost: rgba(198, 198, 198, 0.15);
  --shadow-soft: 0 20px 40px rgba(26, 28, 28, 0.05);
  --shadow-medium: 0 22px 40px rgba(26, 28, 28, 0.07);
  --accent: #000000;
  --accent-soft: #3b3b3b;
}

html[data-theme='platinum-light'] {
  color-scheme: light;
  --bg-primary: #f8f9fa;
  --bg-secondary: #edf0f2;
  --surface-primary: #ebeff2;
  --surface-secondary: #e3e8ec;
  --surface-tertiary: #f1f4f6;
  --surface-contrast: #ffffff;
  --surface-dark: #15181b;
  --surface-dark-soft: #1d2126;
  --text-primary: #1a1e21;
  --text-secondary: #4f575d;
  --text-inverse: #f4f7f9;
  --line-ghost: rgba(170, 182, 192, 0.16);
  --shadow-soft: 0 20px 40px rgba(31, 38, 44, 0.05);
  --shadow-medium: 0 22px 40px rgba(31, 38, 44, 0.07);
  --accent: #0f1215;
  --accent-soft: #313841;
}

html[data-theme='stone-light'] {
  color-scheme: light;
  --bg-primary: #f9f8f6;
  --bg-secondary: #f0eeea;
  --surface-primary: #ece9e4;
  --surface-secondary: #e6e1da;
  --surface-tertiary: #f3f1ed;
  --surface-contrast: #ffffff;
  --surface-dark: #171513;
  --surface-dark-soft: #211e1b;
  --text-primary: #201d1a;
  --text-secondary: #5a544c;
  --text-inverse: #f7f3ef;
  --line-ghost: rgba(183, 170, 154, 0.17);
  --shadow-soft: 0 20px 40px rgba(40, 33, 27, 0.05);
  --shadow-medium: 0 22px 40px rgba(40, 33, 27, 0.07);
  --accent: #171311;
  --accent-soft: #3a312a;
}

html[data-theme='champagne-light'] {
  color-scheme: light;
  --bg-primary: #faf7f2;
  --bg-secondary: #f1ece4;
  --surface-primary: #ede6dc;
  --surface-secondary: #e6ddd1;
  --surface-tertiary: #f4efe8;
  --surface-contrast: #fffdf9;
  --surface-dark: #1d1711;
  --surface-dark-soft: #281f16;
  --text-primary: #241d15;
  --text-secondary: #655747;
  --text-inverse: #faf5ee;
  --line-ghost: rgba(189, 166, 142, 0.16);
  --shadow-soft: 0 20px 40px rgba(52, 39, 27, 0.05);
  --shadow-medium: 0 22px 40px rgba(52, 39, 27, 0.07);
  --accent: #1c140d;
  --accent-soft: #483628;
}

html[data-theme='graphite-dark'] {
  color-scheme: dark;
  --bg-primary: #101010;
  --bg-secondary: #151515;
  --surface-primary: #1b1b1b;
  --surface-secondary: #252525;
  --surface-tertiary: #181818;
  --surface-contrast: #2c2c2c;
  --text-primary: #f1f1f1;
  --text-secondary: #b3b3b3;
  --text-inverse: #111111;
  --line-ghost: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 22px 42px rgba(0, 0, 0, 0.24);
  --shadow-medium: 0 18px 32px rgba(0, 0, 0, 0.3);
  --accent: #f2f2f2;
  --accent-soft: #d7d7d7;
}

html[data-theme='platinum-dark'] {
  color-scheme: dark;
  --bg-primary: #12161a;
  --bg-secondary: #171d22;
  --surface-primary: #1c242b;
  --surface-secondary: #26313a;
  --surface-tertiary: #1a2026;
  --surface-contrast: #2d3b46;
  --surface-dark: #0d1216;
  --surface-dark-soft: #12181d;
  --text-primary: #eef4f8;
  --text-secondary: #acbac4;
  --text-inverse: #11171b;
  --line-ghost: rgba(179, 197, 209, 0.13);
  --shadow-soft: 0 22px 42px rgba(2, 8, 13, 0.28);
  --shadow-medium: 0 18px 32px rgba(2, 8, 13, 0.34);
  --accent: #f1f6fa;
  --accent-soft: #d5e0e9;
}

html[data-theme='stone-dark'] {
  color-scheme: dark;
  --bg-primary: #151413;
  --bg-secondary: #1b1918;
  --surface-primary: #24211f;
  --surface-secondary: #2f2a27;
  --surface-tertiary: #201d1b;
  --surface-contrast: #39322d;
  --surface-dark: #12100f;
  --surface-dark-soft: #191614;
  --text-primary: #f2efec;
  --text-secondary: #bab2a9;
  --text-inverse: #151311;
  --line-ghost: rgba(205, 190, 173, 0.12);
  --shadow-soft: 0 22px 42px rgba(11, 9, 8, 0.28);
  --shadow-medium: 0 18px 32px rgba(11, 9, 8, 0.34);
  --accent: #f0e8df;
  --accent-soft: #d4c5b4;
}

html[data-theme='champagne-dark'] {
  color-scheme: dark;
  --bg-primary: #18130f;
  --bg-secondary: #211a14;
  --surface-primary: #2a221b;
  --surface-secondary: #352a20;
  --surface-tertiary: #241c15;
  --surface-contrast: #403225;
  --surface-dark: #120d09;
  --surface-dark-soft: #19120d;
  --text-primary: #f6efe7;
  --text-secondary: #c7b6a3;
  --text-inverse: #1a130d;
  --line-ghost: rgba(222, 191, 159, 0.12);
  --shadow-soft: 0 22px 42px rgba(14, 8, 4, 0.3);
  --shadow-medium: 0 18px 32px rgba(14, 8, 4, 0.35);
  --accent: #f4e8dc;
  --accent-soft: #deccb8;
}

html[data-theme='arctic-light'] {
  color-scheme: light;
  --bg-primary: #f6fafb;
  --bg-secondary: #eaf1f4;
  --surface-primary: #e5edf2;
  --surface-secondary: #dce6ed;
  --surface-tertiary: #eef4f7;
  --surface-contrast: #ffffff;
  --surface-dark: #11191f;
  --surface-dark-soft: #1a252d;
  --text-primary: #1a2329;
  --text-secondary: #51626f;
  --text-inverse: #f2f8fb;
  --line-ghost: rgba(150, 176, 194, 0.16);
  --shadow-soft: 0 20px 40px rgba(24, 42, 54, 0.05);
  --shadow-medium: 0 22px 40px rgba(24, 42, 54, 0.07);
  --accent: #0f1b23;
  --accent-soft: #2c4a5d;
}

html[data-theme='olive-light'] {
  color-scheme: light;
  --bg-primary: #f7f8f4;
  --bg-secondary: #edf0e7;
  --surface-primary: #e8ece0;
  --surface-secondary: #e0e5d6;
  --surface-tertiary: #f0f3ea;
  --surface-contrast: #ffffff;
  --surface-dark: #151912;
  --surface-dark-soft: #1d2418;
  --text-primary: #1f2619;
  --text-secondary: #58664d;
  --text-inverse: #f4f7ee;
  --line-ghost: rgba(157, 170, 139, 0.16);
  --shadow-soft: 0 20px 40px rgba(32, 41, 24, 0.05);
  --shadow-medium: 0 22px 40px rgba(32, 41, 24, 0.07);
  --accent: #141c10;
  --accent-soft: #32432a;
}

html[data-theme='carmine-light'] {
  color-scheme: light;
  --bg-primary: #faf5f5;
  --bg-secondary: #f2e9e8;
  --surface-primary: #eee3e2;
  --surface-secondary: #e7d8d7;
  --surface-tertiary: #f5eded;
  --surface-contrast: #fffefe;
  --surface-dark: #201312;
  --surface-dark-soft: #2a1a19;
  --text-primary: #2a1b1a;
  --text-secondary: #6c4f4c;
  --text-inverse: #faf1f1;
  --line-ghost: rgba(185, 152, 149, 0.16);
  --shadow-soft: 0 20px 40px rgba(54, 33, 31, 0.05);
  --shadow-medium: 0 22px 40px rgba(54, 33, 31, 0.07);
  --accent: #221110;
  --accent-soft: #5a302d;
}

html[data-theme='midnight-light'] {
  color-scheme: light;
  --bg-primary: #f4f6fa;
  --bg-secondary: #eaedf5;
  --surface-primary: #e4e8f2;
  --surface-secondary: #dbe1ee;
  --surface-tertiary: #edf1f8;
  --surface-contrast: #ffffff;
  --surface-dark: #111523;
  --surface-dark-soft: #1a2132;
  --text-primary: #1b2233;
  --text-secondary: #4f5d78;
  --text-inverse: #f2f5fb;
  --line-ghost: rgba(150, 164, 196, 0.16);
  --shadow-soft: 0 20px 40px rgba(24, 33, 55, 0.05);
  --shadow-medium: 0 22px 40px rgba(24, 33, 55, 0.07);
  --accent: #131a2d;
  --accent-soft: #2e3f6e;
}

html[data-theme='arctic-dark'] {
  color-scheme: dark;
  --bg-primary: #0f181f;
  --bg-secondary: #15212a;
  --surface-primary: #1b2a35;
  --surface-secondary: #263947;
  --surface-tertiary: #16222c;
  --surface-contrast: #304755;
  --surface-dark: #0b1218;
  --surface-dark-soft: #101a22;
  --text-primary: #edf5fa;
  --text-secondary: #aac0cf;
  --text-inverse: #10181f;
  --line-ghost: rgba(153, 183, 203, 0.12);
  --shadow-soft: 0 22px 42px rgba(5, 10, 15, 0.3);
  --shadow-medium: 0 18px 32px rgba(5, 10, 15, 0.35);
  --accent: #e7f4fd;
  --accent-soft: #c4deef;
}

html[data-theme='olive-dark'] {
  color-scheme: dark;
  --bg-primary: #12170f;
  --bg-secondary: #192117;
  --surface-primary: #212c1d;
  --surface-secondary: #2b3926;
  --surface-tertiary: #1a2416;
  --surface-contrast: #36472e;
  --surface-dark: #0d130a;
  --surface-dark-soft: #121a0f;
  --text-primary: #eef3e8;
  --text-secondary: #b5c4a8;
  --text-inverse: #131a0f;
  --line-ghost: rgba(166, 184, 145, 0.12);
  --shadow-soft: 0 22px 42px rgba(8, 12, 6, 0.3);
  --shadow-medium: 0 18px 32px rgba(8, 12, 6, 0.35);
  --accent: #e9f0df;
  --accent-soft: #c9d7ba;
}

html[data-theme='carmine-dark'] {
  color-scheme: dark;
  --bg-primary: #1a1111;
  --bg-secondary: #241717;
  --surface-primary: #311e1d;
  --surface-secondary: #3e2726;
  --surface-tertiary: #281817;
  --surface-contrast: #4b302f;
  --surface-dark: #120a0a;
  --surface-dark-soft: #1a1010;
  --text-primary: #f8eded;
  --text-secondary: #ccaeab;
  --text-inverse: #1a1111;
  --line-ghost: rgba(202, 164, 160, 0.12);
  --shadow-soft: 0 22px 42px rgba(12, 6, 6, 0.32);
  --shadow-medium: 0 18px 32px rgba(12, 6, 6, 0.36);
  --accent: #f9eaea;
  --accent-soft: #dfc1be;
}

html[data-theme='midnight-dark'] {
  color-scheme: dark;
  --bg-primary: #0f1421;
  --bg-secondary: #151d2d;
  --surface-primary: #1d273a;
  --surface-secondary: #27344a;
  --surface-tertiary: #172133;
  --surface-contrast: #31405a;
  --surface-dark: #0a0f19;
  --surface-dark-soft: #0f1623;
  --text-primary: #edf1fb;
  --text-secondary: #adb8d3;
  --text-inverse: #111827;
  --line-ghost: rgba(161, 174, 213, 0.12);
  --shadow-soft: 0 22px 42px rgba(4, 7, 15, 0.32);
  --shadow-medium: 0 18px 32px rgba(4, 7, 15, 0.38);
  --accent: #ecf2ff;
  --accent-soft: #cad7f4;
}

/* =========================================
   1. LAYOUT SHELL
   ========================================= */
.site-shell {
  position: sticky;
  top: 0.45rem;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0 0.75rem;
}

.top-nav {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 3.5rem;
  padding: 0.5rem 0.7rem 0.5rem 1rem;
  border-radius: 1.15rem;
  background: var(--surface-contrast);
  background: color-mix(in srgb, var(--surface-contrast) 68%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface-secondary) 72%, transparent);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 14px 32px rgba(20, 20, 20, 0.08);
}

.brand-group {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.brand {
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 1.1rem;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand-kicker {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button,
.connect-button,
.social-pill,
.card-footer-link,
.garden-link,
.footer-links a {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-primary) 74%, transparent);
  color: var(--text-primary);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--surface-secondary) 65%, transparent);
}

.icon-button .material-symbols-outlined {
  font-size: 1rem;
}

.connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-soft);
}

.connect-button:hover,
.connect-button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-soft);
}

.nav-menu-toggle {
  display: inline-flex;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: clamp(0.75rem, calc(50% - 380px), 26vw);
  margin: 0;
  padding: 0.65rem;
  border-radius: 0.95rem;
  background: var(--surface-contrast);
  background: color-mix(in srgb, var(--surface-contrast) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface-secondary) 70%, transparent);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 18px 30px rgba(16, 16, 16, 0.1);
  display: grid;
  gap: 0.5rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu--themes {
  grid-template-columns: repeat(4, 2.45rem);
  gap: 0.45rem;
}

.mobile-theme-option {
  appearance: none;
  border: 0;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.72rem;
  background: color-mix(in srgb, var(--surface-primary) 65%, transparent);
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.mobile-theme-option:hover,
.mobile-theme-option:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--surface-secondary) 74%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text-primary) 18%, transparent);
}

.mobile-theme-option.is-active {
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px color-mix(in srgb, var(--surface-contrast) 90%, transparent);
}

.theme-swatch {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.theme-swatch--graphite {
  background: linear-gradient(140deg, #2f2f31 0%, #d7d7d9 100%);
}

.theme-swatch--platinum {
  background: linear-gradient(140deg, #32424f 0%, #dce5eb 100%);
}

.theme-swatch--stone {
  background: linear-gradient(140deg, #3f342c 0%, #ded1bf 100%);
}

.theme-swatch--champagne {
  background: linear-gradient(140deg, #4f3924 0%, #ead8c2 100%);
}

.theme-swatch--arctic {
  background: linear-gradient(140deg, #2b5876 0%, #d7e9f4 100%);
}

.theme-swatch--olive {
  background: linear-gradient(140deg, #455a2d 0%, #d9e3c7 100%);
}

.theme-swatch--carmine {
  background: linear-gradient(140deg, #703838 0%, #edd3d1 100%);
}

.theme-swatch--midnight {
  background: linear-gradient(140deg, #2e3e68 0%, #d6e0f8 100%);
}

/* =========================================
   2. CONTENT CANVAS
   ========================================= */
.page-content {
  max-width: 1120px;
  margin: 0 auto;
  margin-top: 5rem;
  padding: 1rem 0.75rem 1.2rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(74px, 1fr));
  gap: 8px;
  min-height: calc(100vh - 8.8rem);
}

.bento-card {
  background: var(--surface-primary);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
  opacity: 0.7;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-card:hover {
  background: var(--surface-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text-secondary);
}

.card-label-row--inverted {
  color: rgba(255, 255, 255, 0.74);
}

.card-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-label-icon {
  font-size: 0.95rem;
}

/* =========================================
   3. HERO CARD
   ========================================= */
.bento-card--hero {
  grid-column: 1 / span 5;
  grid-row: 3 / span 4;
  min-height: 21rem;
  justify-content: space-between;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  align-items: start;
  padding-right: clamp(8rem, 16vw, 12rem);
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  flex-wrap: nowrap;
}

.hero-title {
  margin: 0;
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-size: clamp(3rem, 5.8vw, 5.3rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-portrait {
  position: absolute;
  top: 0.95rem;
  right: 1rem;
  margin: 0;
  width: clamp(8.2rem, 13vw, 11rem);
  aspect-ratio: 1;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--surface-contrast);
  box-shadow: var(--shadow-medium);
  flex-shrink: 0;
  z-index: 2;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-role {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  text-transform: none;
}

.hero-summary {
  margin: 0;
  max-width: 34rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.chip-row {
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-social {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
}

.hero-social-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-secondary);
  color: var(--text-primary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

/* =========================================
   4. INFO CARDS
   ========================================= */
.bento-card--time {
  grid-column: 5 / span 2;
  grid-row: 1 / span 2;
  min-height: 10rem;
  justify-content: space-between;
  isolation: isolate;
}

.bento-card--time::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(130% 130% at 50% 50%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.8) 100%),
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.76) 0%,
      rgba(255, 255, 255, 0.3) 16%,
      rgba(255, 255, 255, 0) 32%,
      rgba(255, 255, 255, 0) 68%,
      rgba(255, 255, 255, 0.3) 84%,
      rgba(255, 255, 255, 0.76) 100%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.76) 0%,
      rgba(255, 255, 255, 0.26) 16%,
      rgba(255, 255, 255, 0) 32%,
      rgba(255, 255, 255, 0) 68%,
      rgba(255, 255, 255, 0.26) 84%,
      rgba(255, 255, 255, 0.76) 100%),
    url('../assets/images/map.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.62;
  filter: saturate(0.88) contrast(1.04);
  pointer-events: none;
}

.bento-card--time > * {
  position: relative;
  z-index: 1;
}

html[data-theme$='-dark'] .bento-card--time {
  background: color-mix(in srgb, var(--surface-primary) 88%, #000000);
}

html[data-theme$='-dark'] .bento-card--time::after {
  background-image:
    radial-gradient(130% 130% at 50% 50%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.56) 100%),
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.18) 14%,
      rgba(0, 0, 0, 0) 32%,
      rgba(0, 0, 0, 0) 68%,
      rgba(0, 0, 0, 0.18) 86%,
      rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.16) 14%,
      rgba(0, 0, 0, 0) 32%,
      rgba(0, 0, 0, 0) 68%,
      rgba(0, 0, 0, 0.16) 86%,
      rgba(0, 0, 0, 0.45) 100%),
    url('../assets/images/map.png');
  opacity: 0.46;
  filter: saturate(0.74) contrast(0.94) brightness(0.82);
}

html[data-theme$='-dark'] .time-value {
  color: var(--text-primary);
}

html[data-theme$='-dark'] .time-meta {
  color: color-mix(in srgb, var(--text-primary) 72%, transparent);
}

.time-block {
  display: grid;
  gap: 0.35rem;
}

.time-value {
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.9rem, 2.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.time-meta {
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bento-card--social {
  display: none;
}

.social-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.social-stack--hero {
  justify-content: flex-start;
  margin-top: 0;
}

.social-pill {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 0.25rem;
  background: var(--surface-contrast);
  box-shadow: var(--shadow-soft);
}

.social-pill:hover,
.social-pill:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-secondary);
}

.social-pill .material-symbols-outlined {
  font-size: 0.92rem;
}

.social-svg {
  width: 1rem;
  height: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   5. BRIEF / STACK / GARDEN
   ========================================= */
.bento-card--brief {
  grid-column: 6 / span 3;
  grid-row: 3 / span 3;
  min-height: 16.5rem;
}

.stack-copy {
  display: grid;
  gap: 0.7rem;
}

.stack-copy p,
.garden-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

.card-footer-link,
.garden-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  color: var(--text-primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-footer-link:hover,
.card-footer-link:focus-visible,
.garden-link:hover,
.garden-link:focus-visible {
  transform: translateX(2px);
}

.bento-card--stack {
  grid-column: 6 / span 3;
  grid-row: 6 / span 3;
  min-height: 16.5rem;
}

.stack-list {
  display: grid;
  gap: 0.5rem;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(2.8rem, auto);
  align-content: center;
  margin-block: auto;
  gap: 0.55rem;
}

.toolkit-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: 0;
  min-height: 2.8rem;
  padding: 0.62rem 0.7rem;
  border-radius: 0.35rem;
  background: var(--surface-contrast);
  box-shadow: var(--shadow-soft);
}

.toolkit-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.3rem;
  background: color-mix(in srgb, var(--surface-secondary) 80%, var(--surface-contrast));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line-ghost) 70%, transparent);
  flex-shrink: 0;
}

.toolkit-logo {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
  object-fit: contain;
}

.toolkit-name {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
}

.stack-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface-contrast);
  box-shadow: var(--shadow-soft);
}

.stack-mark {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background: var(--surface-secondary);
  font-size: 0.68rem;
  font-weight: 700;
}

.stack-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.stack-state {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bento-card--garden {
  grid-column: 7 / span 2;
  grid-row: 1 / span 2;
  min-height: 10rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-soft) 100%);
  color: var(--text-inverse);
}

.bento-card--garden .card-label-row,
.bento-card--garden .garden-copy h2,
.bento-card--garden .garden-copy p,
.bento-card--garden .garden-link {
  color: rgba(255, 255, 255, 0.76);
}

.garden-copy {
  display: grid;
  gap: 0.4rem;
  margin-top: auto;
}

.garden-copy h2 {
  margin: 0;
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.92);
}

.garden-link:hover,
.garden-link:focus-visible {
  color: #ffffff;
}

html[data-theme$='-light'] .bento-card--garden:hover,
html[data-theme$='-light'] .bento-card--garden:focus-within {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-dark) 94%, #000000) 0%, color-mix(in srgb, var(--surface-dark-soft) 94%, #000000) 100%);
}

html[data-theme$='-light'] .bento-card--garden .garden-link:hover,
html[data-theme$='-light'] .bento-card--garden .garden-link:focus-visible {
  color: rgba(255, 255, 255, 0.96);
}

/* =========================================
   6. FOOTER
   ========================================= */
.site-footer {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.15rem 0;
  color: var(--text-secondary);
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.icon-button:focus-visible,
.connect-button:focus-visible,
.social-pill:focus-visible,
.card-footer-link:focus-visible,
.garden-link:focus-visible,
.footer-links a:focus-visible,
.mobile-menu a:focus-visible,
.mobile-theme-option:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--text-primary) 40%, transparent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.1rem;
}

.footer-links a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text-primary);
}

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
  .page-content {
    max-width: 1080px;
  }

  .bento-grid {
    gap: 0.8rem;
    min-height: calc(100vh - 8.5rem);
  }

  .bento-card {
    padding: 1.05rem;
  }
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 0.75rem;
    min-height: auto;
  }

  .bento-card {
    min-height: auto;
  }

  .bento-card--hero {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 22rem;
  }

  .bento-card--time,
  .bento-card--brief,
  .bento-card--stack,
  .bento-card--garden {
    grid-column: span 1;
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    padding-inline: 0.5rem;
  }

  .top-nav {
    max-width: 100%;
    min-height: auto;
    padding: 0.5rem 0.65rem 0.5rem 0.8rem;
  }

  .brand-group {
    gap: 0;
  }

  .brand-kicker {
    letter-spacing: 0.1em;
  }

  .page-content {
    padding-top: 0.9rem;
    padding-inline: 0.5rem;
  }

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

  .bento-card,
  .bento-card--hero,
  .bento-card--time,
  .bento-card--brief,
  .bento-card--stack,
  .bento-card--garden {
    grid-column: span 1;
    min-height: auto;
  }

  .bento-card {
    padding: 1rem;
    border-radius: var(--radius-lg);
  }

  .hero-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-layout {
    gap: 0.9rem;
    padding-right: 0;
  }

  .hero-portrait {
    position: static;
    width: 8rem;
    margin-left: auto;
  }

  .hero-title {
    font-size: clamp(2.5rem, 15vw, 3.6rem);
  }

  .site-footer {
    padding-top: 0.45rem;
  }

  .mobile-menu--themes {
    right: 0.5rem;
    grid-template-columns: repeat(4, 2.2rem);
  }

  .mobile-theme-option {
    width: 2.2rem;
    height: 2.2rem;
  }

  .theme-swatch {
    width: 1.38rem;
    height: 1.38rem;
  }
}

@media (max-width: 480px) {
  .top-nav {
    gap: 0.75rem;
  }

  .brand {
    font-size: 0.88rem;
  }

  .icon-button {
    width: 2.2rem;
    height: 2.2rem;
  }

  .social-pill {
    height: 2.1rem;
  }

  .site-footer p,
  .footer-links a {
    font-size: 0.75rem;
  }
}

/* =========================================
   8. SELECTION / FOCUS
   ========================================= */
::selection {
  background: var(--accent);
  color: var(--text-inverse);
}

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