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

::selection {
  background: #ffffff;
  color: #000000;
}

:root {
  --bg: #080808;
  --bg2: #111;
  --fg: #fff;
  --fg2: #aaa;
  --fg3: #444;
  --border: #1e1e1e;
  --border2: #2a2a2a;
  --accent: #c8f560;
  --mono: 'Space Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
  --inter: 'Inter', sans-serif;
}

body.light {
  --bg: #f0ede8;
  --bg2: #e5e2dd;
  --fg: #0a0a0a;
  --fg2: #555;
  --fg3: #aaa;
  --border: #d0cdc8;
  --border2: #bbb;
}

html {
  scroll-behavior: smooth;
}

@media (pointer: fine) {

  body,
  a,
  button {
    cursor: none !important;
  }
}

/* Custom Cursor */
.custom-cursor,
.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
}

@media (pointer: fine) {

  .custom-cursor,
  .custom-cursor-follower {
    display: block;
  }
}

.custom-cursor {
  width: 10px;
  height: 10px;
  background-color: #fff;
  mix-blend-mode: difference;
  will-change: transform;
}

.custom-cursor-follower {
  width: 34px;
  height: 34px;
  border: 1px solid #fff;
  mix-blend-mode: difference;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  will-change: transform;
}

.custom-cursor-follower.active {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.05);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

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

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.4s, border-color 0.4s;
}

/* Navbar corner + marks */
.nav-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 101;
  pointer-events: none;
}

.nav-corner::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 10px;
  background: var(--fg3);
  left: 50%;
  top: 0;
}

.nav-corner::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 10px;
  background: var(--fg3);
  top: 50%;
  left: 0;
}

.nc-tl {
  top: -5px;
  left: -5px;
}

.nc-tr {
  top: -5px;
  right: -5px;
}

.nc-bl {
  bottom: -5px;
  left: -5px;
}

.nc-br {
  bottom: -5px;
  right: -5px;
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-logo-center {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

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

.logo-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--fg);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--fg3);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.3s;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  padding: 8px 16px;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.8;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border2);
  color: var(--fg);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  background: var(--border);
}

/* ===== CROSSHAIRS & GRID ===== */
.section {
  position: relative;
}

.crosshair {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 2;
  pointer-events: none;
}

.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: var(--fg3);
}

.crosshair::before {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.crosshair::after {
  height: 1px;
  width: 100%;
  top: 50%;
  left: 0;
}

.crosshair-tl {
  top: 0;
  left: 0;
}

.crosshair-tr {
  top: 0;
  right: 0;
}

.crosshair-bl {
  bottom: 0;
  left: 0;
}

.crosshair-br {
  bottom: 0;
  right: 0;
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.grid-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
}

.grid-line-v1 {
  width: 1px;
  top: 0;
  bottom: 0;
  left: 25%;
}

.grid-line-v2 {
  width: 1px;
  top: 0;
  bottom: 0;
  right: 25%;
}

.grid-line-h1 {
  height: 1px;
  left: 0;
  right: 0;
  top: 50%;
}

/* ===== SECTION LABEL ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.label-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--fg3);
}

/* ===== HERO ===== */
.hero-section {
  height: 100vh;
  overflow: hidden;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-media-wrapper {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.1);
  /* Increased brightness */
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.2) 0%, rgba(8, 8, 8, 0.05) 40%, rgba(8, 8, 8, 0.5) 100%);
  /* Reduced overlay opacity */
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.05) 2px, rgba(0, 0, 0, 0.05) 4px);
  pointer-events: none;
}

.hero-meta-left {
  position: absolute;
  bottom: 60px;
  left: 36px;
  z-index: 3;
}

.hero-meta-project,
.hero-meta-sub,
.hero-meta-year {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

.hero-meta-highlight {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.hero-brand {
  position: absolute;
  bottom: 48px;
  right: 36px;
  z-index: 3;
  text-align: right;
}

.hero-brand-center {
  right: unset;
  bottom: unset;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
}

.hero-title {
  font-family: var(--inter);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -2px;
  color: #fff;
}

.hero-title-single {
  font-size: clamp(24px, 3.5vw, 42px);
  white-space: nowrap;
  display: block;
}

.hero-title-wrap {
  position: relative;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 1px 10px 3px;
  margin-left: 2px;
}

.title-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

.title-corner::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  left: 50%;
  top: 0;
}

.title-corner::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 10px;
  background: rgba(255, 255, 255, 0.8);
  top: 50%;
  left: 0;
}

