/* ========================================
   1. CUSTOM PROPERTIES (Design Tokens)
   ======================================== */

:root {
  /* Colors */
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-bg-tertiary: #1a1a1a;
  --color-text-primary: #f5f5f0;
  --color-text-secondary: #aeaeae;
  --color-text-tertiary: #6b6b6b;
  --color-accent: #c8a96e;
  --color-accent-hover: #d4b97e;
  --color-border: #2b2b2b;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(3rem, 8vw, 9rem);
  --fs-h1: clamp(2.25rem, 5vw, 4.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-body: clamp(0.95rem, 1.1vw, 1.125rem);
  --fs-small: clamp(0.75rem, 0.9vw, 0.875rem);

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --ls-tight: -0.03em;
  --ls-normal: 0;
  --ls-wide: 0.15em;

  --lh-tight: 1.1;
  --lh-normal: 1.6;

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

  --container-max: 1200px;
  --container-pad: clamp(1.5rem, 5vw, 4rem);

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 300ms;
  --duration-normal: 600ms;
  --duration-slow: 900ms;
}

/* ========================================
   2. CSS RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  font-weight: var(--fw-medium);
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-light);
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-lg);
}

/* ========================================
   4. LAYOUT
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section {
  padding: var(--space-xl) 0;
}

/* ========================================
   5. COMPONENTS
   ======================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  min-height: 48px;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-bg-primary);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-text-primary);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.65rem 1.5rem;
  min-height: 40px;
}

.btn--lg {
  padding: 1.15rem 3rem;
  font-size: var(--fs-body);
}

/* ========================================
   6. HEADER
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.header--scrolled {
  padding: 0.75rem 0;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--fw-light);
  color: var(--color-text-primary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.header__logo span {
  color: var(--color-accent);
}

.header__cta-short {
  display: none;
}

/* ========================================
   7. HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(200, 169, 110, 0.03) 100%),
    linear-gradient(to bottom, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: 8%;
  right: 3%;
  width: 45vw;
  height: 70vh;
  background: linear-gradient(160deg, #1a1a1a 0%, #0f0f0f 100%);
  clip-path: polygon(0 0, 100% 8%, 100% 100%, 12% 92%);
  opacity: 0.5;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 12%;
  right: 12%;
  width: 28vw;
  height: 45vh;
  border: 1px solid var(--color-border);
  opacity: 0.25;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 30% 50%, transparent 0%, var(--color-bg-primary) 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}

.hero__label {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-light);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero__subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s forwards;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

.hero__proof {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1s forwards;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--fw-light);
  color: var(--color-text-primary);
  line-height: 1;
}

.hero__stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: var(--fw-light);
  color: var(--color-accent);
}

.hero__stat-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-indicator span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

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

/* ========================================
   8. CREDENTIALS
   ======================================== */

.credentials {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.credentials__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-tertiary);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: color var(--duration-fast) ease;
}

.credentials__item:hover {
  color: var(--color-text-secondary);
}

.credentials__item svg {
  opacity: 0.5;
  transition: opacity var(--duration-fast) ease;
}

.credentials__item:hover svg {
  opacity: 0.8;
}

