/* ==========================================================================
   NAZIM KHWAJA - EXECUTIVE DESIGN SYSTEM
   Authoritative Reference: NK Brand Identity & Monogram Architecture
   Palette: Obsidian Dark (#0B0D10) & Electric Cyan/Azure (#00E5FF / #018DFE)
   Dual-Theme Architecture (Default Obsidian Dark | Clean Canvas Light)
   Typography: Space Grotesk / Montserrat (Display) + Inter (UI/Body) + JetBrains Mono (Tech)
   ========================================================================== */

:root {
  /* Brand Foundations (NK Monogram Spectrum) */
  --brand-cyan: #00E5FF;
  --brand-mint: #00F5C4;
  --brand-blue: #018DFE;
  --brand-orange: #00E5FF; /* Backward-compatibility alias mapped to primary brand cyan */
  --brand-black: #000000;
  --brand-white: #FFFFFF;

  /* Semantic Signal Colors */
  --signal-blue: #018DFE;
  --signal-violet: #8B5CF6;
  --signal-mint: #00F5C4;

  /* Neutral Scale (Design.md authoritative steps) */
  --neutral-950: #000000;
  --neutral-900: #111111;
  --neutral-800: #252525;
  --neutral-700: #3A3A3A;
  --neutral-600: #6B6B6B;
  --neutral-500: #8F8F8F;
  --neutral-400: #BDBDBD;
  --neutral-300: #D6D6D6;
  --neutral-200: #E6E6E6;
  --neutral-100: #F3F3F3;
  --neutral-50:  #F8F8F8;
  --neutral-0:   #FFFFFF;

  /* Active Tokens (Default Dark / Technical Monolith) */
  --bg-primary: oklch(14% 0.01 250);
  --bg-secondary: oklch(16% 0.01 250);
  --bg-tertiary: oklch(18% 0.012 250);
  --surface-card: oklch(18% 0.01 250);
  --surface-card-hover: oklch(21% 0.012 250);
  --surface-elevated: oklch(20% 0.012 250);

  --border-subtle: oklch(24% 0.01 250);
  --border-medium: oklch(30% 0.015 250);
  --border-accent: oklch(76% 0.14 150 / 0.35);
  --border-accent-strong: oklch(76% 0.14 150);

  --accent-orange: oklch(76% 0.14 150); /* Cyber Mint (unified interactive accent) */
  --accent-orange-hover: oklch(82% 0.15 150);
  --accent-orange-glow: oklch(76% 0.14 150 / 0.22);
  --accent-orange-subtle: oklch(76% 0.14 150 / 0.10);
  --accent-orange-text: oklch(76% 0.14 150);

  --accent-blue: oklch(72% 0.14 220);
  --accent-blue-subtle: oklch(72% 0.14 220 / 0.10);
  --accent-violet: oklch(72% 0.16 295);
  --accent-violet-subtle: oklch(72% 0.16 295 / 0.10);
  --accent-mint: oklch(76% 0.14 150);
  --accent-mint-subtle: oklch(76% 0.14 150 / 0.10);

  --text-primary: oklch(93% 0.01 250);
  --text-secondary: oklch(78% 0.01 250);
  --text-muted: oklch(65% 0.01 250);
  --text-inverse: oklch(14% 0.01 250);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 8px 30px oklch(76% 0.14 150 / 0.25);

  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, Monaco, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.38s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1240px;
}

