/* ==========================================================================
   AFS LAB BRAND & LOGO USAGE GUIDELINES
   Design System & Stylesheet — Primary Brand Color: #6c3267 (Royal Plum)
   ========================================================================== */

:root {
  /* Brand Identity Accent: #6c3267 (AFS Royal Plum) */
  /* Brand Identity Accent: #6c3267 (AFS Royal Plum) */
  --afs-primary: #6c3267;
  --afs-primary-hover: #7E3B78;
  --afs-primary-light: #9B4F94;
  --afs-primary-soft: #C57BBF;
  --afs-primary-pale: #F5EAF4;
  --afs-primary-tint: rgba(108, 50, 103, 0.12);
  --afs-primary-glow: rgba(108, 50, 103, 0.35);

  /* Secondary Brand Accent: Latin Blue */
  --afs-blue: #00a3e0;
  --afs-blue-dark: #1b244a;
  --afs-blue-glow: rgba(0, 163, 224, 0.35);
  --afs-blue-pale: #E6F6FD;

  /* Secondary Accents */
  --afs-gold: #D4AF37;
  --afs-white: #FFFFFF;
  --afs-slate-50: #F8FAFC;
  --afs-slate-100: #F1F5F9;
  --afs-slate-200: #E2E8F0;
  --afs-slate-300: #CBD5E1;
  --afs-slate-400: #94A3B8;
  --afs-slate-500: #64748B;
  --afs-slate-700: #334155;
  --afs-slate-800: #1E293B;
  --afs-slate-900: #0F172A;

  /* Theme Defaults (Sleek Neutral Dark Mode) */
  --bg-page: #0B0E14;
  --bg-card: rgba(18, 22, 32, 0.75);
  --bg-card-solid: #131722;
  --bg-card-hover: #191E2C;
  --bg-panel: rgba(15, 19, 28, 0.88);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-active: var(--afs-primary);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 45px -10px rgba(0, 0, 0, 0.7);
  --shadow-brand: 0 12px 32px -6px rgba(108, 50, 103, 0.4);
  --glow-radial: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);

  /* Typography */
  --font-brand: 'Corporative Alt', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables (Clean Crisp Neutral Light) */
[data-theme="light"] {
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-solid: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-panel: rgba(255, 255, 255, 0.95);
  --border-subtle: #E2E8F0;
  --border-hover: #CBD5E1;
  --border-active: var(--afs-primary);
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
  --shadow-brand: 0 12px 28px -6px rgba(108, 50, 103, 0.22);
  --glow-radial: radial-gradient(circle at 50% 0%, rgba(108, 50, 103, 0.04) 0%, transparent 65%);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  background-image: var(--glow-radial);
  background-attachment: fixed;
}

/* Typography Presets */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-brand);
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--text-main);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo-svg {
  width: auto;
  height: 40px;
  max-width: 55px;
  flex-shrink: 0;
  color: var(--afs-primary-light);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  display: block;
}

.nav-logo-group:hover .nav-logo-svg {
  transform: scale(1.08);
  opacity: 0.92;
}

