*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080808;
  --white: #ffffff;
  --white-10: rgba(255, 255, 255, 0.10);
  --white-06: rgba(255, 255, 255, 0.06);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-60: rgba(255, 255, 255, 0.60);
  /* Strictly Monochrome */
  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.20);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background: transparent;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise Layer */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .012;
  pointer-events: none;
  z-index: 0;
}


#main-wrapper {
  position: relative;
  z-index: 1;
}

/* ── CURSOR: magnetic dot + ring ── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity 0.2s ease;
}
#cursor-dot.hidden { opacity: 0; }

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  will-change: width, height, transform;
}
#cursor-ring.hover {
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.06);
}
#cursor-ring.label {
  width: auto; height: 46px;
  padding: 0 22px;
  background: rgba(8, 8, 8, 0.82);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mix-blend-mode: normal;
}
#cursor-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease 0.05s;
}
#cursor-ring.label #cursor-label { opacity: 1; }

@media (max-width: 768px) {
  #cursor-dot, #cursor-ring {
    display: none;
  }
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  /* Never intercepts taps/scrolls, even while fully visible — so a slow
     or stalled subresource (common in restrictive in-app browsers like
     Instagram's) can leave this splash on screen without trapping the
     page underneath it. */
  pointer-events: none;
}

#loader.out {
  opacity: 0;
}

/* Returning from a tool page in the same session: no splash at all —
   the html.return-visit class is set by an inline head script before
   first paint (see index.html). */
.return-visit #loader {
  display: none;
}

.loader-logo {
  width: 140px;
  animation: loaderPulse 1.6s ease-in-out infinite;
}

@keyframes loaderPulse {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Boot sequence under the loader logo ── */
#loader {
  flex-direction: column;
  gap: 34px;
}

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

.loader-boot-line {
  font-family: 'DM Sans', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--white-40);
  min-height: 14px;
  text-align: center;
  transition: opacity 0.25s ease;
}

.loader-boot-track {
  width: 148px;
  height: 1px;
  background: var(--white-10);
  overflow: hidden;
}

.loader-boot-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.75);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── TYPOGRAPHY ── */
.font-display {
  font-family: 'Syne', sans-serif;
}

.label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-40);
}

/* ── GOOEY SEARCH ── */
.gooey-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
}

.gooey-search-inner {
  filter: url(#goo-effect);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gooey-search-pill {
  background: var(--white);
  color: var(--bg);
  border-radius: 24px;
  height: 48px;
  width: 100px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gooey-search-text {
  font-weight: 500;
  font-size: 14px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.gooey-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bg);
  font-family: inherit;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  padding-left: 36px;
}

.gooey-search-icon {
  position: absolute;
  left: 0;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: var(--bg);
}

.gooey-search-icon svg {
  width: 20px;
  height: 20px;
}

.gooey-search-results {
  position: absolute;
  top: 64px;
  right: 0;
  width: 100%;
  z-index: -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gooey-search-result {
  width: 100%;
  background: var(--white);
  color: var(--bg);
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gooey-search-result:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-4px);
}

/* ── NAVBAR ── */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
  pointer-events: none;
}

#top-nav.show {
  opacity: 1;
  pointer-events: none;
}

#top-nav.show .nav-pill,
#top-nav.show .gooey-search-wrapper {
  pointer-events: all;
}

/* ── MOBILE MENU ── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.mobile-nav-link {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--white-40);
}

/* shared pill style */
.nav-pill {
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
}

/* left: logo box */
.nav-logo-wrap {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
}

.logo-tube {
  position: relative;
  height: 16px;
  width: 70px;
  perspective: 400px;
  transform-style: preserve-3d;
}

.logo-line {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}

.logo-line .char {
  backface-visibility: hidden;
}

.nav-logo {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* center: links capsule */
.nav-links {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 6px;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  padding: 0 18px;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* right: grid icon box */
.nav-grid-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.nav-grid-wrap:hover {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.nav-grid-icon {
  display: grid;
  grid-template-columns: repeat(4, 5px);
  grid-template-rows: repeat(4, 5px);
  gap: 3px;
}

.nav-grid-dot {
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease;
}

.nav-grid-wrap:hover .nav-grid-dot {
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .gooey-search-wrapper {
    display: none;
  }
}

/* ── BOTTOM CTA ── */
#bottom-cta {
  position: fixed;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}

#bottom-cta.show {
  opacity: 1;
}

.cta-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cta-pill:hover {
  background: rgba(35, 35, 35, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.025);
}

.cta-pill .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cta-pill:hover .arrow {
  transform: translateX(3px);
}

/* ── HERO ── */
#hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: relative;
}

