/*
 * Sarh Al-Zill (صرح الظل) - Primary Theme Stylesheet
 *
 * Architecture: Layered BEM with CSS Custom Properties
 * Version: 1.0.0
 * 
 * Layers:
 * 1. Foundation (Reset, Base)
 * 2. Typography
 * 3. Layout
 * 4. Components
 * 5. Sections
 * 6. Accessibility
 * 7. Responsive
 */

/* ==========================================================================
   1. Foundation
   ========================================================================== */

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: var(--sz-typography-line-heights-normal);
  background-color: var(--sz-colors-surface-base);
  color: var(--sz-colors-text-primary);
  font-family: var(--sz-typography-font-families-arabic);
}

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

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

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Reset lists that act as components */
ul[class],
ol[class] {
  list-style: none;
  padding-inline-start: 0;
  margin-block: 0;
}

/* Base Styles */
html[dir="rtl"] body {
  text-align: start;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin-block-start: 0;
  margin-block-end: var(--sz-spacing-4);
  font-weight: var(--sz-typography-weights-bold);
  line-height: var(--sz-typography-line-heights-tight);
  color: var(--sz-colors-text-primary);
}

p {
  margin-block-start: 0;
  margin-block-end: var(--sz-spacing-4);
  color: var(--sz-colors-text-secondary);
}

p:last-child {
  margin-block-end: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.sz-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--sz-spacing-4);
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* Link Arrow */
.sz-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sz-spacing-2);
  color: var(--sz-colors-brand-secondary);
  font-weight: var(--sz-typography-weights-medium);
  outline-offset: 4px;
}
.sz-link-arrow:hover,
.sz-link-arrow:focus-visible {
  color: var(--sz-colors-brand-primary);
}
.sz-link-arrow:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
}

/* Buttons */
.sz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--sz-spacing-3);
  padding-inline: var(--sz-spacing-6);
  border-radius: var(--sz-radius-base);
  font-weight: var(--sz-typography-weights-medium);
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
  background-color: transparent;
  text-decoration: none;
}
.sz-btn:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 2px;
}
.sz-btn:active {
  transform: scale(0.98);
}
.sz-btn:disabled,
.sz-btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.sz-btn--primary {
  background-color: var(--sz-colors-brand-secondary);
  color: var(--sz-colors-brand-primary);
  box-shadow: var(--sz-shadows-sm);
}
.sz-btn--primary:hover,
.sz-btn--primary:focus-visible {
  background-color: var(--sz-colors-brand-primary);
  color: var(--sz-colors-brand-secondary);
  box-shadow: var(--sz-shadows-gold);
}

.sz-btn--ghost {
  border-color: var(--sz-colors-border-strong);
  color: var(--sz-colors-text-primary);
}
.sz-btn--ghost:hover,
.sz-btn--ghost:focus-visible {
  background-color: var(--sz-colors-surface-subtle);
  border-color: var(--sz-colors-text-primary);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.sz-nav {
  position: sticky;
  top: 0;
  z-index: var(--sz-z-sticky);
  background-color: var(--sz-colors-brand-primary);
  color: var(--sz-colors-text-inverse);
  box-shadow: var(--sz-shadows-md);
}

.sz-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sz-spacing-16);
  position: relative;
}

/* Logo */
.sz-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  z-index: 2; /* keep logo clickable above menu panel */
}
.sz-nav__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.sz-nav__logo-text {
  font-size: var(--sz-typography-scale-xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-brand-secondary);
}

/* Mobile Toggle */
.sz-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--sz-spacing-2);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--sz-colors-brand-secondary);
  z-index: 2;
}
.sz-nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--sz-motion-durations-fast) var(--sz-motion-easings-standard),
              opacity var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
  margin-inline: auto;
}

/* Toggle Active State */
.sz-nav__toggle[aria-expanded="true"] .sz-nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sz-nav__toggle[aria-expanded="true"] .sz-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.sz-nav__toggle[aria-expanded="true"] .sz-nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu Container (Mobile) */
.sz-nav__menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  width: 100%;
  background-color: var(--sz-colors-brand-primary);
  border-block-start: 1px solid var(--sz-colors-brand-accent);
  box-shadow: var(--sz-shadows-lg);
  display: none;
  z-index: 1;
}

/* Show menu when aria-expanded="true" on toggle (CSS Level 4 :has selector) */
.sz-nav:has(.sz-nav__toggle[aria-expanded="true"]) .sz-nav__menu {
  display: block;
}

.sz-nav__list {
  display: flex;
  flex-direction: column;
}

.sz-nav__item {
  border-block-end: 1px solid var(--sz-colors-brand-accent);
}

.sz-nav__item:last-child {
  border-block-end: none;
}

