/* ==========================================================================
   ALAFRAME BRAND SYSTEM & CORE STYLES
   Pure CSS - No frameworks - WCAG AA compliant - Fluid Typography
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens & Theming
   -------------------------------------------------------------------------- */
:root {
  /* Brand Primitive Colors */
  --lime: #B2E900;
  --charcoal: #231F20;
  --soft-white: #F5F6F2;
  --grey: #6B7065;
  --olive: #6F8F00;
  --light-lime: #E8F7B5;
  --black: #111111;

  /* Allowed Derived Neutrals */
  --line-light: #E3E5DC;
  --surface-light: #ECEEE6;
  --line-dark: #2E2A2B;
  --muted-dark: #A3A89B;

  /* Semantic Theme Variables (Light Theme - Default) */
  --color-bg: var(--soft-white);
  --color-surface: var(--surface-light);
  --color-text: var(--charcoal);
  --color-text-secondary: var(--grey);
  --color-border: var(--line-light);
  --color-focus: var(--lime);

  /* Tag colors in Light Theme */
  --tag-client-bg: var(--lime);
  --tag-client-text: var(--charcoal);
  --tag-spec-bg: var(--charcoal);
  --tag-spec-text: var(--soft-white);

  /* Primary Button in Light Theme */
  --btn-bg: var(--charcoal);
  --btn-text: var(--soft-white);
  --btn-hover-bg: var(--lime);
  --btn-hover-text: var(--charcoal);

  /* Shape tokens */
  --radius-tile: 14px;
  --radius-input: 10px;
  --radius-pill: 9999px;

  /* Spacing */
  --section-padding: 96px;
  --container-max: 1120px;

  /* Typography Stacks */
  --font-headline: "Editorial Old", "PP Editorial Old", Georgia, serif;
  --font-body: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  --color-bg: var(--black);
  --color-surface: var(--charcoal);
  --color-text: var(--soft-white);
  --color-text-secondary: var(--muted-dark);
  --color-border: var(--line-dark);
  --color-focus: var(--lime);

  /* Tag colors in Dark Theme */
  --tag-client-bg: var(--lime);
  --tag-client-text: var(--charcoal);
  --tag-spec-bg: var(--surface-light);
  --tag-spec-text: var(--charcoal);

  /* Primary Button in Dark Theme */
  --btn-bg: var(--lime);
  --btn-text: var(--charcoal);
  --btn-hover-bg: var(--soft-white);
  --btn-hover-text: var(--charcoal);
}

/* --------------------------------------------------------------------------
   Reset & Baseline
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Native View Transitions for Smooth Cross-Page Animation */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 200ms ease, 
              color 200ms ease;
  overflow-x: hidden;
  width: 100%;
}

body.page-unloading {
  opacity: 0;
  transform: translate3d(0, -6px, 0);
}

body.scroll-locked {
  overflow: hidden;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  background: var(--lime);
  color: var(--charcoal);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  z-index: 2000;
  text-decoration: none;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 3.4vw + 0.5rem, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-text);
  text-align: center;
}

