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

:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #181818;
  --accent: #ff5b2e;
  --accent-h: #ff7347;
  --text: #ffffff;
  --muted: #888888;
  --subtle: #2e2e2e;
  --border: #1e1e1e;
  --r: 4px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* CURSOR */
#cur,
#cur-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform, left, top;
}

#cur {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
}

#cur-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(232, 67, 26, 0.35);
  z-index: 9998;
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}

/* LAYOUT */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

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

.display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.01em;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 24px 0;
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--r);
}

.nav-cta:hover {
  background: var(--accent-h) !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 6px;
  z-index: 201;
  position: relative;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center center;
}

/* ── OPEN: phase 1 collapse to center, phase 2 shoot out as X ── */
.nav-burger.open span:nth-child(1) {
  animation: bar-top-open 0.48s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.nav-burger.open span:nth-child(2) {
  animation: bar-mid-open 0.18s ease forwards;
}

.nav-burger.open span:nth-child(3) {
  animation: bar-bot-open 0.48s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes bar-top-open {
  0% {
    transform: translateY(0px) rotate(0deg) scaleX(1);
  }

  36% {
    transform: translateY(7px) rotate(0deg) scaleX(0);
  }

  37% {
    transform: translateY(7px) rotate(45deg) scaleX(0);
  }

  100% {
    transform: translateY(7px) rotate(45deg) scaleX(1);
  }
}

@keyframes bar-mid-open {
  0% {
    opacity: 1;
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    transform: scaleX(0);
  }
}

@keyframes bar-bot-open {
  0% {
    transform: translateY(0px) rotate(0deg) scaleX(1);
  }

  36% {
    transform: translateY(-7px) rotate(0deg) scaleX(0);
  }

  37% {
    transform: translateY(-7px) rotate(-45deg) scaleX(0);
  }

  100% {
    transform: translateY(-7px) rotate(-45deg) scaleX(1);
  }
}

/* ── CLOSE: reverse — shrink X, pivot, shoot back as hamburger ── */
.nav-burger.closing span:nth-child(1) {
  animation: bar-top-close 0.48s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.nav-burger.closing span:nth-child(2) {
  opacity: 0;
  animation: bar-mid-close 0.22s ease 0.3s forwards;
}

.nav-burger.closing span:nth-child(3) {
  animation: bar-bot-close 0.48s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes bar-top-close {
  0% {
    transform: translateY(7px) rotate(45deg) scaleX(1);
  }

  36% {
    transform: translateY(7px) rotate(45deg) scaleX(0);
  }

  37% {
    transform: translateY(7px) rotate(0deg) scaleX(0);
  }

  100% {
    transform: translateY(0px) rotate(0deg) scaleX(1);
  }
}

@keyframes bar-mid-close {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes bar-bot-close {
  0% {
    transform: translateY(-7px) rotate(-45deg) scaleX(1);
  }

  36% {
    transform: translateY(-7px) rotate(-45deg) scaleX(0);
  }

  37% {
    transform: translateY(-7px) rotate(0deg) scaleX(0);
  }

  100% {
    transform: translateY(0px) rotate(0deg) scaleX(1);
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}

/* MOBILE NAV OVERLAY */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #080808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow: hidden;
}

#mobile-nav.open {
  clip-path: inset(0 0 0% 0);
  pointer-events: all;
}

/* Watermark */
#mobile-nav::before {
  content: 'R';
  position: absolute;
  right: -5vw;
  bottom: -8vw;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 50vw;
  line-height: 1;
  color: rgba(255, 91, 46, 0.04);
  pointer-events: none;
  user-select: none;
}

/* Accent bar */
#mobile-nav::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

#mobile-nav .mob-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 11vw, 72px);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(28px);
  transition: color 0.2s ease, opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

#mobile-nav.open .mob-link:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.18s;
}

#mobile-nav.open .mob-link:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.24s;
}

#mobile-nav.open .mob-link:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.30s;
}

#mobile-nav.open .mob-link:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.36s;
}

#mobile-nav .mob-link:hover {
  color: var(--accent);
}

