/* ==========================================================================
   MIQDAD — Cinematic Video Editor Portfolio
   High-End Creative Studio Design System
   Dual Theme (Dark & Warm Light) · Red-to-Coral Gradients · Art-Directed Layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
  /* Dark Theme: Deep Cinematic Black & Rich Charcoal */
  --bg: #070709;
  --bg-secondary: #0E0E12;
  --surface: #141418;
  --surface-raised: #18181E;
  --surface-hover: #1D1D24;
  --surface-active: #24242D;

  /* Typography Colors */
  --text: #F6F4F0;          /* Warm off-white */
  --text-secondary: #A09E99;/* Refined muted stone */
  --text-muted: #6B6965;    /* Subtle captions */

  /* Crimson & Coral Strategic Accents */
  --red-accent: #D7192D;
  --red-accent-hover: #B51424;
  --red-coral: #FF3B4E;
  --red-gradient: linear-gradient(135deg, #D7192D 0%, #FF334B 50%, #C41224 100%);
  --red-gradient-hover: linear-gradient(135deg, #E62237 0%, #FF4D62 50%, #D7192D 100%);
  --red-glow: rgba(215, 25, 45, 0.42);
  --red-subtle: rgba(215, 25, 45, 0.12);
  --hero-wordmark-color: rgba(215, 25, 45, 0.2);

  /* Borders & Dividers */
  --border: #232328;
  --border-light: #32323A;
  --guide-line: rgba(255, 255, 255, 0.03);

  /* Navigation Active Indicator (Neutral White / Grey per Section 5) */
  --nav-active: #F6F4F0;
  --nav-active-bar: #F6F4F0;

  /* Ambient Atmospheric Radial Bloom */
  --bloom-color: rgba(215, 25, 45, 0.32);
  --bloom-subtle: rgba(255, 59, 78, 0.12);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-pill: 0 6px 24px rgba(215, 25, 45, 0.38), 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-pill-hover: 0 10px 32px rgba(215, 25, 45, 0.55), 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-floating: 0 14px 36px rgba(0, 0, 0, 0.65);
  --header-bg: rgba(7, 7, 9, 0.88);
  --modal-bg: rgba(7, 7, 9, 0.96);
  --placeholder-num: #1B1B20;
  --placeholder-num-hover: #292930;
}

[data-theme="light"] {
  /* Light Theme: Warm Ivory & Soft Stone (Deliberately designed, not inverted) */
  --bg: #FAF8F5;
  --bg-secondary: #F2EFE9;
  --surface: #FFFFFF;
  --surface-raised: #F8F5EE;
  --surface-hover: #F4EFEB;
  --surface-active: #EAE4DA;

  /* Typography Colors */
  --text: #171719;          /* Deep warm charcoal */
  --text-secondary: #585754;/* Readable warm grey */
  --text-muted: #888681;    /* Soft captions */

  /* Crimson Accents for Light Mode */
  --red-accent: #C81E2E;
  --red-accent-hover: #A91523;
  --red-coral: #E03645;
  --red-gradient: linear-gradient(135deg, #C81E2E 0%, #E83648 50%, #B81524 100%);
  --red-gradient-hover: linear-gradient(135deg, #D92435 0%, #F04B5D 50%, #C81E2E 100%);
  --red-glow: rgba(200, 30, 46, 0.28);
  --red-subtle: rgba(200, 30, 46, 0.08);
  --hero-wordmark-color: rgba(200, 30, 46, 0.12);

  /* Borders & Dividers */
  --border: #E5E1D8;
  --border-light: #D5D0C5;
  --guide-line: rgba(0, 0, 0, 0.035);

  /* Navigation Active Indicator (Neutral Deep Charcoal) */
  --nav-active: #171719;
  --nav-active-bar: #171719;

  /* Ambient Bloom in Light Mode */
  --bloom-color: rgba(200, 30, 46, 0.12);
  --bloom-subtle: rgba(200, 30, 46, 0.04);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-pill: 0 6px 20px rgba(200, 30, 46, 0.28), 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-pill-hover: 0 10px 28px rgba(200, 30, 46, 0.4), 0 4px 10px rgba(0, 0, 0, 0.12);
  --shadow-floating: 0 12px 32px rgba(0, 0, 0, 0.12);
  --header-bg: rgba(250, 248, 245, 0.9);
  --modal-bg: rgba(250, 248, 245, 0.98);
  --placeholder-num: #E6E1D6;
  --placeholder-num-hover: #D5CEBF;
}

:root {
  /* Typography Scale & Families */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-width: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-height: 76px;
  --section-padding: clamp(80px, 10vw, 140px);
  --section-gap: clamp(40px, 5vw, 68px);

  /* Radii */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.4s var(--ease);
  --t-slow: 0.8s var(--ease);
  --t-theme: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--t-theme);
  position: relative;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red-accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   3. Film Grain Overlay & Ambient Light Blooms
   -------------------------------------------------------------------------- */
.film-grain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ambient Radial Blooms */
.ambient-bloom {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.85;
}

.ambient-bloom-hero {
  top: 15%;
  right: 8%;
  width: clamp(350px, 45vw, 650px);
  height: clamp(350px, 45vw, 650px);
  background: radial-gradient(circle, var(--bloom-color) 0%, var(--bloom-subtle) 45%, transparent 75%);
}

.ambient-bloom-works {
  top: 40%;
  left: -10%;
  width: clamp(300px, 40vw, 550px);
  height: clamp(300px, 40vw, 550px);
  background: radial-gradient(circle, var(--bloom-color) 0%, transparent 70%);
  opacity: 0.5;
}

.ambient-bloom-contact {
  bottom: 5%;
  right: 15%;
  width: clamp(320px, 40vw, 600px);
  height: clamp(320px, 40vw, 600px);
  background: radial-gradient(circle, var(--bloom-color) 0%, var(--bloom-subtle) 40%, transparent 75%);
  opacity: 0.7;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9999;
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--radius-xs);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   4. Layout & Grid Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
  z-index: 1;
}

.section-anchor {
  position: absolute;
  top: calc(var(--header-height) * -1);
  visibility: hidden;
}

.section-divider {
  border: none;
  height: 1px;
  background-color: var(--border);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   5. Typography System
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--red-accent);
  line-height: 1.4;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--red-accent);
}