.credentials__quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.credentials__quote p {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.credentials__quote cite {
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

/* ========================================
   9. PHILOSOPHY
   ======================================== */

.philosophy__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.philosophy__intro {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

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

.philosophy__pillar {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-sm);
  row-gap: var(--space-xs);
  align-items: start;
}

.philosophy__pillar svg {
  grid-row: 1 / 3;
  color: var(--color-accent);
  opacity: 0.7;
  margin-top: 2px;
}

.philosophy__pillar h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  color: var(--color-text-primary);
}

.philosophy__pillar p {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Philosophy visual */
.philosophy__visual {
  position: relative;
  min-height: 400px;
  display: none;
}

.philosophy__shape {
  position: absolute;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.philosophy__shape--1 {
  top: 0;
  right: 0;
  width: 80%;
  height: 70%;
  background: linear-gradient(145deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 85%);
}

.philosophy__shape--2 {
  bottom: 5%;
  left: 5%;
  width: 50%;
  height: 50%;
  border: 1px solid var(--color-border);
}

.philosophy__shape--3 {
  top: 20%;
  left: 15%;
  width: 35%;
  height: 35%;
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.06) 0%, transparent 100%);
}

/* ========================================
   10. SERVICES
   ======================================== */

.services {
  background-color: var(--color-bg-secondary);
}

.services__grid {
  display: grid;
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.service-card:hover {
  border-color: rgba(200, 169, 110, 0.3);
  transform: translateY(-4px);
  background-color: rgba(200, 169, 110, 0.02);
}

.service-card__icon {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  opacity: 0.7;
}

.service-card__icon svg {
  display: inline-block;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ========================================
   11. PROJECTS
   ======================================== */

.projects__grid {
  display: grid;
  gap: var(--space-md);
}

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

.project-card__image {
  position: absolute;
  inset: 0;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

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

/* Unique CSS backgrounds for each project */
.project-card:nth-child(1) .project-card__image {
  background:
    linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 40%, #1f1a14 100%);
}

.project-card:nth-child(1) .project-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(200, 169, 110, 0.08) 100%);
}

.project-card:nth-child(1) .project-card__image::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 15%;
  width: 60%;
  height: 50%;
  border: 1px solid rgba(200, 169, 110, 0.1);
  clip-path: polygon(0 0, 100% 10%, 90% 100%, 5% 85%);
}

.project-card:nth-child(2) .project-card__image {
  background:
    linear-gradient(180deg, #141418 0%, #0a0a0e 60%, #18141a 100%);
}

.project-card:nth-child(2) .project-card__image::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, rgba(200, 169, 110, 0.04), transparent);
}

.project-card:nth-child(2) .project-card__image::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 20%;
  width: 40%;
  height: 60%;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:nth-child(3) .project-card__image {
  background:
    linear-gradient(135deg, #0f0f0f 0%, #1a1610 50%, #0d0d0d 100%);
}

.project-card:nth-child(3) .project-card__image::before {
  content: '';
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(200, 169, 110, 0.06);
  border-radius: 50%;
}

.project-card:nth-child(4) .project-card__image {
  background:
    linear-gradient(160deg, #151510 0%, #0a0a0a 40%, #14120f 100%);
}

.project-card:nth-child(4) .project-card__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(200, 169, 110, 0.1), transparent);
}

.project-card:nth-child(4) .project-card__image::after {
  content: '';
  position: absolute;
  top: 25%;
  left: 10%;
  width: 70%;
  height: 40%;
  background: linear-gradient(90deg, transparent, rgba(200, 169, 110, 0.03), transparent);
}

.project-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
  transform: translateY(20%);
  opacity: 0.7;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

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

.project-card__category {
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  color: var(--color-text-primary);
  margin: var(--space-xs) 0;
}

.project-card__meta {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
}

/* Featured project */
.project-card--featured {
  aspect-ratio: 16 / 10;
}

/* ========================================
   12. TESTIMONIALS & AWARDS
   ======================================== */

.testimonials {
  background-color: var(--color-bg-secondary);
}