.sz-nav__link {
  display: block;
  padding: var(--sz-spacing-4) var(--sz-spacing-6);
  color: var(--sz-colors-text-inverse);
  font-weight: var(--sz-typography-weights-medium);
  text-decoration: none;
  transition: color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard),
              transform var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
  position: relative;
  outline-offset: -2px;
}

.sz-nav__link:hover,
.sz-nav__link:focus-visible {
  color: var(--sz-colors-brand-secondary);
}

.sz-nav__link:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
}

.sz-nav__link:active {
  transform: scale(0.98);
}

.sz-nav__link[aria-current="page"] {
  color: var(--sz-colors-brand-secondary);
  font-weight: var(--sz-typography-weights-semibold);
  border-inline-start: 2px solid var(--sz-colors-brand-secondary);
}

/* ==========================================================================
   HERO
   ========================================================================== */

section[data-component="hero"] {
  position: relative;
  padding-block: 0; /* Remove default section padding for full-bleed hero */
  overflow: hidden;
  background-color: var(--sz-colors-brand-primary);
}

.sz-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
  padding-block: var(--sz-spacing-16);
}

.sz-hero__text {
  max-width: 800px;
}

.sz-hero__eyebrow {
  color: var(--sz-colors-brand-secondary);
  font-weight: var(--sz-typography-weights-bold);
  font-size: var(--sz-typography-scale-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-block-end: var(--sz-spacing-4);
}

.sz-hero__title {
  color: var(--sz-colors-text-inverse);
  font-weight: var(--sz-typography-weights-bold);
  font-size: var(--sz-typography-scale-4xl);
  line-height: var(--sz-typography-line-heights-tight);
  margin-block-end: var(--sz-spacing-6);
  letter-spacing: -0.03em;
}

.sz-hero__subtitle {
  color: var(--sz-colors-text-inverse);
  font-size: var(--sz-typography-scale-lg);
  line-height: var(--sz-typography-line-heights-relaxed);
  margin-block-end: var(--sz-spacing-8);
  opacity: 0.9;
}

.sz-hero__cta {
  display: inline-flex;
  margin-block-start: var(--sz-spacing-4);
}

.sz-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sz-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sz-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: var(--sz-colors-brand-primary);
  opacity: 0.8;
}

.sz-hero__backdrop--gradient {
  background: linear-gradient(135deg, var(--sz-colors-brand-primary) 0%, var(--sz-colors-brand-accent) 100%);
}

/* ==========================================================================
   HERO 3D (EAES-012)
   Pin + Scrub scroll-driven 3D experience.
   The wrapper provides extra height for the scroll storytelling interval.
   The pinned element stays in view via position:sticky while the user
   scrolls through the wrapper. Normal document flow resumes after.
   ========================================================================== */

section[data-component="hero-3d"] {
  position: relative;
  padding-block: 0;
  overflow: visible;         /* Allow sticky to escape the section */
  background-color: var(--sz-colors-brand-primary);
}

/* Wrapper provides the scroll distance for the camera journey.
   Height = 1vh (visible) + Nvh (scroll distance for storytelling). */
.sz-hero-3d-wrapper {
  position: relative;
  height: 400vh;             /* 3 viewport heights of scroll travel */
}

/* Pinned viewport — stays fixed during the scroll journey */
.sz-hero-3d-pinned {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--sz-colors-brand-primary);
}

/* 3D canvas container — fills the entire pinned viewport */
.sz-hero-3d-pinned .sz-three-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* The Three.js canvas — fills container, hidden until loaded */
.sz-hero-3d-pinned .sz-three-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Reveal the canvas once the 3D scene has successfully loaded */
.sz-hero-3d-pinned .sz-three-container[data-3d-loaded="true"] .sz-three-canvas {
  opacity: 1;
}

/* Semi-transparent overlay behind text to ensure readability */
.sz-hero-3d-pinned .sz-three-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(var(--sz-colors-brand-primary-rgb, 26, 54, 93), 0.7) 0%,
    rgba(var(--sz-colors-brand-primary-rgb, 26, 54, 93), 0.3) 50%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Fallback image — visible by default, fades out when 3D loads */
.sz-hero-3d-pinned .sz-three-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sz-hero-3d-pinned .sz-three-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sz-hero-3d-pinned .sz-three-container[data-3d-loaded="true"] .sz-three-fallback {
  opacity: 0;
  transition: opacity 0.8s ease 0.3s; /* Fade out after canvas fades in */
  pointer-events: none;
}

/* Hero text overlay — positioned above the 3D canvas */
.sz-hero-3d-pinned > .sz-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding-block: calc(var(--sz-spacing-32) + 80px); /* Push down below nav */
  pointer-events: none;
}

.sz-hero-3d-pinned > .sz-hero__content .sz-hero__text {
  max-width: 600px;
  pointer-events: auto;
}

