/* ========================================
   SHARED STYLES — POAP Studio
   Single source of truth for CSS shared
   across landing and case study pages.
======================================== */

/* ========================================
   CSS VARIABLES & RESET
======================================== */
:root {
  --black: #171717;
  --white: #FCFCFC;
  /* Warm stone grays — subtle amber undertone for cohesion */
  --gray-100: #F5F4F2;
  --gray-200: #E8E6E3;
  --gray-300: #D5D2CE;
  --gray-400: #A8A29D;
  --gray-500: #9A948F;
  --gray-600: #87827C;
  --gray-700: #403D39;
  --gray-800: #262422;
  --gray-900: #1A1918;
  /* Warm accent — cream for highlights, glows, interactive moments */
  --cream: #F0EBE4;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  max-width: 100%;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

::selection {
  background: var(--cream);
  color: var(--black);
}

/* ========================================
   ACCESSIBILITY
======================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 24px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ========================================
   CUSTOM CURSOR DOT
======================================== */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease-out-expo);
}
.cursor-dot.hovering { transform: scale(5); }

/* ========================================
   GRAIN OVERLAY
======================================== */
.grain {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ========================================
   NAVIGATION — Floating Pill
======================================== */
nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(23, 23, 23, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  transition: top 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth);
}
nav:hover { background: rgba(23, 23, 23, 0.75); }

.nav-logo { display: flex; align-items: center; margin-right: 12px; }
.nav-logo-img { height: 25px; width: auto; }
.nav-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.1); margin: 0 8px; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-400);
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--black); background: var(--white);
  border: none; padding: 10px 24px;
  border-radius: 100px; cursor: pointer; margin-left: 8px;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
  text-decoration: none;
}
.nav-cta:hover { opacity: 0.88; transform: scale(1.03); }

/* Hamburger button — hidden on desktop, 44px touch target */
.nav-hamburger {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--gray-300);
  position: absolute;
  left: 12px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

.nav-hamburger span:nth-child(1) { top: 15px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 27px; }

.nav-hamburger.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile menu panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(23, 23, 23, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.nav-mobile.open {
  transform: translateY(0);
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 28px; font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--gray-400);
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-800);
  transition: color 0.3s ease;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--white); }

/* ========================================
   REVEAL ANIMATIONS
======================================== */
.reveal {
  opacity: 0; transform: translateY(48px);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
  will-change: transform, opacity;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.96);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
  will-change: transform, opacity;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-left {
  opacity: 0; transform: translateX(-60px);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
  will-change: transform, opacity;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(60px);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
  will-change: transform, opacity;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Clip-path text reveal */
.reveal-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-out-expo);
  will-change: clip-path;
}
.reveal-clip.visible { clip-path: inset(0 0 0% 0); }

/* Word-by-word stagger reveal */
.reveal-words span {
  display: inline-block;
  overflow: hidden;
}
.reveal-words span span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out-expo);
  will-change: transform;
}
.reveal-words.visible span span { transform: translateY(0); }

.reveal-line { display: inline-block; overflow: hidden; position: relative; }
.reveal-line span {
  display: inline-block; transform: translateY(115%);
  transition: transform 1s var(--ease-out-expo); will-change: transform;
}
.reveal-line.visible span { transform: translateY(0); }

/* Medal bounce on reveal */
.reveal-bounce {
  opacity: 0;
  transform: scale(0.5);
  transform-origin: center center;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-bounce.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.12s !important; }
.delay-2 { transition-delay: 0.24s !important; }
.delay-3 { transition-delay: 0.36s !important; }
.delay-4 { transition-delay: 0.48s !important; }
.delay-5 { transition-delay: 0.60s !important; }
.delay-6 { transition-delay: 0.72s !important; }
.delay-7 { transition-delay: 0.84s !important; }
.delay-8 { transition-delay: 0.96s !important; }

/* ========================================
   DELIGHT — Micro-interactions & moments
======================================== */

