/* =========================================================
   MI HOMES — Premium Starter Site
   Design System + All Styles
   ========================================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
  --bg-primary:     #120a0a;
  --bg-elevated:    #1a1010;
  --bg-surface:     #221616;
  --bg-surface-alt: #2a1c1c;
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-light:   rgba(255, 255, 255, 0.1);
  --text-primary:   #f0e8e6;
  --text-secondary: #c8b8b4;
  --text-muted:     #8a7470;
  --text-inverse:   #120a0a;
  --accent:         #e8614d;
  --accent-hover:   #f07e6d;
  --accent-dim:     rgba(232,97,77,0.15);
  --font-display:  'Poppins', sans-serif;
  --font-body:     'DM Sans', -apple-system, sans-serif;
  --font-ui:       'Outfit', sans-serif;
  --fs-hero:       clamp(3.2rem, 8vw, 7.5rem);
  --fs-h1:         clamp(2.4rem, 5vw, 4.5rem);
  --fs-h2:         clamp(1.8rem, 3.5vw, 3rem);
  --fs-h3:         clamp(1.2rem, 2vw, 1.6rem);
  --fs-body:       clamp(0.95rem, 1.1vw, 1.1rem);
  --fs-small:      clamp(0.8rem, 0.9vw, 0.9rem);
  --fs-label:      0.75rem;
  --lh-tight:      1.1;
  --lh-heading:    1.2;
  --lh-body:       1.7;
  --ls-wide:       0.15em;
  --ls-wider:      0.25em;
  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      2rem;
  --space-lg:      4rem;
  --space-xl:      6rem;
  --space-2xl:     10rem;
  --container-max: 1320px;
  --container-pad: clamp(1.5rem, 4vw, 4rem);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast:  0.3s;
  --duration-med:   0.6s;
  --duration-slow:  1s;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;
}


/* =========================================================
   2. RESET & BASE
   ========================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  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;
  background-size: 256px 256px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}


/* =========================================================
   3. UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-padding {
  padding-block: var(--space-xl);
}

.accent-text { color: var(--accent); }

.label {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-block: var(--space-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}


/* =========================================================
   4. SCROLL ANIMATION STATES
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-med) var(--ease-out-expo),
              transform var(--duration-med) var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity var(--duration-med) var(--ease-out-expo),
              transform var(--duration-med) var(--ease-out-expo);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity var(--duration-med) var(--ease-out-expo),
              transform var(--duration-med) var(--ease-out-expo);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--duration-med) var(--ease-out-expo),
              transform var(--duration-med) var(--ease-out-expo);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}


/* =========================================================
   5. PRELOADER
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: var(--ls-wide);
}

.preloader__logo span {
  color: var(--accent);
}

.preloader__bar-track {
  width: 200px;
  height: 2px;
  background: var(--bg-surface);
  border-radius: 2px;
  overflow: hidden;
}

.preloader__bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}


/* =========================================================
   6. NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background var(--duration-fast) ease,
              padding var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  border-bottom-color: var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 1001;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  position: relative;
  padding: 0.3em 0;
  transition: color var(--duration-fast) ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-fast) var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.7em 1.8em;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all var(--duration-fast) ease;
}

.nav__cta:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out-expo);
  transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-med) var(--ease-out-expo),
              visibility var(--duration-med);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-med) var(--ease-out-expo),
              transform var(--duration-med) var(--ease-out-expo),
              color var(--duration-fast) ease;
}

.mobile-menu.active .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger */
.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu__link:hover {
  color: var(--accent);
}


/* =========================================================
   7. HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s linear;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.6) 40%,
    rgba(10, 10, 10, 0.3) 70%,
    rgba(10, 10, 10, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__label {
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
}

.hero__title .word {
  display: inline-block;
  white-space: nowrap;
}

.hero__title .char.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out-expo) 0.6s,
              transform var(--duration-slow) var(--ease-out-expo) 0.6s;
}

.hero__subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 2;
}

.hero__scroll-indicator span {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: var(--border-light);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 2s var(--ease-out-expo) infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 100%; }
}


/* — Hero Stats Bar — */
.hero-stats {
  border-top: 1px solid var(--border-subtle);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  padding-block: var(--space-md);
}

