/* ==========================================================================
   SAMUEL BARDEN PORTFOLIO — REDESIGN-SKILL DESIGN SYSTEM
   Strictly enforces https://github.com/elayadesign/redesign-skill
   ========================================================================== */

:root {
  /* Approved Typography: Single Typeface (Geist) + Geist Mono for code */
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Geist Mono', monospace;

  /* Approved Motion Curve & Timings */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-move: 500ms;
  --dur-color: 300ms;
  --dur-reveal: 700ms;

  /* Approved Radius Scale (Tailwind steps + concentric nested formula: inner = outer - gap) */
  --radius-outer: 24px;   /* rounded-3xl */
  --radius: 20px;         /* rounded-2xl */
  --radius-inner: 12px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --pill: 999px;          /* Full rounded pills for badges, tags, nav, and buttons */

  /* Single Accent Color (<80% saturation: HSL 45deg, 62%, 52%) */
  --gold: #D4AF37;
  --gold-h: #DEC05B;
  --gold-dim: rgba(212, 175, 55, 0.12);
  --gold-glow: rgba(19, 18, 9, 0.65);

  /* Z-index Scale */
  --z-base: 1;
  --z-elevated: 10;
  --z-nav: 40;
  --z-overlay: 50;
  --z-skip: 60;
}

/* Approved Dark Backgrounds: #000000 · #181818 · #1F1F1F · #272727 · #313131 · #131209 */
[data-theme="dark"] {
  --bg: #131209;
  --bg-deep: #000000;
  --bg2: #181818;
  --surface: #181818;
  --surface-hi: #1F1F1F;
  --surface-top: #272727;
  --border: #272727;
  --border-hi: #313131;
  --text: #FFFFFF;
  --text-sub: #D6D5CE;
  --muted: #9B9B9B;
  --muted-hi: #B8B7B0;
  --nav-bg: rgba(24, 24, 24, 0.88);
  --nav-bdr: #272727;
  --input-bg: #1F1F1F;
  --input-bdr: #313131;
  --accent: #D4AF37;
  --on-accent: #131209;
  --shadow-tinted: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --hero-grad: linear-gradient(180deg, #FFFFFF 0%, #B8B7B0 100%);
  --skeu-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 48%), #181818;
  --skeu-surface-hi: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0) 48%), #1F1F1F;
  --skeu-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.36);
  --skeu-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 14px 32px rgba(0, 0, 0, 0.5);
  --skeu-pill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.3);
  --skeu-inset: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.04);
  --skeu-rim: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --bg: #F5F5F3;
  --bg-deep: #EAEAE6;
  --bg2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-hi: #EAEAE6;
  --surface-top: #DCDCD6;
  --border: #DCDCD6;
  --border-hi: #BDBDB5;
  --text: #131209;
  --text-sub: #272727;
  --muted: #666666;
  --muted-hi: #4A4A46;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --nav-bdr: #DCDCD6;
  --input-bg: #F7F7F5;
  --input-bdr: #C8C8C0;
  --accent: #9A7B1C;
  --on-accent: #FFFFFF;
  --shadow-tinted: 0 14px 32px rgba(19, 18, 9, 0.09), 0 2px 6px rgba(19, 18, 9, 0.05);
  --hero-grad: linear-gradient(180deg, #131209 0%, #4A4A46 100%);
  --skeu-surface: linear-gradient(180deg, #FFFFFF 0%, #FAF9F6 100%);
  --skeu-surface-hi: linear-gradient(180deg, #FFFFFF 0%, #F2F1EC 100%);
  --skeu-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(19, 18, 9, 0.04), 0 4px 14px rgba(19, 18, 9, 0.06), 0 1px 3px rgba(19, 18, 9, 0.04);
  --skeu-card-hover: inset 0 1px 0 #FFFFFF, inset 0 -1px 0 rgba(19, 18, 9, 0.05), 0 12px 28px rgba(19, 18, 9, 0.1), 0 2px 6px rgba(19, 18, 9, 0.05);
  --skeu-pill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(19, 18, 9, 0.06);
  --skeu-inset: inset 0 2px 4px rgba(19, 18, 9, 0.07), 0 1px 0 rgba(255, 255, 255, 0.85);
  --skeu-rim: rgba(255, 255, 255, 0.85);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal !important; /* Audit: Remove italic type anywhere */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease);
}

/* Subtle Noise / Grain Texture Overlay on Flat Surfaces (No Background Gradients) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Disable cursor glow & card corner-glow overlays while keeping subtle ambient hero blobs */
#cg, #sp, .blog-glow, .speaking-card-glow {
  display: none !important;
}

