/**
 * Purpose: Single Source of Truth - Global Design System & Foundations
 * Responsibilities: Establish a production-grade, mobile-first design system with design tokens, layout primitives, component foundations, and utilities.
 * Version: 2.0.0
 */

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

html {
  font-size: 100%;
  /* Fallback for older browsers */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Smooth scrolling only during focus-based navigation (keyboard, anchor links).
 * Applying scroll-behavior: smooth globally on html causes the browser's
 * scroll-anchoring corrections (triggered by mobile address bar layout shifts)
 * to animate visibly, producing a "rubber-band" snap-back effect on mobile.
 */
@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

/* Ensure anchor links are not hidden under the sticky navbar */
[id] {
  scroll-margin-top: var(--header-height, 72px);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  line-height: var(--line-height-base);
  min-height: 100vh;
  min-height: 100dvh;
  /* Modern mobile-safe fallback */
  overflow-x: clip;
  /* Clips overflow without creating a scroll container (avoids iOS Safari scroll interference) */
  text-rendering: optimizeSpeed;
}

img,
picture,
video,
canvas,
svg:not(a svg, button svg, .badge svg) {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

/* Inherit fonts for form control elements */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove default padding from native table */
table {
  border-collapse: collapse;
  border-spacing: 0;
}


/* ==========================================================
   ROOT DESIGN TOKENS
========================================================== */
:root {
  /* --------------------------------------------------------
     COLOR SYSTEM
     -------------------------------------------------------- */
  /* Brand Identity */
  --color-primary: #1A1A1A;
  --color-secondary: #333333;
  --color-accent: #B8860B;
  /* Premium luxury gold */
  --color-accent-hover: #996515;

  /* Surfaces & Backgrounds */
  --color-surface: #FFFFFF;
  --color-surface-hover: #F8F9FA;
  --color-background: #FAFAFA;
  --color-card-background: #FFFFFF;
  --main-background:linear-gradient(135deg, rgba(15, 23, 39, 0.85) 0%, rgba(18, 27, 46, 0.95) 100%), linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);

  /* Borders & Dividers */
  --color-border: #E5E7EB;
  --color-divider: #F3F4F6;

  /* Typography Colors */
  --color-text-primary: #111827;
  --color-text-secondary: #4B5563;
  --color-text-muted: #9CA3AF
  ;
  --color-text-thirdly:#c7ccd6;
  /* Aliases used across page-level stylesheets */
  --color-text: var(--color-text-primary);
  --color-text-light: var(--color-text-secondary);

  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Interactions & Overlays */
  --color-focus-ring: rgba(184, 134, 11, 0.4);
  --color-overlay: rgba(17, 24, 39, 0.7);

  /* Hero system shared across marketing pages */
  --hero-overlay-mobile: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.95) 100%), linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  --hero-overlay-desktop: radial-gradient(circle at 70% 30%, rgba(184, 134, 11, 0.15) 0%, transparent 60%), radial-gradient(circle at 30% 50%, rgba(17, 24, 39, 0.4) 0%, rgba(17, 24, 39, 0.85) 80%), linear-gradient(to right, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.7) 50%, rgba(17, 24, 39, 0.3) 100%);
  --hero-padding-block-start-mobile: var(--space-5);
  --hero-padding-block-end-mobile: var(--space-5);
  --hero-padding-block-start-tablet: var(--space-16);
  --hero-padding-block-end-tablet: var(--space-12);
  --hero-padding-block-start-desktop: var(--space-24);
  --hero-padding-block-end-desktop: var(--space-16);
  --hero-padding-block-mobile: var(--space-8);
  --hero-padding-block-tablet: var(--space-16) var(--space-12);
  --hero-padding-block-desktop: var(--space-24) var(--space-16);

  /* Lighter gradient derivatives of hero palette for product content sections */
  --product-section-bg-light: linear-gradient(180deg, #f7f8fa 0%, #f0f2f5 100%);
  --product-section-bg-warm: linear-gradient(180deg, #faf8f5 0%, #f5f0eb 100%);
  --product-section-bg-cool: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  --product-section-bg-gold: linear-gradient(180deg, rgba(184, 134, 11, 0.05) 0%, var(--color-background) 100%);

  /* --------------------------------------------------------
     TYPOGRAPHY SYSTEM
     -------------------------------------------------------- */
  /* Fonts */
  --font-heading: 'Manrope', 'Plus Jakarta Sans', 'General Sans', sans-serif;
  --font-body: 'Inter', 'DM Sans', sans-serif;

  /* Fluid Font Sizes (Mobile to Desktop) */
  --text-xs: clamp(0.75rem, 0.7vw + 0.1rem, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8vw + 0.1rem, 1rem);
  /* --text-base: clamp(1rem, 1vw + 0.1rem, 1.125rem); */
  --text-lg: clamp(1.125rem, 1.2vw + 0.1rem, 1.25rem);
  --text-xl: clamp(1.25rem, 1.5vw + 0.1rem, 1.5rem);
  --text-2xl: 1.5rem;
  --text-h2: clamp(1.5rem, 3vw + 0.2rem, 2rem);
  --text-3xl: clamp(1.5rem, 3vw + 0.1rem, 2.5rem);
  --text-4xl: clamp(2.5rem, 4vw + 0.1rem, 3.5rem);
  --text-5xl: clamp(3rem, 5vw + 1rem, 4.5rem);

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-base: 1.6;
  --line-height-loose: 1.8;

  /* Letter Spacing */
  --tracking-tighter: -0.04em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0em;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;

  /* --------------------------------------------------------
     SPACING SCALE
     -------------------------------------------------------- */
  /* Fluid and predictable spacing units based on 4px grid */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-14: 3.5rem;
  /* 56px */
  --space-16: 4rem;
  /* 64px */
  --space-24: 6rem;
  /* 96px */
  --space-32: 8rem;
  /* 128px */
  --space-48: 12rem;
  /* 192px */
  --space-64: 16rem;
  /* 256px */
  --space-96: 24rem;
  /* 384px */

  /* --------------------------------------------------------
     BORDER RADIUS
     -------------------------------------------------------- */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-pill: 9999px;
  --radius-full: var(--radius-pill);
  --radius-circle: 50%;

  /* --------------------------------------------------------
     SHADOWS (ELEVATION)
     -------------------------------------------------------- */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* --------------------------------------------------------
     Z-INDEX SCALE
     -------------------------------------------------------- */
  --z-hide: -1;
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-overlay: 1300;
  --z-modal: 1400;
  --z-toast: 1500;

  /* --------------------------------------------------------
     CONTAINER SYSTEM
     -------------------------------------------------------- */
  --container-max-width: 1440px;
  --container-narrow: 800px;
  --container-wide: 1600px;
  --container-padding: clamp(var(--space-1), 4vw, var(--space-12));

  --header-height: 72px;
  --header-height-scrolled: 60px;

  /* --------------------------------------------------------
     ANIMATION TOKENS
     -------------------------------------------------------- */
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Fallback for old variables */
  --transition-fast: var(--duration-fast) var(--ease-standard);
  --transition-base: var(--duration-base) var(--ease-standard);
  --transition-slow: var(--duration-slow) var(--ease-standard);
}


/* ==========================================================
   TYPOGRAPHY SYSTEM
========================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}


h2,
.text-h2 {
  font-size: var(--text-h2);
}

h3,
.text-h3 {
  font-size: var(--text-2xl);
}

h4,
.text-h4 {
  font-size: var(--text-xl);
}

h5,
.text-h5 {
  font-size: var(--text-lg);
}

h6,
.text-h6 {
  font-size: var(--text-base);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.text-lead {
  font-size: var(--text-lg);
  line-height: var(--line-height-base);
  color: var(--color-text-secondary);
}

.text-small {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.text-caption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}


/* ==========================================================
   LAYOUT SYSTEM
========================================================== */
.main-container {
  width: 100%;
  max-width: clamp(1440px, 95vw, 1920px);
  /* Safely boxes ultra-wide displays */
  margin-inline: auto;
  padding-inline: var(--container-padding);
  box-sizing: border-box;
  overflow: clip;
  /* Modern alternative to hidden */
  display: flex;
  flex-direction: column;
}

/* 
  Full-bleed technique:
  Pulls sections out to the container edges to allow backgrounds to bleed,
  while pushing the inner content back in for perfect alignment.
*/
.main-container>section {
  margin-inline: calc(var(--container-padding) * -1);
  padding-inline: var(--container-padding);
}

/* Prevent double padding when a container is placed inside a full-bleed section */
.main-container>section .container {
  padding-inline: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Vertical Rhythm Helpers */
.section-padding {
  padding-block: var(--space-16);
}

@media (min-width: 768px) {
  .section-padding {
    padding-block: var(--space-24);
  }
}

@media (min-width: 1920px) {
  .section-padding {
    padding-block: var(--space-32);
  }
}

/* Flow: Consistently spaces out direct children vertically */
.flow>*+* {
  margin-block-start: var(--flow-space, var(--space-6));
}

/* Stack: Vertical flex layout */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-4));
}