/* Stat glow pulse after counter completes */
@keyframes glowPulse {
  0% { text-shadow: none; }
  50% { text-shadow: 0 0 30px rgba(240,235,228,0.25); }
  100% { text-shadow: none; }
}
.stat-glow {
  animation: glowPulse 1.5s var(--ease-smooth) 1;
}

/* CTA button shine sweep */
@keyframes shineSweep {
  from { left: -100%; }
  to { left: 100%; }
}

/* ========================================
   DIVIDER
======================================== */
.divider {
  width: 0%; height: 1px;
  background: var(--gray-800);
  border: none; margin: 0 auto;
  transition: width 1.4s var(--ease-smooth);
}
.divider.visible { width: 100%; }

/* ========================================
   FOOTER — Dark default
======================================== */
footer {
  padding: 0 48px;
  border-top: 1px solid var(--gray-800);
  overflow-x: clip;
  overflow-y: visible;
}

.footer-info-row {
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-800);
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-info-item { display: flex; align-items: baseline; gap: 8px; }

.footer-info-label {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 400;
  color: var(--gray-400);
}

.footer-info-value {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  color: var(--gray-300);
  transition: color 0.3s ease;
}

a.footer-info-value:hover { color: var(--white); }

.footer-giant {
  font-family: var(--font-heading);
  font-size: 11.5vw; font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cream);
  opacity: 0.07;
  white-space: nowrap;
  text-align: center;
  margin: 0 -48px 0;
  pointer-events: none;
  overflow: hidden;
}

/* Light footer modifier (white background) */
.footer--light {
  padding: 0 64px;
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--gray-200);
}

.footer--light .footer-info-row {
  border-bottom: 1px solid var(--gray-200);
}

.footer--light .footer-info-label {
  color: var(--gray-600);
}

.footer--light .footer-info-value {
  color: var(--gray-700);
}

.footer--light a.footer-info-value:hover {
  color: var(--black);
}

.footer--light .footer-giant {
  color: var(--black);
  opacity: 0.05;
  margin: 0 -64px 0;
  padding-bottom: 0;
}

/* ========================================
   NAV ACTIVE STATE
======================================== */
.nav-links a.nav-active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

/* ========================================
   PAGE HERO — Compact hero for inner pages
======================================== */
.page-hero {
  padding: 180px 48px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.page-hero-sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 600px;
}

/* ========================================
   PAGE SECTION — Standard padding
======================================== */
.page-section {
  padding: 120px 48px;
}

.page-section--white {
  background: var(--white);
  color: var(--black);
}

/* ========================================
   SECTION HEADER — Reusable
======================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--gray-400);
  max-width: 400px;
  line-height: 1.7;
  text-align: right;
}

/* ========================================
   FAQ ACCORDION — Reusable
======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--gray-800);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-800);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--cream);
}

.faq-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
  margin-left: 24px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--gray-400);
  transition: transform 0.4s var(--ease-out-expo);
}

.faq-icon::before {
  width: 14px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-smooth), padding 0.5s var(--ease-smooth);
}

.faq-answer-inner {
  padding: 0 0 28px;
  font-size: 15px;
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 700px;
}

/* White section FAQ */
.page-section--white .faq-item {
  border-color: var(--gray-200);
}

.page-section--white .faq-question {
  color: var(--black);
}

.page-section--white .faq-question:hover {
  color: var(--gray-700);
}

.page-section--white .faq-icon::before,
.page-section--white .faq-icon::after {
  background: var(--gray-600);
}

.page-section--white .faq-answer-inner {
  color: var(--gray-600);
}

