/* ============================================================
   JUN'S GARAGE — Design System & Styles
   Creative North Star: "The Technical Monolith"
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Surface Hierarchy */
  --surface: #111416;
  --surface-container-low: #1a1c1e;
  --surface-container: #1e2023;
  --surface-container-high: #282a2d;
  --surface-container-highest: #333538;
  --background: #0c0e10;

  /* Content */
  --on-surface: #e2e2e6;
  --on-surface-variant: #c2c6cc;
  --on-surface-muted: #8c9199;

  /* Primary — Steel Blue */
  --primary: #a0caf8;
  --primary-container: #6C96C1;
  --on-primary-container: #002d4d;

  /* Secondary */
  --secondary-container: #2a2d31;
  --on-secondary-container: #c2c6cc;

  /* Outline */
  --outline: #8c9199;
  --outline-variant: #42474e;

  /* Typography Scale */
  --font: 'Space Grotesk', sans-serif;
  --display-lg: clamp(3rem, 8vw, 5.5rem);
  --display-md: clamp(2.25rem, 5vw, 3.5rem);
  --headline-lg: clamp(1.75rem, 3.5vw, 2.5rem);
  --headline-md: clamp(1.25rem, 2.5vw, 1.75rem);
  --title-lg: 1.375rem;
  --title-md: 1rem;
  --body-lg: 1.125rem;
  --body-md: 1rem;
  --label-md: 0.875rem;
  --label-sm: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Layout */
  --container-max: 1700px;
  --container-wide: 1700px;
  --page-padding: 4rem;
  --nav-height: 72px;
}

/* --- 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;
}

body {
  font-family: var(--font);
  font-size: var(--body-md);
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--background);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

/* Staggered children using --delay custom property */
.reveal[style*="--delay: 0"] { transition-delay: 0.08s; }
.reveal[style*="--delay: 1"] { transition-delay: 0.2s; }
.reveal[style*="--delay: 2"] { transition-delay: 0.32s; }
.reveal[style*="--delay: 3"] { transition-delay: 0.44s; }
.reveal[style*="--delay: 4"] { transition-delay: 0.56s; }
.reveal[style*="--delay: 5"] { transition-delay: 0.68s; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.is-scrolled {
  background: rgba(51, 53, 56, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 36px;
  width: auto;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: var(--label-md);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary-container);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--on-surface);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary-container);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  color: var(--on-primary-container);
  filter: brightness(1.1);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

/* Close (X) button inside the mobile flyout */
.nav__close {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--on-surface);
  transition: color 0.3s ease;
}

.nav__close:hover {
  color: var(--primary-container);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--on-surface);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  font-size: var(--label-md);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary-container);
}

.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  color: var(--on-surface-variant);
  outline: 1px solid rgba(66, 71, 78, 0.5);
}

.btn--secondary:hover {
  outline-color: var(--primary-container);
  color: var(--on-surface);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn svg {
  transition: transform 0.3s ease;
}

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

/* --- CHIPS --- */
.chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}


/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
}

.section-header__eyebrow {
  display: block;
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: var(--space-sm);
}

.section-header__title {
  font-size: var(--display-md);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--on-surface);
}

.section-header__cta {
  margin-top: var(--space-sm);
}

.section-header__sub {
  font-size: var(--body-lg);
  color: var(--on-surface-muted);
  margin-top: var(--space-sm);
  max-width: 480px;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl) var(--page-padding) var(--space-2xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateY(var(--parallax-y, 0px)) scale(1.12);
  will-change: transform;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-color: var(--surface);
}

.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(12, 14, 16, 0.3) 0%,
      rgba(12, 14, 16, 0.5) 40%,
      rgba(12, 14, 16, 0.92) 80%,
      rgba(12, 14, 16, 1) 100%
    );
}

/* Wipe reveal: solid panel slides off-screen on load, unveiling the hero image.
   A steel-blue leading edge sweeps across so the reveal reads against the dark hero. */
.hero__wipe {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--background);
  transform: translateX(0);
  animation: heroWipe 1.3s cubic-bezier(0.7, 0, 0.2, 1) 0.15s forwards;
}

