:root{
  --primary: #00133a;
  --secondary: #052659;
  --accent: #b51a2b;
  --highlight: #ffa560;
  --neutral-light: #c1e8ff;
}

/* ===== LENIS OVERRIDES ===== */
html.lenis, html.lenis body {
  height: auto;
}

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

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

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

/* ===== NAVBAR ===== */
#navbar {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* ===== NAV LINKS ===== */
.nav-link {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #C3C5C5;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

.mobile-link {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: #C3C5C5;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #ffffff;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(253, 124, 15, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #F8F8F8;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(248, 248, 248, 0.1);
}

/* Button variant used in hero screenshot */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== HERO SECTION (Linearity-like first fold) ===== */
.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-line {
  display: block;
}

.hero-word-wrap {
  position: relative;
  display: inline-block;
  margin-right: 0.2em;
}

.hero-word {
  position: relative;
  z-index: 10;
  color: #ffffff;
}

.hero-word-bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 320px;
  height: clamp(36px, 8vw, 140px);
  pointer-events: none;
  opacity: 1;
}

.hero-word-bg > svg,
.hero-word-bg > canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ===== FOOTER ===== */
.footer-link {
  font-size: 14px;
  color: #C3C5C5;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #C3C5C5;
  transition: all 0.2s ease;
}

.footer-social:hover {
  background: rgba(253, 124, 15, 0.15);
  color: var(--accent);
}

/* ===== UTILITY: SECTION SPACING ===== */
.section-spacing {
  padding: 100px 0;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(253, 124, 15, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ===== GRADIENT BORDER CARD ===== */
.gradient-border {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  overflow: hidden;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(253, 124, 15, 0.3), rgba(253, 124, 15, 0.05), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ===== ANIMATION STATES ===== */
[data-animate] {
  opacity: 1;
  transform: none;
  will-change: transform, opacity;
}

[data-animate="fade-up"].animated {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(40px);
}

[data-animate="fade-right"].animated {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="scale"] {
  transform: scale(0.95);
}

[data-animate="scale"].animated {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  .hero-word-bg {
    max-width: 180px;
  }
}

/* ===== VIDEO SHOWCASE SECTION ===== */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.video-layer {
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.15);
}

.editor-rail-item {
  width: 62px;
  min-height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  border: 1px solid transparent;
  font-size: 10px;
  line-height: 1.15;
  padding: 10px 8px;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
}

.editor-rail-item:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.editor-rail-item.active {
  background: rgba(253, 15, 35, 0.15);
  color: #fff;
  border-color: rgba(253, 15, 15, 0.3);
}

.editor-control-btn {
  width: 32px;
  height: 32px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.editor-utility-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.editor-utility-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.editor-control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.editor-control-btn-active {
  background: rgba(253, 124, 15, 0.2);
  border-color: rgba(253, 124, 15, 0.45);
  box-shadow: 0 0 16px rgba(253, 124, 15, 0.24);
}

.figma-control-btn {
  position: relative;
  overflow: hidden;
}

.figma-control-bg,
.figma-control-glyph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.play-glyph-center {
  inset: 0;
}

.editor-scrubber {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(253, 124, 15, 0.7), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(253, 124, 15, 0.75);
  cursor: pointer;
}

.editor-scrubber::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(253, 124, 15, 0.75);
  cursor: pointer;
}

.timeline-clip {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
}
.timeline-clip:hover {
  transform: translateY(-1px) scale(1.005);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
.timeline-clip.active {
  border-color: var(--accent);
  background: rgba(253, 124, 15, 0.12);
  box-shadow: 0 0 0 1px rgba(253, 124, 15, 0.25), 0 8px 20px rgba(0, 0, 0, 0.36);
}

#timeline-track .timeline-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#timeline-shell {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#playhead {
  box-shadow: 0 0 16px rgba(253, 124, 15, 0.5);
}

.floating-icon {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.42));
  will-change: opacity, transform;
}

.software-icon-card {
  min-width: 88px;
  justify-content: flex-start;
}

.software-icon-image {
  width: 25px;
  height: 25px;
  border-radius: 4px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .editor-rail-item {
    width: 54px;
    min-height: 50px;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  #video-showcase #timeline-shell {
    gap: 10px;
  }
}

.spotlight-section h1 {
  text-transform: uppercase;
  font-size: 6rem;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.02rem;
}


.spotlight-section .header{
  position:  absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 50%;
  z-index: 1;
}

.spotlight-section {
  background-color: #101010;
  position: relative;
}

.spotlight-images{
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 300svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(5%);
  will-change: transform;
}

.spotlight-images .row{
  width: 100%;
  padding: 2rem;
  display: flex;
  gap: 2rem;
}

.spotlight-images .img{
  flex: 1;
  aspect-ratio: 5/7;
  overflow: hidden;
}
.spotlight-images .img img{
  opacity: 0.5;
  filter: saturate(0);
}

.mask-container{
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  -webkit-mask: url('assets/B1.svg') center/contain no-repeat;
  mask: url('assets/B1.svg') center/contain no-repeat;
  mask-size: 0%;
  overflow: hidden;
  z-index: 10;

}

.sticky-cards h1{
  text-transform: uppercase;
  font-family: sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.sticky-cards p{
  text-transform: uppercase;
  font-family: monospace;
  font-size: 0.9rem;
}

.sticky-cards {
  background-color: #e3e3db;
  perspective: 850px;
  position: relative;
  overflow: hidden;
  height: 100svh;
  width: 100vw;
}

.sticky-cards .card{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65%;
  height: 65%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem;
  border-radius: 1rem;
  color: #fff;
  transform-origin: center bottom;
  will-change: transform;
}

.sticky-cards .card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-cards .card .col{
  flex: 1;
  height: 100%;
}
.sticky-cards .card .col:nth-child(1){
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
}

.sticky-cards .card .col:nth-child(2){
  border-radius: 0.75rem;
  overflow: hidden;
}

.sticky-cards .card#card1{
  background-color: var(--accent);
}
.sticky-cards .card#card2{
  background-color: #398181;
}
.sticky-cards .card#card3{
  background-color: #6b3981;
}
.sticky-cards .card#card4{
  background-color: #628139;
}

