/* ==========================================================================
   DESIGN TOKENS & CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Colors */
  --color-obsidian: #000000;
  --color-paper-white: #ffffff;
  --color-ash-gray: #eeeeee;
  --color-smoke: #888888;
  --color-bone: #cacaca;
  --color-brand: #ffd900;
  --color-brand-dim: rgba(255, 217, 0, 0.4);

  /* Typography — Font Families */
  --font-primary: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Typography — Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  /* Spacing Scale */
  --spacing-4: 4px;
  --spacing-9: 9px;
  --spacing-18: 18px;
  --spacing-22: 22px;
  --spacing-24: 24px;
  --spacing-36: 36px;
  --spacing-56: 56px;
  --spacing-96: 96px;
  --spacing-120: 120px;

  /* Layout Widths */
  --content-max-width: 1200px;
}

/* Local Fonts Self-Hosting (DSGVO compliant) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}

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

html {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--color-obsidian);
  color: var(--color-paper-white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
}

/* Accessibility Focus Outline */
*:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-brand);
  color: var(--color-obsidian);
  padding: 10px 20px;
  z-index: 10001;
  font-weight: var(--font-weight-medium);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
  outline: none;
}

/* ==========================================================================
   GLOBAL LAYOUT STRUCTURE
   ========================================================================== */
section {
  position: relative;
  width: 100%;
  padding: var(--spacing-96) 0;
  overflow: hidden;
}

.section-dark {
  background-color: var(--color-obsidian);
  color: var(--color-paper-white);
}

.section-light {
  background-color: var(--color-paper-white);
  color: var(--color-obsidian);
}

.section-gray {
  background-color: var(--color-ash-gray);
  color: var(--color-obsidian);
}

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-56);
}

@media (max-width: 768px) {
  section {
    padding: var(--spacing-56) 0;
  }
  .container {
    padding: 0 var(--spacing-24);
  }
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.text-display {
  font-size: clamp(36px, 8vw, 74px);
  font-weight: var(--font-weight-regular);
  line-height: 0.92;
  letter-spacing: clamp(-1.44px, -0.4vw, -2.96px);
  text-transform: uppercase;
  font-feature-settings: "cpsp";
}

.text-heading-lg {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: var(--font-weight-regular);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.text-heading-sm {
  font-size: clamp(18px, 2.5vw, 21px);
  font-weight: var(--font-weight-regular);
  line-height: 1.3;
  letter-spacing: -0.18px;
}

.text-subheading {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: var(--font-weight-regular);
  line-height: 1.33;
  letter-spacing: -0.09px;
}

.text-body {
  font-size: 15px;
  line-height: 1.5;
  font-weight: var(--font-weight-regular);
}

.text-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.14px;
  text-transform: uppercase;
  color: var(--color-smoke);
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-9);
  margin-bottom: var(--spacing-36);
}

.section-title .divider {
  width: 100%;
  height: 1px;
}

.section-dark .section-title .divider {
  background-color: var(--color-smoke);
}

.section-light .section-title .divider,
.section-gray .section-title .divider {
  background-color: var(--color-bone);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1000;
  background-color: transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  padding: 40px 0 var(--spacing-24) 0;
}

.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0 var(--spacing-36);
}

.header-left {
  justify-self: start;
}

.header-center {
  justify-self: center;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--spacing-24);
}