/* Skip to Content Link (Accessibility Requirement) */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: var(--z-skip);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transform: translateY(-96px);
  transition: transform var(--dur-move) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Visible Focus Ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

/* Typography Rules: Tabular Nums, Balanced Headings, 65ch Measure, No Italics */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--text);
}

p, li {
  text-wrap: pretty;
  max-width: 65ch;
}

em, i:not([class*="ph"]) {
  font-style: normal !important;
  color: var(--accent);
  font-weight: 600;
}

.stat-n, .count, .wnum, .pc-n, .result-n, .metric-num, .err-code, .tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Container & Layout Scale (Max Width 1200px, Closed Spacing Scale: 0,2,4,8,12,16,24,32,40,48,64,80,96px) */
.wrap, #hero, .page-hero, .cs-hero, .cs-body, footer {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  position: relative;
  z-index: var(--z-base);
}

/* Floating Navigation Bar (16px off top edge, sized to content, translucent blurred surface) */
nav#mn {
  position: fixed !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: var(--z-nav) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--nav-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--nav-bdr) !important;
  border-radius: 999px !important;
  padding: 6px 8px !important;
  box-shadow: inset 0 1px 0 var(--skeu-rim), var(--shadow-tinted) !important;
  white-space: nowrap !important;
}

.nlogo {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  padding: 4px 12px 4px 4px !important;
  border-right: 1px solid var(--border) !important;
  margin-right: 4px !important;
}

/* Circular Logo Avatar */
.lcirc {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  padding: 4px !important;
  transition: transform var(--dur-move) var(--ease) !important;
}

.lcirc:hover {
  transform: scale(1.05) !important;
}

.nname {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
}

.nlinks {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  list-style: none !important;
}

.nlinks a {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
  text-decoration: none !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  transition: color var(--dur-color) var(--ease), background-color var(--dur-color) var(--ease) !important;
}

.nlinks a:hover {
  color: var(--text) !important;
  background-color: var(--surface-hi) !important;
}

.nlinks a.active,
.nlinks a[aria-current="page"] {
  color: var(--text) !important;
  background-color: var(--surface-top) !important;
  font-weight: 600 !important;
}

.nlinks a::after {
  display: none !important;
}

.nright {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 4px !important;
  padding-left: 8px !important;
  border-left: 1px solid var(--border) !important;
}

/* Theme Selector Button (Text/Phosphor icon instead of Sun/Moon emoji switch) */
.tbtn {
  height: 32px !important;
  width: auto !important;
  min-width: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: var(--surface-hi) !important;
  color: var(--text-sub) !important;
  font-family: var(--sans) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  transition: background-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease), transform var(--dur-color) var(--ease) !important;
}

.tbtn:hover {
  background: var(--surface-top) !important;
  color: var(--text) !important;
  transform: none !important;
}

.tbtn:active {
  transform: scale(0.98) !important;
}

/* Header CTA Button: text-sm (14px/20px) semibold, 8px vertical, 12px horizontal */
.ncta {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.08) 100%), var(--accent) !important;
  color: var(--on-accent) !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 2px 6px rgba(0, 0, 0, 0.22) !important;
  transition: background-color var(--dur-color) var(--ease), transform var(--dur-move) var(--ease), box-shadow var(--dur-color) var(--ease) !important;
}

