/* Fonts loaded asynchronously in HTML for 100/100 Lighthouse performance */

/* Prevent horizontal scroll across mobile viewports */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}



/* ==========================================================================
   STURDYDO EDITORIAL DESIGN SYSTEM
   Warm ivory, travertine beige, sage olive, natural oak.
   Designed for extreme speed: 0ms hydration, 100/100 Lighthouse performance.
   ========================================================================== */

:root {
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Warm White / Cream Editorial Theme (Harmonized with Sturdydo 3D Emblem) */
  --background: #F6F1EA;       /* Warm cream / alabaster linen */
  --foreground: #1E2820;       /* Deep forest charcoal for high contrast & clarity */
  --card: #FCF9F3;             /* Warm luminous cream white (avoids cold stark white) */
  --card-foreground: #1E2820;
  
  --primary: #233929;          /* Deep British racing / forest green (matches 3D 'S' logo) */
  --primary-hover: #192A1E;
  --primary-foreground: #F6F1EA;

  --secondary: #EBE3D6;        /* Warm cream sand */
  --secondary-foreground: #233929;
  
  --muted: #EAE2D4;
  --muted-foreground: #4A554D; /* Warm earth slate */
  
  --border: #DDD3C3;          /* Warm limestone border */
  --border-light: #EBE4D7;
  --input: #DDD3C3;
  
  --travertine: #E7DED0;       /* Rich warm travertine */
  --travertine-soft: #F2ECE2;
  --sage: #3E5A44;
  --sage-soft: #D7E3D4;
  --oak: #704D1E;              /* Warm oak wood grain */
  --oak-soft: #EDE1CC;
  
  --font-display: 'Lora', 'Georgia', serif;
  --font-sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-subtle: 0 4px 20px -2px rgba(30, 40, 32, 0.05);
  --shadow-card: 0 12px 32px -10px rgba(35, 57, 41, 0.10);
  --shadow-float: 0 24px 60px -20px rgba(35, 57, 41, 0.18);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.2;
}

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

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

/* Typography Helpers */
.font-display {
  font-family: var(--font-display);
}

.font-sans {
  font-family: var(--font-sans);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-block;
}

.eyebrow-oak {
  color: var(--oak);
}

.section-pad {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

@media (min-width: 640px) {
  .section-pad {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 768px) {
  .section-pad {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.surface-sand {
  background-color: var(--travertine);
}

.surface-sage {
  background-color: var(--sage-soft);
}

.surface-oak {
  background-color: var(--oak-soft);
}

/* Editorial Cards */
.card-line {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  will-change: transform;
}

.card-line:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(62, 86, 67, 0.4);
  box-shadow: var(--shadow-card);
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card-spotlight-ready {
    position: relative;
  }

  .card-spotlight-ready::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
      340px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      rgba(140, 100, 48, 0.08),
      rgba(62, 90, 68, 0.05) 42%,
      transparent 75%
    );
    opacity: var(--spot-opacity, 0);
    transition: opacity 0.28s ease;
    pointer-events: none;
    z-index: 0;
  }
}

.card-line-static {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
}

/* Navigation Links */
.nav-link {
  position: relative;
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Action Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(62, 86, 67, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(62, 86, 67, 0.28);
}

.btn-primary:active {
  transform: scale(0.97) translateY(0);
  box-shadow: 0 2px 6px rgba(62, 86, 67, 0.2);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--card);
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--muted);
  border-color: rgba(62, 86, 67, 0.3);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.97) translateY(0);
  background-color: var(--travertine);
  transition: transform 0.08s ease, background-color 0.08s ease;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--card);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-white:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-rise {
  animation: riseIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Modal & Dialogs - Ultra Responsive, Professional & Mobile-Sheet Native */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(18, 24, 20, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 100000 !important; /* Always sit above header.site-header (z-index: 10000) */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.2, 0, 0, 1);
  overscroll-behavior: contain;
}