.section-header {
  margin-bottom: var(--section-gap);
  max-width: 48rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-note {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   6. Fixed Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--t-theme);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-wordmark {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--text);
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  transition: color var(--t-fast);
}

.brand-dot {
  color: var(--red-accent);
}

.brand-badge {
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Desktop Nav — Exactly 3 links (Works, About, Contact) */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 50px);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--nav-active-bar);
  transition: width var(--t-fast);
}

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

/* Active Navigation Indicator (Neutral Grey/White per Section 5) */
.nav-link.is-active {
  color: var(--nav-active);
  font-weight: 600;
}

.nav-link.is-active::after {
  width: 100%;
}

/* Header Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 3-Way Mode Switcher Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all var(--t-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.theme-status-pill {
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--text-muted);
}

/* Theme Icon Visibility Rules */
.theme-icon {
  display: none;
}

/* In Dark manual override */
[data-theme-state="dark"] .icon-sun,
:root:not([data-theme-state]) [data-theme="dark"] .icon-sun {
  display: block;
}

/* In Light manual override */
[data-theme-state="light"] .icon-moon,
:root:not([data-theme-state]) [data-theme="light"] .icon-moon {
  display: block;
}

/* In System mode */
[data-theme-state="system"] .icon-system {
  display: block;
}

/* Fallback default */
:root:not([data-theme-state]) .icon-sun {
  display: block;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.mobile-menu-toggle:hover {
  border-color: var(--border-light);
  background: var(--surface-hover);
}

.menu-icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

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

/* Mobile Navigation Drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  background-color: var(--bg);
  padding: 32px var(--gutter);
  z-index: 99;
  flex-direction: column;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  transition: var(--t-theme);
}

.nav-mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
}

.nav-mobile-item {
  border-bottom: 1px solid var(--border);
}

.nav-mobile-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  padding: 20px 0;
  transition: color var(--t-fast);
}

.nav-mobile-link:hover,
.nav-mobile-link.is-active {
  color: var(--text);
}

/* Mobile Theme Selector (3 Segmented Choices) */
.mobile-theme-section {
  padding: 28px 0 20px;
}

.mobile-theme-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mobile-theme-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.mobile-theme-option {
  padding: 10px 0;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.mobile-theme-option.is-active {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.mobile-drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.mobile-tagline {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* --------------------------------------------------------------------------
   7. Premium Button System (Pill-Shaped with Controlled Gradients)
   -------------------------------------------------------------------------- */
.btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 32px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--radius-pill);
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

/* Primary Button: Refined crimson to coral gradient with layered glow */
.btn-primary {
  background: var(--red-gradient);
  color: #FFFFFF;
  border: 1px solid transparent;
  box-shadow: var(--shadow-pill);
}

.btn-primary:hover {
  background: var(--red-gradient-hover);
  box-shadow: var(--shadow-pill-hover);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-pill);
}

.btn-arrow-icon {
  transition: transform var(--t-fast);
}

.btn-primary:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* Secondary Button: Clean ghost styling with sliding arrow */
.btn-ghost {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--text);
  background-color: var(--surface-hover);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--t-fast);
}

