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

:root {
  --bg:              #F2F0EB;
  --text-primary:    #1E1E24;
  --text-secondary:  #3D3B35;
  --text-tertiary:   #5A5850;
  --border:          #D8D5CC;
  --card-bg:         #ECEAE4;
  --border-dark:     #C5C2B9;
  --radius-card:     14px;
  --radius-sm:       8px;
  --font:            'Geist', sans-serif;
  --ease-asmr:       cubic-bezier(0.22, 1, 0.36, 1);
  --transition:      0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-padding-top: var(--header-height, 80px);
}

body {
  font-family: var(--font);
  background: transparent;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   BLOB BACKGROUND
   ============================================================ */
#blob-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #EC8878;
  transform: translateZ(0);
  isolation: isolate;
  filter: blur(25px) saturate(0.7);
}

.blob {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}

/* Individual blob sizes, colours & CSS animations */
#blob-0 { width: 65vw; height: 65vw; background: #F07268; animation: drift0 20s ease-in-out infinite alternate; }
#blob-1 { width: 55vw; height: 55vw; background: #F0AA70; animation: drift1 16s ease-in-out infinite alternate; animation-delay: -6s; }
#blob-2 { width: 48vw; height: 48vw; background: #E87278; animation: drift2 12s ease-in-out infinite alternate; animation-delay: -4s; }
#blob-3 { width: 44vw; height: 44vw; background: #F5C47E; animation: drift3 24s ease-in-out infinite alternate; animation-delay: -9s; }
#blob-4 { width: 40vw; height: 40vw; background: #D96878; animation: drift4 14s ease-in-out infinite alternate; animation-delay: -7s; }

@keyframes drift0 {
  from { transform: translate3d(calc(-50% - 42vw), calc(-50% - 38vh), 0); }
  to   { transform: translate3d(calc(-50% + 42vw), calc(-50% + 38vh), 0); }
}
@keyframes drift1 {
  from { transform: translate3d(calc(-50% + 40vw), calc(-50% - 36vh), 0); }
  to   { transform: translate3d(calc(-50% - 40vw), calc(-50% + 36vh), 0); }
}
@keyframes drift2 {
  from { transform: translate3d(calc(-50% - 38vw), calc(-50% + 40vh), 0); }
  to   { transform: translate3d(calc(-50% + 38vw), calc(-50% - 40vh), 0); }
}
@keyframes drift3 {
  from { transform: translate3d(calc(-50% + 44vw), calc(-50% + 34vh), 0); }
  to   { transform: translate3d(calc(-50% - 44vw), calc(-50% - 34vh), 0); }
}
@keyframes drift4 {
  from { transform: translate3d(calc(-50% - 36vw), calc(-50% - 42vh), 0); }
  to   { transform: translate3d(calc(-50% + 36vw), calc(-50% + 42vh), 0); }
}

/* Mouse blob — positioned via JS transform */
#blob-mouse {
  left: 0;
  top: 0;
  width: 24vw;
  height: 24vw;
  background: #F5C8A0;
  filter: blur(100px);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Raise all content above blobs */
.header,
section,
.footer,
.modal-overlay {
  position: relative;
  z-index: 20;
}

p {
  line-height: 1.8;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.container--narrow {
  max-width: 640px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: transparent;
}

#work.section {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: calc(100vh - var(--header-height, 80px));
}

#work .section-title {
  font-size: clamp(1.75rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 64px;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 0.9375rem;
}

.section-subtitle a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color var(--transition);
}

.section-subtitle a:hover {
  text-decoration-color: var(--text-primary);
}

/* ============================================================
   HEADER — full-width bar
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(30, 30, 36, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px 48px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-name a {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  transition: opacity var(--transition);
}

.header-name a:hover {
  opacity: 0.6;
}

.name-short { display: none; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--border);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(255, 220, 210, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s var(--ease-asmr), opacity 0.3s ease;
}

.mobile-menu.open {
  max-height: 300px;
  opacity: 1;
}

.mobile-menu-langs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-align: center;
  border-bottom: 1px solid var(--border);
  opacity: 0.8;
  transition: background var(--transition), opacity var(--transition);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

@media (max-width: 768px) {
  .mobile-menu { display: flex; }
}

/* Language switcher — shared by header and footer */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--text-primary);
  background: var(--border);
}

