/* ===== DECODE BRAND TOKENS ===== */
:root {
  --decode-navy: #0A2540;
  --decode-navy-deep: #132D4F;
  --decode-navy-bg: #0F172A;
  --decode-teal: #14D9C9;
  --decode-teal-bright: #00C4B4;
  --decode-teal-soft: #67E8D8;
  --decode-gray-dark: #2C3E50;
  --decode-gray-mid: #64748B;
  --decode-gray-light: #94A3B8;
  --decode-off-white: #F8FAFC;
  --decode-text: #E2E8F0;
  --decode-text-muted: #94A3B8;
  --decode-border: rgba(20, 217, 201, 0.18);
  --decode-border-subtle: rgba(148, 163, 184, 0.15);
  --decode-glow: rgba(20, 217, 201, 0.2);
  --decode-gradient-heading: linear-gradient(180deg, var(--decode-teal-bright) 0%, var(--decode-teal-soft) 50%, var(--decode-off-white) 100%);
  --decode-gradient-brand: linear-gradient(90deg, var(--decode-teal), var(--decode-navy));
  --decode-gradient-btn: linear-gradient(135deg, var(--decode-teal) 0%, var(--decode-teal-bright) 100%);
  --decode-radius: 10px;
  --decode-radius-lg: 12px;
}

/* ===== GLOBAL RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body,
#root {
  background: var(--decode-navy);
  font-family: 'Inter', 'Kanit', sans-serif;
}

body {
  color: var(--decode-text);
  overflow-x: clip;
}

.main-wrapper {
  background: var(--decode-navy);
  overflow-x: clip;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== GRADIENT HEADING ===== */