/* ========================================
   PROJECT GRID — Reusable from work & home
======================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  cursor: default;
  overflow: hidden;
  border-radius: 6px;
}

a.project-card {
  display: block;
  cursor: pointer;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--gray-900);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%) brightness(0.75);
  transition: transform 0.8s var(--ease-smooth), filter 0.8s var(--ease-smooth);
}

.project-card:hover .project-image img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1);
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 20%, transparent 50%);
  mask-image: linear-gradient(to top, black 0%, black 20%, transparent 50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.8s var(--ease-smooth);
}

.project-card:hover .project-image::before {
  opacity: 1;
  -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 60%);
  mask-image: linear-gradient(to top, black 0%, black 30%, transparent 60%);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.12) 45%, transparent 100%);
  transition: background 0.8s var(--ease-smooth);
  z-index: 2;
  pointer-events: none;
}

.project-card:hover .project-image::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.03) 100%);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
  transform: translateY(6px);
  transition: transform 0.6s var(--ease-smooth);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(252, 252, 252, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(252, 252, 252, 0.08);
  padding: 5px 12px;
  border-radius: 100px;
  align-self: flex-start;
  transition: background 0.5s var(--ease-smooth);
}

.project-card:hover .project-tag {
  background: rgba(252, 252, 252, 0.18);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s var(--ease-smooth), opacity 0.5s var(--ease-smooth) 0.1s;
}

.project-card:hover .project-desc {
  max-height: 60px;
  opacity: 1;
}

.project-cta-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
  height: 0;
  overflow: visible;
}

.project-cta-label svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out-expo);
}

.project-card:hover .project-cta-label {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-cta-label svg {
  transform: translateX(3px);
}

/* Featured project — full-width */
.project-featured {
  grid-column: 1 / -1;
}

.project-featured .project-image {
  aspect-ratio: 21 / 9;
}

.project-featured .project-title {
  font-size: 28px;
}

/* Compact project list */
.project-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.project-list-item {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-800);
  transition: background 0.3s ease;
}

.project-list-item:first-child {
  border-top: 1px solid var(--gray-800);
}

.project-list-item:hover {
  background: rgba(240,235,228,0.015);
}

.project-list-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.project-list-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: transform 0.4s var(--ease-out-expo);
}

.project-list-item:hover .project-list-title {
  transform: translateX(6px);
}

.project-list-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ========================================
   SERVICE CARDS — Reusable for services page
======================================== */
.service-card {
  position: relative;
  min-height: 420px;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px;
  cursor: default;
  border: 1px solid var(--gray-800);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.service-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 15%, rgba(23,23,23,0.6) 55%, rgba(23,23,23,0.4) 100%);
}

.service-card:hover .service-card-bg {
  opacity: 0.3;
  transform: scale(1.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--cream), var(--white));
  transition: width 0.8s var(--ease-out-expo);
  z-index: 1;
}

.service-card:hover::before {
  width: 100%;
}

.service-card-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gray-600);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  color: var(--white);
  transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover h3 {
  transform: translateX(8px);
}

.service-card p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-300);
  max-width: 420px;
  position: relative;
}

/* ========================================
   PILLAR GRID — 4-column with 1px gap
======================================== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.pillar-item {
  background: var(--black);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease-out-expo);
}

.pillar-item:hover {
  background: var(--gray-900);
}

.pillar-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--cream);
  transition: width 0.5s var(--ease-out-expo);
}

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

.pillar-num {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-600);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: block;
  transition: color 0.4s ease;
}

.pillar-item:hover .pillar-num {
  color: var(--gray-400);
}

.pillar-item h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: transform 0.4s var(--ease-out-expo);
}

.pillar-item:hover h3 {
  transform: translateX(6px);
}

.pillar-item p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-500);
  transition: color 0.4s ease;
}

.pillar-item:hover p {
  color: var(--gray-400);
}

/* ========================================
   PROCESS STEPS — Reusable
======================================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.process-step {
  position: relative;
  padding: 24px 0;
  cursor: default;
  transition: transform 0.5s var(--ease-out-expo);
}

.process-step:hover {
  transform: translateY(-6px);
}

.process-step-line {
  width: 100%;
  height: 1px;
  background: var(--gray-800);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.process-step-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

.process-step:hover .process-step-line::before {
  transform: scale(1.5);
  box-shadow: 0 0 16px rgba(240, 235, 228, 0.35);
}

.process-step-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: var(--white);
  transition: width 0.6s var(--ease-out-expo);
}

.process-step:hover .process-step-line::after {
  width: 100%;
}

.process-step h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  transition: transform 0.5s var(--ease-out-expo);
}

.process-step:hover h4 {
  transform: translateX(6px);
}

.process-step p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-400);
  opacity: 0.7;
  transition: opacity 0.5s var(--ease-out-expo);
}

.process-step:hover p {
  opacity: 1;
}

/* ========================================
   CTA SECTION — Reusable
======================================== */
.page-cta {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background: var(--white);
  color: var(--black);
}