/* Menu Toggle Button */
.menu-trigger {
  display: flex;
  align-items: center;
  gap: var(--spacing-9);
  cursor: pointer;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 6px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.menu-trigger:hover .hamburger span:first-child {
  transform: translateY(-2px);
}

.menu-trigger:hover .hamburger span:last-child {
  transform: translateY(2px);
}

.menu-label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

/* Logo Sizing & Dynamic Coloring */
.nav-logo {
  display: inline-block;
  height: 28px;
  aspect-ratio: 3370.82 / 2384.24;
}

/* Symbol-only mode: crop to just the icon mark (left portion of SVG) */
.nav-logo--symbol {
  height: 48px;
  width: 48px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible; /* Allow slogan to slide out */
}

.nav-logo--symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Inner SVG layer rotates around its center */
.nav-logo--symbol svg > g {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.nav-logo--symbol:hover svg > g {
  transform: rotate(90deg);
}

/* Individual parts inside SVG symbol */
.logo-part {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate(0, 0);
}

/* Drift apart diagonally on hover by equal X and Y amounts in local SVG space */
.nav-logo--symbol:hover .part-tl {
  transform: translate(-180px, -180px);
}
.nav-logo--symbol:hover .part-tr {
  transform: translate(180px, -180px);
}
.nav-logo--symbol:hover .part-bl {
  transform: translate(-180px, 180px);
}
.nav-logo--symbol:hover .part-br {
  transform: translate(180px, 180px);
}

/* Slogan text absolute styles */
.logo-slogan {
  position: absolute;
  display: block;
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

/* Initial hidden states (tucked slightly inside the edges of the 48px box) */
.slogan-n {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}
.slogan-s {
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}
.slogan-w {
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
}
.slogan-e {
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
}

/* Hover active states (slide out and fade in) */
.nav-logo--symbol:hover .logo-slogan {
  opacity: 1;
}
.nav-logo--symbol:hover .slogan-n {
  transform: translateX(-50%) translateY(-12px);
}
.nav-logo--symbol:hover .slogan-s {
  transform: translateX(-50%) translateY(12px);
}
.nav-logo--symbol:hover .slogan-w {
  transform: translateY(-50%) translateX(-16px);
}
.nav-logo--symbol:hover .slogan-e {
  transform: translateY(-50%) translateX(16px);
}

.nav-logo svg {
  width: 100%;
  height: 100%;
}

.nav-logo svg path,
.nav-logo svg use,
.footer-logo svg path,
.footer-logo svg use {
  fill: currentColor !important;
}

.nav-logo svg use[stroke],
.footer-logo svg use[stroke] {
  stroke: currentColor !important;
}


/* Header Socials */
.header-socials {
  display: flex;
  align-items: center;
  gap: var(--spacing-18);
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  width: 20px;
  height: 20px;
  transition: color 0.2s ease;
}

.social-icon-btn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

.social-icon-btn:hover {
  color: var(--color-paper-white);
}

/* Language Toggle Button */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  font-family: var(--font-primary);
  font-size: 11px;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.6;
}

.lang-btn {
  cursor: pointer;
  padding: 4px;
}

.lang-btn.active {
  font-weight: 700;
  opacity: 1;
}

.lang-separator {
  opacity: 0.5;
}

/* Nav Adaptation Classes (IntersectionObserver) */
.nav-light-theme {
  color: var(--color-brand);
}

.nav-light-theme .nav-logo {
  color: var(--color-brand);
}

.nav-light-theme .lang-btn.active {
  opacity: 1;
}

.nav-dark-theme {
  color: var(--color-obsidian);
}

.nav-dark-theme .nav-logo {
  color: var(--color-obsidian);
}

.nav-dark-theme .lang-btn.active {
  color: var(--color-obsidian);
}

.nav-dark-theme .social-icon-btn {
  color: var(--color-brand);
}

.nav-dark-theme .social-icon-btn:hover {
  color: var(--color-obsidian);
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 var(--spacing-24);
  }
  .menu-label {
    display: none; /* Hide 'MENU' text on mobile, hamburger only */
  }
  .header-socials {
    display: none; /* Move socials to hamburger menu on mobile */
  }
}

/* ==========================================================================
   MENU OVERLAY (HAMBURGER OPEN STATE)
   ========================================================================== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-obsidian);
  color: var(--color-paper-white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--spacing-120) var(--spacing-56) var(--spacing-56) var(--spacing-56);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-close {
  position: absolute;
  top: var(--spacing-24);
  left: var(--spacing-36);
  display: flex;
  align-items: center;
  gap: var(--spacing-9);
  cursor: pointer;
  color: var(--color-paper-white);
}

.close-x {
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  margin-top: auto;
  margin-bottom: auto;
}

.menu-nav-item {
  list-style: none;
}

.menu-nav-link {
  display: inline-block;
  font-size: clamp(30px, 6vw, 48px);
  text-transform: uppercase;
  letter-spacing: -1.5px;
  font-weight: var(--font-weight-regular);
}

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

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--color-smoke);
  padding-top: var(--spacing-24);
}

.menu-socials-mobile {
  display: none;
}

@media (max-width: 768px) {
  .menu-overlay {
    padding: var(--spacing-96) var(--spacing-24) var(--spacing-24) var(--spacing-24);
  }
  .menu-close {
    left: var(--spacing-24);
  }
  .menu-socials-mobile {
    display: flex;
    gap: var(--spacing-18);
    margin-bottom: var(--spacing-24);
  }
  .menu-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-18);
  }
}

/* ==========================================================================
   SECTION 1 — HERO / OPENING TITLE
   ========================================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

/* Dark overlay for text readability over background image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Group containing logo and subtitle to match their widths precisely */
.hero-brand-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: clamp(260px, 40vw, 480px);
}