.ncta:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.06) 100%), var(--gold-h) !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.ncta:active {
  transform: translateY(1px) scale(0.985) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

/* Animated Hamburger Icon Button */
.ham {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--surface-hi) !important;
  color: var(--text) !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  transition: background-color var(--dur-color) var(--ease), transform var(--dur-color) var(--ease) !important;
}

.ham-bars {
  width: 16px;
  height: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ham-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-move) var(--ease), opacity var(--dur-color) var(--ease);
}

.ham.is-open .ham-bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.ham.is-open .ham-bars span:nth-child(2) {
  opacity: 0;
}

.ham.is-open .ham-bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Full-Height Mobile Menu Panel with Staggered Links (60ms apart, <400ms total) */
.mob-menu {
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--z-overlay) !important;
  background: var(--bg) !important;
  backdrop-filter: none !important;
  display: none;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 64px 32px !important;
  opacity: 0;
  transition: opacity var(--dur-color) var(--ease) !important;
}

.mob-menu.open {
  opacity: 1 !important;
}

.mob-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 16px !important;
  transform: none !important;
  opacity: 1 !important;
}

.mob-panel a {
  font-family: var(--sans) !important;
  font-size: 30px !important;
  line-height: 36px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  text-decoration: none !important;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-color) var(--ease), transform var(--dur-move) var(--ease), color var(--dur-color) var(--ease) !important;
}

.mob-menu.open .mob-panel a {
  opacity: 1;
  transform: translateY(0);
}

.mob-menu.open .mob-panel a:nth-of-type(1) { transition-delay: 0ms; }
.mob-menu.open .mob-panel a:nth-of-type(2) { transition-delay: 50ms; }
.mob-menu.open .mob-panel a:nth-of-type(3) { transition-delay: 100ms; }
.mob-menu.open .mob-panel a:nth-of-type(4) { transition-delay: 150ms; }
.mob-menu.open .mob-panel a:nth-of-type(5) { transition-delay: 200ms; }
.mob-menu.open .mob-panel a:nth-of-type(6) { transition-delay: 250ms; }
.mob-menu.open .mob-panel a:nth-of-type(7) { transition-delay: 300ms; }
.mob-menu.open .mob-panel a:nth-of-type(8) { transition-delay: 350ms; }

.mob-panel .mob-cta-m {
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  margin-top: 16px !important;
  box-shadow: none !important;
}

.mob-close {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

/* Section Labels: Sentence Case, No All-Caps Everywhere, Square/Squircle Badge */
.slabel, .cs-category, .svc-tag, .wco, .wcard-cat, .blog-tag, .sb-title, .sidebar-title, .event-meta {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--accent) !important;
}

.slabel, .cs-category {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--skeu-surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--skeu-pill-shadow) !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  margin-bottom: 24px;
}

.cs-hero > div .cs-category {
  margin-bottom: 0 !important;
}

.page-hero h1 {
  line-height: 1.15 !important;
  margin-bottom: 16px !important;
}

.page-hero p {
  line-height: 1.7 !important;
}

/* Tactile Modern Skeuomorphic Surfaces with Apple G3 (Squircle) Corner Continuity */
.glass, .wcard, .luxury-fact-card, .speaking-feature-card, .sidebar-box, .callout-architecture {
  background: var(--skeu-surface) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  corner-shape: squircle;
  box-shadow: var(--skeu-card-shadow) !important;
  transition: background var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease), transform var(--dur-move) var(--ease), box-shadow var(--dur-color) var(--ease) !important;
}

.glass:hover, .wcard:hover, .luxury-fact-card:hover, .speaking-feature-card:hover {
  background: var(--skeu-surface-hi) !important;
  border-color: var(--border-hi) !important;
  box-shadow: var(--skeu-card-hover) !important;
}