/* Cluster: Horizontal flex layout that wraps */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, var(--space-4));
  align-items: center;
}


/* ==========================================================
   GRID SYSTEM
========================================================== */
.grid {
  display: grid;
  gap: var(--grid-gap, var(--space-6));
}

/* Responsive Auto-Fit Grid */
.grid-auto-fit {
  display: grid;
  gap: var(--grid-gap, var(--space-6));
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-col, 300px)), 1fr));
}

/* Mobile-first explicit columns */
.grid-2-col,
.grid-3-col,
.grid-4-col {
  display: grid;
  gap: var(--grid-gap, var(--space-6));
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4-col {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================================
   FORM ELEMENTS FOUNDATION
========================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}


/* ==========================================================
   BUTTON FOUNDATIONS
========================================================== */
/* Generic structural foundation for all buttons */
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  border-radius: var(--radius-pill);
  transition: all var(--duration-base) var(--ease-standard);
  text-decoration: none;
}

.btn-base:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ==========================================================
   UTILITIES
========================================================== */
/* Accessibility: Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Accessibility: SR Only until focused (e.g. Skip Links) */
.sr-only-focusable:focus,
.sr-only-focusable:active {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Focus Indicator Utility */
.focus-ring:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-focus-ring);
  border-radius: inherit;
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Display */
.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