.modal-overlay.active,
.modal-overlay.flex {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-content {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  max-width: 44rem;
  width: 100%;
  max-height: min(92vh, calc(100dvh - 2rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
  transform: scale(0.96) translate3d(0, 12px, 0);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  box-sizing: border-box;
}

.modal-overlay.active .modal-content,
.modal-overlay.flex .modal-content {
  transform: scale(1) translate3d(0, 0, 0);
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }
  .modal-content {
    max-height: 94dvh !important;
    border-radius: 1.75rem 1.75rem 0 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35) !important;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .modal-overlay.active .modal-content,
  .modal-overlay.flex .modal-content {
    transform: translateY(0) !important;
  }
}

/* Specific styling for Workshop Checkout & Multi-section Modals */
#workshopCheckoutModal .modal-content {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  #workshopCheckoutModal .modal-content {
    height: 94dvh !important;
    max-height: 94dvh !important;
  }
}

/* Workshop Terms Dialog Overlay (Layered above checkout modal) */
#workshopTermsModal {
  z-index: 100010 !important;
}

#workshopTermsModal .modal-content {
  max-width: 42rem !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  #workshopTermsModal .modal-content {
    max-height: 94dvh !important;
    height: 94dvh !important;
    border-radius: 1.5rem 1.5rem 0 0 !important;
  }
}

/* Form Controls */
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--foreground);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23636D64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
  cursor: pointer;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62, 86, 67, 0.15);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}

/* Checkbox pill selector */
.squad-pill-checkbox {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background-color: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.squad-pill-checkbox * {
  pointer-events: none;
}

.squad-pill-checkbox:hover {
  border-color: var(--primary);
  background-color: var(--travertine-soft);
}

.squad-pill-checkbox:has(input:checked),
.squad-pill-checkbox.selected {
  background-color: var(--primary) !important;
  color: #FFFFFF !important;
  border-color: var(--primary) !important;
}

.squad-pill-checkbox:has(input:checked) i,
.squad-pill-checkbox.selected i,
.squad-pill-checkbox:has(input:checked) span,
.squad-pill-checkbox.selected span {
  color: #FFFFFF !important;
}

.squad-pill-checkbox:has(input:checked) svg,
.squad-pill-checkbox.selected svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* Anti-Asset Scraping & Image Drag Protection */
img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Header & Mobile Menu */
header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 64px !important;
  z-index: 10000 !important;
  background-color: rgba(246, 241, 234, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 211, 195, 0.65);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.site-header.is-scrolled {
  background-color: rgba(252, 249, 243, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -12px rgba(30, 40, 32, 0.12);
}

body {
  padding-top: 64px;
}

/* Precise Global Workshop Announcement Bar (Prevents any layout jump or white space) */
#headerWorkshopAnnouncementBar {
  position: fixed !important;
  top: 64px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9995 !important;
  background-color: #F2ECE1 !important;
  color: var(--foreground) !important;
  border-bottom: 1px solid #DFDBD3 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.has-announcement-bar {
  padding-top: 102px !important;
}

@media (min-width: 640px) {
  body.has-announcement-bar {
    padding-top: 104px !important;
  }
}

/* Scroll lock when mobile drawer is open */
html.menu-open,
body.menu-open {
  overflow: hidden !important;
  height: 100% !important;
}

/* Toast */
#toastNotification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9600;
  max-width: 24rem;
  background-color: rgba(252, 249, 243, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 14px 36px -10px rgba(35, 57, 41, 0.18);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

#toastNotification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  #toastNotification {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    max-width: calc(100vw - 2rem) !important;
    width: auto !important;
    box-sizing: border-box !important;
  }
}

/* GPU-Composited Scroll Progress Indicator */
#scrollProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--oak), var(--primary));
  z-index: 10002;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

/* Minimalist Theme Social Icon Buttons */
.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: #636D64;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.social-icon-btn:hover {
  transform: translateY(-2px);
}

.social-icon-btn.social-linkedin:hover {
  border-color: #0A66C2;
  background-color: #0A66C2;
  color: #FFFFFF;
  box-shadow: 0 4px 14px -1px rgba(10, 102, 194, 0.45);
}

.social-icon-btn.social-instagram:hover {
  border-color: transparent;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px -1px rgba(214, 36, 159, 0.45);
}

