/* ==========================================================================
   1. CSS Reset & Normalization
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Enable smooth scrolling only for devices that support precise pointer inputs (prevents mobile/iOS scroll-snap/sticking bugs) */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

/* Screen reader text compatibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #FAF8F3;
  clip: auto !important;
  clip-path: none;
  color: #2E412E;
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  position: absolute;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  left: -9999px;
  position: absolute;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}

.skip-link:focus {
  left: 5px;
  top: 5px;
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 100000;
}


/* ==========================================================================
   2. Design Tokens (CSS Variables)
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-bg: #FAF8F3;
  --color-green-dark: #2E412E;
  --color-green-deep: #161B16;
  --color-text: #000000;
  --color-text-light: #D9D9D9;

  /* Button Specific Colors */
  --color-btn-primary-bg: #2E412E;
  --color-btn-primary-text: #FAF8F3;
  --color-btn-secondary-bg: #E2C795;
  --color-btn-secondary-text: #2E412E;
  --color-btn-outline-border: rgba(46, 65, 46, 0.25);

  /* Gradients */
  --gradient-green: linear-gradient(180deg, #2E412E 0%, #76A776 100%);
  --gradient-gold: linear-gradient(180deg, #DBB161 0%, #755E34 100%);
  --gradient-green-horizontal: linear-gradient(90deg, #2E412E 0%, #76A776 100%);
  --gradient-gold-horizontal: linear-gradient(90deg, #DBB161 0%, #755E34 100%);
  --gradient-green-title: linear-gradient(90deg, #243f2b 0%, #4f724f 48%, #9d8f65 100%);
  --gradient-project-placeholder: linear-gradient(180deg, rgba(219, 177, 97, 0.9) 0%, rgba(250, 248, 243, 0.9) 100%);

  /* Typography Families */
  --font-heading: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Segoe UI Black", "Arial Black", "Poppins", system-ui, sans-serif;

  /* Typography Font Sizes */
  --text-xs: 0.85rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-md: 1.125rem;
  /* 18px */
  --text-lg: 1.5rem;
  /* 24px */
  --text-xl: clamp(1.75rem, 3vw, 2.5rem);
  --text-2xl: clamp(2rem, 4.5vw, 3.25rem);
  --text-hero: clamp(2.25rem, 5vw, 3.5rem);
  /* 56px desktop */
  --text-display: clamp(4rem, 14vw, 10.875rem);
  /* 174px desktop */

  /* Spacing Scale (rem equivalents) */
  --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-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */

  /* Border Radii */
  --radius-pill: 100px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-soft: 0 4px 20px -4px rgba(46, 65, 46, 0.05);
  --shadow-card: 0 12px 32px -8px rgba(22, 27, 22, 0.08), 0 4px 12px -2px rgba(22, 27, 22, 0.03);
  --shadow-button: 0 4px 12px -2px rgba(46, 65, 46, 0.16);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Motion System Variables */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 520ms;
  --duration-modal: 640ms;

  /* Layout Container variables */
  --container-width: 1440px;
  --container-padding: 80px;
}


/* ==========================================================================
   3. Base Elements
   ========================================================================== */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  /* 18px desktop */
  line-height: 1.6;
}

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

a:hover {
  color: var(--color-green-dark);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-green-dark);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-hero);
}

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

h3 {
  font-size: var(--text-lg);
}

h4 {
  font-size: var(--text-md);
}

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

p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   4. Typography Utilities
   ========================================================================== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-green-dark);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(46, 65, 46, 0.15);
  border-radius: var(--radius-pill);
  background-color: rgba(46, 65, 46, 0.03);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-md);
  color: rgba(0, 0, 0, 0.65);
  max-width: 680px;
  line-height: 1.6;
}

.section--dark .section-description {
  color: var(--color-text-light);
}

.text-muted {
  color: rgba(0, 0, 0, 0.55);
}

.section--dark .text-muted {
  color: rgba(217, 217, 217, 0.6);
}

