/* =========================================================
   PiXEL Architecture Studio — Main Stylesheet
   Premium architecture firm website
   ========================================================= */

/* ── Imports ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --ink:          #0c0c0b;
  --dark:         #141412;
  --charcoal:     #1e1e1b;
  --grey-900:     #2a2a27;
  --grey-700:     #4a4a46;
  --grey-500:     #7a7a75;
  --grey-400:     #9e9e99;
  --grey-300:     #c4c4bf;
  --grey-200:     #e2e2de;
  --grey-100:     #f0efeb;
  --cream:        #f7f6f2;
  --white:        #ffffff;

  --accent:       #2d4a3e;   /* deep muted green */
  --accent-mid:   #3d6657;
  --accent-light: #5a8a72;
  --accent-pale:  #e8f0ec;
  --gold:         #9a7d4e;   /* warm bronze accent */
  --gold-light:   #c4a97a;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  5rem;
  --space-3xl:  8rem;
  --space-4xl:  12rem;

  /* Layout */
  --container:  1360px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.85, 0, 0.15, 1);
  --dur-fast:   200ms;
  --dur-mid:    400ms;
  --dur-slow:   700ms;

  /* Header */
  --header-h:   72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-pad { padding-block: var(--space-3xl); }
.section-pad--lg { padding-block: var(--space-4xl); }
.section-pad--sm { padding-block: var(--space-2xl); }

/* ── Typography Scale ── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.title-lg {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
}

.title-md {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.label--lg {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.body-lg { font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--dur-mid) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border: 1.5px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
  border: 1.5px solid var(--ink);
}
.btn--dark:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline-accent:hover {
  background: var(--accent);
  color: var(--white);
}

.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}

.site-header--transparent { background: transparent; }
.site-header--solid {
  background: rgba(14, 14, 12, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header__logo-icon {
  display: block;
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.header__logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.header__logo-name {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.site-nav { display: flex; align-items: center; gap: var(--space-xl); }

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

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--dur-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-light);
  transition: width var(--dur-mid) var(--ease-out);
}

.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta { margin-left: var(--space-md); }

/* Mobile menu toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--white);
  z-index: 1100;
}
.toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast);
}
.header__toggle.is-open .toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__toggle.is-open .toggle__bar:nth-child(2) { opacity: 0; }
.header__toggle.is-open .toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(12,12,11,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }

.mobile-nav__list { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  transition: color var(--dur-fast);
}
.mobile-nav__link:hover { color: var(--white); }
.mobile-nav__cta { margin-top: var(--space-lg); }
.mobile-nav__contact {
  color: var(--grey-400);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-lg);
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 8s var(--ease-out);
}

.hero.loaded .hero__img { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,8,0.25) 0%,
    rgba(10,10,8,0.1) 30%,
    rgba(10,10,8,0.45) 65%,
    rgba(10,10,8,0.88) 100%
  );
}

/* Architectural grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero__grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  color: rgba(255,255,255,0.55);
}

.hero__line {
  display: block;
  height: 1px;
  width: 60px;
  background: rgba(255,255,255,0.25);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.hero__title em {
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

.hero__lead {
  max-width: 55ch;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

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

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
}

.hero__scroll-bar {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero__scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  animation: scrollDrop 2s var(--ease-inout) infinite;
}
@keyframes scrollDrop {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ── Section Headers ── */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 1rem;
  color: var(--accent);
}

.section-header__rule {
  display: block;
  height: 1px;
  width: 40px;
  background: var(--accent);
}

.section-header__title { color: var(--ink); }
.section-header__lead {
  max-width: 55ch;
  color: var(--grey-700);
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.75;
}

/* Dark section variants */
.section--dark { background: var(--dark); color: var(--white); }
.section--dark .section-header__title { color: var(--white); }
.section--dark .section-header__lead { color: rgba(255,255,255,0.6); }
.section--charcoal { background: var(--charcoal); color: var(--white); }
.section--cream { background: var(--cream); }
.section--grey { background: var(--grey-100); }

/* ── Studio Intro ── */
.intro {
  padding-block: clamp(4rem, 10vh, 8rem);
  border-bottom: 1px solid var(--grey-200);
}

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

.intro__label-col { padding-top: 0.6rem; }
.intro__number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: var(--grey-200);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.intro__text-col {}
.intro__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--ink);
}
.intro__headline em { font-style: italic; color: var(--accent); }

.intro__body {
  max-width: 60ch;
  color: var(--grey-700);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--grey-200);
}

.intro__meta-item {}
.intro__meta-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
}
.intro__meta-label { font-size: 0.75rem; color: var(--grey-500); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
}

.service-card {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-mid) var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease-out);
}
.service-card:hover::before { width: 100%; }
.service-card:hover { background: var(--cream); }

.service-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--grey-200);
  line-height: 1;
  margin-bottom: var(--space-md);
  transition: color var(--dur-mid);
}
.service-card:hover .service-card__number { color: var(--accent-pale); }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--grey-700);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap var(--dur-fast);
}
.service-card__link:hover { gap: 0.75rem; }
.service-card__arrow { font-size: 1rem; }