.title-corner.tl {
  top: -5px;
  left: -5px;
}

.title-corner.tr {
  top: -5px;
  right: -5px;
}

.title-corner.bl {
  bottom: -5px;
  left: -5px;
}

.title-corner.br {
  bottom: -5px;
  right: -5px;
}

.hero-tagline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 4px 2px rgba(200, 245, 96, 0.6);
  }

  50% {
    opacity: 0.1;
    box-shadow: 0 0 0px 0px rgba(200, 245, 96, 0);
  }
}

.hero-tagline {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.scroll-text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.3);
}

.hero-counter {
  position: absolute;
  top: 90px;
  right: 36px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 2px;
}

/* ===== ABOUT ===== */
.about-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 36px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

/* ===== GLOBAL GRID WRAPPER ===== */
.global-grid-wrapper {
  position: relative;
  overflow: hidden;
}

.global-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Base faint grid */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 14px 14px;
  z-index: 0;
  pointer-events: none;
}

/* Layer that shows only near cursor and is zoomed */
.global-bg-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Subtle glow (less bright than before) */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  /* Use absolute pixel positions calculated in JS */
  transform: scale(1.15);
  transform-origin: calc(var(--mouseX, 0) * 1px) calc(var(--mouseY, 0) * 1px);
  pointer-events: none;
  opacity: var(--glowOpacity, 0);
  /* Fades in and out smoothly */

  /* Mask it to the cursor using absolute pixels */
  -webkit-mask-image: radial-gradient(circle 200px at calc(var(--mouseX, 0) * 1px) calc(var(--mouseY, 0) * 1px), black 0%, transparent 100%);
  mask-image: radial-gradient(circle 200px at calc(var(--mouseX, 0) * 1px) calc(var(--mouseY, 0) * 1px), black 0%, transparent 100%);
}

/* ===== TRANSITION BOX ===== */
.transition-box {
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  position: relative;
  z-index: 2;
  /* Keeps it above the grid */
}

.transition-text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--fg2);
  text-align: center;
  flex: 1;
}

.glow-plus {
  font-family: var(--mono);
  color: var(--fg);
  font-size: 18px;
  font-weight: 300;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
  animation: pulseGlow 1.5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }

  100% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

.about-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 4fr 5.5fr;
  /* 4:5.5 pushes photo left and text right */
  gap: 100px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.about-body {
  font-family: var(--mono);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--fg);
}

.about-fade {
  color: var(--fg3);
}

/* Cancel default reveal on the block to let words animate */
.about-text-block.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.about-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: pre;
  /* preserves the spaces between words */
}

.about-text-block.visible .about-word {
  opacity: 1;
  transform: translateY(0);
}

.highlight-char {
  background-color: transparent;
  color: var(--fg);
  /* Optional: a tiny transition makes the wipe butter smooth, or 0s for a sharp wipe */
  transition: background-color 0.05s, color 0.05s;
}

.highlight-char.active {
  background-color: var(--fg);
  color: var(--bg);
}

/* ===== FLIP GRID ===== */
.about-flip-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1270 / 1416;
  /* Exact aspect ratio of the images */
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  perspective: 1500px;
}

.grid-tile {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  z-index: 1;
}

.grid-tile.flipped {
  transform: rotateY(180deg);
  z-index: 2;
}

.tile-front,
.tile-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.tile-front {
  backface-visibility: hidden;
  background-image: url('BEAR-LOGO+BG.png');
  background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
  background-position: var(--posX) var(--posY);
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 0.2px rgba(255, 255, 255, 0.35);
  /* Thinner grid lines */
}

.tile-back {
  backface-visibility: hidden;
  transform: rotateY(180deg);
  background-image: url('KARTHIKEYA-ABOUT.png');
  background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
  background-position: var(--posX) var(--posY);
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 0.1px rgba(255, 255, 255, 0.35);
  /* Thinner grid lines */
}


