/* ═══════════════════════════════════════════════════════
   BLOOMSYNC — STYLESHEET (Light Theme)
   Structure: Tokens → Reset → Global → Nav → Sections
═══════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ─── */
:root {
  /* Colors — Light Theme */
  --color-bg:        #f7f7f7;   /* light grey background */
  --color-surface:   #efefef;   /* slightly darker surface */
  --color-border:    #b8b8b8;   /* subtle borders */
  --color-grey-mid:  #2a2a2a;   /* mid grey */
  --color-grey-light:#1f1f1f;   /* body text grey */
  --color-text:      #1f1f1f;   /* near-black main text */
  --color-white:     #000000;   /* use black as the "strong" accent */

  /* Typography */
  --font-serif: 'Audiowide', sans-serif;
  --font-mono:  'Space Mono', monospace;

  /* Spacing scale (multiples of 8px) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.6s var(--ease);
}

/* ─── 2. RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
button { background: none; border: none; font-family: inherit; }

/* ─── 3. NOISE CANVAS ─── */
#noise-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  will-change: transform;
  mix-blend-mode: multiply;
}

/* ─── 4. CUSTOM CURSOR — disabled, using default OS cursor ─── */
#cursor { display: none; }

/* ─── 5. SOUND TOGGLE ─── */
#sound-toggle {
  position: fixed;
  top: var(--sp-4);
  left: var(--sp-4);
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-grey-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: pointer;
}
#sound-toggle:hover { color: var(--color-text); }

/* ─── 6. NAVIGATION ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-8) var(--sp-3) var(--sp-3);
  transition: background 0.4s;
}

#navbar.scrolled {
  background: rgba(100, 100, 100, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #888;
}

/* Nav text turns white when bar is dark */
#navbar.scrolled .nav-logo,
#navbar.scrolled .nav-links a {
  color: #f0f0f0;
}
#navbar.scrolled .nav-links a::after {
  background: #f0f0f0;
}
#navbar.scrolled .hamburger span {
  background: #f0f0f0;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 26px;
  width: auto;
  display: block;
  transition: filter 0.4s, mix-blend-mode 0.4s;
  /* black logo on white PNG background:
     multiply blends the white away on the light page */
  mix-blend-mode: multiply;
}

/* When nav goes dark on scroll, invert to white logo and use screen
   so the black background of the inverted PNG disappears on dark nav */
#navbar.scrolled .logo-img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey-light);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s, background 0.3s;
}
.hamburger.active span { background: #f0f0f0; }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 50%;
  height: 50vh;
  background: #1f1f1f;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  border-left: 1px solid #555;
  border-radius: 0 0 0 16px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
  width: 100%;
  padding: 0 var(--sp-6);
}
.mobile-menu ul li {
  padding: var(--sp-2) 0;
}
.mobile-menu ul li:not(:last-child) {
  border-bottom: 1px solid #555;
}
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #f0f0f0;
  display: inline-block;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.mobile-menu a:hover {
  transform: scale(1.12);
  color: var(--color-grey-mid);
}

/* ─── 7. SECTION BASE ─── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--sp-16) var(--sp-8);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header { margin-bottom: var(--sp-8); }

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey-mid);
  margin-bottom: var(--sp-2);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text);
}

/* ─── 8. SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ─── 9. HERO ─── */
.hero {
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  min-height: 100vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-1);
}

/* Hero logo */
.hero-logo {
  width: clamp(200px, 40vw, 560px);
  height: auto;
  display: block;
  transition-delay: 0.2s;
}

/* Slogan under logo */
.hero-slogan {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-grey-light);
  transition-delay: 0.5s;
}

/* scroll hint removed — hero is now a pure splash screen */

/* ─── 10. ABOUT ─── */
.about { border-top: 1px solid var(--color-border); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
  max-width: 1100px;
}

.about-statement h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.about-statement p {
  font-size: 0.85rem;
  color: var(--color-grey-light);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: var(--sp-2);
}

.about-details { padding-top: var(--sp-2); transition-delay: 0.2s; }

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-border);
  gap: var(--sp-4);
}
.detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey-mid);
}
.detail-value {
  font-size: 0.8rem;
  color: var(--color-grey-light);
  text-align: right;
}