.lang-divider {
  color: var(--border-dark);
  font-size: 0.75rem;
  user-select: none;
}

.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-nav a {
  font-size: 19px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  color: var(--text-primary);
  transition: opacity var(--transition);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.header-nav a:hover {
  opacity: 1;
}

.header-nav a:hover::after,
.header-nav a.active::after {
  transform: scaleX(1);
}

.header-nav a.active {
  opacity: 1;
}

.header-socials {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-self: end;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.social-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

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

.social-icon:hover {
  background: var(--border);
  animation: icon-spin 0.6s ease-in-out;
}

/* ============================================================
   HOME — two-column layout
   ============================================================ */
#home {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 56px 0 80px;
}

#home > .container {
  width: 100%;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

#home .home-grid {
  width: 100%;
}

.home-tagline-wrapper {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto 48px;
  padding: 0 48px;
  text-align: center;
}

.home-tagline strong {
  font-weight: 600;
}


.home-tagline {
  font-family: var(--font);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Tagline word animation */
.tagline-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: none;
}

.tagline-word.word-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-asmr) var(--word-delay, 0ms),
              transform 0.9s var(--ease-asmr) var(--word-delay, 0ms);
}

.tagline-word.word-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: none;
}

.home-grid {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: stretch;
  max-width: 1920px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.home-video {
  flex: 0 0 45%;
  padding-left: 0;
}

#home .home-bio {
  padding: 0 48px 0 0;
  justify-content: center;
}



.home-bio .btn-primary {
  align-self: center;
  margin-top: 16px;
}

.home-bio {
  flex: 1;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.bio-blocks {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.bio-block {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.8;
  text-align: left;
  padding: 16px 0;
}

.bio-block strong {
  font-weight: 600;
}

.bio-divider {
  border: none;
  border-top: 1px solid var(--border);
  width: 100%;
  margin: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 48px rgba(30, 30, 36, 0.14);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.bio-name {
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.bio-name .bio-first {
  font-weight: 600;
}

.bio-name .bio-last {
  font-weight: 600;
}

.bio-subtitle-light { font-weight: 300; }
.bio-subtitle-bold  { font-weight: 600; }

.bio-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin: 12px 0 24px;
}

.bio-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.8;
  width: 100%;
  font-weight: 300;
}

.bio-columns {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
}

.bio-col {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.8;
  text-align: left;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #0d0d0d;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255,255,255,0.25), 0 0 64px rgba(255,255,255,0.1);
  background: #f0f0f0;
}

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

.btn-full {
  width: 100%;
  padding: 14px 28px;
  font-size: 0.9375rem;
}

/* ============================================================
   WORK — cinematic project cards
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #0d0d0d;
  border-radius: 16px;
}

.project-card--hero {
  grid-column: 1 / -1;
  height: 380px;
}

.project-card:not(.project-card--hero):not(.project-card--cta) {
  height: 280px;
}

.project-card--cta {
  grid-column: 1 / -1;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: default;
  transition: background 0.3s;
}

.project-card--cta:hover {
  background: #222;
}

.project-card--cta.card-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: none;
}

.project-card--cta.card-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--card-delay, 0ms),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card--cta.card-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:not(.project-card--cta).card-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: none;
}

.project-card:not(.project-card--cta).card-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--card-delay, 0ms),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:not(.project-card--cta).card-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .project-card:not(.project-card--cta).card-hidden { opacity: 1; transform: none; }
  .project-card:not(.project-card--cta).card-visible {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.project-thumb {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card:hover .project-thumb { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.1) 100%);
  transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.15) 100%);
}

.project-year {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.22);
}

.project-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.project-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.project-card:hover .project-play-circle {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.project-play-circle svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.9); margin-left: 3px; }
.project-card--hero .project-play-circle { width: 68px; height: 68px; }
.project-card--hero .project-play-circle svg { width: 22px; height: 22px; }

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 36px;
  text-align: left;
  transform: translateY(4px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-content--hero { padding: 44px 52px; }
.project-card:hover .project-content { transform: translateY(0); }

.project-studio {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.project-name {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.project-name--hero { font-size: 38px; }

.project-line {
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-line { width: 36px; background: rgba(255, 255, 255, 0.4); }

.project-role {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 560px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card:hover .project-role { opacity: 1; transform: translateY(0); }

.project-cta-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 52px;
  width: 100%;
}

.project-cta-left { flex: 1; }

.project-cta-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}

.project-cta-headline {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.project-cta-headline strong { font-weight: 600; color: #fff; }

.project-cta-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.project-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #0d0d0d;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s;
}

.project-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255,255,255,0.25), 0 0 64px rgba(255,255,255,0.1);
  background: #f0f0f0;
}

.project-cta-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; gap: 8px; }
  .project-role { display: none; }
  .project-card--hero { grid-column: 1; height: auto; aspect-ratio: 16 / 9; }
  .project-card:not(.project-card--hero):not(.project-card--cta) { height: auto; aspect-ratio: 16 / 9; }
  .project-name--hero { font-size: 24px; }
  .project-content--hero { padding: 28px 24px; }
  .project-card--hero .project-play-circle { width: 56px; height: 56px; }
  .project-card--hero .project-play-circle svg { width: 18px; height: 18px; }
  .project-card--cta { height: auto; padding: 20px 0; }
  .project-cta-inner { flex-direction: column; align-items: center; gap: 16px; padding: 0 24px; }
  .project-cta-divider { display: none; }
  .project-cta-left { text-align: center; }
}

/* ============================================================
   CONNECT
   ============================================================ */

#connect {
  min-height: calc(100vh - var(--header-height, 80px));
  padding-top: 56px;
  padding-bottom: 80px;
}

#connect .section-title {
  font-size: clamp(1.75rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 52px;
}

.connect-headline {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
}

.connect-description {
  font-size: clamp(0.9375rem, 1.1vw, 1.125rem);
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.8;
  text-align: left;
  position: relative;
  padding-left: 16px;
  margin-bottom: 28px;
  max-width: 420px;
}

.connect-description::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--text-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: none;
}