/* Width/Height Helpers */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* Margin Auto */
.mx-auto {
  margin-inline: auto;
}

/* Background Surfaces */
.bg-surface {
  background-color: var(--color-background);
}


/* ==========================================================
   ANIMATIONS & TRANSITIONS
========================================================== */
/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================
   RESPONSIVE ENHANCEMENTS
========================================================== */
/* 
   Note: The design system is strictly mobile-first. 
   Default styles apply to all screens.
   Any specific breakpoint utility overrides should be placed here,
   but layout shifts are handled fluidly or via min-width queries locally.
*/


/* ==========================================================
   LENIS SMOOTH SCROLL INTEGRATION
========================================================== */
/*
 * Lenis overrides native scroll-behavior and manages smooth scrolling
 * via requestAnimationFrame. These styles prevent conflicts between
 * Lenis and the browser's native scroll-behavior implementation.
 */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}


/* ==========================================================
   REUSABLE ANIMATION KEYFRAMES
========================================================== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Stagger-ready reveal utility — use with .is-visible trigger */
.stagger-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.stagger-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-reveal:nth-child(1) {
  transition-delay: 0s;
}

.stagger-reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.stagger-reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.stagger-reveal:nth-child(5) {
  transition-delay: 0.4s;
}


/* ==========================================================
   SHARED PAGE COMPONENTS
   Reusable across Gallery, Projects, About, Services, etc.
========================================================== */