.about-centered {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about-centered h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.about-centered p {
  font-size: 1rem;
  color: var(--color-grey-light);
  line-height: 1.9;
  margin-bottom: var(--sp-2);
  text-align: justify;
}
.about-centered p:first-of-type {
  white-space: nowrap;
  text-align: center;
}

/* ─── 11. PROJECTS ─── */
.projects { border-top: 1px solid var(--color-border); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  max-width: 1100px;
}

.project-card {
  border: 1px solid #1a1a1a;
  padding: var(--sp-4);
  background: #111111;
  color: #f0f0f0;
  border-radius: 12px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.project-card:hover {
  border-color: #555;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.project-genre {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  border: 1px solid #333;
  padding: 3px 8px;
}
.project-year { font-size: 0.65rem; color: #666; }

.project-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: #f0f0f0;
  margin-bottom: var(--sp-3);
}

/* Waveform */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  margin-bottom: var(--sp-3);
}
.waveform span {
  flex: 1;
  background: #333;
  border-radius: 2px;
}
.waveform span:nth-child(1)  { height: 30%; }
.waveform span:nth-child(2)  { height: 60%; }
.waveform span:nth-child(3)  { height: 90%; }
.waveform span:nth-child(4)  { height: 50%; }
.waveform span:nth-child(5)  { height: 75%; }
.waveform span:nth-child(6)  { height: 40%; }
.waveform span:nth-child(7)  { height: 100%; }
.waveform span:nth-child(8)  { height: 65%; }
.waveform span:nth-child(9)  { height: 85%; }
.waveform span:nth-child(10) { height: 45%; }
.waveform span:nth-child(11) { height: 70%; }
.waveform span:nth-child(12) { height: 55%; }
.waveform span:nth-child(13) { height: 80%; }
.waveform span:nth-child(14) { height: 35%; }
.waveform span:nth-child(15) { height: 60%; }

.waveform.playing span {
  background: var(--color-grey-light);
  animation: wave-bar 0.8s ease-in-out infinite alternate;
}
.waveform.playing span:nth-child(odd)  { animation-duration: 0.6s; }
.waveform.playing span:nth-child(even) { animation-duration: 0.9s; }

@keyframes wave-bar {
  from { height: 15%; }
  to   { height: 100%; }
}

/* Player controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.play-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.play-btn:hover {
  border-color: #888;
  background: rgba(255,255,255,0.08);
}
.play-btn svg {
  width: 12px;
  height: 12px;
  fill: #f0f0f0;
  stroke: none;
}
.hidden { display: none !important; }

.progress-bar {
  flex: 1;
  height: 1px;
  background: #333;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: #888;
  transition: width 0.1s linear;
}
.time-display {
  font-size: 0.6rem;
  color: #666;
  white-space: nowrap;
  min-width: 28px;
}

/* ─── 11b. VIDEO CAROUSEL ─── */
.projects-carousel {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding: 0;
  background: #111;
  line-height: 0;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  height: clamp(260px, 55vh, 620px);
  overflow: hidden;
  background: #111;
  perspective: 1000px;
}

.carousel-track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
}

.carousel-slide {
  flex: 1;
  height: 78%;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  transition: flex 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.65s,
              box-shadow 0.65s;
  opacity: 0.5;
}

.carousel-slide.active {
  flex: 1.6;
  height: 96%;
  opacity: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.85), 0 8px 20px rgba(0,0,0,0.6);
}

@keyframes turn-from-right {
  from { transform: rotateY(-22deg) scale(0.92); }
  to   { transform: rotateY(0deg) scale(1); }
}
@keyframes turn-from-left {
  from { transform: rotateY(22deg) scale(0.92); }
  to   { transform: rotateY(0deg) scale(1); }
}
.carousel-slide.enter-right {
  animation: turn-from-right 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.carousel-slide.enter-left {
  animation: turn-from-left 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.carousel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  pointer-events: none;
}

/* hide placeholder once a real video is loaded and playing */
.carousel-slide.has-video .carousel-placeholder { display: none; }

.carousel-num {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  color: #2a2a2a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.carousel-hint {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #3a3a3a;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: #f0f0f0;
  cursor: pointer;
  transition: color 0.3s;
  padding: var(--sp-2);
}
.carousel-arrow:hover { color: #fff; }
#carousel-prev { left: var(--sp-3); }
#carousel-next { right: var(--sp-3); }

.carousel-sound {
  position: absolute;
  bottom: var(--sp-2);
  right: var(--sp-3);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0f0f0;
  cursor: pointer;
  transition: color 0.3s;
  padding: 6px;
}
.carousel-sound:hover { color: #fff; }
.carousel-sound svg { width: 18px; height: 18px; }

.carousel-indicators {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--color-grey-mid);
  transform: scale(1.4);
}

/* ─── 11c. PROJECTS LIST ─── */
.projects-list {
  border-top: 1px solid var(--color-border);
}

.projects-list-inner {
  max-width: 1100px;
}

.projects-list-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.projects-category {
  margin-bottom: var(--sp-6);
}

.category-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-grey-mid);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.project-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: padding-left 0.3s var(--ease);
}
.project-item:hover { padding-left: var(--sp-2); }

.project-item .service-body { flex: 1; }
.project-item .service-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  color: var(--color-text);
  transition: color 0.3s;
}
.project-item:hover .service-body h3 { color: var(--color-grey-light); }

.project-genre-tag {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey-mid);
  min-width: 70px;
  text-align: right;
}

.project-year-tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--color-grey-mid);
  min-width: 36px;
  text-align: right;
}

.project-item .service-arrow {
  font-size: 1rem;
  color: var(--color-grey-mid);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.project-item:hover .service-arrow {
  transform: translateX(6px);
  color: var(--color-text);
}

/* ─── 12. SERVICES ─── */
.services { border-top: 1px solid var(--color-border); }
.services-list { max-width: 1100px; }

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: padding-left 0.3s var(--ease);
}
.service-item:first-of-type { border-top: 1px solid var(--color-border); }
.service-item:hover { padding-left: var(--sp-2); }