/* ── Project Cards ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--grey-100);
  cursor: pointer;
}

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

.project-card--tall .project-card__image-wrap { aspect-ratio: 3/4; }
.project-card--wide .project-card__image-wrap { aspect-ratio: 16/9; }

.project-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.project-card:hover .project-card__img { transform: scale(1.05); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,8,0.8) 0%, rgba(10,10,8,0.1) 60%, transparent 100%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__category {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: rgba(10,10,8,0.75);
  color: rgba(255,255,255,0.85);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-card__view-link { display: none; }

.project-card__info {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.35rem;
  transition: color var(--dur-fast);
}
.project-card:hover .project-card__title { color: var(--accent); }

.project-card__location {
  font-size: 0.75rem;
  color: var(--grey-500);
  letter-spacing: 0.06em;
}

.project-card__desc {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--grey-700);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2rem;
  border: 1px solid var(--grey-300);
  color: var(--grey-700);
  background: transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* ── Philosophy / About CTA ── */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.philosophy__image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.philosophy__img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.philosophy__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
  background: var(--charcoal);
  color: var(--white);
}

.philosophy__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-lg);
}

.philosophy__body {
  color: rgba(255,255,255,0.6);
  font-size: clamp(0.875rem, 1vw, 1rem);
  line-height: 1.8;
  max-width: 45ch;
  margin-bottom: var(--space-xl);
}

.philosophy__trust {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}
.philosophy__trust-icon { font-size: 1.5rem; }
.philosophy__trust-text { font-size: 0.75rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.philosophy__trust-text strong { display: block; color: rgba(255,255,255,0.85); font-size: 0.8rem; }

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.stat-item {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--space-lg);
  text-align: center;
}

.stat-item__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item__value span { color: var(--accent); }

.stat-item__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* ── Team Cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.team-card {
  position: relative;
  text-align: center;
}

.team-card__avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-mid);
}
.team-card__avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-pale) 0%, var(--grey-100) 100%);
  opacity: 0;
  transition: opacity var(--dur-mid);
}
.team-card:hover .team-card__avatar::before { opacity: 1; }

.team-card__initials {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 300;
  color: var(--grey-400);
  position: relative;
  z-index: 1;
  transition: color var(--dur-mid);
}
.team-card:hover .team-card__initials { color: var(--accent); }

.team-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-card__credentials {
  font-size: 0.7rem;
  color: var(--grey-500);
  margin-top: 0.2rem;
}

/* ── Contact CTA Banner ── */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(4rem, 8vh, 7rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-banner__inner { position: relative; z-index: 1; }
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}
.cta-banner__subtitle {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  color: rgba(255,255,255,0.6);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
}
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand {}
.footer__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 30ch;
  margin-bottom: var(--space-lg);
}
.footer__aaa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}
.footer__aaa-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); flex-shrink: 0; }

.footer__col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.footer__nav-list { display: flex; flex-direction: column; gap: 0.625rem; }
.footer__nav-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--dur-fast);
}
.footer__nav-link:hover { color: var(--white); }

.footer__contact-list { display: flex; flex-direction: column; gap: 0.875rem; }
.footer__contact-item { display: flex; flex-direction: column; gap: 0.2rem; }
.footer__contact-label { font-size: 0.65rem; color: rgba(255,255,255,0.3); letter-spacing: 0.1em; text-transform: uppercase; }
.footer__contact-val { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.footer__contact-val a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  padding-block: var(--space-lg);
}

.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.footer__powered {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.footer__powered a {
  color: var(--white);
  font-weight: 600;
  transition: color var(--dur-fast);
}
.footer__powered a:hover { color: var(--accent-light); }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--accent-light); }
.back-to-top svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }

/* ── Individual Project Page ── */
.project-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.project-hero__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,8,0.85) 0%, rgba(10,10,8,0.2) 60%, transparent 100%);
}
.project-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
}
.project-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1rem;
}
.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.project-hero__meta span { display: flex; align-items: center; gap: 0.4rem; }

.project-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.project-body__main {}
.project-body__h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
  margin-top: 2rem;
}
.project-body__h2:first-child { margin-top: 0; }
.project-body__p {
  font-size: 1rem;
  color: var(--grey-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.project-body__sidebar {}
.project-details-box {
  background: var(--grey-100);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.project-details-box h3 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--grey-200);
}
.project-detail-item {
  margin-bottom: 1.1rem;
}
.project-detail-item__label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 0.25rem; }
.project-detail-item__val { font-size: 0.9rem; color: var(--ink); line-height: 1.5; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-block: var(--space-2xl);
}
.project-gallery--2col { grid-template-columns: repeat(2, 1fr); }
.project-gallery__item {
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.project-gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.project-gallery__item:hover .project-gallery__img { transform: scale(1.05); }

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,10,8,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  transition: all var(--dur-fast);
}
.lightbox__close:hover { border-color: white; color: white; background: rgba(255,255,255,0.05); }

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  transition: all var(--dur-fast);
}
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }
.lightbox__prev:hover, .lightbox__next:hover { border-color: white; color: white; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1rem;
  font-size: 0.75rem;
  color: var(--grey-500);
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: var(--space-lg);
}
.breadcrumb a { color: var(--grey-700); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--grey-300); }