.hero-counter {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white-40);
  z-index: 100;
  mix-blend-mode: difference;
}

@media (max-width: 640px) {
  /* The "Start a project" pill is centered and can reach far enough
     right to sit under this counter at its desktop bottom/right
     position — lift it clear of the pill instead of overlapping it. */
  .hero-counter {
    bottom: 76px;
  }
}

.hero-tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 10.5vw, 152px);
  line-height: 0.91;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--white-40);
}

.hero-grid {
  position: relative;
  z-index: 10;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: center;
}

.hero-col-left {
  padding-left: 60px;
}

.hero-col-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

@media (max-width: 900px) {
  #hero {
    /* Fixed top-nav pill is ~76px tall on mobile; flex-start (instead
       of the desktop center) plus the hero-grid margin-top below keeps
       content clear of it instead of centering underneath it. */
    align-items: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
    margin-top: 110px;
  }
  .hero-col-left {
    padding-left: 0;
    order: 2; /* Move text below logo on mobile */
  }
  .hero-col-right {
    order: 1; /* Move logo above text on mobile */
    justify-content: center;
  }
  .logo-outer {
    max-width: 300px !important;
  }
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  color: var(--white-40);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--white-20);
}

/* ── TUNNEL FLY-THROUGH ── */
.hero-runway { position: relative; height: 220vh; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden;
  background: var(--bg);
}

#tunnel-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.tunnel-center-overlay {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.tunnel-center-overlay > * { pointer-events: auto; }

/* Dark frosted overlay behind hero text for readability */
.tunnel-text-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 35% 50%, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

.tunnel-scrollhint {
  position: absolute; bottom: 36px; left: 36px;
  z-index: 25; color: var(--white-40); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; display: flex; align-items: center; gap: 12px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
@media (max-width: 900px) {
  /* On mobile the hero text column stacks below the logo and fills
     most of the viewport height, leaving no dead space at bottom-left
     for this to sit without cutting through the paragraph text. */
  .tunnel-scrollhint {
    display: none;
  }
}
.tunnel-scrollhint .scroll-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--white-40);
  animation: scrolldot-fall 1.6s infinite;
}
.tunnel-scrollhint .scroll-line {
  width: 1px; height: 40px; background: var(--white-20);
  position: relative; overflow: hidden;
}
.tunnel-scrollhint .scroll-line::after {
  content: '';
  position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--white-60);
  animation: scroll-line-pulse 1.8s ease-in-out infinite;
}
@keyframes scrolldot-fall {
  0%   { transform: translateY(-6px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}
@keyframes scroll-line-pulse {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-runway { height: 100vh; }
}

.status-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid var(--white-20);
  background: rgba(255, 255, 255, 0.05);
  padding: 7px 16px;
  border-radius: 9999px;
  margin-bottom: 24px;
  cursor: default;
}

.status-pill-text {
  transition: opacity 0.4s ease;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--white-10);
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.service-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  border-right: 1px solid var(--white-10);
  white-space: nowrap;
  cursor: default;
}

.service-item-title {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--white-40);
  transition: color 0.3s ease;
}

.service-item:hover .service-item-title {
  color: #fff;
}

.service-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white-20);
  flex-shrink: 0;
}

/* ── SERVICES GRID (Centered & Spread Evenly) ── */
.services-grid {
  display: grid;
  gap: 1px;
  background: var(--white-10);
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  background: #000000;
  backdrop-filter: blur(12px);
  padding: 36px 32px;
  cursor: pointer;
  transition: border-color 0.8s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--white-10);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

pixel-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.service-content {
  position: relative;
  z-index: 1;
  pointer-events: none;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.service-card-num {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  color: var(--white-20);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.service-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-40);
}

/* ── ABOUT SECTION ── */
#about {
  /* Fills the viewport (minus the fixed nav) while pinned during the
     brand-strip scroll-scrub, with the brand strip anchored to the
     very bottom via margin-top:auto below — so the pinned section
     intentionally uses the full screen top-to-bottom instead of
     leaving blank page background beneath a shorter block. */
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  padding-top: 140px;
  padding-bottom: 40px;
}

#about .label {
  /* the shared .label size reads too small next to the bigger heading
     below it */
  font-size: 14px;
}

