:root {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent-start: #FF5F1F;
  --accent-mid: #D32F2F;
  --accent-end: #4A0404;
  --accent-gradient: linear-gradient(90deg, var(--accent-start) 0%, var(--accent-mid) 50%, var(--accent-end) 100%);
  --font-main: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow-x: hidden;
  scroll-behavior: auto;
}

/* --- PRELOADER --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.preloader-ball-container {
  position: relative;
  width: 100px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
}

.preloader-ball {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate cubic-bezier(0.6, 0.08, 0.8, 0.4);
  z-index: 2;
  box-shadow: 0 0 30px rgba(255, 95, 31, 0.3);
}

.preloader-shadow {
  position: absolute;
  bottom: 10px;
  width: 40px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(4px);
  animation: shadow 0.6s infinite alternate cubic-bezier(0.6, 0.08, 0.8, 0.4);
}

.preloader-text {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: textReveal 1s forwards 0.5s;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes bounce {
  0% {
    transform: translateY(-150px) scaleX(1) scaleY(1);
  }

  90% {
    transform: translateY(0) scaleX(1) scaleY(1);
  }

  100% {
    transform: translateY(5px) scaleX(1.3) scaleY(0.7);
  }
}

@keyframes shadow {
  0% {
    transform: scale(0.5);
    opacity: 0.1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

@keyframes textReveal {
  to {
    opacity: 1;
  }
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease-out;
}

.preloader.expand-reveal .preloader-ball {
  animation: expandOut 1s forwards cubic-bezier(0.7, 0, 0.3, 1);
}

@keyframes expandOut {
  to {
    transform: scale(100);
    opacity: 0;
  }
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-hidden {
  transform: translateY(-100%);
}

.nav-logo {
  text-decoration: none;
}

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

.footer-logo-img {
  height: 80px;
  width: auto;
  opacity: 0.1;
  filter: grayscale(1) brightness(2);
}

.burger {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1100;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  transition: 0.3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* --- MENU OVERLAY --- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  clip-path: inset(0 0 100% 100%);
  transition: clip-path 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.menu-overlay.open {
  clip-path: inset(0 0 0 0);
}

.menu-nav {
  list-style: none;
  text-align: center;
}

.menu-nav li {
  margin: 1.5rem 0;
}

.menu-link {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.menu-link b {
  color: var(--accent-start);
}

.menu-link:hover {
  opacity: 0.5;
}

.menu-cta {
  margin-top: 4rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-close {
  position: absolute;
  top: 2rem;
  right: 4rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
}

/* --- HERO --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 4rem;
  position: relative;
}

.hero-content-wrap {
  width: 100%;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.hero-wordmark {
  font-size: 15vw;
  font-weight: 800;
  line-height: 0.8;
  display: flex;
  flex-direction: column;
}

.hero-prefix {
  opacity: 0.2;
}

.hero-word-slot {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s, transform 0.3s;
}

.hero-word-slot.exit {
  opacity: 0;
  transform: translateY(-20px);
}

.hero-word-slot.enter {
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll-hint {
  margin-top: 4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: white;
}

/* --- STATEMENT --- */
.statement-section {
  height: 100vh;
  position: relative;
  background: #000;
}

.statement-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh 4rem 4vh;
  overflow: visible;
}