.btn-ghost:hover .btn-arrow {
  transform: translateX(4px);
}

@media (max-width: 580px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   8. Hero Section (Art-Directed Asymmetry & Depth)
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-height) + 36px);
  position: relative;
  overflow: hidden;
}

/* Camera Grid Lines */
.hero-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.guide-line-vert {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--guide-line);
}
.guide-line-vert.first { left: 33.333%; }
.guide-line-vert.second { left: 66.666%; }

/* Monumental Red MIQDAD Wordmark Element */
.hero-wordmark-bg {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: clamp(100px, 22vw, 320px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--hero-wordmark-color);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--t-theme);
}

.hero-container {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 20px;
  padding-bottom: 40px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.hero-text-col {
  display: flex;
  flex-direction: column;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.hero-availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero-avail-divider {
  color: var(--border-light);
}

.hero-avail-status {
  color: var(--text-muted);
  font-weight: 600;
}

.hero-headline {
  margin-bottom: 22px;
}

.headline-line-1 {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(50px, 6.8vw, 100px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--text);
}

.headline-line-2 {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(54px, 7.4vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-subcopy {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 36px;
}

/* Hero Portrait Composition (Non-generic, Layered with Radial Blooms) */
.hero-portrait-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Atmospheric Radial Crimson Bloom */
.hero-portrait-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, var(--bloom-color) 0%, var(--bloom-subtle) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: bloom-breathe 8s ease-in-out infinite;
}

@keyframes bloom-breathe {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.08); }
}

/* Orbital Lens Ring */
.hero-portrait-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 118%;
  height: 118%;
  border-radius: 50%;
  border: 1px dashed rgba(215, 25, 45, 0.22);
  pointer-events: none;
  z-index: 1;
  animation: spin-slow 60s linear infinite;
}

@keyframes spin-slow {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Precision 1:1 Silhouette Frame with Rim Lighting */
.hero-portrait-frame {
  position: relative;
  width: clamp(260px, 30vw, 390px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 45px var(--red-glow), inset 0 0 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 2;
  transition: var(--t-theme);
}

[data-theme="light"] .hero-portrait-frame {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 0 32px rgba(200, 30, 46, 0.18);
}

/* Viewfinder Corner Brackets */
.frame-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 4;
}

.bracket-tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid var(--red-accent);
  border-left: 2px solid var(--red-accent);
}

.bracket-tr {
  top: 8px;
  right: 8px;
  border-top: 2px solid var(--red-accent);
  border-right: 2px solid var(--red-accent);
}

.bracket-bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid var(--red-accent);
  border-left: 2px solid var(--red-accent);
}

.bracket-br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid var(--red-accent);
  border-right: 2px solid var(--red-accent);
}

/* Camera Focal Telemetry Marker */
.frame-telemetry {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Floating Glass Badge */
.portrait-glass-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  background-color: rgba(10, 10, 14, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.badge-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--red-accent);
  animation: pulse-dot 1.8s infinite;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Hero Timeline Strip */
.timeline-strip {
  width: 100%;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
  padding: 16px 0 20px;
  background-color: var(--bg);
  transition: var(--t-theme);
}

.timeline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.timeline-track-wrap {
  flex: 1;
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
}

.timeline-ticks {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    to right,
    var(--border) 0,
    var(--border) 1px,
    transparent 1px,
    transparent 14px
  );
  opacity: 0.7;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 10px;
  height: 18px;
  pointer-events: none;
  animation: playheadDrift 14s linear infinite;
}

.playhead-marker {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--red-accent);
}

.playhead-line {
  width: 1px;
  height: 13px;
  background-color: var(--red-accent);
}

@keyframes playheadDrift {
  0% { left: 0%; }
  100% { left: calc(100% - 10px); }
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.timeline-timecode {
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.hero-scroll-hint:hover {
  color: var(--text);
}

.scroll-arrow {
  display: inline-block;
  animation: bounce-subtle 2s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-availability {
    align-self: center;
  }
  .hero-subcopy {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btn-group {
    justify-content: center;
  }
  .hero-portrait-frame {
    width: clamp(240px, 55vw, 320px);
  }
  .hero-wordmark-bg {
    top: 6%;
  }
}

/* --------------------------------------------------------------------------
   9. Selected Work Section (Editorial Spotlight & Asymmetric Grid)
   -------------------------------------------------------------------------- */
.work-controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: var(--section-gap);
}

.work-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 460px;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--t-fast);
}