/* ── Tablet ──────────────────────────────────────────────── */
@media (max-width: 1023px) and (min-width: 768px) {
  .sz-hero-3d-wrapper {
    height: 300vh;           /* Reduced scroll distance */
  }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .sz-hero-3d-wrapper {
    height: 200vh;           /* Minimal scroll distance */
  }

  .sz-hero-3d-pinned .sz-three-container::after {
    background: linear-gradient(
      to bottom,
      rgba(var(--sz-colors-brand-primary-rgb, 26, 54, 93), 0.75) 0%,
      rgba(var(--sz-colors-brand-primary-rgb, 26, 54, 93), 0.4) 100%
    );
  }
}

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sz-hero-3d-wrapper {
    height: 100vh;           /* No scroll storytelling */
  }

  .sz-hero-3d-pinned .sz-three-canvas {
    transition: none;
  }

  .sz-hero-3d-pinned .sz-three-container[data-3d-loaded="true"] .sz-three-fallback {
    transition: none;
  }
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.sz-breadcrumb {
  padding-block: var(--sz-spacing-4);
}

.sz-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sz-spacing-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sz-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--sz-spacing-2);
  font-size: var(--sz-typography-scale-sm);
}

.sz-breadcrumb__link {
  color: var(--sz-colors-text-muted);
  text-decoration: none;
  transition: color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

.sz-breadcrumb__link:hover,
.sz-breadcrumb__link:focus-visible {
  color: var(--sz-colors-brand-secondary);
}

.sz-breadcrumb__sep {
  color: var(--sz-colors-border-strong);
  font-size: var(--sz-typography-scale-xs);
  user-select: none;
}

.sz-breadcrumb__item--current .sz-breadcrumb__label {
  color: var(--sz-colors-text-primary);
  font-weight: var(--sz-typography-weights-medium);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

section[data-component="services"] {
  background-color: var(--sz-colors-surface-base);
}

.sz-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sz-spacing-12);
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: service-counter;
}

.sz-service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-block-start: var(--sz-spacing-6);
  border-block-start: 1px solid var(--sz-colors-border-default);
  transition: border-color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
  counter-increment: service-counter;
}

.sz-service-card::before {
  content: counter(service-counter, decimal-leading-zero);
  position: absolute;
  top: calc(var(--sz-spacing-4) * -1);
  inset-inline-start: 0;
  background-color: var(--sz-colors-surface-base);
  padding-inline-end: var(--sz-spacing-4);
  color: var(--sz-colors-text-muted);
  font-size: var(--sz-typography-scale-sm);
  font-weight: var(--sz-typography-weights-bold);
  transition: color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

.sz-service-card:hover,
.sz-service-card:focus-within {
  border-color: var(--sz-colors-brand-secondary);
}

.sz-service-card:hover::before,
.sz-service-card:focus-within::before {
  color: var(--sz-colors-brand-secondary);
}

.sz-service-card:focus-within {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 4px;
}

.sz-service-card__icon {
  margin-block-end: var(--sz-spacing-6);
  color: var(--sz-colors-brand-primary);
}

.sz-service-card__icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sz-service-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sz-service-card__title {
  font-size: var(--sz-typography-scale-2xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-text-primary);
  margin-block-end: var(--sz-spacing-4);
}

.sz-service-card__title-link {
  text-decoration: none;
  color: inherit;
}

.sz-service-card__title-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sz-service-card__excerpt {
  color: var(--sz-colors-text-secondary);
  font-size: var(--sz-typography-scale-base);
  line-height: var(--sz-typography-line-heights-relaxed);
  margin-block-end: var(--sz-spacing-6);
  flex-grow: 1;
}

.sz-service-card__link {
  position: relative;
  z-index: 2;
  margin-block-start: auto;
}

.sz-link-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--sz-colors-brand-secondary);
  font-weight: var(--sz-typography-weights-medium);
  font-size: var(--sz-typography-scale-sm);
  text-decoration: none;
  transition: transform var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

.sz-link-arrow::after {
  content: '←';
  margin-inline-start: var(--sz-spacing-2);
  transition: transform var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

html[dir="ltr"] .sz-link-arrow::after {
  content: '→';
}

.sz-service-card:hover .sz-link-arrow::after,
.sz-service-card:focus-within .sz-link-arrow::after {
  transform: translateX(-4px);
}
html[dir="ltr"] .sz-service-card:hover .sz-link-arrow::after,
html[dir="ltr"] .sz-service-card:focus-within .sz-link-arrow::after {
  transform: translateX(4px);
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */

section[data-component="projects"] {
  background-color: var(--sz-colors-brand-primary);
  color: var(--sz-colors-text-inverse);
}
section[data-component="projects"] .sz-section-heading {
  color: var(--sz-colors-text-inverse);
}

.sz-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sz-spacing-12);
  list-style: none;
  padding: 0;
  margin: 0;
}