.statement-text {
  font-size: clamp(1.8rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  max-width: 1200px;
  letter-spacing: -0.02em;
}

.word {
  color: #fff;
  opacity: 0.1;
  /* Dimmed by default */
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}

.word.active {
  opacity: 1;
}

.statement-line--slash b {
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.1s linear;
}

.statement-line b {
  color: var(--accent-start);
}

.clients-inner {
  position: absolute;
  bottom: 10vh;
  left: 4rem;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateY(20px);
}

.clients-logos-row {
  display: flex;
  gap: 4rem;
}

.client-slot {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.5s, transform 0.5s;
}

/* --- SERVICES --- */
.advisory {
  background: #000;
  padding: 0;
}

.services-stack {
  display: flex;
  flex-direction: column;
}

.service-card {
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 4rem;
  position: relative;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-inner {
  max-width: 1200px;
  width: 100%;
}

.service-title-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 1rem;
}

.service-ghost-num {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #FF5F1F 0%, #4A0404 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.4;
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.service-title {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.04em;
  margin: 0;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), color 0.4s ease;
}

.service-slash {
  color: #FF5F1F;
  transition: filter 0.4s ease;
}

.service-desc {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.5;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.4);
  /* Dimmed by default */
  margin-left: clamp(4rem, 15vw, 14rem);
  transition: color 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-title {
  transform: translateX(1.5rem);
  color: #fff;
}

.service-card:hover .service-slash {
  filter: drop-shadow(0 0 10px var(--accent-start));
}

.service-card:hover .service-ghost-num {
  opacity: 0.8;
  filter: drop-shadow(0 0 20px var(--accent-start));
}

.service-card:hover .service-desc {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(1rem);
}

/* --- PORTFOLIO --- */
#portfolio {
  background: #000;
  margin: 0;
  padding: 0 0 5vh;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.portfolio-header {
  padding: 6vh 4rem 4vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.portfolio-counter {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s ease;
}

#portfolio:hover .portfolio-counter {
  opacity: 0.9;
}

.portfolio-hint {
  padding: 1.5rem 4rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.25;
}

/* Slider container */
.portfolio-slider-wrap {
  overflow: hidden;
  width: 100%;
}

/* Animated track — JS lerp RAF writes transform every frame */
.portfolio-slider-track {
  display: flex;
  gap: 2rem;
  padding: 0 0 0 4rem;
  will-change: transform;
}

/* Arrow navigation */
.portfolio-nav {
  display: flex;
  gap: 1rem;
  padding: 2rem 4rem 0;
}

.portfolio-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, opacity 0.3s ease,
              transform 0.2s ease;
}

.portfolio-arrow:hover:not(:disabled) {
  background: rgba(255, 95, 31, 0.12);
  border-color: var(--accent-start);
  box-shadow: 0 0 20px rgba(255, 95, 31, 0.2);
  transform: scale(1.08);
}

.portfolio-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  transform: none;
}

.project-card {
  flex-shrink: 0;
  width: clamp(280px, 36vw, 480px);
  color: white;
  transform: scale(0.95);
  opacity: 0.3;
  transition: transform 0.4s ease-out,
              opacity 0.4s ease-out;
}

.project-card.in-view {
  transform: scale(1);
  opacity: 1;
}

/* Hover: lift + glow — only when cursor is directly over the card image */
.project-card.in-view:has(.project-thumb:hover) {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 24px 60px rgba(255, 95, 31, 0.15),
              0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-out,
              box-shadow 0.3s ease-out;
}

@media (max-width: 900px) {
  .project-card {
    width: 72vw;
  }
}

@media (max-width: 600px) {
  .project-card {
    width: 82vw;
  }
}

.project-thumb {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  margin-bottom: 1.5rem;
  filter: grayscale(0.4);
  overflow: hidden;
  transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

/* Zoom the background image — only when cursor is over the thumb */
.project-card.in-view:has(.project-thumb:hover) .project-thumb {
  transform: scale(1.05);
  filter: grayscale(0);
}

.project-name {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.project-name b {
  color: var(--accent-start);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .project-card {
    min-width: 75vw;
  }
}


/* --- ABOUT --- */
.about-section {
  padding: 8rem 4rem 4rem 4rem;
  position: relative;
  background: #000;
  margin: 0;
}

.about-title {
  font-size: 5vw;
  margin-bottom: 4rem;
}

.about-title b {
  color: var(--accent-start);
}

.about-intro {
  font-size: 2rem;
  line-height: 1.4;
  max-width: 1000px;
  margin-bottom: 6rem;
}

.about-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-link {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: padding 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s ease;
}

/* Gradient sweep background on hover */
.about-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 95, 31, 0.06) 0%,
      rgba(211, 47, 47, 0.04) 50%,
      transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}

.about-link:hover::before {
  transform: translateX(0);
}

.about-link:hover {
  padding-left: 1.5rem;
  border-color: rgba(255, 95, 31, 0.3);
}

.about-link-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
  width: 100px;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.about-link:hover .about-link-tag {
  opacity: 1;
  color: var(--accent-start);
}

.about-link-label {
  font-size: 3vw;
  font-weight: 600;
  flex: 1;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.4s ease;
}

.about-link:hover .about-link-label {
  transform: translateX(1rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-link-arrow {
  font-size: 2rem;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.4s ease,
    filter 0.4s ease;
  opacity: 0.5;
}

.about-link:hover .about-link-arrow {
  transform: translate(6px, -6px) scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--accent-start));
}


/* --- FOOTER --- */
.site-footer {
  background: #050505;
  padding: 0;
  overflow: hidden;
  position: relative;
}