.testimonials__grid {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.testimonial-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card__text {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: var(--fw-light);
  font-style: italic;
  color: var(--color-text-primary);
  line-height: 1.5;
  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-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__avatar span {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.testimonial-card__name {
  display: block;
  font-style: normal;
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  font-size: var(--fs-small);
}

.testimonial-card__role {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

/* Awards */
.awards {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.awards__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-light);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  text-align: center;
}

.awards__list {
  max-width: 700px;
  margin: 0 auto;
}

.award-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.award-item:last-child {
  border-bottom: none;
}

.award-item__year {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  color: var(--color-accent);
  flex-shrink: 0;
  min-width: 60px;
}

.award-item__name {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

/* ========================================
   13. PROCESS
   ======================================== */

.process__steps {
  display: grid;
  gap: var(--space-md);
}

.process__step {
  padding: var(--space-md);
  border-left: 1px solid var(--color-border);
  position: relative;
}

.process__step::before {
  content: '';
  position: absolute;
  left: -4px;
  top: var(--space-md);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.process__step-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: var(--fw-light);
  color: var(--color-bg-tertiary);
  line-height: 1;
  margin-bottom: var(--space-xs);
  user-select: none;
}

.process__step h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.process__step p {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  max-width: 300px;
}

/* ========================================
   14. FINAL CTA
   ======================================== */

.final-cta {
  padding: var(--space-2xl) 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(200, 169, 110, 0.04) 0%, transparent 60%),
    var(--color-bg-primary);
}

.final-cta__content {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.final-cta__title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-light);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.final-cta__text {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

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

/* ========================================
   15. FOOTER
   ======================================== */

.footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: var(--fw-light);
  color: var(--color-text-primary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.footer__logo span {
  color: var(--color-accent);
}

.footer__address {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
}

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

.footer__legal a {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  transition: color var(--duration-fast) ease;
}

.footer__legal a:hover {
  color: var(--color-text-secondary);
}

.footer__legal a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.footer__copy {
  font-size: var(--fs-small);
  color: var(--color-text-tertiary);
  opacity: 0.6;
}

/* ========================================
   16. SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

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

/* Stagger children in grids */
.services__grid .reveal:nth-child(2) { transition-delay: 100ms; }
.services__grid .reveal:nth-child(3) { transition-delay: 200ms; }
.services__grid .reveal:nth-child(4) { transition-delay: 300ms; }
.services__grid .reveal:nth-child(5) { transition-delay: 400ms; }

.process__steps .reveal:nth-child(2) { transition-delay: 100ms; }
.process__steps .reveal:nth-child(3) { transition-delay: 200ms; }
.process__steps .reveal:nth-child(4) { transition-delay: 300ms; }

.testimonials__grid .reveal:nth-child(2) { transition-delay: 100ms; }
.testimonials__grid .reveal:nth-child(3) { transition-delay: 200ms; }

.credentials__logos .credentials__item:nth-child(2) { transition-delay: 80ms; }
.credentials__logos .credentials__item:nth-child(3) { transition-delay: 160ms; }
.credentials__logos .credentials__item:nth-child(4) { transition-delay: 240ms; }
.credentials__logos .credentials__item:nth-child(5) { transition-delay: 320ms; }

/* ========================================
   17. RESPONSIVE
   ======================================== */

/* Small mobile adjustments */
@media (max-width: 480px) {
  .hero__proof {
    gap: var(--space-md);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .credentials__logos {
    gap: var(--space-md);
  }

  .credentials__item span {
    font-size: 0.65rem;
  }
}

/* Mobile CTA text */
@media (max-width: 767px) {
  .header__cta-full {
    display: none;
  }

  .header__cta-short {
    display: inline;
  }
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  section {
    padding: var(--space-xl) 0;
  }

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

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

  .project-card--featured {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 9;
  }

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

  .testimonials__grid .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

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

  .process__step {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: var(--space-md) 0 0;
  }

  .process__step::before {
    left: 0;
    top: -4px;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  section {
    padding: var(--space-2xl) 0;
  }

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

  .philosophy__visual {
    display: block;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials__grid .testimonial-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .process__steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__copy {
    order: -1;
  }
}

/* Large screens: 1440px+ */
@media (min-width: 1440px) {
  :root {
    --container-max: 1320px;
  }
}

/* ========================================
   18. REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__label,
  .hero__title,
  .hero__subtitle,
  .hero__actions,
  .hero__proof {
    opacity: 1;
  }
}