#about .section-title {
  /* Bigger than the shared .section-title size used by Services/Tools
     — this is the personal intro heading, meant to read with more
     presence, closer to the Contact section's title treatment. Capped
     lower than .contact-title's 84px so it still fits on one line at
     this column's width instead of wrapping. */
  font-size: clamp(32px, 3.8vw, 58px);
  line-height: 1.05;
  white-space: nowrap;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.about-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-photo-slideshow {
    order: -1;
  }
}

.about-body {
  font-size: 16px;
  font-weight: 300;
  color: var(--white-40);
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-body strong {
  color: var(--white);
  font-weight: 500;
}

.brand-strip-wrap {
  overflow: hidden;
  margin-top: 4px;
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
  padding: 22px 0;
  /* full-bleed breakout: ignore the .section ancestor's max-width/padding
     so this strip runs edge-to-edge — lives on this inner wrap, not on
     #brand-strip-pin (the actual ScrollTrigger pin target), so GSAP's
     pin math never has to fight the negative-margin trick. */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.brand-strip-track {
  display: flex;
  width: max-content;
}

/* Continuous idle loop, toggled on only while the scroll-driven pin
   above isn't actively in control (before it, and after it releases) —
   -50% is exactly one copy's width since the track holds two identical
   copies back to back, so the loop wraps seamlessly. */
.brand-strip-track.idle-loop {
  animation: marquee 32s linear infinite;
}

.brand-strip-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--white);
  white-space: nowrap;
  margin: 0;
}

.brand-strip-text .brand-dot {
  display: inline-block;
  margin: 0 22px;
  opacity: 0.4;
}

/* One brand = optional official mark + name, vertically centered */
.brand-item {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  vertical-align: middle;
  will-change: transform, opacity;
}

/* Logo PNGs are height-fitted: the height is fixed to match the text line,
   the width simply follows each image's own proportions. */
.brand-logo {
  height: clamp(22px, 2.2vw, 30px);
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  flex-shrink: 0;
}

.about-photo-slideshow {
  position: relative;
  /* height matches the heading+paragraph column exactly (grid
     align-items:stretch); width is derived from that same height via
     aspect-ratio so the box is a true 1:1 square, not stretched to
     fill the whole column width. */
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  justify-self: center;
  /* Matches the page background exactly (not a lighter "card" tone) so
     the transparent cutout PNGs blend into the page instead of
     revealing a visible box behind them, especially mid-crossfade. */
  background: var(--bg);
}

@media (max-width: 900px) {
  .about-photo-slideshow {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

.about-photo-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* contain, not cover — these are transparent cutout photos, so the
     whole subject should show rather than getting cropped */
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.about-photo-slideshow img.active {
  opacity: 1;
}

/* ── AWARDS 3D CAROUSEL (Gradient Slider Inspired) ── */
.awards-carousel-stage {
  position: relative;
  width: 100%;
  height: 420px;
  perspective: 1800px;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.awards-carousel-stage:active {
  cursor: grabbing;
}

.awards-carousel-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
}

.aw-card {
  position: absolute;
  width: 320px;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  will-change: transform;
  background: #0d0d0d;
  border: 1px solid var(--white-10);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 0;
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.aw-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

/* Spot light overlay effect inside cards */
.aw-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 80%);
  z-index: 1;
  pointer-events: none;
}

.aw-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
}

.aw-card-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.3) 100%);
  color: var(--white-20);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aw-card-content {
  position: relative;
  z-index: 2;
  padding: 24px 24px 28px;
}

.aw-kind {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid var(--white-20);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.aw-kind.gold {
  border-color: var(--white-40);
  background: rgba(255, 255, 255, 0.1);
}

.aw-year {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white-40);
  margin-bottom: 8px;
}

.aw-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #f5f8f9;
  margin-bottom: 8px;
  line-height: 1.2;
}

.aw-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--white-40);
  line-height: 1.55;
}

.aw-desc strong {
  color: var(--white);
  font-weight: 500;
}

.aw-link-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-40);
  transition: color 0.3s ease;
}

.aw-card:hover .aw-link-hint {
  color: #fff;
}

@media (max-width: 768px) {
  .awards-carousel-stage {
    height: 380px;
  }
  .aw-card {
    width: 280px;
  }
}

/* ── AWARDS CASE-STUDY MODAL ── */
.aw-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aw-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.aw-modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  background: #0d0d0d;
  border: 1px solid var(--white-10);
  border-radius: 20px;
  padding: 40px 36px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  scrollbar-width: thin;
  scrollbar-color: var(--white-20) transparent;
}