.page-cta-inner {
  padding: 160px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.page-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 700px;
  color: var(--gray-600);
}

.page-cta h2 em {
  font-style: normal;
  font-weight: 600;
  color: var(--black);
}

.page-cta p {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-600);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.page-cta-button {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 22px 60px;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth);
  text-decoration: none;
  display: inline-block;
}

.page-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(23,23,23,0.15);
}

.page-cta :focus-visible {
  outline-color: var(--black);
}

/* ========================================
   STATS GRID — Reusable
======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.stat {
  background: var(--black);
  padding: 48px 40px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========================================
   BRANDS MARQUEE — Reusable
======================================== */
.brands-marquee {
  padding: 60px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.brands-marquee-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-300);
  text-align: center;
  margin-bottom: 32px;
}

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

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-half {
  display: flex;
  flex-shrink: 0;
}

.marquee-brand {
  position: relative;
  width: 200px;
  height: 100px;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 -0.5px;
}

.marquee-brand-logo {
  position: relative;
  z-index: 2;
  height: 40px;
  width: auto;
  max-width: 65%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.4s var(--ease-smooth);
}

.marquee-brand:hover .marquee-brand-logo {
  opacity: 0.8;
}

.marquee-brand-name {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  text-transform: uppercase;
}

/* ========================================
   CONTACT FORM — Reusable
======================================== */
.contact-section {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  background: var(--white);
  color: var(--black);
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 32px;
}

.contact-info p {
  font-size: 15px;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  min-width: 80px;
}

.contact-detail-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  transition: color 0.3s ease;
}

a.contact-detail-value:hover {
  color: var(--gray-600);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-self: center;
}

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

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  outline: none;
  border-radius: 10px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--gray-300);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gray-400);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: none;
  height: 140px;
}

.form-submit {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 18px 48px;
  border-radius: 100px;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-success {
  display: none;
  font-family: var(--font-body);
  text-align: center;
  padding: 80px 24px;
}

.form-success.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: successFadeIn 0.6s var(--ease-out-expo);
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 0.5s 0.3s var(--ease-out-expo) forwards;
}

.form-success-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 12px;
}

.form-success-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 380px;
}

@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.form-error {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 12px;
  display: none;
}

.form-error.visible {
  display: block;
}

.contact-section :focus-visible {
  outline-color: var(--black);
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-scale, .reveal-left, .reveal-right, .reveal-bounce {
    opacity: 1;
    transform: none;
  }
  .reveal-line span { transform: none; }
}

/* ========================================
   RESPONSIVE — Shared rules
======================================== */
@media (max-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-section { grid-template-columns: 1fr; gap: 64px; }
}