.about-tags {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.about-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  border: 1px solid var(--border2);
  padding: 6px 14px;
  color: var(--fg2);
}

.about-services {
  margin-top: 36px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.service-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg3);
  letter-spacing: 1px;
}

.service-name {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--fg2);
  text-transform: uppercase;
}

.about-photo-frame {
  position: relative;
  border: 1px solid var(--border2);
}

.about-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
}

.photo-caption-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  perspective: 600px;
}

.rot-char {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: 50% 50% -5px;
}

.caption-front .rot-char {
  transform: rotateX(0deg);
  opacity: 1;
}

.caption-back .rot-char {
  transform: rotateX(90deg);
  opacity: 0;
}

.photo-caption-container.is-flipped .caption-front .rot-char {
  transform: rotateX(-90deg);
  opacity: 0;
}

.photo-caption-container.is-flipped .caption-back .rot-char {
  transform: rotateX(0deg);
  opacity: 1;
}

.caption-brand {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: #fff;
  letter-spacing: 2px;
}

.caption-sub {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  margin-top: 2px;
}

.photo-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.photo-corner::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  left: 50%;
  top: 0;
}

.photo-corner::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 10px;
  background: rgba(255, 255, 255, 0.7);
  top: 50%;
  left: 0;
}

.photo-corner-tl {
  top: -5px;
  left: -5px;
}

.photo-corner-tr {
  top: -5px;
  right: -5px;
}

.photo-corner-bl {
  bottom: -5px;
  left: -5px;
}

.photo-corner-br {
  bottom: -5px;
  right: -5px;
}

/* ===== WORKS ===== */
.works-section {
  min-height: 100vh;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.dot-matrix-marquee {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2vh;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
}

.line-1 {
  animation: dotMarquee 20s linear infinite;
  animation-delay: -15s;
}

.line-2 {
  animation: dotMarqueeReverse 20s linear infinite;
  animation-delay: -7s;
}

.line-3 {
  animation: dotMarquee 20s linear infinite;
  animation-delay: -18s;
}

.dot-matrix-text {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11vw;
  line-height: 1;
  text-transform: uppercase;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 2.5px, transparent 3px);
  background-size: 8px 8px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 40px;
  user-select: none;
  will-change: transform;
}

@keyframes dotMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes dotMarqueeReverse {
  0% {
    transform: translate3d(-50%, 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.works-hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.works-crosshair-box {
  position: relative;
  background-color: var(--fg);
  color: var(--bg);
  padding: 24px 48px;
}

/* Extended crosshair borders using ::before and ::after */
.works-crosshair-box::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: 0;
  right: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  pointer-events: none;
}

.works-crosshair-box::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 0;
  bottom: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.works-hero-title {
  font-family: var(--mono);
  font-size: clamp(24px, 3.5vw, 42px);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cursor {
  font-size: 0.9em;
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.works-circle-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.works-circle-btn:hover {
  background: var(--fg);
  color: var(--bg);
}



/* ===== TESTIMONIALS ===== */
/* ===== WORK WITH US ===== */
.work-with-us-section {
  padding: 48px 36px 100px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.wwu-label-highlight {
  background: #fff;
  color: #000;
  padding: 2px 10px;
  display: inline-block;
}

.wwu-header {
  margin-bottom: 48px;
}

/* Manifesto */
.wwu-manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.wwu-manifesto-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wwu-word {
  font-family: var(--inter);
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -4px;
  color: var(--fg);
  margin: 0 0 20px 0;
}

/* Image positioned at the section level - flush with top border */
.wwu-figure-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  max-width: 720px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: lighten;
  opacity: 0.95;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
  mask-image: linear-gradient(to left, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.wwu-manifesto-sub {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.5px;
  color: var(--fg2);
  max-width: 520px;
}

/* Divider */
.wwu-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.wwu-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.wwu-divider-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--fg3);
  white-space: nowrap;
}

/* Pillars Grid */
.wwu-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 72px;
}

.wwu-pillar {
  background: var(--bg);
  padding: 28px 28px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  transition: background 0.35s ease;
  overflow: hidden;
}

.wwu-pillar:hover {
  background: var(--bg2);
}

.wwu-pillar-number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--fg3);
  margin-bottom: 20px;
}

.wwu-pillar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wwu-pillar-tag {
  font-family: var(--inter);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #000;
  background: #fff;
  display: inline-block;
  padding: 6px 16px;
  text-transform: uppercase;
  align-self: center;
}

.wwu-pillar-title {
  font-family: var(--inter);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg2);
  margin: 0;
}