/* Gradients for typography */
.text-gradient-green {
  background: var(--gradient-green-horizontal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.text-gradient-gold {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  background: var(--gradient-gold-horizontal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

/* Section Heading Gradient Titles */
.section-title,
.featured-works-section__title,
.why-us-section__title,
.pricing-section__title,
.faq-panel__green {
  background: var(--gradient-green-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Ensure leading slashes or specific inner elements do not inherit transparent fill or gradient background */
.featured-works-section__title span,
.why-us-section__title span,
.pricing-section__title span,
.faq-panel__title .faq-panel__slash {
  -webkit-text-fill-color: initial;
  color: var(--color-green-dark);
  background: none;
}

@supports not (-webkit-background-clip: text) {

  .section-title,
  .featured-works-section__title,
  .why-us-section__title,
  .pricing-section__title,
  .faq-panel__green {
    background: none;
    color: var(--color-green-dark);
  }
}

/* Override dark sections or specific widgets to remain readable */
.section--dark .section-title,
.our-work-section__title {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--color-bg) !important;
}

.display-wordmark {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  user-select: none;
}

.section--dark .display-wordmark {
  color: var(--color-bg);
}


/* ==========================================================================
   5. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: 40px;
  position: relative;
  overflow: hidden;
}

.section--medium {
  padding-block: var(--space-18, 4.5rem);
  /* 72px */
}

.section--compact {
  padding-block: var(--space-12);
  /* 48px */
}

.section--dark {
  background-color: var(--color-green-dark);
  color: var(--color-text-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-bg);
}

.section--dark .section-eyebrow {
  color: var(--color-btn-secondary-bg);
  border-color: rgba(226, 199, 149, 0.3);
  background-color: rgba(226, 199, 149, 0.05);
}


/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  /* 12px */
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-button);
  position: relative;
  overflow: hidden;
}

.btn span {
  display: inline-block;
  transition: transform var(--duration-base) var(--ease-premium);
}

.btn::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-premium);
  white-space: nowrap;
  font-weight: 600;
}

.btn-primary::after {
  color: #faf8f3;
}

.btn-secondary::after {
  color: var(--color-green-dark);
}

.btn:hover span {
  transform: translateY(-200%);
}

.btn:hover::after {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(46, 65, 46, 0.25);
  background-color: var(--color-green-dark);
  color: #faf8f3 !important;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background-color: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(226, 199, 149, 0.25);
  background-color: #dfbf88;
  color: var(--color-green-dark) !important;
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-btn-outline-border);
  color: var(--color-green-dark);
  box-shadow: none;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background-color: rgba(46, 65, 46, 0.04);
  border-color: var(--color-green-dark);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

.section--dark .btn-outline {
  border-color: rgba(217, 217, 217, 0.3);
  color: var(--color-bg);
}

.section--dark .btn-outline:hover {
  background-color: rgba(250, 248, 243, 0.05);
  border-color: var(--color-bg);
}

.btn-small {
  padding: 8px 16px;
  font-size: 11px;
}


/* ==========================================================================
   7. Pills
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-pill);
  background-color: rgba(46, 65, 46, 0.06);
  color: var(--color-green-dark);
  border: 1px solid rgba(46, 65, 46, 0.1);
}

.section--dark .pill {
  background-color: rgba(250, 248, 243, 0.08);
  color: var(--color-bg);
  border-color: rgba(250, 248, 243, 0.15);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background-color: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-text);
  border: 1px solid rgba(46, 65, 46, 0.1);
}


/* ==========================================================================
   8. Cards
   ========================================================================== */
.card {
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--duration-base) var(--ease-premium), box-shadow var(--duration-base) var(--ease-premium);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(46, 65, 46, 0.08);
  overflow: hidden;
  position: relative;
}

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

.card--cream {
  background-color: #FAF8F3;
  color: #000000;
  border-color: rgba(46, 65, 46, 0.08);
}

.card--dark {
  background-color: var(--color-green-dark);
  color: var(--color-text-light);
  border-color: rgba(250, 248, 243, 0.08);
}

.card--dark h1,
.card--dark h2,
.card--dark h3,
.card--dark h4 {
  color: var(--color-bg);
}