.sz-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sz-project-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-block-end: var(--sz-spacing-6);
  background-color: var(--sz-colors-surface-subtle);
}

.sz-project-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.sz-project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sz-motion-durations-slow) var(--sz-motion-easings-standard);
}

.sz-project-card:hover .sz-project-card__img,
.sz-project-card:focus-within .sz-project-card__img {
  transform: scale(1.05);
}

.sz-project-card:focus-within {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 4px;
}

.sz-project-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sz-project-card__meta {
  color: var(--sz-colors-brand-secondary);
  font-size: var(--sz-typography-scale-sm);
  font-weight: var(--sz-typography-weights-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-block-end: var(--sz-spacing-2);
}

.sz-project-card__title {
  font-size: var(--sz-typography-scale-2xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-text-inverse);
  margin-block-end: var(--sz-spacing-4);
}

.sz-project-card__title-link {
  text-decoration: none;
  color: inherit;
}

.sz-project-card__title-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sz-project-card__excerpt {
  color: var(--sz-colors-text-inverse);
  opacity: 0.8;
  font-size: var(--sz-typography-scale-base);
  line-height: var(--sz-typography-line-heights-relaxed);
  margin-block-end: var(--sz-spacing-6);
  flex-grow: 1;
}

.sz-project-card__link {
  position: relative;
  z-index: 2;
  margin-block-start: auto;
  align-self: flex-start;
}

/* ==========================================================================
   STATISTICS
   ========================================================================== */

section[data-component="statistics"] {
  background-color: var(--sz-colors-surface-subtle);
  border-block: 1px solid var(--sz-colors-border-default);
}

.sz-stats__list {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-12);
  list-style: none;
  padding: 0;
  margin: 0;
}

.sz-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sz-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sz-spacing-4);
}

.sz-stat__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-block-end: var(--sz-spacing-2);
}

.sz-stat__data {
  margin: 0;
  padding: 0;
}

.sz-stat__value {
  display: block;
  font-size: var(--sz-typography-scale-5xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-brand-secondary);
  line-height: var(--sz-typography-line-heights-tight);
  margin-block-end: var(--sz-spacing-2);
  font-variant-numeric: tabular-nums;
}

.sz-stat__label {
  display: block;
  font-size: var(--sz-typography-scale-sm);
  font-weight: var(--sz-typography-weights-medium);
  color: var(--sz-colors-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

section[data-component="timeline"] {
  background-color: var(--sz-colors-surface-base);
}

.sz-timeline__list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-12);
}

.sz-timeline__list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: calc(24px - 0.5px);
  width: 1px;
  background-color: var(--sz-colors-border-default);
}

.sz-timeline__step {
  position: relative;
  z-index: 1;
}

.sz-timeline__step-inner {
  display: flex;
  gap: var(--sz-spacing-6);
  align-items: flex-start;
}

.sz-timeline__step-icon,
.sz-timeline__step-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sz-colors-surface-base);
  border: 1px solid var(--sz-colors-brand-secondary);
  color: var(--sz-colors-brand-secondary);
  font-family: var(--sz-typography-font-families-latin);
  font-size: var(--sz-typography-scale-lg);
  font-weight: var(--sz-typography-weights-bold);
}

.sz-timeline__step-body {
  padding-block-start: var(--sz-spacing-2);
}

.sz-timeline__step-title {
  font-size: var(--sz-typography-scale-2xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-text-primary);
  margin-block-end: var(--sz-spacing-2);
}