.service-number {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--color-grey-mid);
  padding-top: 4px;
  min-width: 28px;
}
.service-body { flex: 1; }
.service-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--sp-1);
  transition: color 0.3s;
}
.service-body p {
  font-size: 0.75rem;
  color: var(--color-grey-mid);
  max-width: 420px;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s;
}
.service-item:hover .service-body p {
  max-height: 80px;
  opacity: 1;
}
.service-arrow {
  font-size: 1rem;
  color: var(--color-grey-mid);
  padding-top: 2px;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.service-item:hover .service-arrow {
  transform: translateX(6px);
  color: var(--color-text);
}

/* ─── 13. CONTACT ─── */

.contact-page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--sp-16) 0;
  margin-top: var(--sp-8);
}

.contact-block {
  position: relative;
  width: 100%;
  background: #0e0e0e;
  padding: var(--sp-6) var(--sp-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  overflow: hidden;
}


.contact-inner-wrap {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.contact-title {
  font-family: 'Inter', var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #f0f0f0;
  margin: 0;
}

.contact-divider {
  width: 40px;
  height: 1px;
  background: #333;
}

.contact-info-rows {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}
.contact-info-rows::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 106px;
  width: 1px;
  background: #333;
}

.contact-info-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #333;
}

.contact-info-label {
  font-family: 'Inter', var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0f0f0;
  min-width: 90px;
  padding-right: var(--sp-2);
  margin-right: var(--sp-4);
}

.contact-info-value {
  font-family: 'Inter', var(--font-mono);
  font-size: 0.95rem;
  color: #f0f0f0;
}

.contact-email {
  font-family: 'Inter', var(--font-mono);
  font-size: 0.95rem;
  color: #f0f0f0;
  transition: color 0.3s;
}
.contact-email:hover { color: #aaa; }

.contact-socials {
  display: flex;
  gap: var(--sp-6);
}

.contact-socials a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0f0f0;
  transition: color 0.3s;
  position: relative;
}
.contact-socials a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: #f0f0f0;
  transition: width 0.3s;
}
.contact-socials a:hover { color: #aaa; }
.contact-socials a:hover::after { width: 100%; }

@media (max-width: 600px) {
  .contact-block { padding: var(--sp-12) var(--sp-4); }
  .contact-socials { gap: var(--sp-4); }
}


.contact {
  border-top: 1px solid var(--color-border);
  min-height: 100vh;
}
.contact-inner { max-width: 700px; }

.contact-form {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.form-group label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-grey-mid);
}
.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: var(--sp-2) 0;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-grey-light); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-grey-mid); }

.submit-btn {
  align-self: flex-start;
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: var(--sp-2) var(--sp-4);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.submit-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.contact-links {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.contact-links > a {
  font-size: 0.75rem;
  color: var(--color-grey-light);
  transition: color 0.3s;
}
.contact-links > a:hover { color: var(--color-text); }

.social-links { display: flex; gap: var(--sp-4); }
.social-links a {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey-mid);
  transition: color 0.3s;
  position: relative;
}
.social-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--color-text);
  transition: width 0.3s;
}
.social-links a:hover { color: var(--color-text); }
.social-links a:hover::after { width: 100%; }

/* ─── 14. PAGE TRANSITION VEIL ─── */
#page-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #888888;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* CSS fallback: always fades out even if JS fails */
  animation: veil-fade 1.4s 0.3s forwards;
}
#page-veil.clear { opacity: 0; }

@keyframes veil-fade {
  to { opacity: 0; pointer-events: none; }
}

/* ─── 15. FOOTER ─── */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-8);
  border-top: 1px solid var(--color-border);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--color-grey-mid);
}

/* ─── 15. PAGE HEADER (used on inner pages) ─── */
.page-hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--sp-16) + var(--sp-8)) var(--sp-8) var(--sp-8);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .section-label {
  margin-bottom: var(--sp-3);
}
.page-hero h1 {
  font-family: 'Audiowide', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ─── 16. RESPONSIVE ─── */
@media (max-width: 900px) {
  .section { padding: var(--sp-12) var(--sp-4); }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .projects-grid { grid-template-columns: 1fr; }
  #navbar { padding: var(--sp-3) var(--sp-4); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer { flex-direction: column; gap: var(--sp-2); text-align: center; padding: var(--sp-4); }
  .hero-content { padding: var(--sp-8) var(--sp-4); }
  .page-hero { padding: calc(var(--sp-12) + var(--sp-4)) var(--sp-4) var(--sp-6); }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 18vw, 6rem); }
  .contact-inner { max-width: 100%; }
  .page-hero h1 { white-space: normal; font-size: clamp(1.2rem, 5vw, 1.8rem); }
  .carousel-viewport { height: clamp(180px, 40vw, 260px); background: #000; }
  .carousel-video { object-fit: contain; }
  .carousel-slide { flex: 0.5; height: 80%; }
  .carousel-slide.active { flex: 2; height: 100%; }
}