@keyframes heroWipe {
  from { transform: translateX(0); }
  to { transform: translateX(101%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__wipe,
  .hero-v2__media::after {
    animation: none;
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  /* Asymmetric — offset left */
  padding-right: 30%;
}

.hero__eyebrow {
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-size: var(--display-lg);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.0;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}

.hero__headline--accent {
  color: var(--primary-container);
}

.hero__sub {
  font-size: var(--body-lg);
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.hero__scroll-indicator span {
  font-size: var(--label-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--outline-variant);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 50%;
  background: var(--primary-container);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 150%; }
}


/* ============================================================
   SERVICE HIGHLIGHTS
   ============================================================ */
.services {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  display: block;
  background: var(--surface-container-low);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card__placeholder {
  transform: scale(1.05);
}

.service-card__body {
  padding: var(--space-md);
  position: relative;
  margin-top: -20px;
  background: var(--surface-container-low);
  z-index: 1;
}

.service-card__tag {
  display: inline-block;
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: var(--space-xs);
}

.service-card__title {
  font-size: var(--headline-md);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  line-height: 1.6;
}

.service-card__arrow {
  display: block;
  margin-top: var(--space-sm);
  font-size: 1.25rem;
  color: var(--primary-container);
  transition: transform 0.3s ease;
}

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


/* ============================================================
   DIFFERENTIATOR
   ============================================================ */
.differentiator {
  padding: var(--space-3xl) 0;
  background: var(--background);
}

.diff__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.diff__media {
  position: relative;
}

.diff__image-main {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.diff__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.diff__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.diff__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(108, 150, 193, 0.1) 100%);
}

.diff__placeholder-label {
  font-size: var(--label-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}

.diff__image-inset {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 45%;
  aspect-ratio: 1;
  z-index: 2;
}

.diff__placeholder--small {
  outline: 4px solid var(--background);
}

.diff__content {
  padding-left: var(--space-lg);
}

.diff__title {
  font-size: var(--display-md);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.diff__desc {
  font-size: var(--body-lg);
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 440px;
}

.diff__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.diff__feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--surface-container-low);
  transition: background 0.3s ease;
}

.diff__feature:hover {
  background: var(--surface-container);
}

.diff__feature-number {
  font-size: var(--label-sm);
  font-weight: 700;
  color: var(--primary-container);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  padding-top: 2px;
}

.diff__feature-title {
  font-size: var(--title-md);
  font-weight: 600;
  margin-bottom: 4px;
}

.diff__feature-desc {
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  line-height: 1.5;
}


/* ============================================================
   SPECIALIST CAPABILITIES CAROUSEL
   ============================================================ */
.carousel-section {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--surface);
  overflow: hidden;
}

/* Keep tag styles for reuse */
.spec__card-tag {
  display: inline-block;
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: var(--space-xs);
}

/* Carousel controls row (dots + nav arrows, same line, below the track) */
.carousel-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
}

/* Carousel nav arrows */
.carousel-nav {
  display: flex;
  gap: var(--space-xs);
}

.carousel-nav__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  outline: 1px solid rgba(66, 71, 78, 0.5);
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav__btn:hover {
  outline-color: var(--primary-container);
  color: var(--on-surface);
}

/* Carousel track */
.carousel {
  position: relative;
  margin: var(--space-lg) 0;
  padding: 0 var(--page-padding);
}

.carousel__track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}

.carousel__track:active {
  cursor: grabbing;
}

/* Each slide */
.carousel__slide {
  position: relative;
  flex: 0 0 70%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel__slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel__slide:hover .carousel__slide-bg {
  transform: scale(1.03);
}

.carousel__slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  z-index: 1;
}