.section-subtitle {
  font-size: clamp(1rem, 1.1vw + 0.5rem, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
}

p {
  max-width: 64ch;
}

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

/* --------------------------------------------------------------------------
   Buttons & Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Floating Pill Navbar (from Reference Design)
   -------------------------------------------------------------------------- */
.floating-header-wrapper {
  position: sticky;
  top: 16px;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.floating-header {
  pointer-events: auto;
  width: 100%;
  max-width: 980px;
  height: 56px;
  background-color: rgba(245, 246, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  position: relative;
}

[data-theme="dark"] .floating-header {
  background-color: rgba(31, 31, 31, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

/* Left: Nav Tab Links */
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 150ms ease, background-color 150ms ease;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.nav-tab-link:hover,
.nav-tab-link.active {
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-tab-link:hover,
[data-theme="dark"] .nav-tab-link.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--soft-white);
}

.nav-tab-link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Center: Brand Logo (Square Icon + ALAFRAME text) */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.nav-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: opacity 150ms ease;
}

.nav-brand-logo:hover {
  opacity: 0.85;
}

.nav-brand-logo:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: block;
  object-fit: contain;
}

/* Right: Theme Toggle + Let's Talk CTA */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.nav-theme-btn:hover {
  border-color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .nav-theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-theme-btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.nav-theme-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Pill "Let's Talk" CTA Button with Live Dot */
.btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--charcoal);
  color: #FFFFFF;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 150ms ease;
  white-space: nowrap;
}

.btn-talk:hover {
  background-color: #111111;
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-talk {
  background-color: #231F20;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--soft-white);
}

[data-theme="dark"] .btn-talk:hover {
  background-color: #332D2F;
}

.btn-talk:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--lime);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(178, 233, 0, 0.7);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(178, 233, 0, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(178, 233, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(178, 233, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   1. Hero Section & Faded Ambient Background
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero-dynamic-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-video-grid-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 108%;
  height: 120%;
  margin-left: -4%;
  margin-top: -5%;
  opacity: 0.32;
  filter: saturate(0.9);
  transition: opacity 0.4s ease;
}

[data-theme="dark"] .hero-video-grid-track {
  opacity: 0.22;
  filter: saturate(0.75) brightness(0.9);
}

.hero-bg-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  will-change: transform;
}

.hero-bg-col-1 {
  animation: heroColFloat1 18s ease-in-out infinite alternate;
}
.hero-bg-col-2 {
  animation: heroColFloat2 22s ease-in-out infinite alternate;
}
.hero-bg-col-3 {
  animation: heroColFloat1 20s ease-in-out infinite alternate;
}
.hero-bg-col-4 {
  animation: heroColFloat2 24s ease-in-out infinite alternate;
}

@keyframes heroColFloat1 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -40px, 0); }
}

@keyframes heroColFloat2 {
  0% { transform: translate3d(0, -40px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hero-bg-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--color-surface);
  aspect-ratio: 9/16;
  width: 100%;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.hero-bg-card img,
.hero-bg-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-dynamic-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245, 246, 242, 0.82) 20%, rgba(245, 246, 242, 0.94) 80%),
              linear-gradient(to bottom, var(--color-bg) 0%, transparent 20%, transparent 80%, var(--color-bg) 100%);
  pointer-events: none;
}