.wwu-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wwu-pillar-list li {
  font-family: var(--inter);
  font-size: 15px;
  color: var(--fg2);
  position: relative;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.wwu-pillar-list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg3);
  animation: pulsate-dot 2.5s infinite ease-in-out;
}

@keyframes pulsate-dot {

  0%,
  100% {
    background: var(--fg3);
    box-shadow: 0 0 0px transparent;
    transform: scale(1);
  }

  50% {
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
    transform: scale(1.3);
  }
}

/* + Corner signs */
.wwu-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg3);
  line-height: 1;
  pointer-events: none;
}

.wwu-tl {
  top: 8px;
  left: 10px;
}

.wwu-tr {
  top: 8px;
  right: 10px;
}

.wwu-bl {
  bottom: 8px;
  left: 10px;
}

.wwu-br {
  bottom: 8px;
  right: 10px;
}

/* Blinking cursor beside WHAT YOU GET */
.wwu-blink-cursor {
  font-family: var(--mono);
  font-size: 12px;
  color: #fff;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}






/* ===== CONTACT / FOOTER ===== */
.contact-section {
  padding: 80px 36px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.contact-top {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 36px 60px;
  margin: -80px -36px 0;
  border-bottom: 1px solid var(--border);
  gap: 80px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vw;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(90deg);
  z-index: -1;
  pointer-events: none;
}

/* Mobile styles moved to bottom responsive block */

.contact-email-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.contact-top-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
}

.contact-cta-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.contact-cta-title {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--fg3);
  margin-bottom: 8px;
  animation: pulsate-glow 4s infinite ease-in-out;
}

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--fg);
  border: 1px solid var(--border2);
  padding: 16px 32px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.contact-cta-btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

@keyframes pulsate-glow {

  0%,
  100% {
    color: var(--fg3);
    text-shadow: none;
  }

  50% {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 16px rgba(255, 255, 255, 0.3);
  }
}

.contact-email-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--fg3);
  margin-bottom: 8px;
  animation: pulsate-glow 4s infinite ease-in-out;
}

.contact-email {
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.6;
}

.contact-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

/* Mobile styles moved to bottom responsive block */

.footer-logo-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.footer-logo-name {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer-logo-sub {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--fg3);
  line-height: 1.8;
  max-width: 300px;
}



.contact-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.social-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--fg3);
  margin-bottom: 20px;
}

.social-link {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--fg);
  margin-bottom: 12px;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.social-link:hover {
  color: var(--fg3);
}

.footer-wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5vw;
  line-height: 0.8;
  color: var(--fg);
  text-align: center;
  margin-top: 32px;
  margin-left: -36px;
  margin-right: -36px;
  width: 100vw;
  padding-bottom: 0;
  letter-spacing: -5px;
  white-space: nowrap;
}

.footer-copy {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--fg3);
  padding: 12px 0 24px;
  margin-bottom: 0;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== WORKS VIDEO PRESENTATION ===== */
.works-hero-header {
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 10;
}

.works-hero-header.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.works-video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%) scale(0.9);
  width: min(75%, 1200px);
  aspect-ratio: 16/9;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.works-video-wrapper.free-ratio {
  /* Let the video dictate the aspect ratio and width entirely based on its height */
  aspect-ratio: auto;
  width: max-content;
  height: calc(min(75vw, 1200px) * 9 / 16);
}

.works-video-wrapper.free-ratio .works-video-frame {
  width: max-content;
  height: 100%;
}

.works-video-wrapper.free-ratio .works-video {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.works-video-wrapper.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.vertical-videos-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  pointer-events: none;
  opacity: 0;
  z-index: 30;
  transition: opacity 0.5s ease;
}