.aw-modal::-webkit-scrollbar {
  width: 8px;
}

.aw-modal::-webkit-scrollbar-track {
  background: transparent;
}

.aw-modal::-webkit-scrollbar-thumb {
  background: var(--white-20);
  border-radius: 8px;
}

.aw-modal::-webkit-scrollbar-thumb:hover {
  background: var(--white-40);
}

.aw-modal-overlay.is-open .aw-modal {
  transform: translateY(0) scale(1);
}

.aw-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--white-20);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.aw-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white-40);
}

.aw-modal-gallery {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-radius: 12px;
  scrollbar-width: thin;
}

.aw-modal-gallery img,
.aw-modal-gallery video {
  height: 200px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: rgba(255, 255, 255, 0.04);
}

.aw-modal-gallery.is-empty {
  height: 180px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  color: var(--white-20);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.aw-modal-summary {
  font-size: 15px;
  color: var(--white-60);
  line-height: 1.7;
  margin: 0 0 20px;
}

.aw-modal-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aw-modal-highlights li {
  font-size: 14px;
  color: var(--white-60);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.aw-modal-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white-40);
}

.aw-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.aw-modal-tag {
  font-size: 11px;
  color: var(--white-40);
  border: 1px solid var(--white-10);
  padding: 4px 10px;
  border-radius: 100px;
}

.aw-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.aw-modal-link:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .aw-modal {
    padding: 32px 24px;
  }
}

/* ── VIDEO LIGHTBOX (click any inline/gallery video for full-res + audio) ── */
.video-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.video-lightbox-overlay video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #000;
  transform: scale(0.97);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-lightbox-overlay.is-open video {
  transform: scale(1);
}

.video-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--white-20);
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.video-lightbox-close:hover {
  border-color: var(--white-40);
  background: rgba(30, 30, 30, 0.95);
}

/* Card/gallery videos are muted-autoplay loops — signal that clicking
   opens a full, audible version instead of looking like dead weight. */
.work-card-placeholder video,
.aw-modal-gallery video {
  cursor: pointer;
}

/* ── DEVELOPER TOOLS ICON TILES ── */
.dev-tools-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 24px;
  justify-content: center;
}

.dev-tool-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--white-10);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  min-width: 120px;
  text-decoration: none;
  color: inherit;
}

.dev-tool-tile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.dev-tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.dev-tool-tile:hover .dev-tool-icon {
  background: rgba(255, 255, 255, 0.12);
}

.dev-tool-name {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--white-60);
  text-align: center;
  letter-spacing: 0.02em;
}

.dev-tool-tile:hover .dev-tool-name {
  color: #fff;
}

/* ── PROCESS ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--white-10);
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.process-item {
  background: var(--bg);
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--white-10);
}

.process-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(60px, 10vw, 100px);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  right: -5px;
  top: 0;
  user-select: none;
}

.process-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.process-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--white-40);
  position: relative;
  z-index: 1;
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}

.stat-item {
  background: rgba(8, 8, 8, 0.4);
  backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--white-10);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  display: block;
}

/* Syne's "B" and "+" glyphs render noticeably denser/blockier than its
   digits at the same size (measured ~15-20% more ink coverage) — sizing
   them down a touch keeps the whole number reading as one consistent
   weight instead of the suffix looking oversized. */
.stat-num-unit {
  font-size: 0.8em;
}

.stat-label {
  font-size: 12px;
  color: var(--white-40);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

/* ── WORK GRID ── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.work-card {
  background: rgba(8, 8, 8, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--white-10);
}

.work-card-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.work-card:hover .work-card-placeholder {
  transform: scale(1.04);
}

.work-card-info {
  padding: 24px 28px 28px;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-40);
  padding: 4px 10px;
  border: 1px solid var(--white-10);
  border-radius: 100px;
}

.work-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
}

.work-card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--white-40);
}

.work-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-40);
  text-decoration: none;
  transition: color 0.3s ease;
}

.work-card:hover .work-card-link {
  color: #fff;
}

/* ── COMMUNITY ── */
.community-card {
  background: rgba(8, 8, 8, 0.4);
  border: 1px solid var(--white-10);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .community-card {
    flex-direction: column;
    padding: 40px 28px;
    gap: 28px;
    text-align: center;
  }
}

.community-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--white-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}