[data-theme="dark"] .hero-dynamic-overlay {
  background: radial-gradient(circle at 50% 50%, rgba(17, 17, 17, 0.84) 20%, rgba(17, 17, 17, 0.95) 80%),
              linear-gradient(to bottom, var(--color-bg) 0%, transparent 20%, transparent 80%, var(--color-bg) 100%);
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-content {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-family: var(--font-headline);
  font-size: clamp(2.75rem, 5.5vw + 1rem, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 20ch;
  text-align: center;
}

/* Reveal mask animation */
.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line>span {
  display: block;
  transform: translate3d(0, 110%, 0);
  animation: slideUp 950ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-line:nth-child(1)>span {
  animation-delay: 50ms;
}

.reveal-line:nth-child(2)>span {
  animation-delay: 180ms;
}

.reveal-line:nth-child(3)>span {
  animation-delay: 300ms;
}

@keyframes slideUp {
  to {
    transform: translate3d(0, 0, 0);
  }
}

.hero-sub {
  font-size: clamp(1.125rem, 1.2vw + 0.8rem, 1.35rem);
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 58ch;
  margin: 0 auto 2.25rem auto;
  text-align: center;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-microcopy {
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   2. Selected Work Section & Grid
   -------------------------------------------------------------------------- */
.work-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background-color: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: all 200ms ease;
}

.filter-pill:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.filter-pill.active {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.filter-pill:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-tile {
  position: relative;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background-color: var(--color-surface);
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              opacity 0.3s ease;
  will-change: transform, box-shadow;
}

.work-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(178, 233, 0, 0.4);
}

[data-theme="dark"] .work-tile:hover {
  border-color: var(--lime);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.work-tile:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.work-tile.is-hidden {
  display: none;
}

.tile-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tile-media-wrapper[data-aspect="9:16"] {
  aspect-ratio: 9/16;
}

.tile-media-wrapper[data-aspect="4:3"] {
  aspect-ratio: 4/3;
}

.tile-media-wrapper[data-aspect="16:9"] {
  aspect-ratio: 16/9;
}

.tile-media-wrapper[data-aspect="1:1"] {
  aspect-ratio: 1/1;
}

.tile-media-wrapper[data-aspect="4:5"] {
  aspect-ratio: 4/5;
}

.work-tile img,
.work-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.work-tile:hover img,
.work-tile:hover video {
  transform: scale(1.035);
}

.tile-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.tile-play-indicator svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
  margin-left: 3px;
}

.work-tile:hover .tile-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 3rem;
  gap: 1.25rem;
}

.work-footer-cta .btn-explore {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              color 0.2s ease;
}

.work-footer-cta .btn-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.tile-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  z-index: 2;
  pointer-events: none;
}

.tile-badge.badge-client {
  background-color: var(--tag-client-bg);
  color: var(--tag-client-text);
}

.tile-badge.badge-spec {
  background-color: var(--tag-spec-bg);
  color: var(--tag-spec-text);
}

.tile-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  color: #FFFFFF;
  z-index: 2;
  pointer-events: none;
}

.tile-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.work-note {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. Results Section
   -------------------------------------------------------------------------- */
.results-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.metrics-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-value {
  font-family: var(--font-headline);
  font-size: clamp(3.2rem, 5.5vw, 4.8rem);
  line-height: 1;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 24ch;
  line-height: 1.4;
}

.results-summary {
  font-size: clamp(1.125rem, 1.2vw + 0.8rem, 1.28rem);
  line-height: 1.65;
  color: var(--color-text);
  max-width: 66ch;
  text-align: center;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. Process Section (Matching Reference: 5 Cards with Italic Serif Numbers)
   -------------------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.step-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.25rem 1.4rem 2rem 1.4rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 143, 0, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .step-card {
  background: var(--charcoal);
  border-color: var(--line-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .step-card:hover {
  border-color: var(--lime);
  box-shadow: 0 16px 36px rgba(178, 233, 0, 0.08);
}

.step-number {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--olive);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

[data-theme="dark"] .step-number {
  color: var(--lime);
}

.step-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.step-description {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. Why Alaframe Section (Refined 3 Cards)
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.why-col {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.why-col:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 143, 0, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .why-col {
  background: var(--charcoal);
  border-color: var(--line-dark);
}

[data-theme="dark"] .why-col:hover {
  border-color: var(--lime);
  box-shadow: 0 16px 36px rgba(178, 233, 0, 0.08);
}

.why-title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.why-body {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   6. Contact Section (Centralized & Balanced)
   -------------------------------------------------------------------------- */
.contact-container {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.founder-line {
  font-size: 16px;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  text-align: center;
}

.contact-step {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  transition: opacity 250ms ease, transform 250ms ease;
}

.contact-step.is-hidden {
  display: none;
}

#lead-form {
  width: 100%;
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  text-align: left;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

#lead-form button[type="submit"] {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              color 0.2s ease;
}

#lead-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.form-privacy {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 1rem;
  text-align: center;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime);
}

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: #D32F2F;
}

.form-error {
  font-size: 13px;
  color: #D32F2F;
  margin-top: 0.375rem;
  display: none;
}

.form-input.has-error+.form-error,
.form-select.has-error+.form-error {
  display: block;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Honeypot anti-spam (hidden) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

/* Booking calendar step */
.booking-heading {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-align: center;
}

.calendar-embed-container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto 1.5rem auto;
  min-height: 600px;
  border-radius: var(--radius-tile);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.calendar-embed-container iframe {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

.booking-fallback {
  text-align: center;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   7. Dedicated Work Page & Photography Carousel Styles
   -------------------------------------------------------------------------- */
.work-page-hero {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.work-page-title {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 4.5vw + 1rem, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  text-align: center;
}

.category-nav-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.category-pill {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background-color: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: all 180ms ease;
}

.category-pill:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.category-pill.active {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Carousel Section */
.carousel-collection {
  margin-bottom: 3.5rem;
}

.carousel-collection-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.carousel-brand-name {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
}

.carousel-meta-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-counter {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
}

.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
}

.carousel-arrow-btn:hover:not(:disabled) {
  border-color: var(--color-text);
  background-color: var(--color-bg);
}

.carousel-arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-arrow-btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.carousel-track-wrapper {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item-card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-tile);
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease;
  display: flex;
  flex-direction: column;
}

.carousel-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-text);
}

.carousel-item-card:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.carousel-img-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background-color: #000000;
}

.carousel-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-card-footer {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
}

.carousel-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.carousel-card-seq {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 200ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--color-text);
}

.footer-link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-tile);
  overflow: hidden;
  background-color: var(--black);
}

.lightbox-modal.is-active .lightbox-content {
  transform: scale(1);
}

.lightbox-media-container {
  width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.lightbox-media-container video,
.lightbox-media-container img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-bar {
  width: 100%;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--charcoal);
  color: var(--soft-white);
}

.lightbox-title {
  font-size: 15px;
  font-weight: 500;
}

.lightbox-btn {
  background: transparent;
  border: none;
  color: var(--soft-white);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  transition: background-color 150ms ease;
}

.lightbox-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.lightbox-btn:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(35, 31, 32, 0.7);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 150ms ease;
}

.lightbox-nav-btn:hover {
  background-color: rgba(35, 31, 32, 0.95);
}

.lightbox-nav-btn:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* --------------------------------------------------------------------------
   Scroll Reveal & Dynamic Animations
   -------------------------------------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.scroll-reveal .stagger-item {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.scroll-reveal.is-revealed .stagger-item:nth-child(1) { transition-delay: 0.02s; }
.scroll-reveal.is-revealed .stagger-item:nth-child(2) { transition-delay: 0.06s; }
.scroll-reveal.is-revealed .stagger-item:nth-child(3) { transition-delay: 0.10s; }
.scroll-reveal.is-revealed .stagger-item:nth-child(4) { transition-delay: 0.14s; }
.scroll-reveal.is-revealed .stagger-item:nth-child(5) { transition-delay: 0.18s; }
.scroll-reveal.is-revealed .stagger-item:nth-child(6) { transition-delay: 0.22s; }

/* --------------------------------------------------------------------------
   Responsive Breakpoints & Alignments
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .floating-header-wrapper {
    top: 8px;
    padding: 0 8px;
  }

  .floating-header {
    height: 48px;
    padding: 0 6px 0 10px;
  }

  .nav-left {
    gap: 4px;
  }

  .nav-tab-link {
    font-size: 13px;
    padding: 6px 8px;
  }

  .nav-center {
    position: static;
    transform: none;
    margin: 0 auto;
  }

  .nav-brand-logo {
    gap: 0;
  }

  .nav-brand-logo span {
    display: none;
    /* Hide text on mobile/tablet so Work, Logo Icon, Theme, and Let's Talk all fit perfectly */
  }

  .nav-logo-icon {
    width: 22px;
    height: 22px;
  }

  .nav-right {
    gap: 6px;
  }

  .nav-theme-btn {
    width: 34px;
    height: 34px;
  }

  .btn-talk {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
    gap: 5px;
  }

  .status-dot {
    width: 6px;
    height: 6px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hero-video-grid-track {
    grid-template-columns: repeat(2, 1fr);
    width: 116%;
    margin-left: -8%;
    gap: 1rem;
    opacity: 0.22;
  }

  .hero-bg-col:nth-child(n+3) {
    display: none;
  }

  .step-card {
    padding: 1.75rem 1.25rem;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .metrics-row {
    gap: 2.5rem;
  }

  .carousel-item-card {
    width: 230px;
  }

  .lightbox-nav-btn {
    display: none;
  }
}

@media (max-width: 520px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .floating-header {
    padding: 0 4px 0 8px;
  }

  .nav-brand-logo span {
    display: none;
  }

  .btn-talk {
    padding: 0 10px;
    font-size: 12px;
    height: 34px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.875rem;
  }

  .carousel-item-card {
    width: 76vw;
  }
}

/* --------------------------------------------------------------------------
   Accessibility & Reduced Motion
   -------------------------------------------------------------------------- */
@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;
  }

  .reveal-line>span {
    transform: none !important;
    animation: none !important;
  }

  .hero-bg-col {
    animation: none !important;
    transform: none !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .status-dot {
    animation: none !important;
  }
}