/* Glass blur overlay for text */
.carousel__slide-glass {
  background: rgba(17, 20, 22, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 40px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.carousel__slide-glass .carousel__slide-link {
  margin-top: auto;
}

.carousel__slide-title {
  font-size: var(--headline-lg);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}

.carousel__slide-desc {
  font-size: var(--body-md);
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.carousel__slide-link {
  font-size: var(--label-md);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-container);
  transition: color 0.3s ease;
}

.carousel__slide-link:hover {
  color: var(--primary);
}

/* Pagination dots */
.carousel__dots {
  display: flex;
  gap: var(--space-xs);
}

.carousel__dot {
  width: 32px;
  height: 3px;
  background: var(--outline-variant);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel__dot--active {
  background: var(--primary-container);
  width: 56px;
}


/* ============================================================
   FEATURED PROJECTS LAYOUT
   ============================================================ */
.projects__featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: stretch;
}

.project-card--featured {
  display: flex;
  flex-direction: column;
}

.project-card--featured .project-card__image {
  flex: 1;
  aspect-ratio: auto;
}

.project-card--featured .project-card__placeholder {
  height: 100%;
}

.project-card__featured-label {
  display: inline-block;
  font-size: var(--label-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-container);
  margin-bottom: var(--space-xs);
}

.projects__side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-content: stretch;
  height: 100%;
}

.projects__side-grid .project-card__image {
  aspect-ratio: 4 / 3;
}


/* ============================================================
   RECENT PROJECTS
   ============================================================ */
.projects {
  padding: var(--space-3xl) 0;
  background: var(--background);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.project-card {
  background: var(--surface-container-low);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--label-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card__placeholder {
  transform: scale(1.05);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(108, 150, 193, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__view {
  font-size: var(--label-md);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-surface);
  background: rgba(51, 53, 56, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem;
}

.project-card__info {
  padding: var(--space-md);
  position: relative;
  margin-top: -20px;
  background: var(--surface-container-low);
  z-index: 1;
}

.project-card__title {
  font-size: var(--title-lg);
  font-weight: 700;
  margin-bottom: 2px;
}

.project-card__work {
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  margin-bottom: var(--space-sm);
}

.project-card__tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}


/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.process__step {
  padding: var(--space-lg);
  background: var(--surface-container-low);
  transition: background 0.3s ease;
  position: relative;
}

.process__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-container), transparent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.process__step:hover::before {
  width: 100%;
}

.process__step:hover {
  background: var(--surface-container);
}

.process__step-num {
  font-size: var(--display-md);
  font-weight: 700;
  color: var(--surface-container-highest);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: var(--space-md);
  transition: color 0.3s ease;
}

.process__step:hover .process__step-num {
  color: var(--primary-container);
}

.process__step-content h4 {
  font-size: var(--title-lg);
  font-weight: 600;
  margin-bottom: 4px;
}

.process__step-content p {
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  line-height: 1.5;
}


/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  padding: var(--space-xl) 0;
  background: var(--surface-container-low);
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--label-md);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-surface-variant);
}