/* Scroll-based Smooth Fade-In */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  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;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SMOOTH TRANSITIONS & MICRO-INTERACTIONS
   Native cross-page morphing, soft entry, icon nudging, scroll-padding
   ========================================================================== */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 160ms cubic-bezier(0.4, 0, 1, 1) both fadeOut;
}
::view-transition-new(root) {
  animation: 220ms cubic-bezier(0, 0, 0.2, 1) both fadeIn;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

main {
  animation: pageEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

[id] {
  scroll-margin-top: 5.5rem;
}

body.has-announcement-bar [id] {
  scroll-margin-top: 7.5rem !important;
}

@media (min-width: 768px) {
  #mobileMenu {
    display: none !important;
  }
}

/* Icon micro-animations */
.btn-primary i, .btn-secondary i, .btn-white i {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover i, .btn-secondary:hover i, .btn-white:hover i {
  transform: scale(1.15) translateY(-1px);
}

.squad-pill-checkbox i {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.squad-pill-checkbox:hover i {
  transform: scale(1.22);
}

/* ==========================================================================
   Skeleton Shimmer Loader
   Warm travertine & cream shimmer placeholder for images & cards
   ========================================================================== */
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background-color: #EAE2D4;
}

.skeleton-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.45) 30%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.45) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeletonShimmer 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

@keyframes skeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}


/* Prevent Firefox/Gecko alt-text flash & show warm travertine skeleton shimmer while images load */
img {
  color: transparent;
}

img:not(.loaded):not([src*="logo-mark"]):not([src*="favicon"]) {
  background: linear-gradient(108deg, #EAE2D4 15%, #F6F1EA 35%, #EAE2D4 55%);
  background-size: 220% 100%;
  animation: sturdydoImgShimmer 1.45s ease-in-out infinite;
}

img.loaded {
  background: transparent;
  animation: none;
}

@keyframes sturdydoImgShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

img.img-lazy {
  opacity: 0.08;
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

img.img-lazy.loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  img.img-lazy {
    opacity: 1 !important;
    transition: none !important;
  }
  img:not(.loaded) {
    animation: none !important;
  }
}

.img-container-skeleton {
  position: relative;
  overflow: hidden;
  background: #EAE2D4;
}


/* ==========================================================================
   Fullscreen Mobile Navigation Drawer
   Covers 100% of the mobile viewport with backdrop blur and smooth entrance
   ========================================================================== */
/* ==========================================================================
   PERFECT FULLSCREEN MOBILE NAVIGATION DRAWER
   Smooth slide-down animation, full viewport adaptation, native touch scrolling.
   ========================================================================== */
.mobile-drawer-fullscreen {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 64px !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: calc(100vh - 64px) !important;
  height: calc(100dvh - 64px) !important;
  background-color: var(--background) !important;
  z-index: 9999 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  display: flex !important;
  flex-direction: column !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.mobile-drawer-fullscreen.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.mobile-drawer-fullscreen.hidden {
  display: none !important;
}

/* Animated Editorial Hamburger Button (3 lines morphing into ✕) */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.mobile-menu-toggle:hover {
  background-color: var(--sage-soft);
}

.mobile-menu-toggle .burger-icon {
  width: 1.25rem;
  height: 0.95rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu-toggle .burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

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

/* ==========================================================================
   Scroll-Based Reveal Animations
   Smooth blur-to-focus and gentle vertical entrance
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Smooth Spring Accordion Disclosure & GPU Parallax Layer */
@keyframes accordionContentReveal {
  from {
    opacity: 0;
    transform: translate3d(0, -6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

details[open] > *:not(summary) {
  animation: accordionContentReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-layer {
  will-change: transform;
  backface-visibility: hidden;
}

@media (max-width: 639px), (prefers-reduced-motion: reduce) {
  details[open] > *:not(summary) {
    animation: none !important;
  }
  .parallax-layer {
    transform: none !important;
  }
}

/* ==========================================================================
   BESPOKE STURDYDO BRAND PRELOADER
   Features Sturdydo's signature 3D emblem with golden orbital dynamics.
   Custom-crafted, editorial, warm cream palette, zero generic AI spinners.
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  pointer-events: all;
  will-change: opacity, visibility;
}

.page-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sturdydo-brand-loader {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft ambient breathing aura behind emblem */
.sturdydo-loader-aura {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 227, 212, 0.85) 0%, rgba(215, 227, 212, 0) 70%);
  animation: sturdydoAuraPulse 2.2s ease-in-out infinite;
}

/* Outer orbital ring in signature warm oak */
.sturdydo-loader-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px solid rgba(140, 100, 48, 0.2);
  border-top-color: var(--oak);
  animation: sturdydoOrbitSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Secondary subtle dashed sage accent ring */
.sturdydo-loader-ring-outer {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px dashed rgba(62, 90, 68, 0.3);
  animation: sturdydoCounterOrbit 4.5s linear infinite;
}

/* Central emblem presentation */
.sturdydo-loader-emblem {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sturdydoEmblemFloat 2.4s ease-in-out infinite;
}

.sturdydo-loader-emblem img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(35, 57, 41, 0.16));
}

@keyframes sturdydoOrbitSweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes sturdydoCounterOrbit {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes sturdydoAuraPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0.95; }
}

@keyframes sturdydoEmblemFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    display: none !important;
  }
}