/* Light Mode Override (Stark Gallery - Matte Chalk Paper & Emerald Accent) */
[data-theme="light"] {
  --bg-primary: oklch(98% 0.005 250);
  --bg-secondary: oklch(96% 0.005 250);
  --bg-tertiary: oklch(92% 0.005 250);
  --surface-card: oklch(94% 0.005 250);
  --surface-card-hover: oklch(96% 0.006 250);
  --surface-elevated: oklch(99% 0.003 250);

  --border-subtle: oklch(88% 0.005 250);
  --border-medium: oklch(82% 0.008 250);
  --border-accent: oklch(55% 0.18 150 / 0.35);
  --border-accent-strong: oklch(55% 0.18 150);

  --accent-orange: oklch(55% 0.18 150); /* Emerald Focal Accent */
  --accent-orange-hover: oklch(48% 0.19 150);
  --accent-orange-glow: oklch(55% 0.18 150 / 0.16);
  --accent-orange-subtle: oklch(55% 0.18 150 / 0.08);
  --accent-orange-text: oklch(55% 0.18 150);

  --accent-blue: oklch(55% 0.18 240);
  --accent-blue-subtle: oklch(55% 0.18 240 / 0.08);
  --accent-violet: oklch(58% 0.18 295);
  --accent-violet-subtle: oklch(58% 0.18 295 / 0.08);
  --accent-mint: oklch(55% 0.18 150);
  --accent-mint-subtle: oklch(55% 0.18 150 / 0.08);

  --text-primary: oklch(18% 0.01 250);
  --text-secondary: oklch(38% 0.01 250);
  --text-muted: oklch(48% 0.01 250);
  --text-inverse: oklch(98% 0.005 250);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.09);
  --shadow-accent: 0 6px 20px oklch(55% 0.18 150 / 0.18);
}

/* Full-Screen Organic Liquid Theme Transition */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: dark;
}

[data-theme="light"] { color-scheme: light; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-orange);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Layout Containers */
.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Spacing - Equal padding above and below with comfortable breathing room */
section {
  padding: 4.5rem 0;
  position: relative;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   NAVIGATION & CATEGORIZED DROPDOWN SYSTEM
   ========================================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal), border-color var(--transition-normal);
}
[data-theme="light"] #site-header {
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid var(--border-subtle);
}

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

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.18rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.brand .brand-mark-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.brand .brand-mark-img {
  height: 28px;
  width: auto;
  max-width: 58px;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.40));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.brand:hover .brand-mark-img {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 12px rgba(0, 229, 255, 0.65));
}
[data-theme="light"] .brand .brand-mark-img {
  filter: drop-shadow(0 2px 6px rgba(0, 119, 254, 0.25));
}
[data-theme="light"] .brand:hover .brand-mark-img {
  filter: drop-shadow(0 3px 10px rgba(0, 119, 254, 0.45));
}
.brand .brand-name {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
}
.brand .brand-dot {
  color: var(--accent-orange);
  margin-left: 0;
  text-shadow: 0 0 10px var(--accent-orange-glow);
}
.brand .brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  border: 1px solid var(--border-accent);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Nav Links & Grouped Dropdowns */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
}
.nav-link:hover,
.dropdown-trigger:hover,
.nav-item:hover .dropdown-trigger,
.nav-item.open .dropdown-trigger {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .dropdown-trigger:hover,
[data-theme="light"] .nav-item:hover .dropdown-trigger,
[data-theme="light"] .nav-item.open .dropdown-trigger {
  background: rgba(0, 0, 0, 0.05);
}

.nav-link.active,
.nav-item.active-parent .dropdown-trigger {
  color: var(--text-primary);
  font-weight: 600;
}

.dropdown-chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}
.nav-item:hover .dropdown-chevron,
.nav-item.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Overlay */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1050;
  animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Invisible bridge preventing cursor gap dropoff */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  display: flex;
}

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

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.dropdown-item:hover {
  background: var(--surface-card-hover);
}
[data-theme="light"] .dropdown-item:hover {
  background: var(--neutral-50);
}
.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dropdown-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Performance Trend Badges (Green / Red metrics) */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.stat-green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
[data-theme="light"] .stat-green {
  background: #E8F5E9;
  color: #15803d;
  border: 1px solid #A5D6A7;
}
.stat-red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
[data-theme="light"] .stat-red {
  background: #FFEBEE;
  color: #b91c1c;
  border: 1px solid #EF9A9A;
}

/* Expandable Experience Details */
.experience-details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}
.experience-details summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-orange);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
  transition: color var(--transition-fast);
}
.experience-details summary:hover {
  color: var(--accent-orange-hover);
}
.experience-details summary::-webkit-details-marker {
  display: none;
}
.experience-details summary::after {
  content: "▾";
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}
.experience-details[open] summary::after {
  transform: rotate(180deg);
}
.experience-details-content {
  margin-top: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.experience-task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.experience-task-list li {
  position: relative;
  padding-left: 1.2rem;
}
.experience-task-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: 900;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal), box-shadow var(--transition-normal);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #00F5C4 0%, #00E5FF 50%, #018DFE 100%);
  color: #07151D;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.35);
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00E5BA 0%, #00D2EB 50%, #0078E6 100%);
  color: #07151D;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 229, 255, 0.50);
}
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0084D1 0%, #0077FE 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 119, 254, 0.25);
}
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #0070B8 0%, #0066D6 100%);
  color: #FFFFFF;
}
.btn-secondary {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background: var(--surface-card-hover);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 0.8rem 1.85rem;
  font-size: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}