.connect-description.line-visible::before {
  transform: scaleY(1);
  transition: transform var(--line-duration, 2s) linear;
}

.connect-description strong {
  font-weight: 600;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 0;
}

.connect-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.connect-social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 400;
  transition: border-color var(--transition), background var(--transition),
              transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.connect-social-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transition: border-color var(--transition), background var(--transition),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.connect-social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.connect-social-arrow {
  margin-left: auto;
  color: var(--text-tertiary);
}

.connect-right {
  display: flex;
  flex-direction: column;
  padding-top: 120px;
}

.connect-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.connect-input {
  width: 100%;
  padding: 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  box-sizing: border-box;
  -webkit-appearance: none;
}

.connect-input::placeholder {
  color: var(--text-tertiary);
  font-weight: 300;
}

.connect-input:focus {
  border-color: var(--text-primary);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(30, 30, 36, 0.08);
}

.connect-textarea {
  resize: vertical;
  min-height: 340px;
  line-height: 1.8;
}

.connect-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #0d0d0d;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  align-self: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s;
}

.connect-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255,255,255,0.25), 0 0 64px rgba(255,255,255,0.1);
  background: #f0f0f0;
}

/* Honeypot — visually hidden from real users, visible to bots */
.form-honeypot {
  position: absolute;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  #connect {
    padding-top: 40px;
  }

  #connect .section-title {
    margin-bottom: 24px;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 16px;
  }

  .connect-left {
    padding-top: 0;
    padding-left: 0;
  }

  .connect-feed--yt {
    grid-template-columns: 1fr 1fr;
  }

  .connect-headline {
    text-align: center;
  }

  .connect-right {
    padding-top: 0;
  }

  .connect-textarea {
    min-height: 160px;
  }
}

/* ============================================================
   CONNECT — platform groups and live feeds
   ============================================================ */