.trust-strip__divider {
  width: 1px;
  height: 24px;
  background: var(--outline-variant);
  opacity: 0.4;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--background);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__headline {
  font-size: var(--display-md);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.contact__sub {
  font-size: var(--body-lg);
  color: var(--on-surface-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.contact__phone {
  margin-bottom: var(--space-xl);
}

.contact__phone-label {
  display: block;
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-bottom: var(--space-xs);
}

.contact__phone-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--primary-container);
  transition: color 0.3s ease;
}

.contact__phone-number:hover {
  color: var(--primary);
}

.contact__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact__detail h4 {
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-bottom: var(--space-xs);
}

.contact__detail p {
  font-size: var(--body-md);
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* Full-bleed map */
.map-fullbleed {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.map-fullbleed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact__map-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--label-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}

/* Form */
.contact__form-wrap {
  background: var(--surface-container-low);
  padding: var(--space-xl);
}

.contact__form-title {
  font-size: var(--headline-md);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.form-group {
  position: relative;
  margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0 0.75rem;
  background: transparent;
  border-bottom: 1.5px solid var(--outline-variant);
  color: var(--on-surface);
  font-size: var(--body-md);
  transition: border-color 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-container);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.25rem;
  font-size: var(--label-sm);
  color: var(--primary-container);
  letter-spacing: 0.04em;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #000000;
  overflow: hidden;
}

/* Full-width large logo */
.footer__logo-full {
  width: 100%;
  padding: var(--space-2xl) var(--page-padding) var(--space-xl);
  overflow: hidden;
}

.footer__logo-large {
  width: 100%;
  height: auto;
  display: block;
}

/* Bottom bar: sitemap + copyright, all left-aligned */
.footer__bottom {
  padding: var(--space-lg) var(--page-padding) var(--space-xl);
}

.footer__bottom-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer__sitemap {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__sitemap a {
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  transition: color 0.3s ease;
}

.footer__sitemap a:hover {
  color: var(--on-surface);
}

.footer__copy {
  font-size: var(--label-sm);
  color: var(--on-surface-muted);
  text-align: left;
}


/* ============================================================
   SHARED PAGE COMPONENTS
   ============================================================ */

/* Active nav link */
.nav__link--active {
  color: var(--on-surface);
}

.nav__link--active::after {
  width: 100%;
}

/* Page Hero (subpages) */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-md) var(--space-2xl);
  background: var(--background);
  overflow: hidden;
}

.page-hero--compact {
  min-height: auto;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-md) var(--space-xl);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,14,16,0.5) 0%, rgba(12,14,16,0.9) 80%, rgba(12,14,16,1) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.page-hero__title {
  font-size: var(--display-lg);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: var(--space-sm);
}

.page-hero__sub {
  font-size: var(--body-lg);
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 520px;
}

/* ============================================================
   HERO V2 — Split headline / subhead + media + statement
   ============================================================ */
.hero-v2 {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  background: var(--background);
}

.hero-v2__split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.hero-v2__left {
  flex: 1;
  max-width: 820px;
}

.hero-v2__headline {
  font-size: var(--display-lg);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.hero-v2__right {
  flex: 0 0 440px;
  padding-top: 0.75em;
}

.hero-v2__subhead {
  font-size: var(--body-lg);
  color: var(--on-surface-variant);
  line-height: 1.7;
}

/* Large 16:9 media container */
.hero-v2__media {
  width: 100%;
  padding: 0 var(--page-padding);
  margin-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Wipe reveal on the hero image, matching the homepage hero.
   Panel covers the image by default; the sweep fires when scrolled into view (.is-revealed). */
.hero-v2__media::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--page-padding);
  right: var(--page-padding);
  z-index: 2;
  background: var(--background);
  transform: translateX(0);
}

.hero-v2__media.is-revealed::after {
  animation: heroWipe 1.3s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.hero-v2__media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-v2__media-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Statement block with scroll-highlight */
.hero-v2__statement {
  max-width: 800px;
  padding: var(--space-xl) 0 var(--space-3xl);
}

.hero-v2__statement--wide {
  max-width: 900px;
}

.hero-v2__statement-text {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.05em;
  color: var(--on-surface-muted);
}

/* Highlight words — muted by default, light up on scroll */
.highlight-word {
  color: var(--on-surface-muted);
  transition: color 0.6s ease;
}

.hero-v2__statement-text.is-highlighted .highlight-word {
  color: var(--on-surface);
}

/* Three-column principles block (below hero on Process page) */
.process-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-xl) 0 var(--space-3xl);
}

.process-principles__item {
  border-top: 2px solid var(--primary-container);
  padding-top: var(--space-md);
}