.sz-timeline__step-desc {
  font-size: var(--sz-typography-scale-base);
  line-height: var(--sz-typography-line-heights-relaxed);
  color: var(--sz-colors-text-secondary);
  margin: 0;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

section[data-component="testimonials"] {
  background-color: var(--sz-colors-surface-subtle);
}

.sz-testimonials__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.sz-testimonial {
  margin: 0;
  padding: var(--sz-spacing-8);
  background-color: var(--sz-colors-surface-base);
  border: 1px solid var(--sz-colors-border-default);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sz-testimonial__quote {
  position: relative;
  font-size: var(--sz-typography-scale-xl);
  font-weight: var(--sz-typography-weights-medium);
  line-height: var(--sz-typography-line-heights-relaxed);
  color: var(--sz-colors-text-primary);
  margin-block-end: var(--sz-spacing-10);
  flex-grow: 1;
}

.sz-testimonial__quote::before {
  content: '"';
  display: block;
  font-family: var(--sz-typography-font-families-latin);
  font-size: var(--sz-typography-scale-7xl);
  line-height: 1;
  color: var(--sz-colors-brand-secondary);
  margin-block-end: var(--sz-spacing-4);
  opacity: 0.5;
}

.sz-testimonial__footer {
  display: flex;
  align-items: center;
  gap: var(--sz-spacing-4);
  padding-block-start: var(--sz-spacing-6);
  border-block-start: 1px solid var(--sz-colors-border-subtle);
}

.sz-testimonial__avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background-color: var(--sz-colors-surface-subtle);
  border-radius: var(--sz-radius-sm);
}

.sz-testimonial__attribution {
  display: flex;
  flex-direction: column;
}

.sz-testimonial__author {
  font-style: normal;
  font-weight: var(--sz-typography-weights-bold);
  font-size: var(--sz-typography-scale-base);
  color: var(--sz-colors-text-primary);
}

.sz-testimonial__role {
  font-size: var(--sz-typography-scale-sm);
  color: var(--sz-colors-text-secondary);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

section[data-component="faq"] {
  background-color: var(--sz-colors-surface-base);
}

.sz-faq__body {
  border-block-start: 1px solid var(--sz-colors-border-default);
}

.sz-faq__category {
  font-size: var(--sz-typography-scale-2xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-brand-secondary);
  padding-block: var(--sz-spacing-8) var(--sz-spacing-4);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sz-faq__item {
  border-block-end: 1px solid var(--sz-colors-border-default);
}

.sz-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-block: var(--sz-spacing-6);
  font-size: var(--sz-typography-scale-xl);
  font-weight: var(--sz-typography-weights-medium);
  color: var(--sz-colors-text-primary);
  cursor: pointer;
  list-style: none;
  transition: color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

.sz-faq__question::-webkit-details-marker {
  display: none;
}

.sz-faq__question:hover,
.sz-faq__question:focus-visible,
.sz-faq__item[open] .sz-faq__question {
  color: var(--sz-colors-brand-secondary);
}

.sz-faq__question:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: -2px;
}

.sz-faq__question::after {
  content: '+';
  font-family: var(--sz-typography-font-families-latin);
  font-size: var(--sz-typography-scale-2xl);
  font-weight: var(--sz-typography-weights-regular);
  color: var(--sz-colors-text-muted);
}

.sz-faq__item[open] .sz-faq__question::after {
  content: '−';
  color: var(--sz-colors-brand-secondary);
}

.sz-faq__answer {
  padding-block-end: var(--sz-spacing-6);
  padding-inline-end: var(--sz-spacing-12);
}

.sz-faq__answer p {
  font-size: var(--sz-typography-scale-base);
  line-height: var(--sz-typography-line-heights-relaxed);
  color: var(--sz-colors-text-secondary);
  margin: 0;
}

/* ==========================================================================
   MAP
   ========================================================================== */

section[data-component="map"] {
  background-color: var(--sz-colors-surface-subtle);
}

.sz-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--sz-colors-surface-raised);
  border: 1px solid var(--sz-colors-border-default);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sz-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sz-map__fallback {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sz-spacing-8);
  background-color: var(--sz-colors-surface-base);
  border: 1px solid var(--sz-colors-border-default);
  box-shadow: var(--sz-shadows-base);
  max-width: 400px;
  width: 90%;
}

.sz-map__name {
  font-size: var(--sz-typography-scale-xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-text-primary);
  margin-block-end: var(--sz-spacing-2);
}

.sz-map__address {
  font-style: normal;
  font-size: var(--sz-typography-scale-base);
  color: var(--sz-colors-text-secondary);
  line-height: var(--sz-typography-line-heights-relaxed);
  margin-block-end: var(--sz-spacing-6);
}

.sz-map__directions-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sz-spacing-3) var(--sz-spacing-6);
  background-color: var(--sz-colors-brand-primary);
  color: var(--sz-colors-text-inverse);
  font-weight: var(--sz-typography-weights-medium);
  text-decoration: none;
  transition: background-color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

.sz-map__directions-link:hover,
.sz-map__directions-link:focus-visible {
  background-color: var(--sz-colors-interactive-hover);
}
.sz-map__directions-link:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

section[data-component="contact"] {
  background-color: var(--sz-colors-surface-base);
}

.sz-contact {
  font-style: normal;
}

.sz-contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-8);
}

.sz-contact__item {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-2);
}

.sz-contact__label {
  font-size: var(--sz-typography-scale-sm);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sz-contact__link,
.sz-contact__address-text,
.sz-contact__hours {
  font-size: var(--sz-typography-scale-xl);
  font-weight: var(--sz-typography-weights-medium);
  color: var(--sz-colors-text-primary);
  line-height: var(--sz-typography-line-heights-relaxed);
  text-decoration: none;
  transition: color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

a.sz-contact__link:hover,
a.sz-contact__link:focus-visible {
  color: var(--sz-colors-brand-secondary);
}
a.sz-contact__link:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   CTA
   ========================================================================== */

section[data-component="cta"] {
  background-color: var(--sz-colors-surface-inverse);
  color: var(--sz-colors-text-inverse);
  border-block-start: 1px solid var(--sz-colors-border-strong);
  border-block-end: 1px solid var(--sz-colors-border-strong);
}

.sz-cta__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-10);
}

