/**
 * MinimalInterior - Storytelling Webapp
 * Modern, elegant, narrative-driven design
 */

:root {
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-accent: #475569;
  --color-border: #e2e8f0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Landing page: no scroll-snap, normal flow, centered content */
html:has(body.page-home),
html:has(body.page-about),
html:has(body.page-choose) {
  scroll-snap-type: none;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.story-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo--image {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav-logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Header socials: mobile menu only (see story-footer-misc.css @media max-width 768px) */
.nav-social-section {
  display: none;
}

@media (min-width: 769px) {
  .story-nav .nav-social-section {
    display: none !important;
  }
}

.nav-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color var(--transition);
}

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

/* Tiny Place dropdown: Shop as subcategory */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.nav-dropdown-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-dropdown-arrow {
  font-size: 0.65em;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 160px;
  padding: 0.5rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  padding-top: 0.625rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-dropdown-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* Header actions: user + cart icons */
.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-user-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-user-link:hover,
.nav-user-link.active {
  color: var(--color-text);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-user-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-user-icon svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

/* Cart: icon only with count badge */
.nav-cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.nav-cart-link:hover,
.nav-cart-link.active {
  color: var(--color-text);
  text-decoration: none;
}

.nav-cart-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cart-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.125rem;
  color: #fff;
  background: var(--color-accent);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Main Content */
.story-main {
  margin-top: 0;
}

.story-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  box-sizing: border-box;
}

/* Hero Section - warm cream + animated diagonal background */
.story-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(60px + var(--space-2xl)) var(--space-md) var(--space-2xl);
  background: #e8ecf1;
  position: relative;
  overflow: hidden;
}

.story-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-hero .hero-bg-layer {
  position: absolute;
  inset: 0;
}

.story-hero .hero-bg-layer > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-hero .hero-diag-1 {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 44px,
    rgba(0,0,0,0.07) 44px,
    rgba(0,0,0,0.07) 46px
  );
  animation: hero-diag-move-1 28s linear infinite;
}

.story-hero .hero-diag-2 {
  background: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 52px,
    rgba(0,0,0,0.05) 52px,
    rgba(0,0,0,0.05) 54px
  );
  animation: hero-diag-move-2 35s linear infinite reverse, hero-diag-pulse 8s ease-in-out infinite;
}

.story-hero .hero-diag-3 {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 38px,
    rgba(0,0,0,0.04) 38px,
    rgba(0,0,0,0.04) 40px
  );
  animation: hero-diag-move-3 42s linear infinite;
}

@keyframes hero-diag-move-1 {
  0%   { background-position: 0 0; }
  100% { background-position: 63px 63px; }
}

@keyframes hero-diag-move-2 {
  0%   { background-position: 0 0; }
  100% { background-position: 75px 75px; }
}

@keyframes hero-diag-move-3 {
  0%   { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

@keyframes hero-diag-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* —— Home hero: bright editorial mesh (matches site creams + slate accents) —— */
.story-hero--editorial {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  background: #e8ecf1;
  color: var(--color-text);
  padding: calc(60px + var(--space-xl)) var(--space-md) var(--space-2xl);
}

.story-hero--editorial.creative-grain--light::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.story-hero-editorial-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 85% at 8% 88%, rgba(255, 255, 255, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 75% 70% at 96% 4%, rgba(255, 255, 255, 0.75) 0%, transparent 48%),
    radial-gradient(ellipse 55% 50% at 52% 48%, rgba(148, 163, 184, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 72% 78%, rgba(71, 85, 105, 0.1) 0%, transparent 50%),
    linear-gradient(
      132deg,
      #f8fafc 0%,
      var(--color-surface) 32%,
      #e8ecf1 52%,
      #eef2f6 78%,
      #f4f5f7 100%
    );
  animation: hero-ed-mesh-drift 22s ease-in-out infinite alternate, hero-ed-mesh-shift 28s ease-in-out infinite;
}

@keyframes hero-ed-mesh-drift {
  0% { filter: brightness(1) saturate(1); }
  100% { filter: brightness(1.06) saturate(1.04); }
}

@keyframes hero-ed-mesh-shift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(1%, -1%, 0) scale(1.015); }
  66% { transform: translate3d(-1.2%, 0.8%, 0) scale(1); }
}