@media (max-width: 768px) {
  /* Nav: logo left, hamburger right, no CTA visible */
  nav {
    padding: 12px 16px;
    top: 12px;
    left: 16px; right: 16px;
    transform: none;
    width: auto;
    justify-content: space-between;
  }
  .nav-links { display: none; }
  .nav-divider { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: block; margin-left: auto; width: 44px; height: 44px; padding: 12px; }
  .nav-hamburger span { left: 12px; }
  .nav-hamburger span:nth-child(1) { top: 15px; }
  .nav-hamburger span:nth-child(2) { top: 21px; }
  .nav-hamburger span:nth-child(3) { top: 27px; }
  .nav-hamburger.active span:nth-child(1) { top: 21px; }
  .nav-hamburger.active span:nth-child(3) { top: 21px; }
  .nav-mobile { display: flex; }

  /* No horizontal scroll anywhere */
  body { overflow-x: hidden; }

  /* Hide custom cursor on touch devices */
  .cursor-dot { display: none; }

  /* Page hero responsive */
  .page-hero { padding: 120px 24px 40px; }
  .page-hero-title { font-size: clamp(32px, 8vw, 48px); }
  .page-section { padding: 60px 24px; }
  .section-header { flex-direction: column; gap: 24px; margin-bottom: 48px; }
  .section-subtitle { text-align: left; }

  /* Project grid responsive */
  .project-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-featured .project-image { aspect-ratio: 4 / 3; }
  .project-featured .project-title { font-size: 18px; }
  .project-featured { grid-column: auto; }
  .project-image { aspect-ratio: 4 / 3; }
  .project-image::before { opacity: 1; -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, transparent 70%); mask-image: linear-gradient(to top, black 0%, black 40%, transparent 70%); }
  .project-image::after { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.15) 70%, transparent 100%); }
  .project-image img { filter: grayscale(20%) brightness(0.85); }
  .project-overlay { transform: translateY(0); padding: 20px; gap: 8px; }
  .project-title { font-size: 18px; }
  .project-desc { max-height: 60px; opacity: 1; color: var(--white); font-size: 13px; }
  .project-cta-label { opacity: 1; transform: translateY(0); height: auto; margin-top: 4px; font-size: 11px; }
  .project-list-item { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; min-height: 44px; }
  .project-list-tag { order: -1; }
  .project-list-title { font-size: 18px; }
  .project-list-desc { font-size: 13px; }

  /* Pillar grid responsive */
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }

  /* Process responsive */
  .process-steps { grid-template-columns: 1fr; }

  /* Service cards responsive */
  .service-card { min-height: 0; height: auto; padding: 28px 24px 32px; }
  .service-card h3 { font-size: 24px; }
  .service-card h3 br { display: none; }
  .service-card p { font-size: 14px; }

  /* Stats responsive */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 24px; }
  .stat-number { font-size: 36px; }

  /* CTA responsive */
  .page-cta-inner { padding: 100px 24px; }

  /* Contact responsive */
  .contact-section { padding: 80px 24px; grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; gap: 28px; }
  .form-submit { width: 100%; align-self: stretch; }

  /* Marquee responsive */
  .marquee-brand { width: 160px; height: 80px; }
  .marquee-brand-logo { height: 28px; }
  .marquee-track { width: max-content; }
  .brands-marquee { overflow: hidden; max-width: 100vw; }

  /* Footer shared */
  footer { padding: 0 24px; }
  .footer-info-row { gap: 24px; flex-direction: column; align-items: center; }
  .footer-giant { font-size: 60px; margin: 0 -24px; }

  /* Light footer mobile override */
  .footer--light { padding: 0 24px; background: var(--white); }
  .footer--light .footer-giant { color: var(--black); }
}

@media (max-width: 480px) {
  .footer-giant { font-size: 40px; margin: 0 -16px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 24px 20px 28px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 13px; }
  footer { padding: 0 16px; overflow-x: hidden; }
  .footer--light { padding: 0 16px; }
  .footer--light .footer-giant { margin: 0 -16px; }
  .marquee-brand { width: 140px; height: 70px; }
}

@media (max-width: 375px) {
  .nav-mobile a { font-size: 24px; padding: 14px 0; }
  .footer-giant { font-size: 32px; margin: 0 -8px; }
  footer { padding: 0 8px; overflow-x: hidden; }
  .footer--light { padding: 0 8px; }
  .footer--light .footer-giant { margin: 0 -8px; }
  .marquee-brand { width: 120px; height: 60px; }
}