.card--gradient-green {
  background: var(--gradient-green);
  color: var(--color-text-light);
  border-color: rgba(250, 248, 243, 0.05);
}

.card--gradient-green h1,
.card--gradient-green h2,
.card--gradient-green h3,
.card--gradient-green h4 {
  color: var(--color-bg);
}

.card--gradient-gold {
  background: var(--gradient-gold);
  color: var(--color-bg);
  border-color: rgba(250, 248, 243, 0.05);
}

.card--gradient-gold h1,
.card--gradient-gold h2,
.card--gradient-gold h3,
.card--gradient-gold h4 {
  color: var(--color-bg);
}


/* ==========================================================================
   9. Gradients
   ========================================================================== */
.gradient-green {
  background: var(--gradient-green);
}

.gradient-gold {
  background: var(--gradient-gold);
}

.gradient-project {
  background: var(--gradient-project-placeholder);
}





/* ==========================================================================
   11. Site Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-green-deep);
  color: var(--color-text-light);
  padding-block: var(--space-16) var(--space-12);
  border-top: 1px solid rgba(250, 248, 243, 0.08);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.site-footer__copyright p {
  font-size: var(--text-sm);
  color: rgba(217, 217, 217, 0.7);
}

.site-footer__links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.site-footer a {
  font-size: var(--text-sm);
  color: rgba(217, 217, 217, 0.7);
}

.site-footer a:hover {
  color: var(--color-bg);
}

.site-footer__links .separator {
  color: rgba(217, 217, 217, 0.25);
  user-select: none;
}


/* ==========================================================================
   13. Responsive Rules
   ========================================================================== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Ensure buttons are easily tappable (min 44px height for mobile touch targets) */
.btn,
button,
a.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* 1200px Breakthrough (Small Desktop / Laptop) */
@media (max-width: 1200px) {
  :root {
    --container-padding: 60px;
  }
}

/* 992px Breakthrough (Tablet) */
@media (max-width: 992px) {
  :root {
    --container-padding: 40px;
    --space-24: 5rem;
    /* 80px */
  }

  .section {
    padding-block: 35px;
  }

  .section--medium {
    padding-block: 60px;
  }
}

/* 768px Breakthrough (Mobile) */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --space-24: 4rem;
    /* 64px */
    --space-20: 3.5rem;
    --space-16: 3rem;
  }

  body {
    font-size: 16px;
    /* slightly smaller body text on tablet/mobile */
  }

  .section {
    padding-block: 30px;
  }

  .section--medium {
    padding-block: 48px;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  .site-footer__links {
    justify-content: center;
  }
}

/* 480px Breakthrough (Small Mobile) */
@media (max-width: 480px) {
  :root {
    --space-24: 3rem;
    /* 48px */
    --space-20: 2.5rem;
    --space-16: 2.25rem;
  }

  .section {
    padding-block: 24px;
  }

  .section--medium {
    padding-block: 36px;
  }
}


/* ==========================================================================
   14. Accessibility Improvements
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-green-dark);
  outline-offset: 4px;
}

.section--dark a:focus-visible,
.section--dark button:focus-visible,
.card--dark a:focus-visible,
.card--dark button:focus-visible {
  outline-color: var(--color-bg);
}


/* ==========================================================================
   15. Final Responsive Audit — Targeted Overflow & Layout Fixes
   ========================================================================== */

/* ── Global: hard-stop horizontal overflow on every element ── */
*,
*::before,
*::after {
  min-width: 0;
  /* prevents flex/grid children from overflowing their container */
}

/* ── 360–390px: ensure container padding is safe ── */
@media (max-width: 400px) {
  :root {
    --container-padding: 16px;
  }
}

/* ── Header: prevent pill nav from wrapping on 360px ── */
@media (max-width: 400px) {
  .site-header__brand-nav {
    padding: 0;
    gap: var(--space-2);
  }

  .site-logo {
    height: 26px;
  }
}