/* ----------------------------------------------------------
   UI State — Loading / Empty / Error feedback containers
   Hidden by default; shown via .is-active toggle
   ---------------------------------------------------------- */
.ui-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  gap: var(--space-2);
}

.ui-state.is-active {
  display: flex;
}

.ui-state__icon {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.ui-state__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.ui-state__desc {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 28rem;
  line-height: var(--line-height-base);
}

/* ----------------------------------------------------------
   Page Hero — Light gradient hero for inner pages
   ---------------------------------------------------------- */
.page-hero {
   background: var(--hero-overlay-mobile);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw + 0.5rem, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: var(-line-height-tight);
  color: var(--color-surface);
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}

.page-hero__desc {
  font-size: var(--text-lg);
  color: var(--color-surface);
  line-height: var(--line-height-base);
  max-width: 42rem;
}

.page-hero__desc.mx-auto {
  margin-inline: auto;
}

/* Modifier: Dark Theme for Page Hero (Mirrors product page hero overlay) */
.page-hero--dark {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  border-bottom: none;
  isolation: isolate;
}

.page-hero--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay-mobile);
}

@media (min-width: 768px) {
  .page-hero--dark::before {
    background: var(--hero-overlay-desktop);
  }
}

.page-hero--dark .page-hero__title {
  color: var(--color-surface);
}

.page-hero--dark .page-hero__desc {
  color: rgba(255, 255, 255, 0.9);
}

/* ----------------------------------------------------------
   Section Text — Shared body text for content sections
   ---------------------------------------------------------- */
.section-text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-4);
}

/* Spacing utility */
.mb-3 {
  margin-bottom: var(--space-12);
}

/* ----------------------------------------------------------
   CTA Band — Shared dark CTA section
   Used by Products, Projects, Services, About
   ---------------------------------------------------------- */
.cta-band {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.cta-band__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
  color: var(--color-surface);
  letter-spacing: var(--tracking-tight);
}

.cta-band__desc {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto var(--space-10) auto;
  line-height: var(--line-height-base);
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-band .btn-primary {
  background-color: var(--color-surface);
  color: var(--color-primary);
}

.cta-band .btn-primary:hover {
  background-color: var(--color-surface-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-surface);
}

.cta-band .btn-outline:hover {
  border-color: var(--color-surface);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------------------------
   Outline Button — Secondary action variant
   ---------------------------------------------------------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background-color: var(--color-surface-hover);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   Loading Spinner — Shared across Gallery, Projects
   ---------------------------------------------------------- */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--color-border);
  border-radius: var(--radius-circle);
  border-top-color: var(--color-primary);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto var(--space-4) auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----------------------------------------------------------
   Scroll Reveal — Single source of truth
   Used with IntersectionObserver .is-visible trigger
   ---------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

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

/* Eyebrow label — shared overline component */
.eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

/* Section title — shared heading component */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

/* Section description */
.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-8);
}

/* Max-width utility */
.max-w-md {
  max-width: 48rem;
}

/* Nav top padding */
.pt-nav {
  padding-top: var(--nav-height, 80px);
}

/* ==========================================================
   REUSABLE NOTIFICATION SYSTEM (TOAST)
========================================================== */
.toast-notification {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast, 1500);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: opacity var(--duration-base) var(--ease-spring),
              transform var(--duration-base) var(--ease-spring);
  border-left: 4px solid transparent;
}

.toast-notification.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast-notification.is-success {
  border-left-color: var(--color-success);
}

.toast-notification.is-error {
  border-left-color: var(--color-error);
}

.toast-notification__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-notification.is-success .toast-notification__icon {
  color: var(--color-success);
}

.toast-notification.is-error .toast-notification__icon {
  color: var(--color-error);
}

@media (max-width: 640px) {
  .toast-notification {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    width: auto;
  }
}