.sz-cta__text {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-4);
  max-width: var(--sz-containers-prose);
}

.sz-cta__eyebrow {
  font-size: var(--sz-typography-scale-base);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.sz-cta__heading {
  font-size: var(--sz-typography-scale-4xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-text-inverse);
  line-height: var(--sz-typography-line-heights-tight);
  margin: 0;
}

.sz-cta__body {
  font-size: var(--sz-typography-scale-lg);
  line-height: var(--sz-typography-line-heights-relaxed);
  color: var(--sz-colors-text-inverse);
  opacity: 0.8;
  margin: 0;
}

.sz-cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-4);
}

.sz-cta__btn {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.sz-footer {
  background-color: var(--sz-colors-surface-inverse);
  color: var(--sz-colors-text-inverse);
  padding-block-start: var(--sz-spacing-24);
}

.sz-footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-12);
  margin-block-end: var(--sz-spacing-16);
}

.sz-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-8);
}

.sz-footer__name {
  font-size: var(--sz-typography-scale-2xl);
  font-weight: var(--sz-typography-weights-bold);
  color: var(--sz-colors-text-inverse);
  margin: 0;
}

.sz-footer__contact,
.sz-footer__social,
.sz-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sz-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-4);
}

.sz-footer__contact-link,
.sz-footer__address {
  font-size: var(--sz-typography-scale-base);
  color: var(--sz-colors-text-inverse);
  opacity: 0.8;
  text-decoration: none;
  font-style: normal;
  transition: opacity var(--sz-motion-durations-fast) var(--sz-motion-easings-standard), color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

.sz-footer__contact-link:hover,
.sz-footer__contact-link:focus-visible {
  opacity: 1;
  color: var(--sz-colors-brand-secondary);
}
.sz-footer__contact-link:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 2px;
}

.sz-footer__social {
  display: flex;
  align-items: center;
  gap: var(--sz-spacing-6);
}

.sz-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sz-colors-text-inverse);
  opacity: 0.8;
  transition: opacity var(--sz-motion-durations-fast) var(--sz-motion-easings-standard), color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

.sz-footer__social-link:hover,
.sz-footer__social-link:focus-visible {
  opacity: 1;
  color: var(--sz-colors-brand-secondary);
}
.sz-footer__social-link:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 2px;
}

.sz-footer__social-link svg {
  fill: currentColor;
}

.sz-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-4);
}

.sz-footer__nav-link {
  font-size: var(--sz-typography-scale-base);
  font-weight: var(--sz-typography-weights-medium);
  color: var(--sz-colors-text-inverse);
  opacity: 0.8;
  text-decoration: none;
  transition: opacity var(--sz-motion-durations-fast) var(--sz-motion-easings-standard), color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
}

.sz-footer__nav-link:hover,
.sz-footer__nav-link:focus-visible {
  opacity: 1;
  color: var(--sz-colors-brand-secondary);
}
.sz-footer__nav-link:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 2px;
}

.sz-footer__bottom {
  border-block-start: 1px solid var(--sz-colors-border-strong);
  padding-block: var(--sz-spacing-6);
}

.sz-footer__copyright {
  font-size: var(--sz-typography-scale-sm);
  color: var(--sz-colors-text-inverse);
  opacity: 0.6;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.sz-form {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-6);
  width: 100%;
}

.sz-form__group {
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-2);
}

.sz-form__label {
  font-weight: var(--sz-typography-weights-medium);
  color: var(--sz-colors-text-primary);
  font-size: var(--sz-typography-scale-sm);
}

.sz-form__required-indicator {
  color: var(--sz-colors-brand-secondary);
}

.sz-form__description {
  font-size: var(--sz-typography-scale-xs);
  color: var(--sz-colors-text-secondary);
}

.sz-input {
  width: 100%;
  padding: var(--sz-spacing-3) var(--sz-spacing-4);
  border: 1px solid var(--sz-colors-border-strong);
  border-radius: var(--sz-radius-base);
  background-color: var(--sz-colors-surface-base);
  color: var(--sz-colors-text-primary);
  transition: border-color var(--sz-motion-durations-fast) var(--sz-motion-easings-standard),
              box-shadow var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
  font-family: inherit;
  font-size: var(--sz-typography-scale-base);
}

.sz-input:focus-visible {
  outline: none;
  border-color: var(--sz-colors-brand-secondary);
  box-shadow: 0 0 0 2px var(--sz-colors-interactive-focus);
}

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