.process-principles__num {
  font-size: var(--label-sm);
  font-weight: 700;
  color: var(--primary-container);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.process-principles__title {
  font-size: var(--title-lg);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.process-principles__desc {
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  line-height: 1.6;
}


/* Page CTA (shared bottom CTA block) */
.page-cta {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.page-cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.page-cta__title {
  font-size: var(--display-md);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-sm);
}

.page-cta__sub {
  font-size: var(--body-lg);
  color: var(--on-surface-muted);
  margin-bottom: var(--space-lg);
}

.page-cta__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   ABOUT PAGE V2 — American Housing inspired
   ============================================================ */

/* Hero image — contained */
/* Statement blocks — large scroll-highlight text */
.about-v2-statement {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--background);
}

.about-v2-statement__text {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.1em;
  color: var(--on-surface-muted);
}

/* Image + bold statement side by side */
.about-v2-split {
  padding: var(--space-xl) 0;
  background: var(--background);
}

.about-v2-split__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-v2-split--reverse .about-v2-split__layout {
  direction: rtl;
}

.about-v2-split--reverse .about-v2-split__layout > * {
  direction: ltr;
}

.about-v2-split__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-v2-split__image img,
.about-v2-split__image video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Nürburgring clip is portrait — match its native ratio so it isn't cropped */
.about-v2-split__image video {
  aspect-ratio: 1376 / 1840;
}

.about-v2-split__bold {
  font-size: var(--headline-lg);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.2;
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}

/* Numbered principles list */
.about-v2-principles {
  padding: var(--space-2xl) 0;
  background: var(--background);
}

.about-v2-principles__eyebrow {
  display: block;
  font-size: var(--label-md);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-bottom: var(--space-lg);
}

.about-v2-principles__list {
  border-top: 1px solid rgba(66, 71, 78, 0.3);
}

.about-v2-principles__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(66, 71, 78, 0.3);
}

.about-v2-principles__num {
  font-size: var(--label-md);
  font-weight: 500;
  color: var(--primary-container);
  flex-shrink: 0;
}

.about-v2-principles__text {
  font-size: var(--headline-md);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--on-surface);
  line-height: 1.3;
}

/* Photo grid */
.about-v2-photos {
  padding: var(--space-xl) 0 var(--space-3xl);
  background: var(--background);
}