.connect-platform-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connect-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* YouTube — 2-column mini grid */
.connect-feed--yt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feed-yt-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font);
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.feed-yt-card:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feed-yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border);
}

.feed-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-asmr);
}

.feed-yt-card:hover .feed-yt-thumb img { transform: scale(1.04); }

.feed-yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feed-yt-card:hover .feed-yt-play { opacity: 1; }

.feed-yt-play svg { width: 22px; height: 22px; color: #fff; }

.feed-yt-info { padding: 8px 10px 10px; }

.feed-yt-title {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* Bluesky — platform-style cards */
.feed-bsky-post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition);
}

.feed-bsky-post:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feed-bsky-repost {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.feed-bsky-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-bsky-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.feed-bsky-avatar--placeholder { background: var(--border-dark); }

.feed-bsky-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.feed-bsky-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-bsky-handle {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-bsky-time {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.feed-bsky-text {
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* Bluesky carousel — stack slides, fade between them */
.connect-feed--bsky-carousel {
  display: grid;
  grid-template-columns: 1fr;
}

.connect-feed--bsky-carousel .feed-bsky-post {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.connect-feed--bsky-carousel .feed-bsky-post.carousel-active {
  opacity: 1;
  pointer-events: auto;
}

.connect-feed--bsky-carousel .feed-bsky-post:not(.carousel-active):hover {
  background: rgba(255, 255, 255, 0.14);
  transform: none;
  box-shadow: none;
}

.bsky-carousel-dots {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: 6px;
  justify-content: center;
  padding-top: 10px;
}

.bsky-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-dark);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.bsky-dot.bsky-dot--active {
  background: var(--text-tertiary);
  transform: scale(1.35);
}

/* ============================================================
   CONNECT — item enter animations
   ============================================================ */
.connect-item {
  opacity: 0;
  transform: translateY(16px);
  transition: none;
}

.connect-item.enter-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.4s var(--ease-asmr) var(--item-delay, 0ms),
              transform 1.4s var(--ease-asmr) var(--item-delay, 0ms);
}

.connect-item.entered {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 300;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 36, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 920px;
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.3);
  transform: scale(0.94) translateY(8px);
  transition: transform 0.4s var(--ease-asmr);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(30, 30, 36, 0.1);
  border: none;
  border-radius: 50%;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: background var(--transition);
  font-family: inherit;
}

.modal-close:hover {
  background: rgba(30, 30, 36, 0.18);
}

.modal-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.modal-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-grid {
    gap: 40px;
  }
}

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

  .header-inner {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    gap: 0;
  }

  .header-left {
    flex: 0 0 auto;
    gap: 0;
  }

  .header-left .language-switcher {
    display: none;
  }

  .name-full { display: none; }
  .name-short { display: inline; }

  .header-nav {
    display: none;
  }

  .header-socials {
    flex: 1;
    justify-content: center;
    justify-self: unset;
  }

  .mobile-menu-btn {
    display: flex;
    flex: 0 0 auto;
    order: 3;
  }

  .header-left { order: 1; }
  .header-socials { order: 2; }

  .home-grid {
    flex-direction: column;
    gap: 28px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-video {
    flex: unset;
    width: 100%;
  }

  #home .home-bio {
    padding: 0;
    align-items: center;
  }

  .bio-block {
    text-align: center;
    padding: 10px 0;
  }

  .home-bio .btn-primary {
    align-self: center;
  }

  .bio-columns { flex-direction: column; gap: 16px; }

  .video-wrapper {
    min-height: unset;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .bio-name {
    font-size: 1.625rem;
  }
}

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

@media (max-width: 540px) {
  .header-nav {
    gap: 16px;
  }

  .header-nav a {
    font-size: 0.8125rem;
  }

  .header-socials {
    gap: 2px;
  }
}

/* ============================================================
   SAFE AREA INSETS — notch / Dynamic Island / home indicator
   ============================================================ */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 768px) {
    .header-inner {
      padding-top: calc(14px + env(safe-area-inset-top));
    }

    .footer {
      padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
  }
}