/* Content wrapper */
.footer-content {
  padding: 5rem 4rem 3rem;
}

/* TOP ROW: social left | email + CTA right */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.footer-left-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-side-link {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer-side-link:hover {
  opacity: 1;
}

.footer-right-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
}

.footer-email-link {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: white;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.footer-email-link:hover {
  color: var(--accent-start);
}

.footer-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
  text-decoration: none;
  opacity: 0.5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  transition: opacity 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.footer-start-btn span {
  transition: transform 0.3s ease;
  display: inline-block;
}

.footer-start-btn:hover {
  opacity: 1;
  border-color: var(--accent-start);
  background: rgba(255, 95, 31, 0.08);
}

.footer-start-btn:hover span {
  transform: translate(4px, -4px);
}

/* DIVIDER */
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 2rem;
}

/* META BAR: nav + copyright */
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-meta-nav {
  display: flex;
  gap: 2rem;
}

.footer-meta-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer-meta-nav a:hover {
  opacity: 1;
}

.footer-meta-copy {
  display: flex;
  gap: 2rem;
  font-size: 0.75rem;
  opacity: 0.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* HUGE PARALLAX BRAND WORDMARK */
.footer-brand-wrap {
  overflow: hidden;
  padding: 1rem 0 0;
  line-height: 0.85;
}

.footer-brand-text {
  font-size: clamp(4.5rem, 16vw, 20rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.82;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 95, 31, 0.18);
  user-select: none;
  will-change: transform;
  display: block;
  padding: 0 2rem 2rem;
  transition: -webkit-text-stroke 0.6s ease;
}

.footer-brand-text:hover {
  -webkit-text-stroke: 1.5px rgba(255, 95, 31, 0.45);
}

/* --- FOOTER SCROLL-REVEAL --- */
/* Elements start invisible and slide up; JS adds .is-visible */
.footer-top,
.footer-divider,
.footer-meta {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-divider {
  transition-delay: 0.15s;
}

.footer-meta {
  transition-delay: 0.3s;
}

.footer-top.is-visible,
.footer-divider.is-visible,
.footer-meta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-brand-wrap {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1) 0.45s,
    transform 1s cubic-bezier(0.23, 1, 0.32, 1) 0.45s;
}

.footer-brand-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}



/* --- BACKGROUND GLOW --- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 95, 31, 0.08) 0%, rgba(211, 47, 47, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  /* Keep it behind text but above some backgrounds */
  transform: translate(-50%, -50%);
  transition: opacity 1s;
}

/* ===========================================
   BASE: prevent horizontal overflow globally
   =========================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* =============================================
   RESPONSIVE — SMALL LAPTOP  (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .hero {
    height: 100vh;
    overflow: visible;
  }

  .hero-wordmark {
    font-size: 16vw;
  }

  /* Statement text scales down on small laptops */
  .statement-text {
    font-size: clamp(2rem, 5.5vw, 5rem);
  }

  .statement-sticky {
    padding-top: 10vh;
    overflow: visible; /* never clip text */
  }

  .service-card {
    padding: 2rem 3rem;
  }

  .service-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
  }

  .portfolio-header {
    padding: 5vh 3rem 3vh;
  }

  .portfolio-nav {
    padding: 1.5rem 3rem 0;
  }

  .portfolio-slider-track {
    padding-left: 3rem;
  }

  .about-section {
    padding: 6rem 3rem 3rem;
  }

  .footer-content {
    padding: 3.5rem 3rem 2rem;
  }

  .footer-brand-text {
    font-size: clamp(4rem, 13vw, 18rem);
  }
}

/* =============================================
   SHORT SCREENS — Laptop 1024×600 (landscape)
   Targets wide-but-short viewports only
   ============================================= */