/* ── Community photo carousel: two rows drifting opposite directions ── */
.community-gallery {
  margin: 56px auto 0;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 6%, rgba(0,0,0,0.7) 14%, #000 24%, #000 76%, rgba(0,0,0,0.7) 86%, rgba(0,0,0,0.25) 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 6%, rgba(0,0,0,0.7) 14%, #000 24%, #000 76%, rgba(0,0,0,0.7) 86%, rgba(0,0,0,0.25) 94%, transparent 100%);
}
.community-gallery-row {
  display: flex;
  gap: 16px;
  width: max-content;
}
.community-gallery-row.row-a { animation: community-scroll-left 70s linear infinite; }
.community-gallery-row.row-b { animation: community-scroll-right 80s linear infinite; }
.community-gallery:hover .community-gallery-row { animation-play-state: paused; }
.community-gallery-row img {
  width: 260px;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.community-gallery-row img:hover {
  filter: grayscale(0%);
  transform: scale(1.035);
}
@keyframes community-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes community-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (max-width: 768px) {
  .community-gallery-row img { width: 170px; height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .community-gallery-row.row-a, .community-gallery-row.row-b { animation: none; }
}

/* ── CONTACT CTA ── */
.contact-section {
  padding: 120px 24px;
  text-align: left;
}

.contact-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5.2vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 100%;
  overflow-wrap: break-word;
}

.contact-title em {
  font-style: italic;
  color: var(--white-40);
}

.contact-sub {
  font-size: 16px;
  color: var(--white-40);
  max-width: 500px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border: 1px solid var(--white-20);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ── FOOTER ── */
footer {
  padding: 48px 24px 80px;
  border-top: 1px solid var(--white-10);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 32px;
  }
  .footer-inner > * {
    justify-self: center !important;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--white-40);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: var(--white-20);
}

/* \u2500\u2500 FOOTER SOCIAL ICONS \u2500\u2500 */
.footer-social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-40);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icon:hover {
  color: #fff;
  transform: translateY(-3px);
}

.footer-social-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--white-40);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-social-icon:hover .footer-social-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ── SECTION PADDING ── */
.section {
  padding: 100px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-full {
  padding: 100px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  padding: 0 24px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
}
@keyframes float-anim {
  0% { transform: translateY(-10px); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}
.float-anim {
  animation: float-anim 4s ease-in-out infinite;
}
/* Bottom footer wordmark: soft glow, single line, fades upward */
.footer-glow-wrap {
  position: relative;
  text-align: center;
  margin-top: 12px;
  padding: 8px 24px 18px;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.footer-wordmark {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 4.4vw, 96px);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  letter-spacing: -0.035em;
  line-height: 0.91;
  transform-origin: center bottom;
  /* base fill: transparent at the bottom edge, rising to 10% opacity at the top */
  background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.10) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-wordmark-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 110px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 55%, transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.footer-wordmark:hover .footer-wordmark-spotlight {
  opacity: 1;
}

/* ══════════════ ANOTHER CAM (FaceTime-style AR camera window) ══════════════ */
.camkit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  /* No backdrop blur here: blurring the whole viewport behind a live
     camera feed costs a full-screen GPU pass every frame and was a big
     part of the camera lag. A plain scrim reads nearly the same. */
  background: rgba(0, 0, 0, 0.72);
}

.camkit-overlay.is-open { display: block; }

.camkit-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  background: rgba(16, 16, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), 0 0 0 0.5px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  user-select: none;
}

/* Once the user drags it, JS switches to absolute left/top positioning */
.camkit-window.is-free { transform: none; }

/* ── Header (drag handle) ── */
.camkit-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  cursor: grab;
  flex-shrink: 0;
}

.camkit-header:active { cursor: grabbing; }

.camkit-traffic {
  display: flex;
  gap: 8px;
  align-items: center;
}

.camkit-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  padding: 0;
  display: block;
}

.camkit-dot-close {
  background: #ff5f57;
  cursor: pointer;
  position: relative;
  transition: filter 0.15s ease;
}

.camkit-dot-close::after {
  content: '×';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.camkit-dot-close:hover::after { opacity: 1; }

.camkit-dot-min {
  background: #febc2e;
}

.camkit-dot-max {
  background: #28c840;
  cursor: pointer;
  position: relative;
  transition: filter 0.15s ease;
}

.camkit-dot-max::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.camkit-dot-max:hover::after { opacity: 1; }

.camkit-window.is-fullscreen {
  position: fixed !important;
  inset: 12px !important;
  width: calc(100vw - 24px) !important;
  height: calc(100vh - 24px) !important;
  max-width: none !important;
  max-height: none !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  border-radius: 18px !important;
  z-index: 10001 !important;
}

.camkit-window.is-fullscreen .camkit-stage {
  flex: 1;
  height: 100%;
}

.camkit-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-60);
  text-align: center;
  pointer-events: none;
}