/* Hero logo expands to full container width */
.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

/* Subtitle expands to stretch and justify across the exact width of the logo */
.hero-subtitle {
  text-transform: uppercase;
  color: var(--color-brand);
  text-align: justify;
  text-align-last: justify;
  margin: 0;
  display: block;
  font-size: clamp(10px, 1.4vw, 15px);
  letter-spacing: normal;
  /* Margins compensate for the empty blank spaces in the logo SVG (8.36% left, 9.33% right) */
  margin-left: 8.36%;
  margin-right: 9.33%;
}

/* Scroll indicator with custom longer-tail SVG arrow */
.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-36);
  right: var(--spacing-56);
  width: 16px;
  height: 52px;
  color: var(--color-brand);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-arrow {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-shaft {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 12px 58px;
}

.arrow-tip {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: 12px 58px;
}

.scroll-indicator:hover .scroll-arrow {
  transform: translateY(6px);
}

.scroll-indicator:hover .arrow-shaft {
  transform: scaleY(0.5);
}

.scroll-indicator:hover .arrow-tip {
  transform: scale(1.5);
}

@media (max-width: 768px) {
  .scroll-indicator {
    right: var(--spacing-24);
    bottom: var(--spacing-24);
    height: 44px;
  }
  .hero-brand-group {
    width: clamp(200px, 65vw, 320px);
  }
}

/* ==========================================================================
   SECTION 2 — PORTFOLIO / WORK
   ========================================================================== */
.portfolio-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--spacing-36);
}

.project-block {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: center;
  gap: var(--spacing-36);
  padding: var(--spacing-36) 0;
  border-bottom: 1px solid var(--color-bone);
  cursor: pointer;
}

.project-block:first-of-type {
  border-top: 1px solid var(--color-bone);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-9);
  text-align: left;
}

.project-title {
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.project-block:hover .project-title {
  color: var(--color-brand);
}

.project-meta {
  display: flex;
  gap: var(--spacing-18);
}

.project-thumbnail {
  width: 240px;
  aspect-ratio: 16 / 9;
  background-color: var(--color-ash-gray);
  overflow: hidden;
  position: relative;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-block:hover .project-thumbnail img {
  transform: scale(1.05);
}

/* Static Play Overlay */
.project-thumbnail::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-paper-white);
  font-size: 18px;
  background-color: rgba(0, 0, 0, 0.7);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.project-block:hover .project-thumbnail::after {
  opacity: 1;
  background-color: var(--color-brand);
  color: var(--color-obsidian);
}

@media (max-width: 768px) {
  .project-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-18);
    padding: var(--spacing-24) 0;
  }
  .project-thumbnail {
    width: 100%;
    order: -1; /* Image on top in mobile */
  }
}

/* ==========================================================================
   SECTION 3 — ABOUT / THE ORGANIZED CREATIVE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--spacing-56);
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
  text-align: left;
}

.about-tagline {
  color: var(--color-paper-white);
  border-left: 2px solid var(--color-brand);
  padding-left: var(--spacing-18);
}

.about-bio {
  color: var(--color-smoke);
  max-width: 50ch;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-9);
  margin-top: var(--spacing-9);
}

.about-tags span {
  display: inline-block;
}

.about-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--color-obsidian);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.about-image:hover img {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-36);
  }
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   SECTION 4 — SERVICES
   ========================================================================== */