@media (max-width: 1024px) and (max-height: 700px) {
  /* Hero fits in short viewport */
  .hero {
    height: 100vh;
    min-height: 0;
    padding: 2rem 3rem;
  }

  .hero-wordmark {
    font-size: 12vw;
    line-height: 0.85;
  }

  .hero-scroll-hint {
    margin-top: 1rem;
  }

  /* Statement aggressively smaller on short screens */
  .statement-text {
    font-size: clamp(1.4rem, 4vw, 3rem);
    line-height: 1.1;
  }

  .statement-sticky {
    padding: 6vh 3rem 4vh;
    min-height: 100vh;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Services tighter */
  .service-card {
    padding: 1.25rem 3rem;
  }
}

/* =============================================
   RESPONSIVE — TABLET  (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* Nav */
  nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  /* Menu */
  .menu-link {
    font-size: clamp(2rem, 9vw, 4rem);
  }

  .menu-close {
    top: 1.5rem;
    right: 1.5rem;
    min-width: 44px;
    min-height: 44px;
  }

  /* Hero */
  .hero {
    padding: 1.5rem;
  }

  .hero-wordmark {
    font-size: 18vw;
  }

  .hero-eyebrow {
    font-size: 0.8rem;
  }

  .hero-subtext {
    font-size: 1rem;
    max-width: 90%;
  }

  .hero-cta {
    font-size: 0.8rem;
    padding: 0.9rem 1.6rem;
    min-height: 44px;
  }

  /* Statement */
  .statement-sticky {
    padding: 10vh 2rem 0;
  }

  .statement-text {
    font-size: clamp(1.8rem, 6vw, 4.5rem);
  }

  /* Services */
  .service-card {
    padding: 1.75rem 2rem;
    align-items: flex-start;
  }

  .service-title {
    font-size: clamp(2rem, 8vw, 4rem);
  }

  .service-desc {
    margin-left: clamp(2rem, 8vw, 6rem);
    font-size: 1rem;
  }

  /* Portfolio */
  .portfolio-header {
    padding: 4vh 1.5rem 2.5vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
  }

  .portfolio-slider-track {
    padding-left: 1.5rem;
  }

  .project-card {
    width: 72vw;
  }

  .portfolio-nav {
    padding: 1.5rem 1.5rem 0;
  }

  .portfolio-arrow {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
  }

  .portfolio-hint {
    padding: 1rem 1.5rem 0;
    font-size: 0.7rem;
  }

  /* About */
  .about-section {
    padding: 4rem 2rem 2.5rem;
  }

  .about-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 2rem;
  }

  .about-intro {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }

  .about-link-label {
    font-size: clamp(1.4rem, 5vw, 3rem);
  }

  /* Footer — 2-column tablet layout */
  .footer-content {
    padding: 3rem 2rem 1.5rem;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
  }

  .footer-right-links {
    align-items: flex-end;
  }

  .footer-email-link {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
  }

  .footer-meta {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-brand-text {
    font-size: clamp(3rem, 12vw, 14rem);
  }
}

/* =============================================
   RESPONSIVE — MOBILE  (≤ 600px)
   ============================================= */