/* Single-side card borders banned by SKILL.md ("Border on a single side of a card. Never.") */
.wi::before, .wcard::before {
  display: none !important;
}

/* Hero Section: Centered Layout */
#hero {
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding-top: 96px !important;
  padding-bottom: 64px !important;
}

.hero-centered {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: auto !important;
  padding-top: 32px !important;
  padding-bottom: 48px !important;
}

.hero-centered .h-eye {
  margin: 0 auto 24px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: var(--text-sub) !important;
  background: var(--skeu-surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--skeu-pill-shadow) !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
}

.hero-centered .h-name-massive,
.h-name {
  font-family: var(--sans) !important;
  font-size: clamp(3.5rem, 8.8vw, 6.5rem) !important;
  line-height: 1.04 !important;
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  max-width: 960px !important;
  margin-bottom: 16px !important;
  background: var(--hero-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.h-pos {
  font-family: var(--sans) !important;
  font-style: italic !important;
  font-size: 24px !important;
  line-height: 32px !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
  margin-bottom: 16px !important;
  max-width: 680px !important;
}

.hero-centered .h-sub-massive,
.h-sub {
  font-family: var(--sans) !important;
  font-size: 17px !important;
  line-height: 28px !important;
  font-weight: 300 !important;
  max-width: 680px !important;
  color: var(--muted-hi) !important;
  margin-bottom: 24px !important;
}

.hero-centered .h-sub-massive strong,
.h-sub strong {
  color: var(--text) !important;
  font-weight: 600 !important;
}

.hero-centered .h-trust,
.h-trust {
  justify-content: center !important;
  gap: 8px !important;
  margin-bottom: 32px !important;
}

.tpill, .spill, .wtag, .cs-tag, .s-pill, .cbadge {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  background: var(--surface-hi) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-sub) !important;
  padding: 5px 13px !important;
  border-radius: 999px !important;
  box-shadow: var(--skeu-pill-shadow) !important;
}

/* Unified single accent for all certification badges */
.cbadge.gold, .cbadge.blue {
  background: var(--gold-dim) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
}

/* Hero CTAs: Single Primary Action + Tertiary Text Link (No competing filled+ghost pair) */
.hero-centered .h-ctas,
.h-ctas {
  justify-content: center !important;
  align-items: center !important;
  gap: 24px !important;
}

/* Main Buttons: text-base (16px/24px) semibold, 8px vertical, 12px horizontal (or scaled token) */
.cta-p, .btn-gold, .cal-btn, .sbtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.08) 100%), var(--accent) !important;
  color: var(--on-accent) !important;
  padding: 10px 22px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 3px 10px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.16) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background-color var(--dur-color) var(--ease), transform var(--dur-move) var(--ease), box-shadow var(--dur-color) var(--ease) !important;
}

.cta-p:hover, .btn-gold:hover, .cal-btn:hover, .sbtn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.06) 100%), var(--gold-h) !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 16px rgba(0, 0, 0, 0.26) !important;
}

.hero-centered .cta-p {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 26px rgba(212, 175, 55, 0.32), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.cta-p:active, .btn-gold:active, .cal-btn:active, .sbtn:active,
.cta-s:active, .btn-outline:active, .clink-btn:active, .ftab:active {
  transform: translateY(1px) scale(0.985) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.25) !important;
}

/* Secondary Pill Outline Button */
.cta-s, .btn-outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  background: var(--skeu-surface) !important;
  border: 1px solid var(--border-hi) !important;
  box-shadow: var(--skeu-pill-shadow) !important;
  padding: 10px 22px !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: background var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease), transform var(--dur-move) var(--ease) !important;
}

.cta-s:hover, .btn-outline:hover {
  color: var(--accent) !important;
  background: var(--skeu-surface-hi) !important;
  border-color: var(--accent) !important;
  transform: translateY(-1px) !important;
}