.hero-stats__item {
  text-align: center;
  padding-inline: var(--space-sm);
}

.hero-stats__item:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.hero-stats__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3em;
}

.hero-stats__desc {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}


/* =========================================================
   8. ABOUT SECTION
   ========================================================= */
.about {
  background: var(--bg-primary);
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__content {
  padding-right: var(--space-md);
}

.about__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-heading);
  margin-bottom: var(--space-md);
}

.about__title em {
  font-style: italic;
  color: var(--accent);
}

.about__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-top: var(--space-md);
  transition: gap var(--duration-fast) var(--ease-out-expo);
}

.about__cta:hover {
  gap: 1.2em;
}

.about__cta svg {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.about__cta:hover svg {
  transform: translateX(4px);
}

.about__image {
  position: relative;
}

.about__image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.9);
}

.about__image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 1px solid var(--accent-dim);
  z-index: -1;
}

.about__exp-badge {
  position: absolute;
  bottom: var(--space-md);
  left: -30px;
  background: var(--accent);
  color: var(--text-inverse);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
}

.about__exp-badge .number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.about__exp-badge .text {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}


/* =========================================================
   9. PORTFOLIO / PROJECTS
   ========================================================= */
.portfolio {
  background: var(--bg-elevated);
  overflow: hidden;
}

.portfolio__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.portfolio__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-heading);
}

.portfolio__title em {
  font-style: italic;
  color: var(--accent);
}

.portfolio__filters {
  display: flex;
  gap: var(--space-sm);
}

.portfolio__filter-btn {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 0.5em 1.2em;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--duration-fast) ease;
}

.portfolio__filter-btn.active,
.portfolio__filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Bento Grid */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-sm);
}

.portfolio__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio__item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.portfolio__item:hover img {
  transform: scale(1.05);
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.9) 0%,
    rgba(10, 10, 10, 0) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.portfolio__item:hover .portfolio__overlay {
  opacity: 1;
}

.portfolio__item-label {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3em;
}

.portfolio__item-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.portfolio__item-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
}

/* Custom cursor dot */
.cursor-view {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-out-expo);
}

.cursor-view.active {
  opacity: 1;
  transform: scale(1);
}

.cursor-view span {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--accent);
}


/* =========================================================
   10. SERVICES
   ========================================================= */
.services {
  background: var(--bg-primary);
  overflow: hidden;
}

.services__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.services__header {
  margin-bottom: var(--space-lg);
}

.services__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-heading);
}

.services__title em {
  font-style: italic;
  color: var(--accent);
}

.services__list {
  display: flex;
  flex-direction: column;
}

.service-item {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease;
}

.service-item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.service-item:hover {
  border-top-color: var(--border-light);
}

.service-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.service-item__number {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: var(--ls-wider);
  min-width: 30px;
}

.service-item__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  flex: 1;
  transition: color var(--duration-fast) ease;
}

.service-item.active .service-item__name,
.service-item:hover .service-item__name {
  color: var(--accent);
}

.service-item__indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  position: relative;
  transition: all var(--duration-fast) ease;
}

.service-item.active .service-item__indicator {
  border-color: var(--accent);
  background: var(--accent);
}

.service-item__indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-inverse);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.service-item.active .service-item__indicator::after {
  transform: translate(-50%, -50%) scale(1);
}

.service-item__desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-med) var(--ease-out-expo),
              padding var(--duration-med) var(--ease-out-expo);
  padding-left: calc(30px + var(--space-sm));
}

.service-item.active .service-item__desc {
  max-height: 200px;
  padding-top: var(--space-sm);
}

.service-item__desc p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

/* Service visual on right */
.services__visual {
  position: sticky;
  top: 120px;
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.services__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity var(--duration-med) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.services__visual img.active {
  opacity: 1;
  transform: scale(1);
}


/* =========================================================
   11. TESTIMONIALS
   ========================================================= */
.testimonials {
  background: var(--bg-elevated);
  overflow: hidden;
}

.testimonials__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.testimonials__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
}

.testimonials__title em {
  font-style: italic;
  color: var(--accent);
}