.nav-title-wrap {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nav-brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--afs-primary-light);
  font-weight: 600;
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--afs-primary-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--afs-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--afs-primary), #8E4487);
  color: #FFFFFF;
  box-shadow: 0 4px 18px var(--afs-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(108, 50, 103, 0.55);
  background: linear-gradient(135deg, #8E4487, var(--afs-primary));
}

.btn-secondary {
  background: var(--bg-panel);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.theme-toggle-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--afs-primary-light);
  color: var(--afs-primary-light);
  transform: rotate(20deg);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 50, 103, 0.2);
  border: 1px solid rgba(155, 79, 148, 0.4);
  color: var(--afs-primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--afs-primary-light);
  box-shadow: 0 0 10px var(--afs-primary);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-headline {
  font-size: 3.4rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

.hero-headline span.gradient-text {
  background: linear-gradient(135deg, #B865B1, #DDA3D6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--afs-primary-light);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Showcase Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(108, 50, 103, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-stage-box {
  background: #140713;
  border-radius: var(--radius-md);
  padding: 50px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  min-height: 320px;
  transition: var(--transition);
}

.hero-logo-img {
  max-width: 80%;
  max-height: 220px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.hero-stage-box:hover .hero-logo-img {
  transform: scale(1.03);
}

.hero-card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections General */
section {
  padding: 70px 0;
  position: relative;
}

.section-header {
  margin-bottom: 48px;
}

.section-kicker {
  font-family: var(--font-brand);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--afs-primary-light);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}

/* Cards Grids */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cards-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Anatomy Section */
.anatomy-viewport {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.anatomy-stage {
  background: #140713;
  border-radius: var(--radius-md);
  padding: 50px 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.anatomy-logo-svg {
  width: 82%;
  height: auto;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.overlay-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, rgba(155, 79, 148, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(155, 79, 148, 0.2) 1px, transparent 1px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.overlay-grid.active { opacity: 1; }

.overlay-clearspace {
  position: absolute;
  border: 2px dashed rgba(155, 79, 148, 0.9);
  background: rgba(108, 50, 103, 0.18);
  top: 30px;
  left: 45px;
  right: 45px;
  bottom: 30px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.overlay-clearspace.active { opacity: 1; }

.clearspace-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--afs-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.anatomy-toggles {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.toggle-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toggle-chip.active {
  background: var(--afs-primary);
  color: #FFFFFF;
  border-color: var(--afs-primary-light);
  box-shadow: 0 4px 14px var(--afs-primary-glow);
}

.anatomy-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.anatomy-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.point-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(108, 50, 103, 0.25);
  color: var(--afs-primary-light);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid rgba(155, 79, 148, 0.4);
}

.point-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.point-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Lockup Cards */
.lockup-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.lockup-preview-area {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  position: relative;
  transition: background 0.3s ease;
}

.lockup-img {
  max-width: 85%;
  max-height: 82%;
  width: auto;
  height: auto;
  transition: transform 0.25s ease;
}

.lockup-card:hover .lockup-img {
  transform: scale(1.03);
}

.lockup-details {
  padding: 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lockup-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.lockup-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.lockup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.bg-switcher-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bg-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  position: relative;
  display: inline-block;
}

.bg-dot:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.7);
}

.bg-dot.active {
  transform: scale(1.2);
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px var(--afs-primary-light), 0 3px 8px rgba(0, 0, 0, 0.5) !important;
}

.bg-dot.plum { 
  background: #6c3267; 
  border-color: rgba(255, 255, 255, 0.3);
}

.bg-dot.white { 
  background: #FFFFFF; 
  border-color: rgba(255, 255, 255, 0.5); 
}

/* Highly visible unselected Black selector with high-contrast dual ring */
.bg-dot.black { 
  background: #000000; 
  border: 2px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.bg-dot.black:hover {
  border-color: #FFFFFF !important;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.5);
}

.bg-dot.black.active {
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2.5px var(--afs-primary-light), inset 0 0 0 1.5px rgba(0, 0, 0, 0.9), 0 4px 10px rgba(0, 0, 0, 0.8) !important;
}

.bg-dot.night { 
  background: #0B0E14; 
  border-color: rgba(255, 255, 255, 0.45);
}

.bg-dot.blue { background: #00a3e0; }
.bg-dot.navy { background: #1b244a; }
.bg-dot.deep { background: #2A0E28; }

/* Color Palette Cards */
.color-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.color-swatch {
  height: 140px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: transform 0.3s ease;
}

.color-card:hover .color-swatch {
  transform: scale(1.02);
}

.wcag-badge {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-info {
  padding: 20px;
  background: var(--bg-card);
}

.color-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.color-role {
  font-size: 0.8rem;
  color: var(--afs-primary-light);
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.color-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.color-code-item {
  display: flex;
  flex-direction: column;
}

.color-code-item span:first-child {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-body);
}

/* Typography Specimen */
.type-specimen-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}

.type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.type-brand-name {
  font-family: 'Corporative Alt', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
}

.type-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.type-weights-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.weight-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: baseline;
  gap: 30px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.weight-meta {
  display: flex;
  flex-direction: column;
}

.weight-meta-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.weight-meta-val {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.weight-sample {
  font-family: 'Corporative Alt', sans-serif;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Type Tester */
.type-tester-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 30px;
}

.tester-controls {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.tester-input {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  width: 100%;
}

.tester-input:focus {
  outline: none;
  border-color: var(--afs-primary);
}

.tester-slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tester-select {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.tester-output-area {
  min-height: 140px;
  display: flex;
  align-items: center;
  font-family: 'Corporative Alt', sans-serif;
  font-size: 42px;
  color: var(--afs-primary-light);
  word-break: break-word;
  transition: all 0.2s ease;
}

/* ==========================================================================
   CORPORATE TOUCHPOINTS: EMAIL SIGNATURES & STATIONERY
   ========================================================================== */
.corporate-suite-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.corporate-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.corporate-tab {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.corporate-tab.active {
  background: var(--afs-primary);
  color: #FFFFFF;
  border-color: var(--afs-primary-light);
  box-shadow: 0 4px 14px var(--afs-primary-glow);
}

/* Email Signature Card Preview */
.email-signature-card {
  background: #FFFFFF;
  color: #1A1A1A;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-family: var(--font-body);
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid #E2E8F0;
}

.sig-header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #6c3267;
}

.sig-logo-img {
  height: 52px;
  width: auto;
}

.sig-identity h3 {
  font-family: 'Corporative Alt', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #140713;
  margin-bottom: 2px;
  line-height: 1.1;
}

.sig-identity .sig-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #6c3267;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sig-identity .sig-dept {
  font-size: 0.8rem;
  color: #64748B;
}

.sig-body-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding-top: 18px;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.6;
}

.sig-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sig-contact-item a {
  color: #6c3267;
  font-weight: 600;
}

.sig-footer-disclaimer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed #CBD5E1;
  font-size: 0.72rem;
  color: #94A3B8;
  line-height: 1.4;
}

/* Sizing Ladder */
.ladder-box {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: flex-end;
  gap: 32px;
  overflow-x: auto;
  margin-top: 24px;
}

.ladder-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ladder-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Download Center */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.download-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.download-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.download-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afs-primary-light);
  flex-shrink: 0;
}

.download-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.download-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.download-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #6c3267;
  border: 1px solid #9B4F94;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
footer {
  background: #080307;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  margin-top: 80px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--afs-primary-light);
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .anatomy-viewport {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cards-grid-3, .cards-grid-4, .cards-grid-5, .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sig-body-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 0;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.mobile-menu-btn .line-top,
.mobile-menu-btn .line-mid,
.mobile-menu-btn .line-bot {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mobile-menu-btn.active .line-top {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active .line-mid {
  opacity: 0;
}

.mobile-menu-btn.active .line-bot {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 14, 20, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 0 60px;
}

.mobile-nav-drawer.open {
  display: block;
  animation: mobileNavFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileNavFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
  list-style: none;
  padding: 0 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 22px;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.3rem;
  }
  .cards-grid-2, .cards-grid-3, .cards-grid-4, .cards-grid-5, .download-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }

  /* Responsive Typography Specimen System */
  .type-specimen-box {
    padding: 24px 16px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }
  .type-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
  .type-brand-name {
    font-size: 1.6rem;
  }
  .type-meta {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .weight-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }
  .weight-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .weight-sample {
    font-size: 1.15rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .type-tester-card {
    padding: 20px 16px;
  }
  .tester-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tester-output-area {
    font-size: 1.5rem !important;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 18px 14px;
  }
  .email-signature-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .weight-sample {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* -------------------------------------------------------------
   Field Photography & Logo Juxtaposition Showcase
   ------------------------------------------------------------- */
.photo-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
  background: #0B0E14;
}

.photo-hero-wrap {
  position: relative;
  height: 440px;
  width: 100%;
  overflow: hidden;
}

.photo-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-hero-card:hover .photo-hero-img {
  transform: scale(1.02);
}

.photo-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.8) 0%, rgba(11, 14, 20, 0.2) 40%, rgba(11, 14, 20, 0.85) 100%);
  pointer-events: none;
}

.photo-hero-header-overlay {
  position: absolute;
  top: 32px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 10;
}

.photo-hero-footer-overlay {
  position: absolute;
  bottom: 28px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 10;
}

.photo-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .photo-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.photo-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.photo-card-wrap {
  position: relative;
  height: 290px;
  overflow: hidden;
  background: #0B0E14;
}

.photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-card-img {
  transform: scale(1.03);
}

.photo-card-scrim-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.65) 0%, transparent 45%, rgba(11, 14, 20, 0.8) 100%);
}

.photo-card-scrim-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 14, 20, 0.85) 0%, rgba(11, 14, 20, 0.3) 50%, transparent 100%);
}

.photo-card-content {
  padding: 22px 24px;
  background: var(--bg-card);
}

.photo-frosted-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(19, 23, 34, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.photo-frosted-pill.light {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #111827;
}

.photo-rule-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
}
.photo-rule-badge.pass {
  background: rgba(34, 197, 94, 0.18);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.photo-rule-badge.warn {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.photo-rule-badge.fail {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* -------------------------------------------------------------
   Hero Photographic Immersive Backdrop
   ------------------------------------------------------------- */
.hero-section.photo-backed {
  position: relative;
  overflow: hidden;
  background: #0B0E14;
}

.hero-photo-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.32;
  filter: saturate(0.85) contrast(1.1);
  transform: scale(1.03);
  transition: transform 12s ease-out;
  pointer-events: none;
}

.hero-photo-scrim-deep {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, rgba(108, 50, 103, 0.35) 0%, transparent 60%),
              linear-gradient(180deg, rgba(11, 14, 20, 0.85) 0%, rgba(11, 14, 20, 0.65) 45%, rgba(11, 14, 20, 0.98) 100%);
  pointer-events: none;
}

/* -------------------------------------------------------------
   Story Cards with Photographic Headers (Section 01)
   ------------------------------------------------------------- */
.story-photo-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.story-photo-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.story-photo-thumb-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #0B0E14;
}

.story-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-photo-card:hover .story-photo-thumb {
  transform: scale(1.05);
}

.story-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 14, 20, 0.9) 0%, rgba(11, 14, 20, 0.2) 60%, transparent 100%);
}