.vertical-videos-container.active {
  opacity: 1;
  pointer-events: auto;
}

.vert-video-wrapper {
  position: relative;
  width: calc(33.33% - 14px);
  max-width: 320px;
  aspect-ratio: 9/16;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(150%);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  /* overflow: hidden removed to allow feedback cards to pop out */
}

.vert-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 8px;
}

.vert-video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1;
  border-radius: 8px;
}

.vert-video-wrapper.is-playing::after {
  opacity: 0;
}

/* Works Slider Sleek Testimonial Cards */
.works-testimonial-card {
  position: absolute;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--sans);
  color: #d1d1d1;
}

.works-testimonial-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.works-testimonial-card .client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
}

.works-testimonial-card .client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.works-testimonial-card .client-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.works-testimonial-card .client-stars {
  font-size: 12px;
  color: #b8ff00;
  letter-spacing: 1px;
}

.works-testimonial-card .client-quote {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

/* Specific Placements & Entrance Animations */
.works-testimonial-card.top-right {
  top: -20px;
  right: -30px;
  width: 240px;
  transform: translateY(-20px) rotate(3deg);
}
.works-video-frame.is-playing .works-testimonial-card.top-right.visible {
  opacity: 1;
  transform: translateY(0) rotate(3deg);
  transition-delay: 0.6s;
}

.works-testimonial-card.bottom-right.featured {
  bottom: -20px;
  right: 20px;
  width: 280px;
  transform: translateY(20px) rotate(-2deg);
}
.works-video-frame.is-playing .works-testimonial-card.bottom-right.featured.visible {
  opacity: 1;
  transform: translateY(0) rotate(-2deg);
  transition-delay: 0.8s;
}

/* Raw Image Overlays (e.g. Instagram Screenshot) */
.works-client-image-card {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.works-client-image-card.bottom-right {
  bottom: -30px;
  right: 20px;
  width: 250px;
  height: auto;
  transform: translateY(20px) rotate(-2deg);
}

.works-video-frame.is-playing .works-client-image-card.bottom-right.visible {
  opacity: 1;
  transform: translateY(0) rotate(-2deg);
  transition-delay: 0.8s;
}

.works-client-image-card.left-side {
  top: 60%;
  left: -30px;
  width: 200px;
  height: auto;
  transform: translateX(-20px) rotate(-4deg);
}

.works-video-frame.is-playing .works-client-image-card.left-side.visible {
  opacity: 1;
  transform: translateX(0) rotate(-4deg);
  transition-delay: 1.0s;
}

.works-testimonial-card.left-side.mini {
  top: 30%;
  left: -40px;
  width: 220px;
  padding: 12px;
  transform: translateX(-20px) rotate(-4deg);
}
.works-video-frame.is-playing .works-testimonial-card.left-side.mini.visible {
  opacity: 1;
  transform: translateX(0) rotate(-4deg);
  transition-delay: 1.0s;
}

.works-testimonial-card.left-side.mini .client-quote {
  font-size: 11px;
}

.vert-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.vert-video-wrapper:hover {
  transform: scale(1.02);
}

.vertical-videos-container.active .vert-video-wrapper {
  transform: translateY(0);
}

/* Stagger the slide up */
.vertical-videos-container.active .vert-video-wrapper:nth-child(1) {
  transition-delay: 0.1s;
}

.vertical-videos-container.active .vert-video-wrapper:nth-child(2) {
  transition-delay: 0.2s;
}

.vertical-videos-container.active .vert-video-wrapper:nth-child(3) {
  transition-delay: 0.3s;
}

.works-video-frame {
  width: 100%;
  height: 100%;
  position: relative;
  border: 1px solid var(--border);
  background: #000;
  transition: opacity 0.5s ease;
  /* overflow: hidden removed to allow profile/feedback tags to pop out */
}

.works-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.works-video-frame.is-playing::after {
  opacity: 0;
}

.works-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* Block native controls interaction until necessary */
}

.video-action-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 32px;
  border-radius: 30px;
  cursor: pointer;
  z-index: 25;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.video-action-btn:hover {
  background: #fff;
  color: #000;
}

.video-action-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-action-btn.playing {
  opacity: 0;
  pointer-events: none;
}

.video-close-btn {
  position: absolute;
  top: -50px;
  right: -20px;
  background: transparent;
  border: none;
  color: var(--fg2);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 10px;
}

.video-close-btn:hover {
  color: #fff;
}

.works-dimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.75) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.works-dimmer.active {
  opacity: 1;
  pointer-events: auto;
}