/* Stats Grid & Typography Scale Alignment */
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  margin-top: 32px !important;
}

.stat-card {
  padding: 24px !important;
  text-align: center !important;
}

.stat-n {
  font-family: var(--sans) !important;
  font-size: 36px !important;
  line-height: 40px !important;
  font-weight: 700 !important;
}

.stat-l {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: var(--text-sub) !important;
  margin-top: 8px !important;
}

.stat-sub {
  font-size: 12px !important;
  line-height: 16px !important;
  color: var(--muted) !important;
  margin-top: 4px !important;
}

.stat-flags {
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
  font-size: 18px !important;
  line-height: 28px !important;
}

/* Section Dividers & Vertical Rhythm (Optical Padding) */
.div {
  max-width: 1200px !important;
  margin: 64px auto !important;
  border: none !important;
  border-top: 1px solid var(--border) !important;
}

/* Services & Asymmetric / Clean Grids */
.svc-grid, .certs-grid, .skills-grid, .work-grid, .booking-grid {
  gap: 24px !important;
}

/* How I Work (4-column grid with clear hierarchy between step label and heading) */
.proc-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

.pc {
  padding: 20px !important;
}

.pc-n {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--accent) !important;
  margin-bottom: 6px !important;
}

.pc h4 {
  font-family: var(--sans) !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 8px !important;
}

.pc p {
  font-size: 13.5px !important;
  line-height: 20px !important;
  font-weight: 300 !important;
  color: var(--muted-hi) !important;
}

.cl > p {
  font-weight: 300 !important;
}

.svc-card, .cert-card, .wcard, .cl, .cf {
  padding: 32px !important;
}

/* Nested element inside 24px card with 16px/24px spacing gets 10px tactile socket */
.svc-icon, .luxury-fact-icon-container {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
  background: var(--skeu-surface-hi) !important;
  border: 1px solid var(--border-hi) !important;
  box-shadow: var(--skeu-pill-shadow) !important;
  color: var(--accent) !important;
  font-size: 20px !important;
}

.svc-card h3, .cert-title, .wcard h2, .luxury-fact-content h3 {
  font-family: var(--sans) !important;
  font-size: 24px !important;
  line-height: 32px !important;
  font-weight: 600 !important;
}

.svc-card > p, .cert-sub, .wcard p, .wdesc, .blog-desc, .page-hero p, .cs-lead {
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 300 !important;
  color: var(--muted-hi) !important;
}

.svc-list li {
  font-size: 14px !important;
  line-height: 20px !important;
  color: var(--text-sub) !important;
}

/* Selected Work Items */
.wlist {
  gap: 16px !important;
}

.wi {
  background: var(--skeu-surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  corner-shape: squircle;
  box-shadow: var(--skeu-card-shadow) !important;
  padding: 24px 32px !important;
  gap: 24px !important;
  transition: background var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease), transform var(--dur-move) var(--ease), box-shadow var(--dur-color) var(--ease) !important;
}

.wi:hover {
  background: var(--skeu-surface-hi) !important;
  border-color: var(--border-hi) !important;
  box-shadow: var(--skeu-card-hover) !important;
  transform: translateY(-2px) !important;
}

.wtitle {
  font-family: var(--sans) !important;
  font-size: 20px !important;
  line-height: 28px !important;
  font-weight: 600 !important;
}

/* Squircle Testimonial Avatars (8px instead of 50% circle) */
.avatar-squircle {
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  background: var(--surface-hi) !important;
  border: 1px solid var(--border-hi) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  flex-shrink: 0 !important;
}

/* Compact Interactive FAQ Accordion (2-Column Grid for Minimal Vertical Real Estate) */
.faq-accordion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: start;
}