.camkit-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.camkit-rec-indicator[hidden] { display: none; }

.camkit-rec-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #ff6b6b;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.camkit-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff453a;
  animation: blink 1.2s ease-in-out infinite;
}

/* ── Stage (camera feed) ── */
.camkit-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  transition: aspect-ratio 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.camkit-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camkit-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.camkit-flash.fire { animation: camkit-flash-anim 0.45s ease-out; }

@keyframes camkit-flash-anim {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

/* Floating tools inside the feed */
.camkit-stage-tools {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 3;
}

.camkit-aspect-group {
  display: flex;
  padding: 3px;
  gap: 2px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
}

.camkit-aspect-btn {
  border: none;
  background: none;
  color: var(--white-60);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.camkit-aspect-btn:hover { color: #fff; }

.camkit-aspect-btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #000;
}

.camkit-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.camkit-tool-btn:hover { background: rgba(35, 35, 40, 0.75); transform: rotate(-18deg); }

/* ── Shutter + record ── */
.camkit-actions {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 3;
}

.camkit-shutter {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 3px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.camkit-shutter:active { transform: scale(0.92); }

.camkit-shutter-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.camkit-shutter:hover .camkit-shutter-inner { transform: scale(0.94); }

.camkit-record {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.camkit-record:active { transform: scale(0.92); }

.camkit-record-inner {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ff453a;
  transition: border-radius 0.25s ease, transform 0.25s ease;
}

.camkit-record.is-recording { border-color: #ff453a; }

.camkit-record.is-recording .camkit-record-inner {
  border-radius: 5px;
  transform: scale(0.62);
}

.camkit-status {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 12px;
  color: #fff;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── Lens carousel ── */
.camkit-carousel-wrap {
  padding: 6px 10px 12px;
  flex-shrink: 0;
}

.camkit-carousel {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  cursor: grab;
  /* Enough headroom that the active lens ring (scale 1.14 + 2px ring)
     never gets cropped by the scroll container's top edge. */
  padding: 12px 14px 2px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* soft fade at both ends so the row feels endless instead of chopped */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

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

.camkit-carousel-msg {
  width: 100%;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--white-40);
  padding: 12px 16px;
}

.camkit-carousel-msg a { color: #fff; }

.camkit-lens {
  flex: 0 0 auto;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.camkit-carousel.dragging { cursor: grabbing; }
.camkit-carousel.dragging .camkit-lens { pointer-events: none; }

/* Snap lens icons ship with their own circular artwork — no extra ring by
   default, just a whisper of separation on dark icons. The active state is
   the only strong ring. */
.camkit-lens-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-60);
  opacity: 0.82;
}

.camkit-lens:hover .camkit-lens-icon { transform: scale(1.1); opacity: 1; }

.camkit-lens:focus-visible .camkit-lens-icon {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.camkit-lens.is-active .camkit-lens-icon {
  box-shadow: 0 0 0 2px #fff;
  transform: scale(1.14);
  opacity: 1;
}

/* Names only surface for the lens you're on (or hovering) — an entire row
   of truncated names read as clutter. */
.camkit-lens-name {
  max-width: 58px;
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--white-60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.camkit-lens:hover .camkit-lens-name,
.camkit-lens.is-active .camkit-lens-name {
  opacity: 1;
  transform: translateY(0);
}

.camkit-lens.is-active .camkit-lens-name { color: #fff; }

/* ── Resize handle ── */
.camkit-resize {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-40);
  cursor: nwse-resize;
  z-index: 4;
}

.camkit-resize:hover { color: #fff; }

/* ── Mobile: full-screen sheet, no drag/resize ── */
@media (max-width: 640px) {
  .camkit-window {
    top: 0 !important;
    left: 0 !important;
    transform: none;
    width: 100vw !important;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .camkit-window.is-free { transform: none; }
  .camkit-stage { flex: 1; aspect-ratio: auto !important; transition: none; }
  .camkit-resize { display: none; }
  .camkit-header { cursor: default; }
  .camkit-carousel-wrap { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