.services-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--spacing-36);
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  padding: var(--spacing-36) 0;
  border-bottom: 1px solid var(--color-bone);
  gap: var(--spacing-36);
  text-align: left;
}

.service-block:first-of-type {
  border-top: 1px solid var(--color-bone);
}

.service-title {
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
}

.service-desc {
  color: var(--color-smoke);
  font-size: 15px;
  line-height: 1.6;
}

.services-cta-container {
  margin-top: var(--spacing-56);
  display: flex;
  justify-content: flex-start;
}

.services-cta {
  font-size: 18px;
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-9);
}

.services-cta:hover {
  color: var(--color-brand);
}

@media (max-width: 768px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-9);
    padding: var(--spacing-24) 0;
  }
  .services-cta-container {
    margin-top: var(--spacing-36);
  }
}

/* ==========================================================================
   SECTION 5 — CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-56);
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-36);
  text-align: left;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-18);
  margin-top: var(--spacing-18);
}

.contact-email {
  font-size: clamp(16px, 3vw, 24px);
  font-weight: var(--font-weight-regular);
  color: var(--color-paper-white);
  word-break: break-all;
}

.contact-email:hover {
  color: var(--color-brand);
}

.contact-address {
  color: var(--color-smoke);
}

/* Custom Brutalist Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-22);
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.contact-input {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--color-paper-white);
  color: var(--color-paper-white);
  padding: var(--spacing-18) var(--spacing-22);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.contact-input::placeholder {
  color: var(--color-smoke);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14px;
}

.contact-input:focus {
  border-color: var(--color-brand);
}

textarea.contact-input {
  min-height: 140px;
  resize: vertical;
}

.form-submit-btn {
  background-color: var(--color-paper-white);
  color: var(--color-obsidian);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--spacing-22) var(--spacing-18);
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.form-submit-btn:hover {
  background-color: var(--color-brand);
  color: var(--color-obsidian);
}

/* AJAX Form Status Messaging */
.form-status-msg {
  font-size: 13px;
  margin-top: var(--spacing-9);
}

.form-status-msg.success {
  color: #00ff88;
}

.form-status-msg.error {
  color: #ff3344;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-36);
  }
}

/* ==========================================================================
   FOOTER (AT THE BOTTOM OF SECTION 5)
   ========================================================================== */
.footer {
  margin-top: var(--spacing-96);
  border-top: 1px solid var(--color-smoke);
  padding-top: var(--spacing-36);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: inline-block;
  height: 20px;
  aspect-ratio: 3370.82 / 2384.24;
  color: var(--color-brand);
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}


.footer-links {
  display: flex;
  gap: var(--spacing-18);
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-smoke);
}

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

.copyright {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-smoke);
}

@media (max-width: 768px) {
  .footer {
    margin-top: var(--spacing-56);
    flex-direction: column;
    gap: var(--spacing-22);
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: var(--spacing-18) var(--spacing-24);
  }
}

/* ==========================================================================
   LIGHTBOX / PORTFOLIO MODAL OVERLAY
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: var(--spacing-24);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--color-paper-white);
  font-size: 36px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--color-brand);
}

.lightbox-content {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background-color: var(--color-obsidian);
  position: relative;
}

.lightbox-content iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .menu-overlay,
  .lightbox,
  .project-thumbnail img,
  .project-thumbnail::after,
  .about-image img {
    transition: none !important;
  }
  .project-thumbnail img:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   LEGAL PAGES ADDITIONAL CUSTOM STYLES
   ========================================================================== */
.legal-page-header {
  border-bottom: 1px solid var(--color-smoke);
  padding: 80px 0 var(--spacing-24) 0;
}

.legal-content-container {
  padding: var(--spacing-56) 0;
}

.legal-content {
  text-align: left;
  max-width: 80ch;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-24);
}

.legal-content h2 {
  font-size: 21px;
  text-transform: uppercase;
  margin-top: var(--spacing-24);
  color: var(--color-paper-white);
}

.legal-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-smoke);
}

.legal-content ul {
  padding-left: var(--spacing-24);
  color: var(--color-smoke);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-9);
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-9);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-bottom: var(--spacing-24);
}

.back-to-home:hover {
  color: var(--color-brand);
}