.testimonials__track {
  display: flex;
  gap: var(--space-md);
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.testimonials__track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  min-width: 400px;
  max-width: 400px;
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.testimonial-card__stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.2em;
}

.testimonial-card__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  line-height: var(--lh-body);
  margin-bottom: var(--space-md);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--accent);
}

.testimonial-card__name {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 500;
}

.testimonial-card__role {
  font-size: var(--fs-label);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}


/* =========================================================
   12. CTA BAND
   ========================================================= */
.cta-band {
  position: relative;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--accent) 0%, #c84030 100%);
  text-align: center;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 400;
  color: var(--text-inverse);
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta-band__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 300;
  color: rgba(10, 10, 10, 0.7);
  margin-bottom: var(--space-lg);
  position: relative;
}

.cta-band__btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 1em 3em;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: none;
  transition: all var(--duration-fast) ease;
  position: relative;
}

.cta-band__btn:hover {
  background: var(--bg-surface);
  transform: translateY(-2px);
}


/* =========================================================
   13. FOOTER
   ========================================================= */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.footer__brand-name span {
  color: var(--accent);
}

.footer__brand-desc {
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 300px;
  line-height: var(--lh-body);
}

.footer__heading {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer__link {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  padding: 0.3em 0;
  transition: color var(--duration-fast) ease;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) ease;
  font-size: 0.9rem;
}

.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.footer__copy {
  font-size: var(--fs-label);
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
}

.footer__back-top {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: color var(--duration-fast) ease;
}

.footer__back-top:hover {
  color: var(--accent);
}


/* =========================================================
   14. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .about__content { padding-right: 0; }
  .about__image img { height: 400px; }

  .services__inner {
    grid-template-columns: 1fr;
  }
  .services__visual {
    display: none;
  }
  .service-item.active .service-item__desc {
    max-height: 300px;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-block: var(--space-lg);
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero {
    padding-bottom: var(--space-lg);
    align-items: center;
    padding-top: 100px;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .hero-stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .hero-stats__item:nth-child(2) {
    border-right: none;
  }
  .hero-stats__item:nth-child(1),
  .hero-stats__item:nth-child(2) {
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .portfolio__item:nth-child(1) {
    grid-column: auto;
    grid-row: auto;
  }
  .portfolio__item img {
    height: 280px;
  }
  .portfolio__overlay {
    opacity: 1;
  }

  .portfolio__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-card {
    min-width: 300px;
    max-width: 300px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .cursor-view {
    display: none;
  }
}

@media (max-width: 480px) {
  .portfolio__filters {
    flex-wrap: wrap;
  }

  .about__exp-badge {
    left: 0;
  }
}

/* Theme Switcher Panel */
.theme-panel{position:fixed;bottom:2rem;right:2rem;z-index:9000}
.theme-panel__toggle{width:48px;height:48px;border-radius:50%;background:var(--bg-surface);border:1px solid var(--border-subtle);font-size:1.3rem;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s;color:var(--text-primary)}
.theme-panel__toggle:hover{border-color:var(--accent);transform:scale(1.1)}
.theme-panel__drawer{position:absolute;bottom:60px;right:0;width:260px;background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:1.2rem;opacity:0;visibility:hidden;transform:translateY(10px);transition:all .3s var(--ease-out-expo)}
.theme-panel.open .theme-panel__drawer{opacity:1;visibility:visible;transform:translateY(0)}
.theme-panel__title{font-family:var(--font-ui);font-size:var(--fs-label);font-weight:600;letter-spacing:var(--ls-wider);text-transform:uppercase;color:var(--text-muted);margin-bottom:.8rem}
.theme-panel__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
.theme-swatch{display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:.5rem;border-radius:var(--radius-sm);border:1px solid transparent;cursor:pointer;transition:all .2s;background:none}
.theme-swatch:hover{border-color:var(--border-light);background:var(--bg-elevated)}
.theme-swatch.active{border-color:var(--accent)}
.theme-swatch__dot{width:28px;height:28px;border-radius:50%;border:2px solid rgba(255,255,255,.1)}
.theme-swatch__name{font-family:var(--font-ui);font-size:.6rem;letter-spacing:.1em;text-transform:uppercase;color:var(--text-muted)}