/* =========================================================================
   INFINITE VERTICAL MARQUEE (SAAS TESTIMONIAL COLUMNS)
   ========================================================================= */
@keyframes marqueeUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes marqueeDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.animate-marquee-col-1 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: marqueeUp 26s linear infinite;
  will-change: transform;
}

.animate-marquee-col-2 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: marqueeDown 32s linear infinite;
  will-change: transform;
}

.animate-marquee-col-3 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: marqueeUp 29s linear infinite;
  will-change: transform;
}

.animate-marquee-col-1:hover,
.animate-marquee-col-2:hover,
.animate-marquee-col-3:hover {
  animation-play-state: paused;
}

.testimonial-marquee-mask {
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee-col-1,
  .animate-marquee-col-2,
  .animate-marquee-col-3 {
    animation: none !important;
  }
}

/* Marquee cards must remain crisp & visible at all times inside scroll viewport */
.testimonial-marquee-mask .card-line,
.testimonial-marquee-mask .reveal-on-scroll {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
.testimonial-marquee-mask .card-line:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(35, 57, 41, 0.35);
}

/* =========================================================================
   EDITORIAL MICRO-GRAIN TEXTURE & GLASS UTILITIES
   ========================================================================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glass-editorial {
  background: rgba(252, 249, 243, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* =========================================================================
   EXPANDABLE ROLE RESPONSIBILITIES ACCORDION
   ========================================================================= */
.role-drawer-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.role-drawer-panel.is-open {
  grid-template-rows: 1fr;
}
.role-drawer-inner {
  overflow: hidden;
}


/* =========================================================================
   LENIS INERTIAL SMOOTH SCROLL & PRINT-STYLE PHYSICS
   ========================================================================= */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* =========================================================================
   MASKED LINE-BY-LINE EDITORIAL TYPOGRAPHY REVEAL
   ========================================================================= */
.hero-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-line-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.78s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease;
  will-change: transform, opacity;
}

.hero-line-inner.is-visible {
  transform: translateY(0%);
  opacity: 1;
}

/* =========================================================================
   SCROLL-LINKED MANIFESTO READING REVEAL (CSS view() timeline)
   ========================================================================= */
@supports (animation-timeline: view()) {
  @keyframes editorialFocusRead {
    0% {
      opacity: 0.35;
      transform: translateY(10px);
    }
    35%, 100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .story-reading-reveal {
    animation: editorialFocusRead linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 36%;
  }
}

/* Vertical Scroll-Traced Timeline */
.timeline-progress-rail {
  position: relative;
}
.timeline-progress-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--oak), var(--primary));
  height: 0%;
  border-radius: 9999px;
  pointer-events: none;
  transition: height 0.1s linear;
  z-index: 2;
}

/* =========================================================================
   FLOATING CURSOR PREVIEW INDEX (workshops.html)
   ========================================================================= */
.workshop-index-row {
  position: relative;
  border-top: 1px solid var(--border);
  transition: background-color 0.25s ease, padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.workshop-index-row:last-child {
  border-bottom: 1px solid var(--border);
}
.workshop-index-row:hover {
  background-color: rgba(235, 227, 214, 0.45);
  padding-left: 0.75rem;
}

.cursor-preview-float {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  pointer-events: none;
  z-index: 9500;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 8px, 0) scale(0.94);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.2s;
  will-change: transform, opacity;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 20px 42px -12px rgba(30, 40, 32, 0.24);
}