.hero-heading {
  background: var(--decode-gradient-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FADE-IN (initial hidden state) ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== CONTACT BUTTON ===== */
.contact-btn {
  display: inline-block;
  background: var(--decode-gradient-btn);
  box-shadow: 0 4px 20px var(--decode-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  outline: none;
  border: none;
  color: var(--decode-navy);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(20, 217, 201, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 1;
}

@media (min-width: 640px) {
  .contact-btn {
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .contact-btn {
    padding: 1rem 3rem;
    font-size: 1rem;
  }
}

/* ===== LIVE PROJECT BUTTON ===== */
.live-project-btn {
  display: inline-block;
  border: 2px solid var(--decode-teal);
  color: var(--decode-teal);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-project-btn:hover {
  background: rgba(20, 217, 201, 0.1);
  box-shadow: 0 0 20px rgba(20, 217, 201, 0.15);
}

@media (min-width: 640px) {
  .live-project-btn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  position: relative;
  z-index: 15;
}

.hero-content-upper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-shrink: 0;
  padding-top: clamp(0.75rem, 4vh, 2rem);
  margin-top: 30px;
  margin-bottom: 30px;
}

.hero-content-spacer {
  flex: 1 1 auto;
  min-height: 0.5rem;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 55%, rgba(20, 217, 201, 0.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(10, 37, 64, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--decode-navy) 0%, var(--decode-navy-deep) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Pixel grid inspired by Decode logo */
.hero-pixel-grid {
  position: absolute;
  top: 12%;
  left: 3%;
  width: 72px;
  height: 72px;
  opacity: 0.12;
  background-image:
    linear-gradient(var(--decode-teal) 2px, transparent 2px),
    linear-gradient(90deg, var(--decode-teal) 2px, transparent 2px);
  background-size: 12px 12px;
  mask-image: linear-gradient(135deg, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-pixel-grid {
    width: 96px;
    height: 96px;
    top: 10%;
    left: 5%;
    opacity: 0.15;
  }
}

.hero-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  padding: 1.5rem 1.5rem 0;
  position: relative;
  z-index: 20;
}

.hero-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.nav-link {
  color: var(--decode-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  color: var(--decode-teal);
  opacity: 1;
}

@media (min-width: 640px) {
  .hero-nav {
    padding: 2rem 2.5rem 0;
  }
}

@media (min-width: 768px) {
  .nav-link {
    font-size: 1.125rem;
  }

  .hero-nav {
    padding: 2rem 2.5rem 0;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
  }

  .hero-brand {
    margin-right: 2rem;
  }

  .hero-nav-links {
    flex: 1;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
  }
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1.4rem;
  }
}

.hero-heading-wrap {
  margin-top: 0.5rem;
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 15;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .hero-heading-wrap {
    margin-top: 0.5rem;
    padding: 0 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-heading-wrap {
    margin-top: -0.5rem;
  }
}

.hero-heading-wrap .hero-heading {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  font-size: 14vw;
}

/* Stacked dramatic headline */
.hero-heading--stacked {
  display: flex;
  flex-direction: column;
  white-space: normal;
  line-height: 0.9;
  gap: 0.05em;
}

.hero-line {
  display: block;
}

.hero-line--accent {
  background: var(--decode-gradient-heading);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2.75rem, 11vw, 9rem);
  letter-spacing: -0.04em;
  filter: drop-shadow(0 0 40px rgba(20, 217, 201, 0.2));
}

.hero-heading--stacked .hero-line:first-child {
  font-size: clamp(2rem, 7vw, 5.5rem);
  color: var(--decode-text);
  -webkit-text-fill-color: var(--decode-text);
  background: none;
  opacity: 0.55;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-line--sub {
  font-size: clamp(1.1rem, 3.5vw, 2.5rem);
  color: var(--decode-text);
  -webkit-text-fill-color: var(--decode-text);
  background: none;
  opacity: 0.35;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-top: 0.15em;
}

.hero-heading--stacked .hero-line:first-child.fade-in.is-visible {
  opacity: 0.55;
}

.hero-line--sub.fade-in.is-visible {
  opacity: 0.35;
}

@media (min-width: 768px) {
  .hero-line--accent {
    font-size: clamp(4rem, 10vw, 10rem);
  }

  .hero-heading--stacked .hero-line:first-child {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.hero-heading--multi {
  white-space: normal;
  line-height: 0.95;
  font-size: clamp(2rem, 7.5vw, 8rem);
  max-width: 95%;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .hero-heading--multi {
    font-size: clamp(2.5rem, 6.5vw, 7rem);
    max-width: 90%;
    padding: 0 2.5rem;
  }
}

@media (min-width: 768px) {
  .hero-heading--multi {
    font-size: clamp(3rem, 5.5vw, 6.5rem);
    max-width: 85%;
  }
}

@media (min-width: 1024px) {
  .hero-heading--multi {
    font-size: clamp(3.5rem, 5vw, 6rem);
  }
}

@media (min-width: 640px) {
  .hero-heading-wrap {
    margin-top: 1rem;
  }

  .hero-heading-wrap .hero-heading:not(.hero-heading--multi) {
    font-size: 15vw;
  }
}

@media (min-width: 768px) {
  .hero-heading-wrap {
    margin-top: -1.25rem;
  }

  .hero-heading-wrap .hero-heading:not(.hero-heading--multi) {
    font-size: 16vw;
  }
}

@media (min-width: 1024px) {
  .hero-heading-wrap .hero-heading:not(.hero-heading--multi) {
    font-size: 17.5vw;
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.5rem 0;
  position: relative;
  z-index: 15;
}

@media (min-width: 640px) {
  .hero-stats {
    padding: 1.25rem 2.5rem 0;
    gap: 1rem 1.25rem;
  }
}

.hero-stats span:not(.hero-stats-sep) {
  color: var(--decode-text);
  font-weight: 400;
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

.hero-stats-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--decode-teal);
  opacity: 0.3;
  flex-shrink: 0;
}

.hero-portrait {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.hero-portrait-inner {
  overflow: visible;
}

.hero-portrait .magnet {
  pointer-events: none;
  overflow: visible;
}

@media (min-width: 640px) {
  .hero-portrait {
    top: auto;
    bottom: -2%;
    transform: translateX(-50%);
  }
}

.hero-visual-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 217, 201, 0.22) 0%, rgba(10, 37, 64, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: hero-glow-pulse 5s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@media (min-width: 640px) {
  .hero-visual-glow {
    width: 420px;
    height: 420px;
  }
}

@media (min-width: 768px) {
  .hero-visual-glow {
    width: 520px;
    height: 520px;
    filter: blur(60px);
  }
}

.hero-portrait-img {
  width: 280px;
  pointer-events: none;
}

.hero-visual-3d {
  width: 240px;
  filter: drop-shadow(0 20px 60px rgba(20, 217, 201, 0.18));
}

@media (min-width: 640px) {
  .hero-portrait-img {
    width: 360px;
  }

  .hero-visual-3d {
    width: 300px;
  }
}

@media (min-width: 768px) {
  .hero-portrait-img {
    width: 440px;
  }

  .hero-visual-3d {
    width: 380px;
  }
}

@media (min-width: 1024px) {
  .hero-portrait-img {
    width: 520px;
  }

  .hero-visual-3d {
    width: 460px;
  }
}

.magnet {
  overflow: visible;
}

.magnet-layer {
  will-change: transform;
}

.magnet-layer.is-active {
  transition: none;
}

.hero-bottom-bar {
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1.5rem 1.75rem;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .hero-bottom-bar {
    padding-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .hero-bottom-bar {
    padding: 0 2.5rem 2.5rem;
  }
}

.hero-tagline {
  color: var(--decode-text);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
  font-size: clamp(0.625rem, 1.1vw, 0.95rem);
  max-width: 220px;
  opacity: 0.75;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.hero-ghost-btn {
  display: inline-block;
  border: 1px solid var(--decode-border);
  color: var(--decode-text);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.hero-ghost-btn:hover {
  background: rgba(20, 217, 201, 0.06);
  border-color: var(--decode-teal);
  color: var(--decode-teal);
}

@media (min-width: 640px) {
  .hero-ghost-btn {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .hero-ghost-btn {
    padding: 1rem 2.25rem;
    font-size: 1rem;
  }
}

@media (min-width: 640px) {
  .hero-tagline {
    max-width: 260px;
  }
}

@media (min-width: 768px) {
  .hero-tagline {
    max-width: 420px;
  }
}

/* Hero brand + logo (inline in nav) */
.hero-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.hero-logo {
  height: clamp(32px, 4.5vw, 44px);
  width: auto;
  display: block;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
}

.hero-brand-name {
  color: var(--decode-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
}

/* ===== MARQUEE SECTION ===== */
.marquee-section {
  background: var(--decode-navy-deep);
  padding-top: 6rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .marquee-section {
    padding-top: 8rem;
  }
}

@media (min-width: 768px) {
  .marquee-section {
    padding-top: 10rem;
  }
}

.marquee-row {
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.marquee-row:last-child {
  margin-bottom: 0;
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
}

.marquee-img {
  width: 420px;
  height: 270px;
  object-fit: cover;
  border-radius: 1rem;
  flex-shrink: 0;
}

.marquee-trust-text {
  color: var(--decode-text);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  opacity: 0.5;
  margin-bottom: 2.5rem;
  padding: 0 1.5rem;
}

.marquee-logo {
  width: 420px;
  height: 270px;
  flex-shrink: 0;
  border-radius: 1rem;
  border: 1px solid rgba(20, 217, 201, 0.12);
  background: rgba(20, 217, 201, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.marquee-logo span {
  color: var(--decode-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.7;
  text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem;
}

@media (min-width: 640px) {
  .about-section {
    padding: 5rem 2rem;
  }
}

@media (min-width: 768px) {
  .about-section {
    padding: 5rem 2.5rem;
  }
}

.about-deco {
  position: absolute;
  pointer-events: none;
}

.about-deco-moon {
  top: 4%;
  left: 1%;
  width: 120px;
}

.about-deco-object {
  bottom: 8%;
  left: 3%;
  width: 100px;
}

.about-deco-lego {
  top: 4%;
  right: 1%;
  width: 120px;
}

.about-deco-group {
  bottom: 8%;
  right: 3%;
  width: 130px;
}

@media (min-width: 640px) {
  .about-deco-moon {
    left: 2%;
    width: 160px;
  }

  .about-deco-object {
    left: 6%;
    width: 140px;
  }

  .about-deco-lego {
    right: 2%;
    width: 160px;
  }

  .about-deco-group {
    right: 6%;
    width: 170px;
  }
}

@media (min-width: 768px) {
  .about-deco-moon {
    left: 4%;
    width: 210px;
  }

  .about-deco-object {
    left: 10%;
    width: 180px;
  }

  .about-deco-lego {
    right: 4%;
    width: 210px;
  }

  .about-deco-group {
    right: 10%;
    width: 220px;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .about-content {
    gap: 5rem;
  }
}

@media (min-width: 768px) {
  .about-content {
    gap: 6rem;
  }
}

.about-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .about-text-block {
    gap: 3.5rem;
  }
}

@media (min-width: 768px) {
  .about-text-block {
    gap: 4rem;
  }
}

.about-heading {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  font-size: clamp(3rem, 12vw, 160px);
}

.animated-text {
  color: var(--decode-text);
  font-weight: 500;
  text-align: center;
  line-height: 1.625;
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.animated-text .char-wrap {
  display: inline-block;
  position: relative;
}

.animated-text .char-placeholder {
  visibility: hidden;
}

.animated-text .char {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.2;
}

/* ===== PROCESS SECTION ===== */
.process-section {
  background: var(--decode-navy-deep);
  padding: 5rem 1.25rem 6rem;
}

@media (min-width: 640px) {
  .process-section {
    padding: 6rem 2rem 8rem;
  }
}

@media (min-width: 768px) {
  .process-section {
    padding: 8rem 2.5rem 10rem;
  }
}

.process-heading {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
  margin-bottom: 1.5rem;
}

.process-intro {
  color: var(--decode-text);
  font-weight: 300;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.6;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .process-intro {
    margin-bottom: 5rem;
  }
}

.process-list {
  max-width: 64rem;
  margin: 0 auto;
}

.process-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(20, 217, 201, 0.12);
}

.process-item:first-child {
  border-top: 1px solid rgba(20, 217, 201, 0.12);
}

@media (min-width: 640px) {
  .process-item {
    padding: 2.5rem 0;
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .process-item {
    padding: 3rem 0;
  }
}

.process-number {
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 140px);
  color: var(--decode-teal);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.12;
}

.process-name {
  color: var(--decode-text);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.process-desc {
  color: var(--decode-text);
  font-weight: 300;
  line-height: 1.625;
  max-width: 42rem;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  opacity: 0.6;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--decode-off-white);
  border-radius: 40px 40px 0 0;
  padding: 5rem 1.25rem;
}

@media (min-width: 640px) {
  .services-section {
    border-radius: 50px 50px 0 0;
    padding: 6rem 2rem;
  }
}

@media (min-width: 768px) {
  .services-section {
    border-radius: 60px 60px 0 0;
    padding: 8rem 2.5rem;
  }
}

/* Display typography — Kanit for editorial headings */
.hero-heading--stacked,
.services-heading,
.process-heading,
.projects-heading,
.team-heading,
.contact-heading,
.about-heading {
  font-family: 'Kanit', sans-serif;
}

.services-heading {
  color: var(--decode-navy);
  background: linear-gradient(180deg, var(--decode-navy) 0%, var(--decode-navy-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
  margin-bottom: 1.5rem;
}

.services-intro {
  color: var(--decode-navy);
  font-weight: 300;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.6;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .services-heading {
    margin-bottom: 1.5rem;
  }

  .services-intro {
    margin-bottom: 5rem;
  }
}

@media (min-width: 768px) {
  .services-intro {
    margin-bottom: 7rem;
  }
}

.services-list {
  max-width: 64rem;
  margin: 0 auto;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(10, 37, 64, 0.12);
}

.service-item:first-child {
  border-top: 1px solid rgba(10, 37, 64, 0.12);
}

@media (min-width: 640px) {
  .service-item {
    padding: 2.5rem 0;
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .service-item {
    padding: 3rem 0;
  }
}

.service-number {
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 140px);
  color: var(--decode-navy);
  line-height: 1;
  flex-shrink: 0;
}

.service-name {
  color: var(--decode-navy);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.service-desc {
  color: var(--decode-navy);
  font-weight: 300;
  line-height: 1.625;
  max-width: 42rem;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  opacity: 0.6;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  background: var(--decode-navy-deep);
  border-radius: 40px 40px 0 0;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  padding: 5rem 1.25rem 6rem;
}

@media (min-width: 640px) {
  .projects-section {
    border-radius: 50px 50px 0 0;
    margin-top: -3rem;
    padding: 5rem 2rem 6rem;
  }
}

@media (min-width: 768px) {
  .projects-section {
    border-radius: 60px 60px 0 0;
    margin-top: -3.5rem;
    padding: 5rem 2.5rem 8rem;
  }
}

.projects-heading {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
  margin-bottom: 1rem;
}

.projects-intro {
  color: var(--decode-text);
  font-weight: 300;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.6;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .projects-intro {
    margin-bottom: 4rem;
  }
}

.projects-stack {
  max-width: 72rem;
  margin: 0 auto;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .projects-stack {
    padding-bottom: 8rem;
  }
}

.project-card-wrapper {
  position: sticky;
  top: 6rem;
  height: 85vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 2rem;
  z-index: 1;
}

.project-card-wrapper:nth-child(2) {
  z-index: 2;
}

.project-card-wrapper:nth-child(3) {
  z-index: 3;
}

@media (min-width: 768px) {
  .project-card-wrapper {
    top: 8rem;
  }
}

.project-card-wrapper:last-child {
  margin-bottom: 0;
}

.project-card {
  width: 100%;
  border-radius: 40px;
  border: 2px solid var(--decode-teal);
  background: var(--decode-navy-deep);
  padding: 1rem;
  transform-origin: top center;
  will-change: transform;
}

@media (min-width: 640px) {
  .project-card {
    border-radius: 50px;
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .project-card {
    border-radius: 60px;
    padding: 2rem;
  }
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .project-card-header {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
  }
}

.project-number {
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 140px);
  color: var(--decode-text);
  line-height: 1;
  flex-shrink: 0;
}

.project-meta {
  flex: 1;
  min-width: 0;
}

.project-category {
  display: block;
  color: var(--decode-text);
  font-weight: 300;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.project-name {
  color: var(--decode-text);
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
  text-transform: uppercase;
}

/* Case study details */
.project-case-study {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(20, 217, 201, 0.1);
  border-bottom: 1px solid rgba(20, 217, 201, 0.1);
}

@media (min-width: 640px) {
  .project-case-study {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 0;
  }
}

@media (min-width: 1024px) {
  .project-case-study {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.case-study-label {
  display: block;
  color: var(--decode-text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  opacity: 0.4;
  margin-bottom: 0.35rem;
}

.case-study-text {
  color: var(--decode-text);
  font-weight: 300;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  line-height: 1.5;
  opacity: 0.75;
}

.case-study-text--impact {
  opacity: 1;
  font-weight: 400;
}

.case-study-text--stack {
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.6;
}

.project-images {
  display: flex;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .project-images {
    gap: 1rem;
  }
}

.project-col-left {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .project-col-left {
    gap: 1rem;
  }
}

.project-col-right {
  width: 60%;
}

.project-img {
  width: 100%;
  object-fit: cover;
  border-radius: 40px;
}

@media (min-width: 640px) {
  .project-img {
    border-radius: 50px;
  }
}

@media (min-width: 768px) {
  .project-img {
    border-radius: 60px;
  }
}

.project-img-top {
  height: clamp(130px, 16vw, 230px);
}

.project-img-bottom {
  height: clamp(160px, 22vw, 340px);
}

.project-img-tall {
  height: 100%;
  min-height: clamp(300px, 40vw, 580px);
}

/* ===== TEAM SECTION ===== */
.team-section {
  background: var(--decode-navy-deep);
  border-radius: 40px 40px 0 0;
  margin-top: -2.5rem;
  position: relative;
  z-index: 30;
  isolation: isolate;
  padding: 5rem 1.25rem 6rem;
}

@media (min-width: 640px) {
  .team-section {
    border-radius: 50px 50px 0 0;
    margin-top: -3rem;
    padding: 6rem 2rem 8rem;
  }
}

@media (min-width: 768px) {
  .team-section {
    border-radius: 60px 60px 0 0;
    margin-top: -3.5rem;
    padding: 8rem 2.5rem 10rem;
  }
}

.team-heading {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  font-size: clamp(3rem, 12vw, 160px);
  margin-bottom: 1.5rem;
}

.team-intro {
  color: var(--decode-text);
  font-weight: 300;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.6;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .team-intro {
    margin-bottom: 5rem;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.team-card {
  border: 1px solid rgba(20, 217, 201, 0.12);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.team-card:hover {
  border-color: rgba(20, 217, 201, 0.25);
  background: rgba(20, 217, 201, 0.03);
}

@media (min-width: 768px) {
  .team-card {
    padding: 2.5rem 2rem;
    border-radius: 32px;
  }
}

.team-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 217, 201, 0.2), rgba(10, 37, 64, 0.6));
  border: 1px solid var(--decode-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.team-card-avatar span {
  color: var(--decode-text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.team-name {
  color: var(--decode-text);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 0.35rem;
}

.team-role {
  color: var(--decode-text);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.team-location {
  color: var(--decode-text);
  font-weight: 300;
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  opacity: 0.35;
  letter-spacing: 0.05em;
}

/* ===== CONTACT SECTION — VIDEO LANDING ===== */
.contact-section {
  background: var(--decode-off-white);
  padding: 0.75rem;
  position: relative;
  z-index: 31;
}

.contact-page {
  min-height: 100vh;
  background: var(--decode-off-white);
}

.contact-page .contact-section {
  padding: 0.75rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-page .contact-video-root {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-page .contact-video-card {
  flex: 1;
}

@media (min-width: 640px) {
  .contact-section {
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .contact-section {
    padding: 1.5rem;
  }
}

.contact-video-root {
  width: 100%;
}

.contact-video-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: calc(100vh - 24px);
}

@media (min-width: 640px) {
  .contact-video-card {
    border-radius: 1.5rem;
    min-height: calc(100vh - 32px);
  }
}

@media (min-width: 768px) {
  .contact-video-card {
    min-height: calc(100vh - 48px);
  }
}

@media (min-width: 1024px) {
  .contact-video-card {
    height: calc(100vh - 48px);
    min-height: calc(100vh - 48px);
  }
}

.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 37, 64, 0.35) 0%,
    rgba(10, 37, 64, 0.15) 40%,
    rgba(10, 37, 64, 0.55) 100%
  );
  pointer-events: none;
}

.contact-video-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 24px);
  padding: 1rem;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact-video-content {
    min-height: calc(100vh - 32px);
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .contact-video-content {
    min-height: calc(100vh - 48px);
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .contact-video-content {
    height: 100%;
    min-height: calc(100vh - 48px);
  }
}

/* Contact page header — same nav/brand pattern as index hero */
.contact-page-header {
  position: relative;
  z-index: 20;
}

.contact-page .hero-nav {
  padding: 0.75rem 0 0;
  gap: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .contact-page .hero-nav {
    padding-top: 1rem;
  }
}

@media (min-width: 768px) {
  .contact-page .hero-nav {
    padding-top: 1.25rem;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
  }

  .contact-page .hero-nav-links {
    flex: 1;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
  }
}

.contact-page .nav-link--active,
.case-study-page .nav-link--active {
  color: var(--decode-teal);
}

.contact-video-spacer {
  flex: 1;
  min-height: 2rem;
}

.contact-video-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-video-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.contact-video-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .contact-video-headline {
    max-width: 36rem;
    font-size: 3rem;
  }
}

.contact-headline-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}

/* Form card */
.contact-form-card {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .contact-form-card {
    width: min(480px, 45%);
  }
}

.contact-form-panel,
.contact-form-success {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(10, 37, 64, 0.25);
  overflow: hidden;
  padding: 1rem;
}

@media (min-width: 640px) {
  .contact-form-panel,
  .contact-form-success {
    border-radius: 1.5rem;
    padding: 1.5rem;
  }
}

.contact-form-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--decode-navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-email-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--decode-off-white);
  border-radius: 1rem;
  padding: 0.625rem 1rem;
  margin-bottom: 1rem;
}

.contact-email-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--decode-gray-mid);
  margin-bottom: 0.15rem;
}

.contact-email-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--decode-teal-bright);
  transition: opacity 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-email-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.contact-socials {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  flex-shrink: 0;
}

.social-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.social-btn:hover {
  opacity: 0.8;
}

.social-btn--twitter {
  background: #f3f4f6;
  color: var(--decode-navy);
}

.social-btn--dribbble {
  background: #fce7f3;
  color: #ec4899;
}

.social-btn--instagram {
  background: #ffedd5;
  color: #fb923c;
}

.social-btn--linkedin {
  background: #dbeafe;
  color: #2563eb;
}

.contact-form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-form-divider-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.contact-form-divider-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--decode-gray-light);
}

.contact-video-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--decode-navy);
}

.contact-form-row-inline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .contact-form-row-inline {
    flex-direction: row;
  }
}

.contact-input {
  flex: 1;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: transparent;
  color: var(--decode-navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.contact-input::placeholder {
  color: var(--decode-gray-light);
}

.contact-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--decode-navy);
}

.contact-textarea {
  resize: none;
}

.contact-tags-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.contact-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--decode-gray-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-tag:hover {
  border-color: var(--decode-gray-mid);
}

.contact-tag.is-active {
  background: var(--decode-off-white);
  color: var(--decode-navy);
  border-color: var(--decode-navy);
}

.contact-submit-btn {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  background: var(--decode-navy);
  color: #fff;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.contact-submit-btn:hover:not(:disabled) {
  background: var(--decode-navy-deep);
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.contact-form-success[hidden],
.contact-form-panel[hidden] {
  display: none !important;
}

.contact-success-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(20, 217, 201, 0.12);
  color: var(--decode-teal-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-success-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--decode-navy);
}

.contact-success-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--decode-gray-mid);
}

.contact-form-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1rem;
}

/* Legacy contact classes removed — video contact above */

/* ===== FOOTER — PREMIUM STRUCTURAL ===== */
.site-footer {
  background: var(--decode-navy);
  border-top: 1px solid var(--decode-border);
  box-shadow: 0 -1px 0 rgba(20, 217, 201, 0.06);
  position: relative;
  z-index: 40;
}

.footer-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

@media (min-width: 640px) {
  .footer-container {
    padding: 5rem 2.5rem 2.5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2.5rem;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.15fr;
    gap: 2rem 2rem;
  }
}

.footer-col--brand {
  max-width: 22rem;
}

.footer-brand-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1.25rem;
}

.footer-logo {
  height: 34px;
  width: auto;
  display: block;
}

.footer-desc {
  color: var(--decode-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.footer-subtext {
  color: var(--decode-text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.footer-heading {
  color: var(--decode-teal);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--decode-off-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
  color: var(--decode-teal);
}

.footer-links--contact span {
  color: var(--decode-off-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.9;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--decode-border-subtle);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 3.5rem;
    padding-top: 1.75rem;
  }
}

.footer-copy,
.footer-legal {
  color: var(--decode-text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.contact-page .site-footer {
  background: var(--decode-navy);
  margin-top: 0;
}

/* ===== MOBILE UX ===== */
@media (max-width: 639px) {
  .hero-section {
    min-height: 100svh;
    height: 100svh;
    max-height: 100svh;
    padding-bottom: 0;
  }

  .hero-nav {
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem 1rem;
    padding: max(1rem, env(safe-area-inset-top)) 1.5rem 0;
  }

  .hero-nav-links {
    gap: 0.5rem 0.75rem;
  }

  .nav-link {
    font-size: 0.7rem;
    letter-spacing: 0.03em;
  }

  .hero-content {
    flex: 1;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    min-height: 0;
  }

  .hero-content-upper {
    gap: 1rem;
    padding-top: clamp(1.25rem, 7vh, 3rem);
    flex-shrink: 0;
  }

  .hero-content-spacer {
    flex: 1 1 auto;
    min-height: 0.75rem;
  }

  .hero-heading-wrap {
    margin-top: 0;
    padding-top: 0;
  }

  .hero-line--accent {
    font-size: clamp(1.85rem, 10vw, 2.5rem);
  }

  .hero-heading--stacked .hero-line:first-child {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .hero-line--sub {
    font-size: clamp(0.85rem, 3vw, 1.1rem);
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0;
  }

  .hero-stats-sep {
    display: none;
  }

  .hero-portrait {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -48%);
    opacity: 0.42;
    z-index: 5;
  }

  .hero-visual-3d {
    width: 160px !important;
  }

  .hero-visual-glow {
    width: 220px;
    height: 220px;
  }

  .hero-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    margin-top: 0;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 25;
    flex-shrink: 0;
  }

  .hero-tagline {
    max-width: 16rem;
    font-size: clamp(0.58rem, 2.6vw, 0.68rem);
    line-height: 1.45;
    order: 1;
  }

  .hero-cta-group {
    width: 100%;
    align-items: stretch;
    order: 2;
  }

  .hero-cta-group .contact-btn,
  .hero-cta-group .hero-ghost-btn {
    width: 100%;
    text-align: center;
  }

  .about-deco {
    opacity: 0.35;
    transform: scale(0.7);
  }

  .about-deco-moon,
  .about-deco-lego {
    width: 80px;
  }

  .about-deco-object,
  .about-deco-group {
    width: 70px;
  }

  .marquee-img {
    width: 280px;
    height: 180px;
  }

  .project-card-wrapper {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    margin-bottom: 2.5rem;
    z-index: auto;
  }

  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .live-project-btn {
    width: 100%;
    text-align: center;
  }

  .project-img-tall {
    min-height: 220px;
  }

  .projects-stack {
    padding-bottom: 2rem;
  }

  .team-section {
    margin-top: 0;
    z-index: 30;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom {
    margin-top: 2.5rem;
  }

  .contact-video-card,
  .contact-video-content {
    min-height: auto;
  }

  .contact-video-spacer {
    min-height: 1rem;
  }

  .contact-video-headline {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .contact-email-row {
    flex-wrap: wrap;
  }

  .contact-socials {
    flex: 1 1 100%;
    justify-content: flex-start;
    padding-top: 0.25rem;
  }

  .contact-page .hero-nav {
    padding-top: 0.25rem;
  }
}

@media (max-width: 767px) {
  .project-card-wrapper {
    position: relative;
    top: auto;
    height: auto;
  }
}

/* ===== CASE STUDY PAGE ===== */
.case-study-page {
  background: var(--decode-navy);
}

.case-study-header {
  position: relative;
  z-index: 20;
}

.case-study-header .hero-nav {
  padding: 1.5rem 1.5rem 0;
}

@media (min-width: 640px) {
  .case-study-header .hero-nav {
    padding: 2rem 2.5rem 0;
  }
}

.case-study-not-found,
.case-study-hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

@media (min-width: 640px) {
  .case-study-not-found,
  .case-study-hero {
    padding: 2.5rem 2.5rem 4rem;
  }
}

.case-study-back {
  display: inline-block;
  color: var(--decode-text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.case-study-back:hover {
  color: var(--decode-teal);
}

.case-study-hero-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.case-study-number {
  color: var(--decode-teal);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.case-study-category {
  color: var(--decode-text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.case-study-title {
  font-size: clamp(2.25rem, 8vw, 5rem);
  line-height: 0.95;
  margin-bottom: 1.25rem;
  max-width: 16ch;
}

.case-study-lead {
  color: var(--decode-text);
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  opacity: 0.7;
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.case-study-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--decode-border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--decode-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.case-study-pill--teal {
  border-color: var(--decode-border);
  color: var(--decode-teal-soft);
}

.case-study-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.case-study-details {
  background: var(--decode-navy-deep);
  border-radius: 40px 40px 0 0;
  margin-top: -1rem;
  padding: 3.5rem 1.5rem 4rem;
  position: relative;
  z-index: 5;
}

@media (min-width: 640px) {
  .case-study-details {
    border-radius: 50px 50px 0 0;
    padding: 4rem 2.5rem 5rem;
  }
}

.case-study-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

.case-study-block {
  padding: 1.5rem;
  border-radius: var(--decode-radius-lg);
  border: 1px solid var(--decode-border-subtle);
  background: rgba(10, 37, 64, 0.45);
}

.case-study-label {
  display: block;
  color: var(--decode-teal);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.case-study-text {
  color: var(--decode-text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.88;
}

.case-study-text--impact {
  color: var(--decode-teal-soft);
  opacity: 1;
}

.case-study-text--stack {
  font-family: 'Kanit', sans-serif;
  letter-spacing: 0.02em;
}

.case-study-preview {
  background: var(--decode-navy-deep);
  padding: 0 1.5rem 5rem;
}

@media (min-width: 640px) {
  .case-study-preview {
    padding: 0 2.5rem 6rem;
  }
}

.case-study-preview-head {
  max-width: 72rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.case-study-preview-eyebrow {
  color: var(--decode-teal);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
}

.case-study-preview-title {
  color: var(--decode-off-white);
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.case-study-preview-desc {
  color: var(--decode-text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto;
}

.case-iframe-shell {
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--decode-border);
  box-shadow:
    0 0 0 1px rgba(20, 217, 201, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(20, 217, 201, 0.08);
  background: #0b1220;
}

@media (min-width: 768px) {
  .case-iframe-shell {
    border-radius: 1.5rem;
  }
}

.case-iframe-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid var(--decode-border-subtle);
}

.case-iframe-dots {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.case-iframe-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.case-iframe-dots span:first-child {
  background: #ff5f57;
}

.case-iframe-dots span:nth-child(2) {
  background: #febc2e;
}

.case-iframe-dots span:nth-child(3) {
  background: #28c840;
}

.case-iframe-url {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--decode-text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-iframe-open {
  flex-shrink: 0;
  color: var(--decode-teal);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.case-iframe-open:hover {
  opacity: 0.75;
}

.case-iframe-viewport {
  position: relative;
  width: 100%;
  height: min(78vh, 920px);
  min-height: 420px;
  background: var(--decode-off-white);
}

.case-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 639px) {
  .case-study-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .case-study-hero-actions .contact-btn,
  .case-study-hero-actions .hero-ghost-btn {
    width: 100%;
    text-align: center;
  }

  .case-iframe-viewport {
    height: 62vh;
    min-height: 360px;
  }

  .case-iframe-chrome {
    flex-wrap: wrap;
  }

  .case-iframe-url {
    order: 3;
    flex: 1 1 100%;
  }
}