.story-hero-stripes {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(
    -36deg,
    transparent 0,
    transparent 64px,
    rgba(30, 41, 59, 0.045) 64px,
    rgba(30, 41, 59, 0.045) 66px
  );
  animation: hero-ed-stripe-slide 38s linear infinite;
  will-change: transform;
  opacity: 0.95;
}

@keyframes hero-ed-stripe-slide {
  0% { transform: translate(0, 0); }
  100% { transform: translate(52px, 52px); }
}

.story-hero-arch {
  position: absolute;
  border: 1px solid rgba(71, 85, 105, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.story-hero-arch--1 {
  width: min(72vw, 620px);
  height: min(72vw, 620px);
  top: -18%;
  right: -12%;
  border-color: rgba(148, 163, 184, 0.35);
  transform-origin: 40% 60%;
  animation: hero-ed-arch-ccw 160s linear infinite;
}

.story-hero-arch--2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  bottom: 8%;
  left: 55%;
  border-color: rgba(71, 85, 105, 0.11);
  transform-origin: 50% 50%;
  animation: hero-ed-arch-cw 200s linear infinite;
}

@keyframes hero-ed-arch-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes hero-ed-arch-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.story-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
}

.story-hero-orb--warm {
  width: min(300px, 48vw);
  height: min(300px, 48vw);
  bottom: 20%;
  left: 8%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(241, 245, 249, 0.55) 42%,
    transparent 72%
  );
  animation: hero-ed-orb-pulse 7s ease-in-out infinite;
}

.story-hero-orb--cool {
  width: min(260px, 40vw);
  height: min(260px, 40vw);
  top: 18%;
  right: 8%;
  background: radial-gradient(
    circle,
    rgba(226, 232, 240, 0.9) 0%,
    rgba(148, 163, 184, 0.22) 45%,
    transparent 68%
  );
  animation: hero-ed-orb-pulse-alt 9s ease-in-out infinite alternate;
}

@keyframes hero-ed-orb-pulse {
  0%, 100% { opacity: 0.82; transform: scale(1) translate3d(0, 0, 0); }
  50% { opacity: 1; transform: scale(1.06) translate3d(4px, -6px, 0); }
}

@keyframes hero-ed-orb-pulse-alt {
  0%, 100% { opacity: 0.72; transform: scale(1) translate3d(0, 0, 0); }
  50% { opacity: 0.95; transform: scale(1.1) translate3d(-6px, 4px, 0); }
}

.story-hero-content--editorial {
  max-width: 720px;
  width: 100%;
  margin: 0;
  z-index: 3;
}