.sz-input--error {
  border-color: var(--sz-colors-text-primary);
  border-inline-start: 4px solid var(--sz-colors-text-primary);
}

.sz-form__error-message {
  color: var(--sz-colors-text-primary);
  font-size: var(--sz-typography-scale-xs);
  font-weight: var(--sz-typography-weights-bold);
  display: none;
}

.sz-form__status-region {
  padding: var(--sz-spacing-4);
  border-radius: var(--sz-radius-base);
  font-size: var(--sz-typography-scale-sm);
  font-weight: var(--sz-typography-weights-medium);
}

.sz-form__status-region:empty {
  display: none;
}

.sz-form__status-region--success {
  background-color: var(--sz-colors-surface-subtle);
  color: var(--sz-colors-brand-secondary);
  border: 1px solid var(--sz-colors-border-strong);
}

.sz-form__status-region--error {
  background-color: var(--sz-colors-surface-subtle);
  color: var(--sz-colors-text-primary);
  border: 1px solid var(--sz-colors-text-primary);
  font-weight: var(--sz-typography-weights-bold);
}

.sz-form__actions {
  display: flex;
  margin-block-start: var(--sz-spacing-4);
}

.sz-button__loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sz-spin 0.75s linear infinite;
  margin-inline-start: var(--sz-spacing-2);
}

@keyframes sz-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

section[data-component="gallery"] {
  background-color: var(--sz-colors-surface-base);
}

.sz-gallery__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.sz-gallery__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sz-spacing-4);
}

.sz-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: cover;
  background-color: var(--sz-colors-surface-subtle);
}

.sz-gallery__caption {
  font-size: var(--sz-typography-scale-sm);
  color: var(--sz-colors-text-secondary);
  font-weight: var(--sz-typography-weights-medium);
  border-inline-start: 1px solid var(--sz-colors-brand-secondary);
  padding-inline-start: var(--sz-spacing-3);
  margin-block-start: var(--sz-spacing-2);
}

/* ==========================================================================
   5. Sections
   ========================================================================== */
section[data-component] {
  padding-block: var(--sz-spacing-16);
}

.sz-section-heading {
  margin-block-end: var(--sz-spacing-12);
  text-align: center;
}

/* ==========================================================================
   6. Shared Visual Primitives (Surfaces & Borders)
   ========================================================================== */

/* Surfaces */
.sz-surface--base {
  background-color: var(--sz-colors-surface-base);
  color: var(--sz-colors-text-primary);
}

.sz-surface--raised {
  background-color: var(--sz-colors-surface-raised);
  color: var(--sz-colors-text-primary);
}

.sz-surface--subtle {
  background-color: var(--sz-colors-surface-subtle);
  color: var(--sz-colors-text-primary);
}

.sz-surface--inverse {
  background-color: var(--sz-colors-surface-inverse);
  color: var(--sz-colors-text-inverse);
}

/* Borders */
.sz-border--subtle {
  border: 1px solid var(--sz-colors-border-subtle);
}

.sz-border--default {
  border: 1px solid var(--sz-colors-border-default);
}

.sz-border--strong {
  border: 1px solid var(--sz-colors-border-strong);
}

/* Base Card Primitives */
.sz-card {
  background-color: var(--sz-colors-surface-base);
  border: 1px solid var(--sz-colors-border-subtle);
  border-radius: var(--sz-radius-lg);
  overflow: hidden;
  transition: transform var(--sz-motion-durations-base) var(--sz-motion-easings-standard),
              box-shadow var(--sz-motion-durations-base) var(--sz-motion-easings-standard);
}
.sz-card:hover {
  box-shadow: var(--sz-shadows-md);
  transform: translateY(-2px);
}

/* ==========================================================================
   7. Accessibility
   ========================================================================== */

/* Skip Link */
.sz-skip-link {
  position: absolute;
  top: -auto;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

html[dir="rtl"] .sz-skip-link {
  left: auto;
  right: -10000px;
}

.sz-skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  padding: var(--sz-spacing-2) var(--sz-spacing-4);
  background: var(--sz-colors-brand-primary);
  color: var(--sz-colors-text-inverse);
  z-index: var(--sz-z-toast);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--sz-colors-interactive-focus);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

@media (min-width: 640px) { /* sm */
  .sz-container { max-width: 640px; }
  section[data-component] { padding-block: var(--sz-spacing-20); }
}

@media (min-width: 768px) { /* md */
  .sz-container { max-width: 768px; padding-inline: var(--sz-spacing-6); }
  .sz-section-heading { margin-block-end: var(--sz-spacing-16); }
  section[data-component] { padding-block: var(--sz-spacing-20); }
  
  /* Desktop-lite Hero */
  .sz-hero__title {
    font-size: var(--sz-typography-scale-5xl);
  }

  /* Services Grid */
  .sz-services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sz-spacing-8);
  }

  /* Projects Grid */
  .sz-projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sz-spacing-12);
  }

  /* Statistics */
  .sz-stats__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--sz-spacing-8);
  }
}