.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}
.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
[data-theme="light"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="light"] .theme-toggle-btn .moon-icon { display: none; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--border-subtle);
}
.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-nav-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  margin-top: 0.5rem;
}
.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav a.active {
  color: var(--accent-orange);
}

/* ==========================================================================
   HERO & TWO-COLUMN ASYMMETRICAL FIGMA BLUEPRINT
   ========================================================================== */
.page-hero {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 80% 20%, var(--accent-orange-subtle), transparent 45%);
}

h1.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.accent-text {
  color: var(--accent-orange);
  background: linear-gradient(135deg, #00F5C4 0%, #00D2FF 50%, #018DFE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .accent-text {
  background: linear-gradient(135deg, #00A887 0%, #0084D1 50%, #0059C6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Asymmetrical Two-Column Headline Matrix (Figma Blueprint Rule) */
.split-headline-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.split-headline-left h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.split-headline-right p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Hero Impact Metrics Bar */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.metric-box {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}
.metric-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}
.metric-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.metric-val.accent {
  color: var(--accent-orange);
}
.metric-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.metric-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1rem;
}
.card-tag.orange {
  color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  border: 1px solid var(--border-accent);
}
.card-tag.blue {
  color: var(--accent-blue);
  background: var(--accent-blue-subtle);
  border: 1px solid rgba(79, 124, 255, 0.3);
}
.card-tag.violet {
  color: var(--accent-violet);
  background: var(--accent-violet-subtle);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.card-tag.mint {
  color: var(--accent-mint);
  background: var(--accent-mint-subtle);
  border: 1px solid rgba(53, 201, 165, 0.3);
}

/* Aligned Card Header Labels Container */
.card-header-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}
.card-header-labels .card-tag,
.card-header-labels .stat-pill {
  margin-bottom: 0 !important;
  white-space: nowrap;
  max-width: 100%;
}

/* Expandable Industry Card UI */
.industry-expandable {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  overflow: hidden;
  background: var(--surface-card);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.industry-expandable summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-orange);
  background: var(--accent-orange-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  user-select: none;
}
.industry-expandable summary::-webkit-details-marker {
  display: none;
}
.industry-expandable summary::after {
  content: "+";
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform var(--transition-fast);
}
.industry-expandable[open] summary {
  border-bottom: 1px solid var(--border-medium);
}
.industry-expandable[open] summary::after {
  content: "−";
}
.industry-expandable-content {
  padding: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Horizontal Scrollable Timeline */
.timeline-scroll-wrap {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 1.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.timeline-scroll-wrap::-webkit-scrollbar {
  height: 6px;
}
.timeline-scroll-wrap::-webkit-scrollbar-track {
  background: var(--surface-card);
  border-radius: var(--radius-full);
}
.timeline-scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}
.timeline-scroll-item {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

/* Executive Headshot in CTA Card */
.cta-headshot {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-orange);
  object-fit: cover;
  display: block;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 14px var(--accent-orange-glow);
}

/* ==========================================================================
   PRICING PACKAGE UI COMPONENT (Price package UI appearance.jpeg)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
  align-items: stretch;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-accent);
}
.pricing-card.featured {
  border-color: var(--border-accent-strong);
  box-shadow: 0 12px 36px var(--accent-orange-glow);
}

.pricing-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.pricing-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-orange-subtle);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
}
.pricing-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
  border: 1px solid var(--border-accent);
}

.pricing-tier {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pricing-rate-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.pricing-rate {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-period {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-lead {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.75rem;
  min-height: 44px;
}

.pricing-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.75rem 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.45;
}
.pricing-feature-check {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--accent-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   SCROLL REVEAL & MOTION (Hybrid HamishMW + MoncyDev)
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Stagger children of revealed grids without JS: cards rise in sequence */
.scroll-reveal.revealed .card:nth-child(2),
.scroll-reveal.revealed article:nth-child(2) { transition-delay: 0.06s; }
.scroll-reveal.revealed .card:nth-child(3),
.scroll-reveal.revealed article:nth-child(3) { transition-delay: 0.12s; }
.scroll-reveal.revealed .card:nth-child(4),
.scroll-reveal.revealed article:nth-child(4) { transition-delay: 0.18s; }
.scroll-reveal.revealed .card:nth-child(5),
.scroll-reveal.revealed article:nth-child(5),
.scroll-reveal.revealed .card:nth-child(6),
.scroll-reveal.revealed article:nth-child(6) { transition-delay: 0.24s; }
/* Gentle hero entrance on load */
.home-hero-copy { animation: nk-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.home-hero .portrait-panel { animation: nk-rise 0.7s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes nk-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Native disclosure styling for FAQ / framework details */
details.nk-details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  padding: 1rem 1.25rem;
}
details.nk-details + details.nk-details { margin-top: 0.75rem; }
details.nk-details summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: inside;
}
details.nk-details summary::marker { color: var(--accent-orange-text); }
details.nk-details p { margin-top: 0.6rem; color: var(--text-secondary); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .home-hero-copy, .home-hero .portrait-panel { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   BRAND EXPERIENCE LIST (Text-Based Uninfringing Roster)
   ========================================================================== */
.brand-roster-wrap {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
}
.brand-roster-headline {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.brand-roster-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}
.brand-roster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand-pill {
  padding: 0.45rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   GROWTH OS BLUEPRINT & NODES
   ========================================================================== */
.blueprint-container {
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.blueprint-modes-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.blueprint-mode-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.blueprint-mode-btn:hover {
  color: var(--text-primary);
  background: var(--surface-card-hover);
}
.blueprint-mode-btn.active {
  color: #FFFFFF;
  background: var(--accent-orange);
}

.blueprint-stage-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}
.blueprint-node {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
}
.blueprint-node:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.blueprint-node-step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}
.blueprint-node-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.blueprint-node-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full {
  grid-column: span 2;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.form-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-glow);
}

/* ========================================================================== 
   AUDIT REVISION - EVIDENCE-LED PORTFOLIO
   ========================================================================== */
.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;
}

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

button, a { touch-action: manipulation; }

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

#form-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--accent-orange-subtle);
}
#form-feedback strong { display: block; margin-bottom: 0.25rem; color: var(--accent-orange); }
#form-feedback p { color: var(--text-secondary); font-size: 0.9rem; }

.home-hero {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background:
    radial-gradient(circle at 86% 18%, var(--accent-blue-subtle), transparent 30rem),
    radial-gradient(circle at 8% 86%, var(--accent-mint-subtle), transparent 26rem);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.62fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}
.home-hero h1 {
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.98;
  text-wrap: balance;
}
.home-hero .hero-lead { max-width: 42rem; margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.15rem; color: var(--text-muted); font-size: 0.9rem; }
.portrait-panel {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
}
.portrait-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.portrait-panel figcaption { display: grid; gap: 0.15rem; padding: 1rem 1.25rem 1.15rem; }
.portrait-panel figcaption strong { font-size: 1rem; }
.portrait-panel figcaption span { color: var(--text-muted); font-size: 0.82rem; }

/* The contact portrait carries a longer caption than the homepage card. */
.contact-split-grid aside { min-width: 0; }
.contact-split-grid .portrait-panel { overflow: visible; }
.contact-split-grid .portrait-panel img {
  display: block;
  border-radius: calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 0 0;
}
.contact-split-grid .portrait-caption {
  overflow-wrap: anywhere;
  padding: 1rem 1.25rem 1.15rem;
}
.proof-strip { padding: 1.25rem 0; border-block: 1px solid var(--border-subtle); background: var(--surface-card); }
.section-kicker { color: var(--text-muted); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.85rem; }
.focus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.focus-list div { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; font-weight: 600; }
.focus-list svg { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; fill: none; stroke: var(--accent-orange); stroke-width: 1.8; }
.operating-loop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border-medium); border-radius: var(--radius-lg); background: var(--border-medium); }
.operating-loop article { min-height: 14rem; padding: 1.75rem; background: var(--surface-card); }
.operating-loop span { display: block; margin-bottom: 3rem; color: var(--accent-orange); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; }
.operating-loop h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.operating-loop p { color: var(--text-secondary); line-height: 1.55; }
.surface-section { background: var(--bg-secondary); border-block: 1px solid var(--border-subtle); }
.work-context-grid .card { min-height: 15rem; }
.work-context-grid h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }
.work-context-grid p:last-child { color: var(--text-secondary); }
.section-action { margin-top: 2rem; }
.text-link { color: var(--accent-orange); font-weight: 700; }
.text-link:hover { color: var(--accent-orange-hover); }
.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.principles-grid article { border-top: 2px solid var(--accent-orange); padding-top: 1rem; }
.principles-grid h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.principles-grid p { color: var(--text-secondary); line-height: 1.5; }
.home-cta { padding-top: 0; }
.home-cta-inner { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--surface-card), var(--accent-blue-subtle)); }
.home-cta h2 { max-width: 21ch; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0.25rem 0 0.75rem; }
.home-cta p:last-child { max-width: 42rem; color: var(--text-secondary); }
.footer-brand { margin-bottom: 1rem; }
.footer-col > p { max-width: 23rem; color: var(--text-secondary); font-size: 0.92rem; }