/* ── Related Projects ── */
.related-projects {
  padding-block: var(--space-3xl);
  background: var(--grey-100);
}

/* ── Contact Page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.contact-info {}
.contact-info__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}
.contact-info__intro {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  color: var(--grey-700);
  line-height: 1.8;
  max-width: 40ch;
  margin-bottom: var(--space-xl);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: var(--space-xl);
}
.contact-detail__item { display: flex; gap: var(--space-sm); }
.contact-detail__icon {
  width: 36px; height: 36px;
  border: 1px solid var(--grey-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-detail__text {}
.contact-detail__label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-500); }
.contact-detail__val { font-size: 0.9rem; color: var(--grey-900); line-height: 1.5; }
.contact-detail__val a:hover { color: var(--accent); }

/* Contact form */
.contact-form { }
.form-demo-notice {
  background: var(--accent-pale);
  border: 1px solid rgba(45,74,62,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.form-grid--full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group--full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-700);
}
.form-label sup { color: var(--accent); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,74,62,0.12);
}
.form-input.error, .form-select.error, .form-textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '↓';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--grey-400);
  font-size: 0.8rem;
}

.form-textarea { resize: vertical; min-height: 140px; }
.form-error { font-size: 0.7rem; color: #c0392b; margin-top: 0.25rem; display: none; }
.form-error.visible { display: block; }

.form-honeypot { display: none; }

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.form-privacy { font-size: 0.7rem; color: var(--grey-500); max-width: 30ch; }

.form-status {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
  display: none;
}
.form-status.success { display: block; background: #e8f5e9; color: #2d6a4f; border: 1px solid #a8d5b5; }
.form-status.error { display: block; background: #fdecea; color: #a93226; border: 1px solid #f1a9a0; }
.form-status.demo { display: block; background: var(--accent-pale); color: var(--accent); border: 1px solid rgba(45,74,62,0.2); }

/* ── About page ── */
.about-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: var(--space-3xl);
  background: var(--cream);
}
.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: start;
}
.about-hero__eyebrow { margin-bottom: var(--space-sm); }
.about-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}
.about-hero__body {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.8;
  color: var(--grey-700);
  max-width: 60ch;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-3xl);
  border-top: 1px solid var(--grey-200);
}
.about-value__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--grey-200);
  margin-bottom: var(--space-sm);
}
.about-value__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.about-value__body { font-size: 0.9rem; color: var(--grey-700); line-height: 1.75; }

/* ── Services Page ── */
.service-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--grey-200);
}
.service-section__inner {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: var(--space-2xl);
  align-items: start;
}
.service-section__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--grey-200);
  line-height: 1;
}
.service-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}
.service-section__body {
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  color: var(--grey-700);
  line-height: 1.8;
  max-width: 65ch;
  margin-bottom: var(--space-lg);
}
.service-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}
.service-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--grey-700);
}
.service-bullet::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* ── Team Page ── */
.team-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: var(--space-3xl);
  background: var(--ink);
  color: var(--white);
}
.team-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--grey-200);
}
.team-member {
  background: var(--white);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-xl);
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter);
  transition: background var(--dur-mid);
}
.team-member:hover { background: var(--cream); }
.team-member__avatar {
  width: 120px; height: 120px;
  background: var(--grey-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.team-member__avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-pale) 0%, var(--grey-100) 100%);
}
.team-member__initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--grey-400);
  position: relative;
  z-index: 1;
}
.team-member__info {}
.team-member__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.team-member__role { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.team-member__credentials { font-size: 0.75rem; color: var(--grey-500); margin-bottom: var(--space-md); }
.team-member__bio { font-size: 0.9rem; color: var(--grey-700); line-height: 1.8; max-width: 70ch; }

/* Page hero offset for non-home pages */
.page-hero {
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: var(--space-3xl);
}

/* ── Responsive ── */

@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .projects-grid--featured { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .intro__inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .intro__number { font-size: 3rem; }
  .philosophy { grid-template-columns: 1fr; }
  .philosophy__image { min-height: 50vw; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid--featured { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-hero__inner { grid-template-columns: 1fr; }
  .service-section__inner { grid-template-columns: 1fr; }
  .service-section__num { display: none; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .project-body { grid-template-columns: 1fr; }
  .project-details-box { position: static; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .team-member { grid-template-columns: 80px 1fr; gap: var(--space-md); }
  .team-member__avatar { width: 80px; height: 80px; }
  .team-member__initials { font-size: 2rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav__list, .nav__cta { display: none; }
  .header__toggle { display: flex; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .service-bullets { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
}

/* ── Print ── */
@media print {
  .site-header, .site-footer, .cta-banner { display: none; }
  .page-hero { padding-top: 2rem; }
  body { font-size: 12pt; }
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Selection ── */
::selection { background: var(--accent); color: var(--white); }