.video-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.3s ease;
}

.video-nav-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.video-nav-btn.prev {
  left: -70px;
}

.video-nav-btn.next {
  right: -70px;
}

.video-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg2);
  letter-spacing: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #navbar {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .about-container,
  .works-columns,
  .packages-grid,
  .contact-mid,
  .wwu-manifesto,
  .wwu-pillars {
    grid-template-columns: 1fr;
  }

  .card-wide,
  .card-wide-right {
    grid-column: span 1;
  }

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

  /* Hero Section Mobile Fixes */
  .hero-meta-left {
    bottom: 110px;
    left: 20px;
  }
  
  .hero-scroll-hint {
    bottom: 30px;
  }

  .works-hero-header {
    flex-direction: column;
    gap: 24px;
  }

  .works-crosshair-box {
    padding: 16px 24px;
  }

  .works-hero-title {
    font-size: 24px;
  }

  /* WWU / Obsession Centering */
  .wwu-header {
    display: flex;
    justify-content: center;
  }

  .wwu-manifesto-left {
    align-items: center;
    text-align: center;
  }

  .wwu-word {
    font-size: 13.5vw;
    text-align: center;
  }

  .wwu-manifesto-sub {
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
  }

  .about-section,
  .works-section,
  .testimonials-section,
  .packages-section,
  .contact-section {
    padding: 80px 20px;
  }

  .footer-wordmark {
    font-size: 11vw;
    letter-spacing: -2px;
    margin-left: -20px;
    margin-right: -20px;
  }

  .about-photo {
    height: 300px;
  }

  /* Contact Top Mobile Fixes (Side-by-Side) */
  .contact-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 60px 12px 40px;
    margin: -80px -20px 0;
  }

  .contact-top-divider {
    display: block;
    height: 36px;
    margin-top: 2px;
  }

  .contact-email-block {
    flex: 1;
    align-items: flex-end;
    text-align: right;
  }

  .contact-cta-block {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  .contact-email {
    font-size: 2.8vw;
    word-break: break-all;
  }

  .contact-cta-btn {
    padding: 1.5vw 2vw;
    font-size: 2vw;
    gap: 1vw;
  }

  .contact-cta-btn svg {
    width: 2.5vw;
    height: 2.5vw;
  }

  .contact-email-label,
  .contact-cta-title {
    font-size: 2vw;
    margin-bottom: 2px;
  }

  /* Contact Mid (BS Logo & Socials) */
  .contact-mid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
  }

  .footer-logo-mark {
    margin: 0 auto 14px;
  }

  .contact-social {
    align-items: center;
    text-align: center;
  }

  /* Testimonial Cards Mobile Scaling */
  .works-testimonial-card {
    width: 110px !important;
    padding: 6px !important;
    border-radius: 6px !important;
  }
  
  .works-testimonial-card.top-right {
    top: -5px;
    right: -5px;
  }
  
  .client-avatar {
    width: 16px !important;
    height: 16px !important;
  }
  
  .client-info {
    gap: 2px !important;
  }
  
  .client-name {
    font-size: 9px !important;
  }
  
  .client-stars {
    font-size: 6px !important;
    letter-spacing: 0 !important;
  }
  
  .client-quote {
    font-size: 7px !important;
    line-height: 1.2 !important;
    margin-top: 4px;
  }
  
  .works-testimonial-card.left-side.mini {
    width: 90px !important;
    left: -5px;
  }

  .works-client-image-card.bottom-right {
    width: 90px !important;
    bottom: -5px;
    right: -5px;
  }
  
  .works-client-image-card.left-side {
    width: 75px !important;
    left: -5px;
    top: 55%;
  }
}