.story-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.story-title {
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* Hero title: stable for LCP/CLS; shine only */
.hero-animate-title {
  opacity: 1;
  transform: none;
  background: linear-gradient(
    105deg,
    var(--color-text) 0%,
    var(--color-text) 35%,
    rgba(255, 255, 255, 0.9) 48%,
    #fff 50%,
    rgba(255, 255, 255, 0.9) 52%,
    var(--color-text) 65%,
    var(--color-text) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-title-shine 4s ease-in-out 1.2s infinite;
}

@keyframes hero-title-shine {
  0%, 100% { background-position: 120% 50%; }
  50% { background-position: -20% 50%; }
}

/* Light-on-dark title shine (same motion as default hero title) */
.hero-animate-title--dark {
  background: linear-gradient(
    105deg,
    rgba(241, 245, 249, 0.98) 0%,
    rgba(241, 245, 249, 0.98) 32%,
    rgba(255, 255, 255, 1) 48%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.98) 52%,
    rgba(241, 245, 249, 0.98) 68%,
    rgba(241, 245, 249, 0.98) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-title-shine 4s ease-in-out 1.2s infinite;
}

.hero-animate-slogan {
  margin-bottom: var(--space-lg);
}

@keyframes hero-word-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.42em, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-cta-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-slogan-word {
  display: inline-block;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  body.page-home .hero-slogan-word {
    opacity: 0;
    transform: translate3d(0, 0.42em, 0);
    animation: hero-word-rise 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.12s + var(--word-i, 0) * 0.035s);
  }

  body.page-home .btn-hero-cta {
    opacity: 0;
    animation: hero-cta-fade-up 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 1.05s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero-slogan-word,
  body.page-home .btn-hero-cta {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  body.page-home .hero-animate-title {
    animation: none !important;
  }

  body.page-home .hero-animate-title--dark {
    animation: none !important;
    background: none !important;
    color: rgba(248, 250, 252, 1) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
  }

  .story-hero-mesh,
  .story-hero-stripes,
  .story-hero-arch--1,
  .story-hero-arch--2,
  .story-hero-orb {
    animation: none !important;
  }
}

.story-intro {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: var(--space-lg);
}

/* Desktop: smaller hero text + smaller cards and card text, logo visible */
@media (min-width: 769px) {
  body.page-home .story-hero .story-title {
    font-size: 3.25rem !important;
  }
  body.page-home .story-hero .story-intro {
    font-size: 1.125rem !important;
  }
  body.page-home .categories-section {
    padding-top: calc(var(--space-xl) + var(--space-lg));
    padding-bottom: var(--space-xl);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
  .categories-container {
    max-width: 960px;
    gap: var(--space-sm);
  }
  body.page-home .categories-container {
    max-width: 1120px;
    gap: var(--space-lg);
    grid-template-columns: 1fr 1fr;
  }
  .category-card {
    min-height: 260px;
    padding: var(--space-lg);
  }
  .category-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
  }
  .category-description {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .category-tagline {
    font-size: 1.0625rem;
  }
  .btn-story {
    font-size: 0.875rem;
  }
}

/* Hero CTA - special modern pro button with shining border */
.btn-hero-cta {
  display: inline-block;
  margin-top: calc(var(--space-xs) * -0.5);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: transparent;
  border: 2px solid var(--color-text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn-hero-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: shine-border 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine-border {
  0% {
    transform: translateX(-150%) translateY(-150%) rotate(45deg);
  }
  100% {
    transform: translateX(150%) translateY(150%) rotate(45deg);
  }
}

.btn-hero-cta:hover {
  color: var(--color-surface);
  background: var(--color-text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.btn-hero-cta:hover::before {
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%);
}

/* Editorial hero — CTA reads on dark */
.btn-hero-cta--on-dark {
  color: rgba(248, 250, 252, 0.95);
  border-color: rgba(248, 250, 252, 0.55);
}

.btn-hero-cta--on-dark:hover {
  color: var(--color-text);
  background: rgba(248, 250, 252, 1);
  border-color: rgba(248, 250, 252, 1);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
}

/* Categories Section - Two Brands on clean white */
.categories-section {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  background: #ffffff;
  overflow: hidden;
  z-index: 1;
}

.categories-section::before {
  content: none;
}

body.page-home .categories-section {
  padding-top: var(--space-2xl);
}

.categories-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
  justify-items: stretch;
}

.category-card {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: var(--color-surface);
  opacity: 0;
  transform: translateY(36px);
}

/* Slide in when scrolled into view */
.category-card.visible {
  animation: category-card-slide-in 1.2s ease forwards;
}

.category-card.visible:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes category-card-slide-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.category-card.visible:hover {
  transform: translateY(-8px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.category-card-header .category-title {
  margin-bottom: 0;
}

.category-card-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-card-logo-img,
.category-card-logo-svg {
  display: block;
}

.category-card-logo-img {
  width: 56px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
}

.category-card-logo-svg {
  width: 52px;
  height: 26px;
  color: var(--color-text);
}

.category-card-logo-svg svg {
  width: 100%;
  height: 100%;
}

.category-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: 1.3;
}

.category-description {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: var(--space-md);
  flex-grow: 1;
  opacity: 0;
  transform: translateY(14px);
}

/* Description and tagline slide in after card is visible */
.category-card.visible .category-description {
  animation: category-desc-slide-in 1s ease forwards;
}

.category-card.visible:nth-child(1) .category-description {
  animation-delay: 0.35s;
}

.category-card.visible:nth-child(2) .category-description {
  animation-delay: 0.55s;
}

.category-tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  font-weight: 400;
  opacity: 0;
  transform: translateY(14px);
}

.category-card.visible .category-tagline {
  animation: category-desc-slide-in 1s ease forwards;
}

.category-card.visible:nth-child(1) .category-tagline {
  animation-delay: 0.6s;
}

.category-card.visible:nth-child(2) .category-tagline {
  animation-delay: 0.85s;
}

@keyframes category-desc-slide-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons - same outline language as hero CTA, softer for cards */
.btn-story {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  text-align: center;
  width: auto;
}

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

/* About Page - single scrollable flow */