#good-design-svg{
  top: 45px;
  left: 11px;
  position: relative;
  transform: rotateY(180deg) rotateZ(-80deg);
}
#bad-design-svg{
  top: 45px;
  left: 11px;
  position: relative;
  transform:  rotateZ(-80deg);
}

.line-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;  /* prevent descender clipping */
  margin-bottom: -0.1em;
}

.projects-tunnel-section{
  position: relative;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  background: radial-gradient(120% 80% at 50% 110%, #141018 0%, #000000 55%);
  overflow: hidden;
}

.tunnel-mount {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* 3D must not flatten here: default "flat" collapses all translateZ into one plane */
  perspective: 1000px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
}

.tunnel-mount .tunnel {
  pointer-events: none;
}

.tunnel-ui {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 6vh, 3.5rem);
}

.tunnel-header {
  pointer-events: none;
  max-width: 34rem;
}

.tunnel-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}

.tunnel-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.875rem;
}

.tunnel-lead {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(197, 200, 204, 0.88);
  margin: 0;
  max-width: 28rem;
}

.tunnel-dots {
  pointer-events: auto;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  margin-top: auto;
}

.tunnel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.tunnel-dot:hover,
.tunnel-dot:focus-visible {
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
  outline: none;
}

.tunnel-dot.is-active {
  background: var(--tunnel-dot-fill, #b51a2b);
  border-color: var(--tunnel-dot-fill, #b51a2b);
  box-shadow: 0 0 16px color-mix(in srgb, var(--tunnel-dot-fill, #b51a2b) 55%, transparent);
}

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

.layer{
  position: absolute;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.item {
  position: absolute;
  width: 180px;
  height: 220px;
  transform-style: preserve-3d;
}

.item-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.5rem 0.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.item-meta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tunnel-item-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  line-height: 1.25;
}

.tunnel-item-preview {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--tunnel-accent, #b51a2b);
  color: var(--tunnel-accent, #b51a2b);
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tunnel-item-preview:hover {
  background: color-mix(in srgb, var(--tunnel-accent, #b51a2b) 22%, transparent);
  color: #fff;
  border-color: var(--tunnel-accent, #b51a2b);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--overlay, 0);
  pointer-events: none;
}

/* ===== Agency sections (minimal palette) ===== */
.bento-grid {
  isolation: isolate;
}

.bento-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.35rem 1.35rem 0;
  display: flex;
  flex-direction: column;
  min-height: 450px !important;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.45s ease;
  background: rgba(255, 255, 255, 0.028);
}

/* Very light per-card tints (low alpha — read as soft wash on dark) */
.bento-card--grad1 {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04) 0%, rgba(165, 205, 255, 0.055) 42%, rgba(255, 255, 255, 0.02) 100%);
}
.bento-card--grad2 {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 200, 210, 0.045) 48%, rgba(255, 255, 255, 0.02) 100%);
}
.bento-card--grad3 {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.038) 0%, rgba(180, 245, 230, 0.05) 50%, rgba(255, 255, 255, 0.022) 100%);
}
.bento-card--grad4 {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.036) 0%, rgba(255, 225, 170, 0.052) 45%, rgba(255, 255, 255, 0.02) 100%);
}
.bento-card--grad5 {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.037) 0%, rgba(210, 200, 255, 0.048) 47%, rgba(255, 255, 255, 0.021) 100%);
}
.bento-card--grad6 {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04) 0%, rgba(175, 240, 255, 0.05) 44%, rgba(255, 255, 255, 0.023) 100%);
}
.bento-card--grad7 {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.042) 0%, rgba(235, 230, 220, 0.045) 50%, rgba(255, 255, 255, 0.02) 100%);
}
.bento-card--grad8 {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 215, 205, 0.042) 46%, rgba(255, 255, 255, 0.022) 100%);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.bento-card__copy {
  flex-shrink: 0;
  padding-bottom: 1rem;
}

.bento-card__visual {
  margin-top: auto;
  margin-left: -1.35rem;
  margin-right: -1.35rem;
  width: calc(100% + 2.7rem);
  border-radius: 0 0 1.5rem 1.5rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-card__visual--short {
  max-height: 8.5rem;
}

.bento-card__img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.bento-card--lg .bento-card__img {
  height: clamp(11rem, 22vw, 14rem);
}

.bento-card__visual--short .bento-card__img {
  height: 100%;
  max-height: 8.5rem;
  object-position: center;
}

.bento-card__img--svg {
  object-fit: contain;
  padding: 0.75rem 1rem;
  height: 8.5rem;
  opacity: 0.85;
  filter: brightness(1.05);
}

.bento-card:hover .bento-card__img {
  transform: scale(1.03);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .bento-card,
  .bento-card__img {
    transition: none;
  }
  .bento-card:hover,
  .bento-card:hover .bento-card__img {
    transform: none;
    box-shadow: none;
  }
}

.agency-process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agency-step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1.15rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agency-step--last {
  border-bottom: none;
  padding-bottom: 0;
}

.agency-step-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1.5;
  padding-top: 0.15rem;
}

.agency-cta-panel {
  transition: border-color 0.35s ease, box-shadow 0.4s ease;
}

.agency-cta-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}