/* ── Hero: prevent actions from overflowing at 360px ── */
@media (max-width: 400px) {
  .hero-section__actions {
    max-width: 100%;
    padding-inline: 0;
  }

  .hero-section__inner {
    width: 100%;
    padding-inline: 0;
  }

  .hero-section__title {
    font-size: clamp(1.65rem, 7vw, 2rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-section__description {
    font-size: 0.9rem;
    max-width: 100%;
  }
}

/* ── Featured Works: prevent card grid from over-constraining at 360px ── */
@media (max-width: 400px) {
  .featured-works-section__grid {
    gap: var(--space-4);
  }

  .featured-project-card__visual {
    height: 240px;
  }

  .featured-project-card__img {
    padding: 16px;
  }

  .featured-works-section__title {
    font-size: 1.4rem;
  }
}

/* ── Why Us: prevent aspect-ratio from inflating cards on tiny screens ── */
@media (max-width: 400px) {

  .why-us-column,
  .why-us-testimonial {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: auto !important;
  }

  .why-us-visual-card {
    height: 240px !important;
  }

  .why-us-section__title {
    font-size: 1.4rem;
  }
}

/* ── Our Work: clamp shell margin so dark card never touches viewport edge ── */
@media (max-width: 400px) {
  .our-work-shell {
    margin-inline: 4px;
    padding-block: 24px;
  }

  .our-work-shell__content {
    padding-inline: 12px;
  }

  .our-work-section__title {
    font-size: 1.5rem;
  }

  .our-work-section__description {
    font-size: 0.85rem;
  }
}

/* ── Experience: collage images must not overflow container on 360px ── */
@media (max-width: 400px) {
  .experience-section__visual {
    overflow: hidden;
    width: 100%;
  }

  .experience-section__collage,
  div.experience-section__collage {
    max-width: 100%;
  }

  .experience-section__collage-img {
    max-width: 100%;
    height: auto;
  }

  .experience-section__title {
    font-size: 1.6rem;
  }

  .experience-logo-strip {
    gap: 10px 14px;
  }

  .experience-logo-strip__img {
    max-height: 14px;
    max-width: 70px;
  }
}

/* ── Pricing: protect card name from overflowing at 360px ── */
@media (max-width: 400px) {
  .pricing-section__title {
    font-size: 1.4rem;
  }

  .pricing-card__name {
    font-size: 20px;
  }

  .pricing-card__top {
    padding: 16px 14px;
  }

  .pricing-card__body {
    padding: 16px 14px 14px 14px;
  }

  .pricing-section__top {
    margin-bottom: 28px;
  }
}

/* ── FAQ: ensure question text wraps and icon stays visible at 360px ── */
@media (max-width: 400px) {
  .faq-contact-grid {
    gap: 32px;
  }

  .faq-item__question {
    padding: 16px 14px;
    font-size: 13.5px;
    gap: 12px;
  }

  .faq-item__answer-inner {
    padding: 0 14px 16px 14px;
    font-size: 12.5px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-card__title {
    font-size: clamp(28px, 8vw, 38px);
  }
}

/* ── Final CTA: protect headline at 360px ── */
@media (max-width: 400px) {
  .final-cta-section__title {
    font-size: clamp(22px, 6.5vw, 34px);
    padding-inline: 8px;
    margin-bottom: 24px;
  }

  .final-cta-button {
    padding-right: 20px;
  }
}

/* ── Footer marquee: reduce item size further at 360px ── */
@media (max-width: 400px) {
  .footer-marquee__track {
    gap: 28px;
  }

  .footer-marquee__item {
    width: 110px;
    height: 60px;
  }

  .footer-marquee::before,
  .footer-marquee::after {
    width: 60px;
    /* narrower fade mask on tiny screens */
  }
}

/* ── Footer wordmark: ensure it never exceeds viewport at any width ── */
.footer-wordmark-wrap {
  max-width: 100vw;
}

@media (max-width: 480px) {
  .footer-wordmark {
    font-size: clamp(2rem, 11vw, 4.5rem);
    letter-spacing: -0.04em;
  }
}

@media (max-width: 400px) {
  .footer-wordmark {
    font-size: clamp(1.8rem, 10.5vw, 3rem);
    letter-spacing: -0.03em;
  }

  .footer-brand-main__heading {
    font-size: 2rem;
  }

  .footer-brand-main__email {
    font-size: 0.875rem;
    word-break: break-all;
  }

  .footer-legal {
    font-size: 10px;
  }

  .footer-legal__links {
    gap: var(--space-3);
  }
}

/* ==========================================================================
   16. Animations & Interactions (Phase 10)
   ========================================================================== */

/* ── Soft Section Reveal ── */
.reveal-section {
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

body.js-enabled .reveal-section {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-section.is-visible,
body.js-enabled .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-section .reveal-item {
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

body.js-enabled .reveal-section .reveal-item {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-section.is-visible .reveal-item,
body.js-enabled .reveal-section.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

/* ── Cursor Glow ── */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin-top: -210px;
  margin-left: -210px;
  /* Soft radial glow using site palette: gold (#E2C795) to green (#2E412E) to transparent */
  background: radial-gradient(circle,
      rgba(226, 199, 149, 0.12) 0%,
      rgba(46, 65, 46, 0.04) 50%,
      transparent 70%);
  pointer-events: none;
  border-radius: 999px;
  z-index: 90;
  /* Sit above section backgrounds but below headers and modals */
  transform: translate3d(var(--glow-x, -9999px), var(--glow-y, -9999px), 0);
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform, opacity;
}

.cursor-glow.is-active {
  opacity: 1;
}

/* ── Spotlight Effect ── */
.has-spotlight {
  position: relative;
  overflow: hidden;
}

.has-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Spotlight using site palette: soft gold / green gradient at cursor */
  background: radial-gradient(600px circle at var(--spotlight-x, 0px) var(--spotlight-y, 0px),
      rgba(226, 199, 149, 0.08) 0%,
      rgba(46, 65, 46, 0.02) 40%,
      transparent 80%);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background, opacity;
}

/* Adjust spotlight position for specific containers if needed */
.has-spotlight>* {
  position: relative;
  z-index: 2;
}

.has-spotlight:hover::before {
  opacity: 1;
}

/* Specific styling for final-cta-button when it has spotlight to keep look premium */
.final-cta-button.has-spotlight::before {
  background: radial-gradient(180px circle at var(--spotlight-x, 0px) var(--spotlight-y, 0px),
      rgba(250, 248, 243, 0.15) 0%,
      transparent 80%);
}

/* ── Accessibility: Respect prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {

  .reveal-section,
  .reveal-section .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  .cursor-glow,
  .has-spotlight::before {
    display: none !important;
    opacity: 0 !important;
    transition: none !important;
  }
}

/* Hide on touch devices or screens below 1024px to prevent overlay click block issues */
@media (pointer: coarse),
(max-width: 1024px) {

  .cursor-glow,
  .has-spotlight::before {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ==========================================================================
   Generic Page Content Formatting (Terms, Privacy, Default Pages)
   ========================================================================== */
.content-area {
  padding-top: 60px;
  padding-bottom: var(--space-20);
}

.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  background: var(--gradient-green-horizontal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  /* block to allow proper wrapping */
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.12em;
  margin-bottom: var(--space-4);
}

.entry-title {
  margin-bottom: var(--space-10);
  margin-top: var(--space-10);
}

.entry-content h2 {
  margin-top: var(--space-8);
}

.entry-content ul,
.entry-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.entry-content ul {
  list-style-type: disc;
}

.entry-content ol {
  list-style-type: decimal;
}

.entry-content li {
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.entry-content p {
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

@media (max-width: 768px) {}

.page-back-home {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(46, 65, 46, 0.1);
  display: flex;
  justify-content: flex-start;
}

.page-back-btn {
  background-color: transparent !important;
  border: 1px solid rgba(46, 65, 46, 0.35) !important;
  color: var(--color-green-dark) !important;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  box-shadow: none !important;
  padding: 10px 24px !important;
}

.page-back-btn:hover {
  background-color: rgba(46, 65, 46, 0.06) !important;
  border-color: rgba(46, 65, 46, 0.65) !important;
  color: var(--color-green-deep) !important;
  transform: translateY(-2px) !important;
}

.page-back-btn::after {
  color: var(--color-green-deep) !important;
}