/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-page {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.services-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-tile {
  background: var(--surface-container-low);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-tile:hover {
  transform: translateY(-4px);
}

.service-tile__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.service-tile__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--label-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-tile:hover .service-tile__placeholder {
  transform: scale(1.05);
}

.service-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-tile:hover .service-tile__image img {
  transform: scale(1.05);
}

.service-tile__body {
  padding: var(--space-md);
}

.service-tile__title {
  font-size: var(--title-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.service-tile__desc {
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  line-height: 1.6;
}


/* ============================================================
   SPECIALIST PAGE
   ============================================================ */
.specialist-page {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.specialist-page__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.specialist-page__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  scroll-margin-top: calc(var(--nav-height) + var(--space-lg));
}

.specialist-page__card--reverse {
  direction: rtl;
}

.specialist-page__card--reverse > * {
  direction: ltr;
}

.specialist-page__card-image {
  overflow: hidden;
}

.specialist-page__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.specialist-page__card:hover .specialist-page__img {
  transform: scale(1.03);
}

.specialist-page__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

.specialist-page__card-title {
  font-size: var(--headline-lg);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-sm);
}

.specialist-page__card-desc {
  font-size: var(--body-lg);
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.specialist-page__card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.specialist-page__card-list li {
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  padding-left: 1.25rem;
  position: relative;
}

.specialist-page__card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1.5px;
  background: var(--primary-container);
}


/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-filters {
  padding: var(--space-lg) 0;
  background: var(--surface);
}

.portfolio-filters__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.portfolio-filters__group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.portfolio-filters__label {
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-right: var(--space-xs);
}

.filter-chip {
  padding: 0.375rem 1rem;
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  background: transparent;
  outline: 1px solid rgba(66, 71, 78, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  outline-color: var(--primary-container);
  color: var(--on-surface);
}

.filter-chip--active {
  background: var(--primary-container);
  color: var(--on-primary-container);
  outline-color: var(--primary-container);
}

.portfolio-grid-section {
  padding: var(--space-lg) 0 var(--space-3xl);
  background: var(--surface);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}


/* ============================================================
   PROCESS PAGE
   ============================================================ */
.process-page {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.process-page__flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.process-page__step {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(66, 71, 78, 0.3);
  position: relative;
}

.process-page__step-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.process-page__step-num {
  font-size: var(--display-md);
  font-weight: 700;
  color: var(--primary-container);
  letter-spacing: -0.05em;
  line-height: 1;
  flex-shrink: 0;
}

.process-page__step-title {
  font-size: var(--headline-md);
  font-weight: 700;
}

.process-page__step-body p {
  font-size: var(--body-md);
  color: var(--on-surface-variant);
  line-height: 1.7;
  padding-left: 0;
}

.process-page__step-line {
  display: none;
}

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

@media (max-width: 560px) {
  .process-page__flow {
    grid-template-columns: 1fr;
  }
}

/* Quality Section */
.quality-section {
  padding: var(--space-3xl) 0;
  background: var(--background);
}

.quality-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.quality-section__body {
  font-size: var(--body-lg);
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.quality-section__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quality-section__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Safety Section */
.safety-section {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.safety-section__inner {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
}

.safety-section__icon {
  flex-shrink: 0;
}

.safety-section__body {
  font-size: var(--body-lg);
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-top: var(--space-md);
}


/* ============================================================
   PROJECT DETAIL / ARTICLE PAGE
   ============================================================ */

/* Hero image - full bleed */
.article-hero {
  padding-top: var(--nav-height);
}

.article-hero__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.article-hero__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Article container - narrow for readability */
.article__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* Breadcrumb */
.article__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-lg) 0 var(--space-md);
  font-size: var(--label-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article__breadcrumb a {
  color: var(--on-surface-muted);
  transition: color 0.3s ease;
}

.article__breadcrumb a:hover {
  color: var(--on-surface);
}

.article__breadcrumb-sep {
  color: var(--outline-variant);
}

.article__breadcrumb-current {
  color: var(--on-surface-variant);
}

/* Article header */
.article__header {
  padding-bottom: var(--space-xl);
}

.article__meta {
  margin-bottom: var(--space-sm);
}

.article__date {
  font-size: var(--label-md);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-surface-muted);
}

.article__title {
  font-size: var(--display-md);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.article__tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

/* Article body */
.article__body {
  padding-bottom: var(--space-2xl);
}

.article__lead {
  font-size: var(--body-lg);
  color: var(--on-surface);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.article__body p {
  font-size: var(--body-md);
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.article__heading {
  font-size: var(--headline-md);
  font-weight: 700;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--on-surface);
}

/* Inline media with caption */
.article__media {
  margin: var(--space-xl) 0;
}

.article__media-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-container);
}

.article__media-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.article__caption {
  font-size: var(--label-md);
  color: var(--on-surface-muted);
  line-height: 1.5;
  margin-top: var(--space-sm);
}

/* Block quote */
.article__quote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) 0;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--primary-container);
}

.article__quote p {
  font-size: var(--headline-md);
  font-weight: 500;
  color: var(--on-surface);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.article__quote cite {
  font-size: var(--label-md);
  font-style: normal;
  font-weight: 500;
  color: var(--on-surface-muted);
  letter-spacing: 0.04em;
}

/* Gallery carousel */
.article__gallery {
  padding-bottom: var(--space-2xl);
}

.article__gallery-title {
  font-size: var(--headline-md);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.gallery {
  overflow: hidden;
}

.gallery__track {
  display: flex;
  gap: var(--space-sm);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}

.gallery__track:active {
  cursor: grabbing;
}

.gallery__slide {
  flex: 0 0 calc(33.333% - var(--space-sm) * 2 / 3);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--label-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}

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

.gallery__controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
}

.gallery__dots {
  display: flex;
  gap: var(--space-xs);
}

.gallery__dot {
  width: 24px;
  height: 3px;
  background: var(--outline-variant);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery__dot--active {
  background: var(--primary-container);
  width: 40px;
}

/* Read More section */
.read-more {
  padding: var(--space-3xl) 0;
  background: var(--surface);
}

.read-more__title {
  font-size: var(--headline-lg);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.read-more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.read-more__card {
  background: var(--surface-container-low);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.read-more__card:hover {
  transform: translateY(-4px);
}

.read-more__card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.read-more__placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--label-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.read-more__card:hover .read-more__placeholder {
  transform: scale(1.05);
}

.read-more__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.read-more__card:hover .read-more__card-image img {
  transform: scale(1.05);
}

.read-more__card-body {
  padding: var(--space-md);
}

.read-more__card-date {
  display: block;
  font-size: var(--label-sm);
  color: var(--on-surface-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.read-more__card-title {
  font-size: var(--title-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.read-more__card-tags {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-3xl);
  background: var(--background);
}

.contact-page__header {
  margin-bottom: var(--space-2xl);
}

.contact-page__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-page__phone-block {
  margin-bottom: var(--space-xl);
}

.contact-page__phone-number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--primary-container);
  transition: color 0.3s ease;
  margin-top: var(--space-xs);
}

.contact-page__phone-number:hover {
  color: var(--primary);
}

.contact-page__details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-page__detail h4 {
  font-size: var(--label-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-bottom: var(--space-xs);
}

.contact-page__detail p {
  font-size: var(--body-md);
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.contact-page__form-col {
  background: var(--surface-container-low);
  padding: var(--space-xl);
}

.contact-page__form-sub {
  font-size: var(--body-md);
  color: var(--on-surface-muted);
  margin-bottom: var(--space-lg);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__content {
    padding-right: 10%;
  }

  .diff__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .diff__content {
    padding-left: 0;
  }

  .diff__image-inset {
    right: 16px;
    bottom: -16px;
  }

  .carousel__slide {
    flex: 0 0 80%;
  }

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

  .project-card--featured .project-card__image {
    aspect-ratio: 16 / 9;
    flex: none;
  }

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specialist-page__card {
    gap: var(--space-xl);
  }

  .quality-section__layout {
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --page-padding: 1.5rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 20, 22, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -1;
  }

  .nav__links.is-open {
    opacity: 1;
    pointer-events: all;
    z-index: 999;
  }

  .nav__close {
    display: flex;
    position: absolute;
    top: calc((var(--nav-height) - 44px) / 2);
    right: calc(var(--page-padding) - 8px);
  }

  .nav__link {
    font-size: var(--headline-md);
  }

  .hero {
    padding: var(--space-2xl) var(--page-padding) var(--space-xl);
    align-items: flex-end;
  }

  .hero__content {
    padding-right: 0;
  }

  .hero__scroll-indicator {
    display: none;
  }

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

  .carousel__slide {
    flex: 0 0 90%;
    aspect-ratio: 4 / 3;
  }

  .carousel__slide-glass {
    padding: var(--space-md);
    min-height: unset;
  }

  .carousel__slide-title {
    font-size: var(--headline-md);
  }

  .carousel__slide-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .carousel-nav {
    gap: 6px;
  }

  .carousel-nav__btn {
    width: 40px;
    height: 40px;
  }

  .carousel__dots {
    gap: 6px;
  }

  .carousel__dot {
    width: 20px;
  }

  .carousel__dot--active {
    width: 32px;
  }

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

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

  .process-principles {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .section-header--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bottom-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__sitemap {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  /* Article responsive */
  .article-hero__image {
    aspect-ratio: 16 / 9;
  }

  .gallery__slide {
    flex: 0 0 calc(50% - var(--space-sm) / 2);
  }

  .read-more__grid {
    grid-template-columns: 1fr;
  }

  /* Hero V2 responsive */
  .hero-v2__split {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-v2__right {
    flex: none;
    max-width: 480px;
  }

  /* About V2 responsive */
  .about-v2-split__layout,
  .about-v2-split--reverse .about-v2-split__layout {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .services-page__grid {
    grid-template-columns: 1fr;
  }

  .specialist-page__card,
  .specialist-page__card--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

  .quality-section__layout {
    grid-template-columns: 1fr;
  }

  .safety-section__inner {
    flex-direction: column;
  }

  .contact-page__layout {
    grid-template-columns: 1fr;
  }

  .process-page__step-body p {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(2.25rem, 10vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .trust-strip__inner {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .trust-strip__divider {
    display: none;
  }

  .contact-page__details-grid {
    grid-template-columns: 1fr;
  }

  .page-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .page-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