.project-search-input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 42px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), background-color var(--t-fast);
  -webkit-appearance: none;
}

.project-search-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.project-search-input:focus {
  border-color: var(--red-accent);
  background-color: var(--surface-hover);
}

.work-search-box:focus-within .search-icon {
  color: var(--red-accent);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--t-fast);
}

.search-clear-btn:hover {
  color: var(--text);
}

.work-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.work-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--border-light);
  background-color: var(--surface-hover);
}

.filter-tab.is-active {
  color: #FFFFFF;
  border-color: var(--red-accent);
  background: var(--red-gradient);
  box-shadow: var(--shadow-pill);
}

/* View Switcher */
.view-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  cursor: pointer;
}

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

.view-btn.is-active {
  color: var(--text);
  background-color: var(--surface-raised);
  box-shadow: var(--shadow-sm);
}

/* Editorial Gallery Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(18px, 2.4vw, 32px);
  row-gap: clamp(40px, 5vw, 68px);
  transition: opacity var(--t-fast);
}

/* Featured Spotlight Card — Spans Full 12 Columns */
.card-featured {
  grid-column: span 12;
  margin-bottom: 12px;
}

.card-featured .card-media-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.card-featured .card-content {
  padding-top: 22px;
}

.card-featured .card-title {
  font-size: clamp(24px, 2.8vw, 36px);
}

/* Supporting Cards Hierarchy */
.card-wide { grid-column: span 8; }
.card-tall { grid-column: span 4; }

.card-wide .card-media-frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
}

.card-tall .card-media-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
}

/* Moodboard view override: Uniform 3-column square cards */
.work-grid.view-moodboard {
  grid-template-columns: repeat(3, 1fr);
}

.work-grid.view-moodboard .card-featured,
.work-grid.view-moodboard .card-wide,
.work-grid.view-moodboard .card-tall {
  grid-column: span 1;
}

.work-grid.view-moodboard .card-media-frame {
  aspect-ratio: 1 / 1 !important;
  border-radius: var(--radius-md);
}

.project-card {
  display: flex;
  flex-direction: column;
}

/* Media Frame (Film Cell Construction) */
.card-media-frame {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.card-thumbnail,
.card-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card:hover .card-media-frame {
  background-color: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px var(--red-subtle);
}

/* Card Badge */
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 11px;
  background-color: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.card-badge.badge-featured {
  background: var(--red-gradient);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(215, 25, 45, 0.5);
}

/* Film Telemetry Label (Top-Right of card) */
.card-telemetry {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Placeholder Frame Grid */
.placeholder-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.placeholder-grid::before {
  content: '';
  position: absolute;
  top: 33.333%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--guide-line);
  box-shadow: 0 calc(100% * 0.3333) 0 var(--guide-line);
}

.placeholder-grid::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.333%;
  width: 1px;
  background-color: var(--guide-line);
  box-shadow: calc(100% * 0.3333) 0 0 var(--guide-line);
}

.placeholder-num {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 900;
  line-height: 1;
  color: var(--placeholder-num);
  user-select: none;
  transition: color var(--t-fast);
}

.project-card:hover .placeholder-num {
  color: var(--placeholder-num-hover);
}