.story-photo-stamp {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.story-photo-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* -------------------------------------------------------------
   Corridor Filter Navigation & Multi-Column Photo Galleries
   ------------------------------------------------------------- */
.corridor-tabs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.corridor-tab-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.corridor-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-hover);
}

.corridor-tab-btn.active {
  background: var(--afs-primary);
  border-color: var(--afs-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(108, 50, 103, 0.4);
}

.corridor-tab-count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.photo-gallery-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 1024px) {
  .photo-gallery-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .photo-gallery-3col {
    grid-template-columns: 1fr;
  }
}

.photo-gallery-2col-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 860px) {
  .photo-gallery-2col-wide {
    grid-template-columns: 1fr;
  }
}

.photo-gps-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94A3B8;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.photo-anchor-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.14);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.face-safety-boundary {
  position: absolute;
  border: 2px dashed rgba(248, 113, 113, 0.8);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6px 8px;
}

.face-safety-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: #F87171;
  background: rgba(11, 14, 20, 0.85);
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}



/* Cinematic Centered Monumental Hero */
.hero-cinematic {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 90px;
  text-align: center;
}

.hero-cinematic .hero-photo-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
  filter: brightness(0.95);
}

.hero-cinematic .hero-solid-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, 0.74);
  z-index: 2;
}

.hero-center-content {
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-monumental-logo-wrap {
  margin-bottom: 24px;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease;
}

.hero-monumental-logo-wrap:hover {
  transform: scale(1.02);
}

.hero-monumental-logo {
  height: 185px;
  width: auto;
  max-width: 90vw;
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--afs-primary-pale);
  background: rgba(108, 50, 103, 0.4);
  border: 1px solid rgba(197, 123, 191, 0.5);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
}

.hero-main-title {
  font-family: var(--font-brand);
  font-size: 4.2rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 8px;
}

.hero-sub-acronym {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--afs-primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.hero-main-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-center-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 0.95rem;
}