@media (min-width: 1024px) { /* lg */
  .sz-container { max-width: 1024px; padding-inline: var(--sz-spacing-8); }
  section[data-component] { padding-block: var(--sz-spacing-24); }
  
  /* Desktop Navigation */
  .sz-nav__toggle {
    display: none;
  }
  
  .sz-nav__menu,
  .sz-nav:has(.sz-nav__toggle[aria-expanded="true"]) .sz-nav__menu {
    position: static;
    display: block;
    width: auto;
    border: none;
    box-shadow: none;
    background-color: transparent;
  }
  
  .sz-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--sz-spacing-8);
  }
  
  .sz-nav__item {
    border: none;
  }
  
  .sz-nav__link {
    padding: var(--sz-spacing-2) 0;
    position: relative;
  }
  
  .sz-nav__link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--sz-colors-brand-secondary);
    transform: scaleX(0);
    transform-origin: right; /* RTL natural flow */
    transition: transform var(--sz-motion-durations-fast) var(--sz-motion-easings-standard);
  }
  
  .sz-nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .sz-nav__link[aria-current="page"] {
    border-inline-start: none;
  }
  
  .sz-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  /* Desktop Hero */
  .sz-hero__content {
    min-height: 80vh;
  }
  .sz-hero__title {
    font-size: var(--sz-typography-scale-6xl);
  }
  .sz-hero__subtitle {
    font-size: var(--sz-typography-scale-xl);
  }

  /* Services Grid */
  .sz-services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sz-spacing-12);
  }

  /* Projects Grid */
  .sz-projects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sz-spacing-16);
  }

  /* Statistics */
  .sz-stats__list {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .sz-stat__value {
    font-size: var(--sz-typography-scale-6xl);
  }

  /* Timeline */
  .sz-timeline__step-inner {
    gap: var(--sz-spacing-12);
  }
  .sz-timeline__step-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--sz-spacing-8);
    align-items: baseline;
  }

  /* Testimonials */
  .sz-testimonial {
    padding: var(--sz-spacing-10) var(--sz-spacing-12);
  }
  .sz-testimonial__quote {
    font-size: var(--sz-typography-scale-2xl);
  }

  /* FAQ */
  .sz-faq__body {
    max-width: var(--sz-containers-prose);
    margin-inline: auto;
  }

  /* Map */
  .sz-map {
    aspect-ratio: 21 / 9;
  }

  /* Contact */
  .sz-contact__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sz-spacing-12);
  }

  /* CTA */
  .sz-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sz-spacing-16);
  }
  .sz-cta__heading {
    font-size: var(--sz-typography-scale-5xl);
  }
  .sz-cta__actions {
    flex-direction: row;
    flex-shrink: 0;
    align-items: center;
  }
  .sz-cta__btn {
    width: auto;
  }

  /* Footer */
  .sz-footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sz-spacing-16);
  }

  /* Gallery */
  .sz-gallery__img {
    max-height: 85vh;
  }
  .sz-gallery__caption {
    font-size: var(--sz-typography-scale-base);
  }
}

@media (min-width: 1280px) { /* xl */
  .sz-container { max-width: 1280px; }
}

@media (min-width: 1536px) { /* 2xl */
  .sz-container { max-width: 1400px; }
}

/* ==========================================================================
   Motion (EAES-007)
   ========================================================================== */

/* 
 * Progressive enhancement: [data-reveal] without value means JS hasn't run.
 * We only apply hidden state when JS explicitly sets it.
 */
[data-reveal="hidden"] {
  opacity: 0;
  transform: translateY(1.5rem);
}

/* 
 * Accessibility: Focus Safety
 * If a keyboard user tabs into a hidden element before it intersects,
 * it must immediately become visible and usable.
 */
[data-reveal="hidden"]:focus-within {
  opacity: 1;
  transform: none;
  transition: none;
}

[data-reveal="visible"] {
  opacity: 1;
  transform: translateY(0);
  transition-property: opacity, transform;
  transition-duration: var(--sz-motion-durations-slow);
  transition-timing-function: var(--sz-motion-easings-decelerate);
  
  /* Stagger mechanism driven by JS-injected --sz-reveal-index */
  transition-delay: calc(var(--sz-reveal-index, 0) * 80ms);
}

/* 
 * Reduced Motion Safety Fallback
 * Disables all transitions natively in CSS.
 */
@media (prefers-reduced-motion: reduce) {
  [data-reveal="hidden"],
  [data-reveal="visible"] {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