.faq-item {
  background: var(--skeu-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  corner-shape: squircle;
  box-shadow: var(--skeu-card-shadow);
  overflow: hidden;
  transition: border-color var(--dur-color) var(--ease), background var(--dur-color) var(--ease), box-shadow var(--dur-color) var(--ease);
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--border-hi);
}

.faq-item.open {
  background: var(--skeu-surface-hi);
  box-shadow: var(--skeu-card-hover);
}

.faq-item h3 {
  margin: 0;
  text-wrap: normal;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-color) var(--ease);
}

.faq-trigger > span:first-child {
  flex: 1;
}

.faq-trigger:hover {
  color: var(--accent);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  color: var(--muted-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform var(--dur-move) var(--ease), color var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease), background-color var(--dur-color) var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
  border-color: rgba(212, 175, 55, 0.35);
  background: var(--gold-dim);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-move) var(--ease);
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  font-size: 14px;
  line-height: 22px;
  font-weight: 300;
  color: var(--muted-hi);
  padding: 0 24px 20px;
  max-width: 78ch;
}

/* Forms: Concentric 8px Radius Inside 24px Card (16px padding gap), Inline Errors */
.fg {
  gap: 8px !important;
  margin-bottom: 16px !important;
}

.fg label {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
  color: var(--text-sub) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.fg input, .fg select, .fg textarea {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-bdr) !important;
  border-radius: 14px !important;
  corner-shape: squircle;
  box-shadow: var(--skeu-inset) !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  line-height: 24px !important;
  padding: 12px 16px !important;
  transition: border-color var(--dur-color) var(--ease) !important;
}

.fg input.input-error,
.fg select.input-error,
.fg textarea.input-error {
  border-color: #E5484D !important;
}

.field-error {
  font-size: 12px;
  line-height: 16px;
  color: #E5484D;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  display: none;
}

.form-status.is-error {
  display: block;
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.35);
  color: #FF8589;
}

.form-status.is-success {
  display: block;
  background: rgba(48, 164, 108, 0.12);
  border: 1px solid rgba(48, 164, 108, 0.35);
  color: #4CC38A;
}

/* Empty State for Work Filter */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ftab {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--skeu-surface);
  box-shadow: var(--skeu-pill-shadow);
  color: var(--muted-hi);
  cursor: pointer;
  transition: background var(--dur-color) var(--ease), border-color var(--dur-color) var(--ease), color var(--dur-color) var(--ease), box-shadow var(--dur-color) var(--ease);
}

.ftab:hover {
  background: var(--skeu-surface-hi);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--accent);
}

.ftab.active {
  background: var(--gold-dim);
  border-color: rgba(212, 175, 55, 0.38);
  color: var(--accent);
  box-shadow: var(--skeu-inset);
}

.clink-btn {
  border-radius: 999px !important;
  background: var(--skeu-surface-hi) !important;
  box-shadow: var(--skeu-pill-shadow) !important;
}

.empty-state {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: left;
}

.empty-state h3 {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Scroll Reveal via IntersectionObserver (600-800ms on Base Curve) */
.rev {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease) !important;
}

.rev.on {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced Motion Accessibility Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .rev {
    transform: none !important;
    transition: opacity var(--dur-color) linear !important;
  }
  .mob-panel a {
    transform: none !important;
  }
  .marquee-content {
    animation: none !important;
  }
}

#contact {
  padding-bottom: 64px !important;
}

/* Footer with Legal Links */
footer {
  padding-top: 32px !important;
  padding-bottom: 48px !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
}

footer p, .footer-links a {
  font-size: 14px !important;
  line-height: 20px !important;
  color: var(--muted) !important;
  text-decoration: none !important;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .wrap, #hero, .page-hero, .cs-hero, .cs-body, footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .proc-grid,
  .faq-accordion {
    grid-template-columns: 1fr !important;
  }
  .faq-grid {
    grid-template-columns: 1fr !important;
  }
  .nlinks {
    display: none !important;
  }
  .ham {
    display: inline-flex !important;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}