.cursor-preview-float.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .cursor-preview-float {
    display: none !important;
  }
}

/* =========================================================================
   STUDIO DUAL-FRAME SHOWCASE & ORG CHART TABS
   ========================================================================= */
.editorial-pill-tab {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  color: var(--muted-foreground);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.editorial-pill-tab.is-selected {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(35, 57, 41, 0.22);
}

.org-connector-v {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 auto;
}

.magnetic-ready {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-line-inner {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .story-reading-reveal {
    animation: none !important;
    opacity: 1 !important;
  }
  .cursor-preview-float {
    display: none !important;
  }
}


/* =========================================================================
   SUBTLE STUDIO CRAFT: ROTATING BRAND SEAL, WIPE REVEAL, CURSOR RING
   ========================================================================= */
.sturdydo-seal-badge {
  display: none;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background: rgba(252, 249, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px -6px rgba(30, 40, 32, 0.16);
  color: var(--primary);
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1024px) {
  .sturdydo-seal-badge {
    display: inline-flex;
  }
}

.sturdydo-seal-svg {
  width: 64px;
  height: 64px;
  will-change: transform;
  transform-origin: center center;
}

/* Editorial Wipe Image Unmasking */
.img-wipe-reveal {
  clip-path: inset(14% 0% 0% 0% round 1.5rem);
  opacity: 0.45;
  transform: scale(1.03);
  transition: clip-path 0.95s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s ease,
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: clip-path, opacity, transform;
}

.img-wipe-reveal.is-unmasked {
  clip-path: inset(0% 0% 0% 0% round 1.5rem);
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 1023px), (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .img-wipe-reveal {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Global Small-Viewport Grid & Flex Wrap Safety */
.grid > * {
  min-width: 0;
}

/* =========================================================================
   COMPREHENSIVE MOBILE & LAPTOP RESPONSIVE SYSTEM
   Full responsiveness for 320px–1920px viewports.
   ========================================================================= */

/* --- Extra-Small Viewport (≤359px): Ultra-compact phones --- */
@media (max-width: 359px) {
  header.site-header .font-display.text-xl {
    font-size: 1.125rem;
  }

  /* Tighten hero heading */
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: 1.35rem !important;
  }

  /* Prevent button overflow on tiny screens */
  .btn-primary, .btn-secondary, .btn-white {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
    white-space: normal;
    text-align: center;
    word-break: break-word;
  }

  .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.7rem;
  }

  /* Tags & pills don't overflow */
  .rounded-full[class*="px-3"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 9px;
  }
}

/* --- Small Mobile (360px–479px): Standard phones --- */
@media (max-width: 479px) {
  /* Hero section: stack buttons vertically */
  .flex-wrap {
    gap: 0.5rem;
  }

  /* Ensure full-width buttons in hero on mobile */
  section .flex-wrap .btn-primary,
  section .flex-wrap .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Team card social icons: prevent wrapping below avatar */
  .social-icon-btn {
    width: 1.75rem;
    height: 1.75rem;
  }

  /* Section padding: comfortable breathing room on mobile phones */
  .section-pad {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  /* Card padding: tighter */
  .card-line {
    border-radius: 1rem;
  }

  /* Footer: single column guaranteed */
  footer .grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- Mobile Portrait (≤639px): All phones --- */
@media (max-width: 639px) {
  /* Hero text sizing for readability */
  .font-display.text-4xl {
    font-size: 1.875rem;
  }

  .font-display.text-3xl {
    font-size: 1.5rem;
  }

  .font-display.text-2xl {
    font-size: 1.25rem;
  }

  /* Org chart toggle pills: stack on mobile */
  .editorial-pill-tab {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  /* Team member cards: stack name + badge vertically on mobile */
  .card-line .flex-wrap.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Team department headers: allow text wrapping */
  .font-display.text-2xl {
    word-break: break-word;
  }

  /* Full-width CTA buttons in action sections */
  .bg-primary .flex-wrap {
    flex-direction: column;
    width: 100%;
  }

  .bg-primary .flex-wrap > a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Community section image: proper aspect ratio on mobile */
  .aspect-\[1600\/1008\] {
    aspect-ratio: 4/3;
  }

  /* Prevent horizontal overflow from fixed-width org chart nodes */
  .max-w-md {
    max-width: 100%;
  }

  /* Community stat overlay: position relative on mobile */
  .sm\:absolute {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
  }

  /* Scroll margin for anchor sections below fixed header */
  [id] {
    scroll-margin-top: 5.5rem;
  }
  body.has-announcement-bar [id] {
    scroll-margin-top: 7.5rem !important;
  }

  /* Workshops index row hover padding disabled on touch */
  .workshop-index-row:hover {
    padding-left: 0;
  }

  /* Ensure form inputs fill width */
  .form-input, .form-textarea, .form-select {
    font-size: 1rem; /* Prevents iOS zoom */
  }
}

/* --- Tablet Portrait (640px–767px) --- */
@media (min-width: 640px) and (max-width: 767px) {
  /* 2-column grids that may be too tight */
  .sm\:grid-cols-2 {
    gap: 0.75rem;
  }

  /* Org chart: stack vertically on small tablets */
  .md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
}

/* --- Tablet Landscape & Small Laptops (768px–1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Navigation: ensure nav items don't overflow */
  nav.md\:flex {
    gap: 0.5rem;
  }

  /* 3-column grids: use 2 cols on small laptops */
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero section: 1 column on medium tablets */
  .lg\:grid-cols-\[1\.05fr_0\.95fr\] {
    grid-template-columns: 1fr;
  }
}

/* --- Desktop (1024px–1279px) --- */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Tight nav spacing */
  nav .nav-link {
    font-size: 0.75rem;
  }
}

/* --- Large Desktop (1280px+) --- */
@media (min-width: 1280px) {
  nav .nav-link {
    font-size: 0.875rem;
  }
}

/* --- Touch Device Optimizations --- */
@media (hover: none) and (pointer: coarse) {
  /* Fast tap response (eliminates 300ms double-tap delay) */
  a, button, input, select, textarea {
    touch-action: manipulation;
  }

  /* Tactile native-app feedback on tap */
  .card-line:active {
    transform: scale(0.985) !important;
    background-color: var(--travertine-soft) !important;
    transition: transform 0.08s ease, background-color 0.08s ease;
  }

  .btn-primary:active,
  .btn-secondary:active,
  .btn-white:active {
    transform: scale(0.96) !important;
    opacity: 0.9;
    transition: transform 0.08s ease;
  }

  .editorial-pill-tab:active {
    transform: scale(0.95);
  }

  /* Larger tap targets */
  .btn-primary, .btn-secondary, .btn-white {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 40px;
  }

  .social-icon-btn {
    min-width: 36px;
    min-height: 36px;
  }

  /* Card social icons: stay strictly contained inside card on narrow mobile screens */
  .card-line .social-icon-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    flex-shrink: 0 !important;
  }

  /* Disable hover-only effects on touch */
  .card-line:hover {
    transform: none;
  }

  .nav-link::after {
    display: none;
  }

  /* Remove hover "Learn more" links on touch (they appear on click/tap) */
  .group span.opacity-0 {
    opacity: 1;
  }
}

/* --- Landscape Phone (short+wide viewports) --- */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-drawer-fullscreen {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .mobile-drawer-fullscreen a {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  body {
    padding-top: 56px;
  }

  header.site-header {
    height: 56px !important;
  }

  .mobile-drawer-fullscreen {
    top: 56px !important;
    height: calc(100dvh - 56px) !important;
  }
}

/* --- Safe Area Insets (iPhone X+ notch & gesture bar) --- */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  footer {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .mobile-drawer-fullscreen {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}

/* --- Print Styles --- */
@media print {
  header.site-header,
  #scrollProgressBar,
  .page-loader,
  .mobile-menu-toggle,
  #mobileMenu,
  body::after {
    display: none !important;
  }

  body {
    padding-top: 0;
  }

  .card-line {
    break-inside: avoid;
  }
}