@media (max-width: 600px) {

  /* Nav */
  nav {
    padding: 1rem 1.25rem;
  }

  .logo-img {
    height: 28px;
  }

  .burger-btn {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }

  /* Menu */
  .menu-link {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .menu-nav li {
    margin: 0.75rem 0;
  }

  .menu-cta {
    font-size: 1rem;
    margin-top: 2rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Hero — remove forced 100vh on mobile phones */
  .hero {
    height: auto;
    min-height: 0;
    padding: 5rem 1.25rem 2.5rem;
    align-items: flex-start;
  }

  .hero-wordmark {
    font-size: 24vw;
  }

  .hero-scroll-hint {
    margin-top: 1.25rem;
    font-size: 0.7rem;
  }

  /* Statement — disable sticky trap height on mobile */
  .statement-section {
    height: auto;
  }

  .statement-sticky {
    position: relative;
    top: auto;
    height: auto;
    padding: 3rem 1.25rem 2rem;
  }

  /* Words visible — no scroll-reveal on phones */
  .word {
    opacity: 1 !important;
  }

  /* Hide empty client slots */
  .clients-inner {
    display: none;
  }

  .statement-text {
    font-size: clamp(1.6rem, 8vw, 3.5rem);
  }

  /* Services */
  .service-card {
    padding: 1.5rem 1.25rem;
    align-items: flex-start;
  }

  .service-title-row {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
  }

  .service-ghost-num {
    font-size: clamp(2.5rem, 16vw, 6rem);
    line-height: 1;
  }

  .service-title {
    font-size: clamp(1.6rem, 9vw, 3.5rem);
  }

  .service-desc {
    margin-left: 0;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* Portfolio */
  .portfolio-header {
    padding: 3vh 1.25rem 2vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 9vw, 3rem);
  }

  .portfolio-slider-track {
    padding-left: 1.25rem;
    gap: 1rem;
  }

  .project-card {
    /* 1 card at a time: full viewport minus left padding */
    width: calc(100vw - 2.5rem);
  }

  .project-name {
    font-size: 1rem;
  }

  .project-desc {
    font-size: 0.85rem;
  }

  .portfolio-nav {
    padding: 1.25rem 1.25rem 0;
    gap: 0.75rem;
  }

  .portfolio-arrow {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .portfolio-counter {
    font-size: 0.9rem;
  }

  .portfolio-hint {
    padding: 0.75rem 1.25rem 0;
    font-size: 0.65rem;
  }

  /* About */
  .about-section {
    padding: 3rem 1.25rem 2rem;
  }

  .about-title {
    font-size: clamp(1.8rem, 9vw, 3rem);
    margin-bottom: 1.75rem;
  }

  .about-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .about-link {
    padding: 1.75rem 0;
    min-height: 44px;
  }

  .about-link-tag {
    width: 60px;
    font-size: 0.65rem;
  }

  .about-link-label {
    font-size: clamp(1.2rem, 7vw, 2.5rem);
  }

  .about-link-arrow {
    font-size: 1.3rem;
  }

  /* Footer — fully stacked, center-aligned */
  .footer-content {
    padding: 2.5rem 1.25rem 1.5rem;
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-right-links {
    align-items: center;
    gap: 1.25rem;
  }

  .footer-right-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-meta {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }

  .footer-meta-copy {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.7rem;
  }

  .footer-meta-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .footer-meta-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.25rem;
  }

  .footer-email-link {
    font-size: clamp(0.9rem, 4vw, 1.4rem);
    word-break: break-all;
  }

  .footer-brand-text {
    font-size: clamp(2.5rem, 18vw, 9rem);
    padding: 0 1.25rem 1.25rem;
    text-align: center;
  }
}

/* =============================================
   RESPONSIVE — SMALL PHONE  (≤ 480px)
   ============================================= */
@media (max-width: 480px) {

  /* ---- Hero: remove forced 100vh so no blank space above content ---- */
  .hero {
    height: auto;       /* no forced viewport height */
    min-height: 0;      /* completely natural height */
    padding: 5rem 1rem 2.5rem; /* top clears the nav, bottom gives breathing room */
    align-items: flex-start; /* don't push to bottom on mobile */
  }

  .hero-scroll-hint {
    margin-top: 1.5rem;
  }

  .hero-wordmark {
    font-size: 28vw;
  }

  /* ---- Statement: remove sticky-trigger height that creates blank space ---- */
  .statement-section {
    height: auto;        /* was 110vh — the extra vh is the gap */
    padding-bottom: 0;
  }

  .statement-sticky {
    position: relative; /* disable sticky on mobile — no room for the effect */
    top: auto;
    height: auto;        /* was 100vh inner sticky container */
    padding: 3rem 1rem 2rem;
  }

  .clients-inner {
    position: relative;  /* was absolute, causing overlap */
    bottom: auto;
    left: auto;
    margin-top: 2rem;
    opacity: 1;          /* always visible — no scroll trigger needed */
    transform: none;
  }

  .clients-logos-row {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  /* ---- Services: keep auto height, tighten padding ---- */
  .service-card {
    padding: 1.25rem 1rem;
    height: auto;
  }

  .service-title {
    font-size: clamp(1.4rem, 11vw, 2.8rem);
  }

  /* ---- Portfolio ---- */
  .project-card {
    width: calc(100vw - 2rem);
  }

  .portfolio-slider-track {
    padding-left: 1rem;
    gap: 0.75rem;
  }

  /* ---- General: cap all section vertical padding at 40px ---- */
  .about-section {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }

  .about-link-label {
    font-size: clamp(1rem, 8vw, 2rem);
  }

  .section-title {
    font-size: clamp(1.4rem, 11vw, 2.8rem);
  }

  .statement-text {
    font-size: clamp(1.4rem, 10vw, 3rem);
  }

  .menu-link {
    font-size: clamp(1.6rem, 10vw, 2.8rem);
  }

  /* ---- Footer ---- */
  .footer-content {
    padding: 2rem 1rem 1.25rem;
  }

  .footer-brand-text {
    font-size: clamp(2rem, 20vw, 7rem);
    padding: 0 1rem 1rem;
  }

  /* ---- Statement: all words visible (no scroll-reveal on tiny screens) ---- */
  .word {
    opacity: 1 !important;
  }

  /* ---- Client slots: empty, hide completely ---- */
  .clients-inner {
    display: none;
  }

  /* ---- Hide cursor glow on touch ---- */
  .cursor-glow {
    display: none;
  }
}