#mobile-nav .mob-cta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 36px;
  border-radius: var(--r);
  font-size: clamp(18px, 4vw, 22px);
  opacity: 0;
  transform: translateY(28px);
  transition: background 0.2s ease, opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

#mobile-nav.open .mob-cta {
  opacity: 1;
  transform: none;
  transition-delay: 0.44s;
}

#mobile-nav .mob-cta:hover {
  background: var(--accent-h) !important;
}

/* HERO */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-bottom: 120px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
  padding-top: 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.2s forwards;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-tag span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-h1 {
  font-size: clamp(62px, 9vw, 128px);
  max-width: 13ch;
  margin-bottom: 28px;
}

.hero-h1 .ln {
  display: block;
  overflow: hidden;
}

.hero-h1 .ln-i {
  display: block;
  opacity: 0;
  transform: translateY(105%);
  animation: slideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-heading .ln-i.ac {
  color: var(--accent);
}

.hero-h1 .ln:nth-child(1) .ln-i {
  animation-delay: 0.3s;
}

.hero-h1 .ln:nth-child(2) .ln-i {
  animation-delay: 0.45s;
}

.hero-h1 .ln:nth-child(3) .ln-i {
  animation-delay: 0.6s;
}

.hero-h1 .ac {
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 0.85s forwards;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.7s ease 1.05s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
  border: none;
  font-family: inherit;
  cursor: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  background: none;
  color: var(--muted);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-white {
  background: #fff;
  color: var(--accent);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 0.7s ease 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: pulse 2s ease-in-out infinite;
}

.scroll-lbl {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* STATS */
#stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 44px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--text);
}

.stat-n .ac {
  color: var(--accent);
}

.stat-l {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
}

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

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(3) {
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

/* SECTION COMMONS */
.sec {
  padding: 120px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.eyebrow span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-bar {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.sec-title {
  font-size: clamp(38px, 5vw, 68px);
  margin-bottom: 16px;
}

.sec-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 60px;
}

/* SCROLL REVEAL */
.rv {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv.on {
  opacity: 1;
  transform: none;
}

.rv.d1 {
  transition-delay: 0.1s;
}

.rv.d2 {
  transition-delay: 0.2s;
}

.rv.d3 {
  transition-delay: 0.3s;
}

.rv.d4 {
  transition-delay: 0.4s;
}

/* SECTION ENTRANCE */
.sec {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.sec.sec-on {
  opacity: 1;
  transform: none;
}

/* SERVICES */
#services {
  background: var(--bg);
}

.svc-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  flex-wrap: wrap;
  gap: 20px;
}

.svc-list {
  border-top: 1px solid var(--border);
}

.svc-item {
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  align-items: start;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.svc-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  width: 0;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-item:hover::before {
  width: 100%;
}

.svc-item>* {
  position: relative;
  z-index: 1;
}

.svc-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 6px;
  transition: color 0.25s ease, opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-item:hover .svc-num {
  opacity: 0;
  transform: translateX(-14px);
}

.svc-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--r);
  border: 1px solid var(--border);
  color: var(--accent);
  background: rgba(255, 91, 46, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-item:hover .svc-icon {
  background: #000;
  border-color: #000;
  color: var(--accent);
  transform: rotate(-8deg) scale(1.1);
}

.svc-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.01em;
  background: linear-gradient(to right, #000 50%, #ffffff 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition:
    background-position 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-item:hover .svc-name {
  background-position: 0% 0;
  letter-spacing: 0.04em;
}

.svc-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  transition: color 0.25s ease, font-weight 0.25s ease;
}

.svc-item:hover .svc-desc {
  color: rgba(0, 0, 0, 0.82);
  font-weight: 500;
}

.svc-arr {
  color: var(--subtle);
  transition: color 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: 6px;
}

.svc-item:hover .svc-arr {
  color: #000;
  transform: translate(6px, -6px) scale(1.1);
}

/* 3D tilt on service items */
.svc-item {
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
}

@media (max-width: 640px) {
  .svc-item {
    grid-template-columns: 48px 1fr;
  }

  .svc-arr {
    display: none;
  }
}

/* WORK */
#work {
  background: var(--surface);
}

.work-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
  cursor: none;
  border: solid 1px rgba(0, 0, 0, 0.07);
}

.work-card:first-child {
  grid-column: 1/-1;
  aspect-ratio: 16/7;
}

.card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .card-bg {
  transform: scale(1.05);
}

.work-card:nth-child(1) .card-bg {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 60%, #1e4976 100%);
}

.work-card:nth-child(2) .card-bg {
  background: linear-gradient(135deg, #1a0800 0%, #2d1100 60%, #3d1f00 100%);
}

.work-card:nth-child(3) .card-bg {
  background: linear-gradient(135deg, #080d0a 0%, #0d2418 60%, #122e1e 100%);
}

/* Browser mockup inside cards */
.card-mock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  overflow: hidden;
}

.browser-bar {
  background: rgba(255, 255, 255, 0.05);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bd {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.bu {
  flex: 1;
  max-width: 180px;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin-left: 8px;
}

.browser-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bk {
  height: 64px;
  background: linear-gradient(90deg, var(--accent), rgba(232, 67, 26, 0.2));
  border-radius: 4px;
  opacity: 0.7;
}

.br {
  display: flex;
  gap: 8px;
}

.bb {
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  flex: 1;
}

.bb.w2 {
  flex: 2;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.work-card:hover .card-info {
  transform: none;
}

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 67, 26, 0.1);
  border: 1px solid rgba(232, 67, 26, 0.2);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 30px);
  margin-bottom: 3px;
}

.card-sub {
  font-size: 13px;
  color: var(--muted);
}

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

  .work-card:first-child {
    grid-column: auto;
    aspect-ratio: 4/3;
  }
}

/* PROCESS */
#process {
  background: var(--bg);
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 64px;
}

.proc-step {
  padding: 44px 36px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.proc-step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-step:hover::after {
  transform: scaleX(1);
}

.proc-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: var(--subtle);
  margin-bottom: 28px;
  transition: color 0.3s;
}

.proc-step:hover .proc-n {
  color: var(--accent);
  opacity: 0.25;
}

.proc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: rgba(232, 67, 26, 0.08);
  border: 1px solid rgba(232, 67, 26, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.proc-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.proc-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .proc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .proc-step {
    padding: 32px 24px;
  }
}

/* TESTIMONIALS */
#testimonials {
  background: var(--surface);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 60px;
}

.testi-card {
  background: var(--bg);
  padding: 44px 36px;
  position: relative;
}

.testi-stars {
  position: absolute;
  top: 36px;
  right: 36px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
}

.testi-q {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.testi-txt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
}

.testi-name {
  font-weight: 600;
  font-size: 14px;
}

.testi-role {
  font-size: 12px;
  color: var(--muted);
}

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

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

  .testi-card {
    padding: 32px 24px;
  }
}