/* Portfolio expansion: experience, services, channels and editorial insights. */
.visual-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.visual-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
.visual-frame img { width: 100%; aspect-ratio: 16 / 9; max-height: 280px; object-fit: cover; }
.visual-frame figcaption { padding: 0.65rem 0.9rem; color: var(--text-muted); font-size: 0.78rem; border-top: 1px solid var(--border-subtle); }
.eyebrow-icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  background: var(--accent-orange-subtle);
  color: var(--accent-orange);
}
.eyebrow-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.experience-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--border-medium); border-radius: var(--radius-lg); background: var(--border-medium); }
.experience-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface-card); }
.experience-item > span { color: var(--accent-orange); font-family: var(--font-mono); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.experience-item h3 { margin-bottom: 0.35rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.experience-item p { max-width: 48rem; color: var(--text-secondary); }
.metric-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.metric-ledger article,
.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 12rem;
  padding: 1.85rem 1.65rem;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-fast);
}
.metric-ledger article:hover,
.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  background: var(--surface-card-hover);
}
.metric-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--accent-orange-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent-orange);
  flex-shrink: 0;
  transition: transform var(--transition-normal), background-color var(--transition-fast);
}
.metric-ledger article:hover .metric-card-icon,
.metric-card:hover .metric-card-icon {
  transform: scale(1.08);
}
.metric-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-orange);
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metric-ledger strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--accent-orange);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.metric-ledger p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
/* ==========================================================================
   INSIGHTS & INDUSTRY GRIDS (Studio-Grade 3-in-a-Row Architecture - Refined)
   ========================================================================== */