/* Card Content */
.card-content {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.card-description {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 36rem;
}

/* Empty State */
.work-empty-state {
  padding: 68px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  margin-top: 24px;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.empty-state-reset {
  margin: 0 auto;
}

@media (max-width: 900px) {
  .work-grid,
  .work-grid.view-moodboard {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
  .card-featured,
  .card-wide,
  .card-tall {
    grid-column: span 1;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-featured {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   10. Tools & Craft Section (Editing Suite Presentation)
   -------------------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(36px, 7vw, 88px);
  row-gap: 48px;
  align-items: start;
}

.tools-column-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-row {
  display: flex;
  align-items: center;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
}

.tool-row:hover {
  border-color: var(--border-light);
  background-color: var(--surface-hover);
  transform: translateY(-2px);
}

.tool-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.tool-logo {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.tool-info {
  display: flex;
  flex-direction: column;
}

.tool-name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}

.tool-sublabel {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Craft Disciplines */
.craft-list {
  display: flex;
  flex-direction: column;
}

.craft-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.craft-row:first-child {
  border-top: 1px solid var(--border);
}

.craft-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--red-accent);
  width: 26px;
  flex-shrink: 0;
}

.craft-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.craft-title {
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
}

.craft-detail {
  font-size: 13.5px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   11. Work Process Section (4-Step Editorial Flow)
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  color: var(--red-accent);
  margin-bottom: 18px;
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.process-step-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

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

/* --------------------------------------------------------------------------
   12. About Section (Asymmetrical Editorial Art Direction)
   -------------------------------------------------------------------------- */
.about-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(36px, 6vw, 76px);
}

.about-portrait-wrap {
  position: relative;
  flex: 0 0 clamp(160px, 20vw, 230px);
  width: clamp(160px, 20vw, 230px);
}

.about-portrait-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, var(--bloom-color) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Precision 1:1 Silhouette Frame */
.about-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background-color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--red-subtle);
  overflow: hidden;
  z-index: 2;
  transition: var(--t-theme);
}

[data-theme="light"] .about-portrait-frame {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 46rem;
}

.about-headline {
  margin-bottom: 24px;
}

.about-head-1 {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}

.about-head-2 {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}

.about-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 34px;
}

/* Personal Info Grid */
.about-personal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-info-label {
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.about-info-value {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}

.about-info-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}

.about-info-link:hover {
  color: var(--red-accent);
}

@media (max-width: 700px) {
  .about-layout {
    flex-direction: column;
    gap: 32px;
  }
  .about-portrait-wrap {
    width: 160px;
  }
  .about-personal-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   13. Contact Section (Atmospheric Closing Scene)
   -------------------------------------------------------------------------- */
.contact-section {
  text-align: center;
  padding-top: clamp(90px, 12vw, 160px);
  padding-bottom: clamp(90px, 12vw, 160px);
}

.contact-inner {
  max-width: 52rem;
  margin: 0 auto;
}

.contact-headline {
  font-family: var(--font-heading);
  font-size: clamp(38px, 6.8vw, 86px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-supporting {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 44px;
}

.contact-cta-wrap {
  margin-bottom: 28px;
}

.contact-wa-btn {
  padding: 0 38px;
  min-height: 54px;
  font-size: 13px;
}

.btn-wa-icon {
  flex-shrink: 0;
}

.contact-email-wrap {
  margin-bottom: 32px;
}

.contact-email-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
  transition: border-color var(--t-fast), color var(--t-fast);
  word-break: break-all;
}

.contact-email-link:hover {
  border-color: var(--red-accent);
  color: var(--red-accent);
}

.contact-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-fast);
}

.contact-social-link:hover {
  color: var(--text);
  border-color: var(--border-light);
  background-color: var(--surface-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  transition: var(--t-theme);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.back-to-top-btn {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--t-fast);
}

.back-to-top-btn:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   15. Floating Controls (WhatsApp + Separate Back-to-Top Button)
   -------------------------------------------------------------------------- */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.floating-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FFFFFF;
  animation: pulse-dot 2s infinite;
}

.floating-wa-icon {
  flex-shrink: 0;
}

/* Floating Back-to-Top Button (Strictly non-overlapping) */
.floating-back-to-top {
  position: fixed;
  bottom: 26px;
  right: 226px; /* Positioned left of WhatsApp on desktop */
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-floating);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color var(--t-fast), border-color var(--t-fast);
}

.floating-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-back-to-top:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

/* Responsive Positioning to guarantee NO overlap */
@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 20px;
    right: 16px;
    padding: 11px 18px;
  }
  .floating-back-to-top {
    bottom: 86px; /* Stacked cleanly above WhatsApp on mobile */
    right: 16px;
  }
}

/* --------------------------------------------------------------------------
   16. Video Modal (Lightbox)
   -------------------------------------------------------------------------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--modal-bg);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.video-modal.is-active {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}

.modal-close-btn:hover {
  color: var(--red-accent);
}

.modal-frame-holder {
  width: 100%;
  height: 100%;
}

.modal-frame-holder iframe,
.modal-frame-holder video {
  width: 100%;
  height: 100%;
  border: none;
}

/* --------------------------------------------------------------------------
   17. Scroll Reveal & Reduced Motion
   -------------------------------------------------------------------------- */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

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

@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-init {
    opacity: 1 !important;
    transform: none !important;
  }
  .timeline-playhead {
    animation: none !important;
    left: 25% !important;
  }
  .hero-portrait-aura,
  .hero-portrait-ring,
  .hero-availability-dot,
  .badge-rec-dot,
  .whatsapp-status-dot,
  .scroll-arrow {
    animation: none !important;
  }
}