/* CTA BAND */
#cta {
  background: var(--accent);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: 'REACTIVE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(100px, 16vw, 220px);
  color: rgba(0, 0, 0, 0.07);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.02em;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-title {
  font-size: clamp(36px, 5vw, 68px);
  color: #fff;
  max-width: 14ch;
}

/* CONTACT */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.contact-lbl {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-val {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.contact-val:hover {
  color: var(--accent);
}

/* FORM */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 400px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 15px;
  border-radius: var(--r);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}

select {
  appearance: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-ok {
  display: none;
  color: #4ade80;
  font-size: 13px;
  padding: 12px 14px;
  background: rgba(74, 222, 128, 0.07);
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: var(--r);
}

/* FOOTER */
footer {
  background: #050505;
  padding: 80px 0 36px;
  border-top: 1px solid var(--border);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

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

@media (max-width: 540px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.foot-brand img {
  height: 26px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.foot-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 260px;
}

.foot-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.foot-col a:hover {
  color: var(--text);
}

.foot-btm {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.foot-btm p {
  font-size: 12px;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* KEYFRAMES */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* SCROLL PROGRESS BAR */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #ff5b2e, #ff9060);
  z-index: 9999;
  transition: width 0.05s linear;
  transform-origin: left;
}

/* MAGNETIC BUTTON */
.btn-primary,
.btn-white {
  will-change: transform;
}

/* 3D TILT — work cards */
.work-card {
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
}

/* TEXT SCRAMBLE — titles get this class applied via JS */
.scramble {
  display: inline-block;
}

/* CLIP-PATH REVEAL — service items (overrides generic .rv) */
.svc-item.rv {
  opacity: 1 !important;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.svc-item.rv:not(.on) {
  transform: none !important;
}

.svc-item.rv.d1 {
  transition-delay: 0.1s !important;
}

.svc-item.rv.d2 {
  transition-delay: 0.2s !important;
}

.svc-item.rv.d3 {
  transition-delay: 0.3s !important;
}

.svc-item.rv.d4 {
  transition-delay: 0.4s !important;
}

.svc-item.on {
  clip-path: inset(0 0 0% 0);
}

/* STAGGER hero badge pulse */
.hero-tag-dot {
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {

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

  50% {
    transform: scale(1.7);
    opacity: 0.5;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .rv {
    opacity: 1;
    transform: none;
  }

  .svc-item {
    clip-path: none !important;
  }

  .hero-h1 .ln-i,
  .hero-tag,
  .hero-sub,
  .hero-btns,
  .hero-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   CASE STUDY DETAIL PAGES — shared styles
   ============================================================ */

/* Brand palette per page */
.page-farley-fit {
  --b1: #060c14;
  --b2: #34a8f2;
  --b3: #d920ca;
  --b4: #eff4f9;
  --b5: #f5f2ff;
}

.page-silver-moose {
  --b1: #1c2b22;
  --b2: #8fa8a0;
  --b3: #b8935a;
  --b4: #e0ddd8;
  --b5: #f0ede8;
}

.page-farley-fit {
  --b1: yellow;
  --b2: #34a8f2;
  --b3: #d920ca;
  --b4: #eff4f9;
  --b5: #f5f2ff;
}

/* Nav — transparent on load, frosts on scroll */
.page-case-study #nav {
  background: rgba(8, 8, 8, 0);
  border-bottom-color: transparent;
  transition: background 0.4s, border-color 0.4s;
}

.page-case-study #nav.scrolled {
  background: rgba(8, 8, 8, 0.9);
  border-color: var(--border);
}

.page-case-study .nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.page-case-study .nav-back svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-case-study .nav-back:hover {
  color: var(--text);
}

.page-case-study .nav-back:hover svg {
  transform: translateX(-4px);
}

.page-case-study .nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  padding: 8px 20px;
  border-radius: 2px;
  text-decoration: none;
  background: none !important;
  transition: background 0.2s, color 0.2s;
}

.page-case-study .nav-cta:hover {
  background: var(--accent) !important;
  color: #000 !important;
}

/* Hero */
.page-case-study #hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.page-case-study .hero-glow-1,
.page-case-study .hero-glow-2 {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-farley-fit .hero-glow-1 {
  background: radial-gradient(ellipse 900px 700px at 80% -10%, rgba(52, 168, 242, 0.18) 0%, transparent 60%);
}

.page-farley-fit .hero-glow-2 {
  background: radial-gradient(ellipse 500px 400px at -5% 90%, rgba(217, 32, 202, 0.14) 0%, transparent 60%);
}

.page-silver-moose .hero-glow-1 {
  background: radial-gradient(ellipse 900px 700px at 80% -10%, rgba(143, 168, 160, 0.2) 0%, transparent 60%);
}

.page-silver-moose .hero-glow-2 {
  background: radial-gradient(ellipse 500px 400px at -5% 90%, rgba(184, 147, 90, 0.15) 0%, transparent 60%);
}

.page-case-study .hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  align-items: flex-start;
  padding-top: 0;
}

.page-case-study .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.page-case-study .hero-tag {
  display: inline-block;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  animation: none;
  opacity: 1;
  transform: none;
  background: none;
}

.page-case-study .hero-year {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-case-study .hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(76px, 12vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.page-case-study .hero-title em {
  color: var(--accent);
  font-style: normal;
}

.page-case-study .hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 40px;
}

.page-case-study .hero-meta {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  flex-wrap: wrap;
}

.page-case-study .hm-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.page-case-study .hm-value {
  font-size: 15px;
  font-weight: 500;
}

.page-case-study .hero-scroll-hint {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-case-study .hero-scroll-hint .scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: sl 2s ease-in-out infinite;
}

@keyframes sl {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

/* Sections */
.page-case-study .cs-sec {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
}

.page-case-study .sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 52px;
}

.page-case-study .sec-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Overview */
.page-case-study .overview-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: start;
}

.page-case-study .ov-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.0;
  margin-bottom: 28px;
}

.page-case-study .ov-body {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.page-case-study .ov-body p+p {
  margin-top: 20px;
}

.page-case-study .meta-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.page-case-study .meta-row:first-child {
  border-top: 1px solid var(--border);
}

.page-case-study .meta-key {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.page-case-study .meta-val {
  font-size: 15px;
  font-weight: 500;
}

.page-case-study .meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-case-study .mtag {
  font-size: 11px;
  letter-spacing: 0.03em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.6);
}

.page-case-study .live-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s;
  text-decoration: none;
}

.page-case-study .live-link:hover {
  border-color: var(--accent);
}

/* Color Palette */
.page-case-study .palette-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.page-case-study .swatch {
  aspect-ratio: 2/3;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-case-study .swatch:hover {
  transform: translateY(-6px);
}

.page-case-study .swatch-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

.page-case-study .sw-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: #fff;
}

.page-case-study .sw-hex {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* Farley Fit swatches */
.page-farley-fit .swatch-ff1 {
  background: #060c14;
}

.page-farley-fit .swatch-ff2 {
  background: #34a8f2;
}

.page-farley-fit .swatch-ff3 {
  background: #d920ca;
}

.page-farley-fit .swatch-ff4 {
  background: #eff4f9;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.page-farley-fit .swatch-ff4 .sw-name,
.page-farley-fit .swatch-ff4 .sw-hex {
  color: #060c14;
}

/* Silver Moose swatches */
.page-silver-moose .swatch-sm1 {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.page-silver-moose .swatch-sm2 {
  background: #c61c19;
}

.page-silver-moose .swatch-sm3 {
  background: #fff;
}

.page-silver-moose .swatch-sm4 .sw-name,
.page-silver-moose .swatch-sm4 .sw-hex,
.page-silver-moose .swatch-sm5 .sw-name,
.page-silver-moose .swatch-sm5 .sw-hex {
  color: #1c2b22;
}

/* Apex Caddy Swatches */

.page-apex-caddy .swatch-apx1 {
  background: #2196f3;
}

.page-apex-caddy .swatch-apx2 {
  background: #ffd000;
}

.page-apex-caddy .swatch-apx3 {
  background: #4cad4f;
}

.page-apex-caddy .swatch-apx4 {
  background: #df3f34;
}

/* Emily Quinnell Swatches */

.page-emily-quinnell .swatch-eq1 {
  background: #000000;
}

.page-emily-quinnell .swatch-eq2 {
  background: #04ABAB;
}

.page-emily-quinnell .swatch-eq3 {
  background: #FFFFFF;
}

/* SDyer Fit Swatches */

.page-dyer .swatch-sd1 {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.page-dyer .swatch-sd2 {
  background: #0197ff;
}

.page-dyer .swatch-sd3 {
  background: #fff;
}

/* Business Card Bento Grid */
.bc-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.bc-tile {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: none;
}

.bc-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

.bc-tile-main {
  grid-row: 1 / 3;
}

.bc-tile-lbl {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

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

  .bc-tile-main {
    grid-row: auto;
  }
}

/* Typography Section */
.page-case-study .type-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.page-case-study .type-card {
  background: var(--surface);
  padding: clamp(28px, 4vw, 56px);
}

.page-case-study .type-card:first-child {
  border-radius: 8px 0 0 8px;
}

.page-case-study .type-card:last-child {
  border-radius: 0 8px 8px 0;
}

.page-case-study .type-role {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.page-case-study .type-specimen {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.88;
  margin-bottom: 28px;
}

.page-farley-fit .type-specimen.display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  color: var(--b2);
}

.page-farley-fit .type-specimen.body-font {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.15);
}

.page-silver-moose .type-specimen.display {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--b3);
}

.page-silver-moose .type-specimen.body-font {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.15);
}

.page-case-study .type-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page-case-study .type-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-case-study .type-samples {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-case-study .ts-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.page-case-study .ts-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

/* Phone Mockups */
.page-case-study .screens-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
}

.page-case-study .screen-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-case-study .screen-col.lifted {
  transform: translateY(-52px);
}

.page-case-study .screen-lbl {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-case-study .phone {
  width: 100%;
  max-width: 260px;
  background: #151515;
  border-radius: 44px;
  border: 7px solid #252525;
  overflow: hidden;
  position: relative;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  aspect-ratio: 9/19.5;
}

.page-case-study .phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-case-study .phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.page-case-study .mobile-screens {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Next Project */
.page-case-study .np-sec {
  padding: clamp(60px, 9vw, 120px) 0;
  border-top: 1px solid var(--border);
}

.page-case-study .np-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.page-case-study .np-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-decoration: none;
  color: var(--text);
}

.page-case-study .np-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.92;
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-case-study .np-link:hover .np-title {
  color: var(--accent);
}

.page-case-study .np-arrow {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.35s, border-color 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--muted);
}

.page-case-study .np-link:hover .np-arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(-45deg);
  color: #000;
}

/* Footer */
.page-case-study footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.page-case-study .foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-case-study .foot-copy {
  font-size: 13px;
  color: var(--muted);
}

.page-case-study .foot-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.page-case-study .foot-back:hover {
  color: var(--text);
}

.page-case-study .foot-back svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-case-study .foot-back:hover svg {
  transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 900px) {
  .page-case-study .overview-grid {
    grid-template-columns: 1fr;
  }

  .page-case-study .type-pair {
    grid-template-columns: 1fr;
  }

  .page-case-study .type-card:first-child {
    border-radius: 8px 8px 0 0;
  }

  .page-case-study .type-card:last-child {
    border-radius: 0 0 8px 8px;
  }

  .page-case-study .palette-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .page-case-study .palette-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-case-study .screens-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .page-case-study .screens-wrap .screen-col:last-child {
    display: none;
  }

  .page-case-study .screen-col.lifted {
    transform: none;
  }

  .page-case-study .np-arrow {
    width: 52px;
    height: 52px;
  }
}


/* ============================================================
   CASES INDEX PAGE
   ============================================================ */

/* Cases page: nav uses inline flex layout */
#nav {
  height: 72px;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Scroll reveal — cases page uses .vis instead of .on */
.rv.vis {
  opacity: 1;
  transform: none;
}

/* Hero */
.page-cases #hero {
  padding: clamp(120px, 14vw, 180px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: unset;
  display: block;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-cases .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.page-cases .hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(88px, 14vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 12px;
  flex-shrink: 0;
}

.hero-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
}

.page-cases .hero-sub {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  text-align: right;
}

.page-cases .hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-top: 40px;
}

.hero-services {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.hero-service {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-service::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--subtle);
}

/* Bento grid */
.bento-section {
  padding: clamp(32px, 5vw, 56px) 0 clamp(80px, 10vw, 120px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px 260px;
  gap: 10px;
}

.bc-hp {
  grid-column: 1/3;
  grid-row: 1/3;
}

.bc-dh {
  grid-column: 3/4;
  grid-row: 1/2;
}

.bc-sf {
  grid-column: 4/5;
  grid-row: 1/2;
}

.bc-4 {
  grid-column: 3/4;
  grid-row: 2/3;
}

.bc-5 {
  grid-column: 4/5;
  grid-row: 2/3;
}

.bc-6 {
  grid-column: 1/3;
  grid-row: 3/4;
}

.bc-7 {
  grid-column: 3/4;
  grid-row: 3/4;
}

.bc-cta {
  grid-column: 4/5;
  grid-row: 3/4;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transform-style: preserve-3d;
  perspective: 800px;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.35s;
  pointer-events: none;
  z-index: 3;
}

.bento-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(255, 91, 46, 0.35);
}

.bc-hp {
  background: #0a1520;
}

.bc-dh {
  background: #120300;
}

.bc-sf {
  background: #060d08;
}

.bc-4 {
  background: #0d0916;
}

.bc-5 {
  background: #0c0e12;
}

.bc-6 {
  background: #110900;
}

.bc-7 {
  background: #051110;
}

.bc-cta {
  background: var(--accent);
}

.bc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.bc-hp .bc-bg {
  background: linear-gradient(150deg, #0a1520 0%, #0d1b2a 40%, #1b3a5c 100%);
}

.bc-dh .bc-bg {
  background: linear-gradient(150deg, #120300 0%, #1a0800 50%, #2d1100 100%);
}

.bc-sf .bc-bg {
  background: linear-gradient(150deg, #060d08 0%, #0a1a0d 50%, #112a16 100%);
}

.bc-4 .bc-bg {
  background: linear-gradient(150deg, #0d0916 0%, #130e22 50%, #1e1540 100%);
}

.bc-5 .bc-bg {
  background: linear-gradient(150deg, #0c0e12 0%, #131720 50%, #1a2030 100%);
}

.bc-6 .bc-bg {
  background: linear-gradient(150deg, #110900 0%, #1c1000 50%, #2e1c00 100%);
}

.bc-7 .bc-bg {
  background: linear-gradient(150deg, #051110 0%, #0a1e1d 50%, #0f2d2b 100%);
}

.bento-card:hover .bc-bg {
  transform: scale(1.08);
}

.card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
}

.card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  transition: color 0.3s, border-color 0.3s;
}

.bento-card:hover .card-tag {
  color: var(--accent);
  border-color: rgba(255, 91, 46, 0.3);
}

.card-bottom {
  transform: translateY(5px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .card-bottom {
  transform: translateY(0);
}

.card-kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
  transition: color 0.3s;
}

.bento-card:hover .card-kicker {
  color: rgba(255, 91, 46, 0.7);
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.005em;
  transition: color 0.3s;
}

.bc-hp .card-title {
  font-size: clamp(36px, 4vw, 58px);
}

.bc-dh .card-title,
.bc-sf .card-title {
  font-size: clamp(28px, 3vw, 42px);
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s, gap 0.3s;
}

.card-arrow svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .card-arrow {
  color: var(--accent);
  gap: 12px;
}

.bento-card:hover .card-arrow svg {
  transform: translate(3px, -3px);
}

.bc-6 .card-body {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
}

.bc-6 .card-top {
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  left: clamp(20px, 3vw, 32px);
  right: clamp(20px, 3vw, 32px);
}

.bc-6 .card-bottom {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.bc-6 .card-stat {
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  transition: color 0.35s;
}

.bc-6:hover .card-stat {
  color: rgba(201, 120, 58, 0.2);
}

.card-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s;
}

.bc-hp .card-glow {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 58, 92, 0.8) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  opacity: 0.6;
}

.bc-dh .card-glow,
.bc-4 .card-glow,
.bc-5 .card-glow,
.bc-7 .card-glow {
  width: 240px;
  height: 240px;
  bottom: -60px;
  right: -60px;
  opacity: 0.7;
}

.bc-dh .card-glow {
  background: radial-gradient(circle, rgba(74, 84, 109, 0.9) 0%, transparent 70%);
}

.bc-4 .card-glow {
  background: radial-gradient(circle, rgba(30, 21, 64, 0.9) 0%, transparent 70%);
}

.bc-5 .card-glow {
  background: radial-gradient(circle, rgba(4, 171, 171, 0.5) 0%, transparent 70%);
}

.bc-7 .card-glow {
  background: radial-gradient(circle, rgba(15, 45, 43, 0.9) 0%, transparent 70%);
}

.bc-sf .card-glow {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(41, 20, 5, 0.9) 0%, transparent 70%);
  bottom: -60px;
  right: -60px;
  opacity: 0.7;
}

.bc-6 .card-glow {
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(46, 28, 0, 0.8) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  opacity: 0.7;
}

.bento-card:hover .card-glow {
  opacity: 1;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* CTA card */
.cta-body {
  height: 100%;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.cta-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.92;
  color: #000;
}

.cta-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta-btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.bc-cta:hover .cta-btn {
  gap: 14px;
}

.cta-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.bc-cta:hover .cta-circle {
  transform: rotate(-45deg);
}

.cta-circle svg {
  color: var(--accent);
}

/* Stats band */
.stats-band {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-cell {
  background: var(--bg);
  padding: 32px clamp(20px, 3vw, 40px);
}

.stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-val em {
  color: var(--accent);
  font-style: normal;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 340px 220px 220px 220px 220px;
    gap: 8px;
  }

  .bc-hp {
    grid-column: 1/3;
    grid-row: 1/2;
  }

  .bc-dh {
    grid-column: 1/2;
    grid-row: 2/3;
  }

  .bc-sf {
    grid-column: 2/3;
    grid-row: 2/3;
  }

  .bc-4 {
    grid-column: 1/2;
    grid-row: 3/4;
  }

  .bc-5 {
    grid-column: 2/3;
    grid-row: 3/4;
  }

  .bc-6 {
    grid-column: 1/3;
    grid-row: 4/5;
  }

  .bc-7 {
    grid-column: 1/2;
    grid-row: 5/6;
  }

  .bc-cta {
    grid-column: 2/3;
    grid-row: 5/6;
  }

  .bc-6 .card-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .bc-6 .card-bottom {
    flex-direction: column;
    gap: 0;
  }

  .bc-6 .card-top {
    position: static;
  }

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

@media (max-width: 640px) {
  .hero-right {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 8px;
  }

  .bc-hp,
  .bc-dh,
  .bc-sf,
  .bc-4,
  .bc-5,
  .bc-6,
  .bc-7,
  .bc-cta {
    grid-column: 1;
    grid-row: auto;
  }

  .bc-hp {
    min-height: 300px;
  }

  .bc-dh,
  .bc-sf,
  .bc-4,
  .bc-5,
  .bc-7,
  .bc-6 {
    min-height: 190px;
  }

  .bc-cta {
    min-height: 170px;
  }

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

/* ==========================================
   #ABOUT — Homepage
   ========================================== */

.page-home #about {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.page-home #about::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -260px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(255, 91, 46, 0.055) 0%, transparent 70%);
  pointer-events: none;
}

/* Top: heading + body */
.page-home .about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 72px;
}

.page-home .about-heading {
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  line-height: 0.93;
  letter-spacing: -0.025em;
  margin: 20px 0 0;
}

.page-home .about-right {
  padding-top: 52px;
}

.page-home .about-body {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 18px;
}

.page-home .about-body:last-child {
  margin-bottom: 0;
}

/* Mission / Vision / Commitment pillars */
.page-home .about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 72px;
}

.page-home .pillar {
  background: var(--surface);
  padding: 44px 40px;
  transition: background 0.3s ease;
}

.page-home .pillar:hover {
  background: var(--surface-2);
}

.page-home .pillar-accent {
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 22px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-home .pillar:hover .pillar-accent {
  width: 52px;
}

.page-home .pillar-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.page-home .pillar-text {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* Core Values */
.page-home .about-values-hd {
  margin-bottom: 36px;
}

.page-home .values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.page-home .value-item {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.3s ease;
}

.page-home .value-item:last-child {
  border-right: none;
}

.page-home .value-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-home .value-item:hover::after {
  transform: scaleX(1);
}

.page-home .value-item:hover {
  background: var(--surface);
}

.page-home .value-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(255, 91, 46, 0.15);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.page-home .value-name {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 12px;
}

.page-home .value-desc {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .page-home .about-top {
    gap: 56px;
  }
}

@media (max-width: 820px) {
  .page-home #about {
    padding: 88px 0 72px;
  }

  .page-home .about-top {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 56px;
  }

  .page-home .about-right {
    padding-top: 0;
  }

  .page-home .about-pillars {
    grid-template-columns: 1fr;
    margin-bottom: 56px;
  }

  .page-home .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .value-item:nth-child(2) {
    border-right: none;
  }

  .page-home .value-item:nth-child(1),
  .page-home .value-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 540px) {
  .page-home #about {
    padding: 72px 0 60px;
  }

  .page-home .values-grid {
    grid-template-columns: 1fr;
  }

  .page-home .value-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .page-home .value-item:last-child {
    border-bottom: none;
  }

  .page-home .pillar {
    padding: 36px 28px;
  }
}