.insight-grid,
.industry-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

/* Working Notes: Compact, text-first, editorial cards */
.insight-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.insight-card:focus-visible,
.industry-insight:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

.insight-card .insight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.insight-card .insight-meta .meta-num {
  color: var(--accent-orange-text);
  font-weight: 700;
}

.insight-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 0.45rem 0;
  color: var(--text-primary);
}

.insight-card p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 0.85rem 0;
}

/* Industry Insights: Sleek letterbox image + compact interior */
.industry-insight {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.industry-insight:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.industry-thumb {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.industry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.industry-insight:hover .industry-thumb img {
  transform: scale(1.04);
}

.industry-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 18, 23, 0.6) 100%);
  pointer-events: none;
}

[data-theme="light"] .industry-thumb-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(240, 242, 245, 0.6) 100%);
}

.industry-card-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.industry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.industry-tag-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.industry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.industry-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.industry-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-orange-text);
}

.industry-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem 0;
  color: var(--text-primary);
}

.industry-card-body p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 0.65rem 0;
}

/* Tactics List: Micro, subtle indicators - NO LARGE ARROWS */
.insight-tactics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.85rem 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.insight-tactics li {
  position: relative;
  padding-left: 0.85rem;
  line-height: 1.4;
}

.insight-tactics li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-orange);
  font-weight: 500;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Provenance Stats Footer: Compact technical strip */
.insight-stats-footer {
  margin-top: auto;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  background: var(--surface-card-hover);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1.4;
  color: var(--accent-orange-text);
}

/* Card Action Link: Small, refined text link with micro-arrow */
.card-action-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  transition: gap 0.2s ease, color var(--transition-fast);
}

.card-action-link:hover {
  gap: 0.55rem;
  color: var(--accent-orange-hover);
}

.card-action-link .action-arrow {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.card-action-link:hover .action-arrow {
  transform: translateX(2px);
}

.result-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
  .insight-grid,
  .industry-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .insight-grid,
  .industry-insight-grid {
    grid-template-columns: 1fr;
  }
}

/* Channel & Industry generic cards backward compatibility */
.industry-grid, .channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.industry-card, .channel-card { min-height: 100%; padding: 1.5rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-card); transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); }
.industry-card:hover, .channel-card:hover { transform: translateY(-3px); border-color: var(--border-accent); box-shadow: var(--shadow-md); }
.industry-card h3, .channel-card h3 { margin: 0.7rem 0 0.45rem; font-size: 1.1rem; }
.industry-card p, .channel-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; }
.channel-card { position: relative; overflow: hidden; }
.channel-card::after { content: ''; position: absolute; right: -2rem; bottom: -2rem; width: 6rem; height: 6rem; border-radius: 50%; background: radial-gradient(circle, var(--accent-blue-subtle), transparent 68%); pointer-events: none; }
.channel-mark { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid var(--border-medium); border-radius: 50%; color: var(--accent-orange); }
.channel-mark svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.insight-meta { display: flex; gap: 0.65rem; align-items: center; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.inline-link { display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 1rem; color: var(--accent-orange); font-size: 0.88rem; font-weight: 700; }
.service-deliverables { display: grid; gap: 0.55rem; margin-top: 1.1rem; color: var(--text-secondary); font-size: 0.87rem; list-style: none; }
.service-deliverables li { display: flex; gap: 0.55rem; align-items: flex-start; }
.service-deliverables li::before { content: '↗'; color: var(--accent-orange); font-weight: 700; }
.platform-note { margin-top: 1.25rem; padding: 1rem 1.1rem; border-left: 2px solid var(--accent-orange); color: var(--text-secondary); background: var(--accent-orange-subtle); }

@media (max-width: 900px) {
  .visual-split { grid-template-columns: 1fr; }
  .metric-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .industry-grid, .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .experience-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .metric-ledger { grid-template-columns: 1fr; gap: 0.85rem; }
  .industry-grid, .channel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-container { gap: 0.5rem; height: 68px; padding-left: 1rem; padding-right: 1rem; }
  .brand { min-width: 0; gap: 0.4rem; font-size: 1rem; }
  .brand .brand-mark-img { width: 34px; height: 24px; }
  .brand .brand-name { white-space: nowrap; }
  .nav-actions { margin-left: auto; gap: 0.35rem; }
  .nav-actions .nav-cta { display: none; }
  .theme-toggle-btn, .mobile-menu-btn { width: 42px; height: 42px; flex: 0 0 42px; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav { top: 68px; padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .home-hero { padding-top: 3.25rem; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .portrait-panel { max-width: 28rem; }
  .focus-list, .operating-loop, .principles-grid { grid-template-columns: 1fr; }
  .operating-loop article { min-height: auto; padding: 1.25rem; }
  .operating-loop span { margin-bottom: 1.5rem; }
  .home-cta-inner { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================================
   FOOTER & LEGAL GOVERNANCE
   ========================================================================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}
.footer-links-list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-links-list a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-bottom-links a:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   ACCESSIBILITY & FOCUS VISIBLE (WCAG 2.1 AA)
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.theme-toggle-btn:focus-visible,
.blueprint-mode-btn:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
}

/* ==========================================================================
   RESPONSIVE TWO-COLUMN SYSTEM & COLLAPSIBLE GRIDS
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.conversation-grid {
  background: var(--surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.narrative-split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-split-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .blueprint-stage-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .conversation-grid,
  .narrative-split-grid,
  .contact-split-grid,
  .split-headline-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }
  .conversation-grid {
    padding: 2.25rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  section {
    padding: 3.5rem 0;
  }
  .blueprint-stage-row {
    grid-template-columns: 1fr;
  }
}
