/* =========================
   CSS VARIABLES
   ========================= */
:root {
  /* Brand Colors */
  --background: #f8f6f2;
  --foreground: #4a4842;
  --primary: #4a4842;
  --primary-foreground: #f8f6f2;
  --secondary: #f0ede8;
  --secondary-foreground: #4a4842;
  --muted: #e8e5e0;
  --muted-foreground: #555555;
  --accent: #c76734;
  --accent-foreground: #f8f6f2;
  --border: #bbbbbb;
  --card: #f8f6f2;
  --card-foreground: #4a4842;

  /* Alternate backgrounds */
  --bg-alt: #f5f3ef;
  --bg-alt-2: #f3f1ed;

  /* Layout */
  --header-height: 100px;

  /* Font */
  --font-sans: 'Manrope', system-ui, sans-serif;
}

/* =========================
   RESET & BASE STYLES
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

input,
textarea {
  font-family: inherit;
}

/* =========================
   UTILITY CLASSES
   ========================= */
.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: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.lowercase {
  text-transform: lowercase;
}

.uppercase {
  text-transform: uppercase;
}

/* =========================
   HEADER STYLES
   ========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(248, 246, 242, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s ease;
  padding: 8px 0;
  height: auto;
}

.header-content.default {
  height: 80px;
}

.header-content.scrolled {
  height: 64px;
}

/* Logo */
.logo {
  position: relative;
  z-index: 50;
  display: block;
}

.logo-img {
  width: auto;
  transition: all 0.5s ease;
}

.logo-img.mobile {
  height: 40px;
}

.logo-img.desktop {
  display: none;
  height: 56px;
}

.header.scrolled .logo-img.desktop {
  height: 36px;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 8px 20px;
  transition: color 0.5s ease;
  color: var(--muted-foreground);
}

/* Homepage only: white nav links when not scrolled */
.header-homepage .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.header-homepage.scrolled .nav-link {
  color: var(--muted-foreground);
}

.nav-link:hover {
  color: var(--accent);
}

/* Homepage only: white hover when not scrolled */
.header-homepage:not(.scrolled) .nav-link:hover {
  color: white;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link-underline {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Homepage only: white underline when not scrolled */
.header-homepage:not(.scrolled) .nav-link-underline {
  background: rgba(255, 255, 255, 0.7);
}

.nav-link:hover .nav-link-underline,
.nav-link.active .nav-link-underline {
  transform: scaleX(1);
}

.nav-link.active .nav-link-underline {
  background: var(--accent);
}

.nav-separator {
  width: 1px;
  height: 10px;
  background: rgba(187, 187, 187, 0.3);
  margin-top: 1px;
  transition: background 0.5s ease;
}

/* Homepage only: white separator when not scrolled */
.header-homepage:not(.scrolled) .nav-separator {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Button */
.menu-btn {
  position: relative;
  z-index: 50;
  padding: 8px;
  margin-right: -8px;
}

.menu-btn svg {
  width: 20px;
  height: 20px;
  color: var(--foreground);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background: var(--background);
}

.mobile-menu-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding: 96px 24px;
}

.mobile-nav-link {
  position: relative;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  padding: 12px 0;
  color: var(--foreground);
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.3s ease;
}

.mobile-menu.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-link:nth-child(1) {
  transition-delay: 0ms;
}

.mobile-menu.open .mobile-nav-link:nth-child(1) {
  transition-delay: 0ms;
}

.mobile-nav-link:nth-child(2) {
  transition-delay: 0ms;
}

.mobile-menu.open .mobile-nav-link:nth-child(2) {
  transition-delay: 60ms;
}

.mobile-nav-link:nth-child(3) {
  transition-delay: 0ms;
}

.mobile-menu.open .mobile-nav-link:nth-child(3) {
  transition-delay: 120ms;
}

.mobile-nav-link:nth-child(4) {
  transition-delay: 0ms;
}

.mobile-menu.open .mobile-nav-link:nth-child(4) {
  transition-delay: 180ms;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent);
}

.mobile-nav-link-underline {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.mobile-nav-link:hover .mobile-nav-link-underline,
.mobile-nav-link.active .mobile-nav-link-underline {
  transform: scaleX(1);
}

.mobile-menu-footer {
  position: absolute;
  bottom: 40px;
  left: 24px;
  right: 24px;
  border-top: 1px solid rgba(199, 103, 52, 0.2);
  padding-top: 24px;
  opacity: 0;
  transition: opacity 0.4s ease 0.25s;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
}

.mobile-menu-tagline {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  text-transform: lowercase;
}

.mobile-menu-tagline span {
  color: rgba(199, 103, 52, 0.8);
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--background);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  padding-top: 96px;
  padding-bottom: 80px;
}

.hero-left {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

.hero-left-inner {
  display: flex;
  flex-direction: column;
}

.hero-est {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(48px, 10vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-transform: lowercase;
  line-height: 0.95;
}

.hero-headline span {
  display: block;
}

.hero-headline span:not(:first-child) {
  margin-top: 4px;
}

.hero-headline .accent {
  color: var(--accent);
}

.hero-content {
  max-width: 448px;
  margin-top: 28px;
}

.hero-text {
  max-width: 320px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid rgba(187, 187, 187, 0.5);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(74, 72, 66, 0.7);
  text-transform: lowercase;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  color: var(--accent);
  border-color: rgba(199, 103, 52, 0.5);
}

.cta-btn-arrow {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: rgba(74, 72, 66, 0.3);
  transition: all 0.3s ease;
}

.cta-btn:hover .cta-btn-arrow {
  width: 24px;
  background: var(--accent);
  transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: var(--foreground);
}

.hero-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero Right - Image */
.hero-right {
  position: relative;
  margin-top: 48px;
  padding: 0 24px;
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-overlay-top {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.25) 15%, rgba(0, 0, 0, 0) 40%);
}

.hero-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

.hero-image-label-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-label-tag {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.hero-label-name {
  display: block;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: white;
  margin-top: 4px;
}

.hero-label-year {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.hero-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

/* =========================
   SELECTED WORK SECTION
   ========================= */
.selected-work {
  background: var(--background);
  padding: 56px 0;
}

.section-header {
  margin-bottom: 32px;
}

.section-header-inner {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-number {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

.section-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-transform: lowercase;
}

.section-title .accent {
  color: var(--accent);
}

.section-accent-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-top: 16px;
}

/* Featured Project */
.featured-project {
  display: block;
  width: 100%;
}

.featured-project-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 21 / 9;
}

.featured-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.featured-project:hover .featured-project-image {
  transform: scale(1.015);
}

.featured-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent, transparent);
}

.featured-project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.featured-project-info-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.featured-project-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: white;
  text-transform: lowercase;
}

.featured-project-location {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.featured-project-year {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.featured-project-line {
  margin-top: 16px;
  height: 1px;
  width: 0;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.featured-project:hover .featured-project-line {
  width: 96px;
}

/* Supporting Projects Grid */
.supporting-projects {
  margin-top: 32px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-card {
  display: block;
}

.project-card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.project-card-image-wrapper.large {
  aspect-ratio: 16 / 10;
}

.project-card-image-wrapper.normal {
  aspect-ratio: 4 / 3;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.project-card:hover .project-card-image {
  transform: scale(1.02);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.5s ease;
}

.project-card:hover .project-card-overlay {
  background: rgba(0, 0, 0, 0.05);
}

.project-card-info {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-card-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-transform: lowercase;
  transition: color 0.3s ease;
}

.project-card:hover .project-card-name {
  color: var(--accent);
}

.project-card-location {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.project-card-year {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

.project-card-line {
  margin-top: 12px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.project-card:hover .project-card-line {
  width: 64px;
}

/* View All Link */
.view-all-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
}

/* =========================
   PHILOSOPHY / APPROACH SECTION
   ========================= */
.philosophy {
  padding: 64px 0;
  background: var(--bg-alt);
}

.philosophy-header {
  margin-bottom: 40px;
}

.philosophy-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.philosophy-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-transform: lowercase;
  line-height: 1.1;
  max-width: 448px;
}

.philosophy-title .accent {
  color: var(--accent);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* Accordion */
.accordion {
  border-top: 1px solid rgba(187, 187, 187, 0.5);
}

.accordion:first-child {
  border-top: none;
}

.accordion-trigger {
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.accordion-trigger-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.accordion-number {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(85, 85, 85, 0.6);
}

.accordion-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  transition: color 0.3s ease;
  color: rgba(74, 72, 66, 0.7);
}

.accordion.open .accordion-title,
.accordion-trigger:hover .accordion-title {
  color: var(--foreground);
}

.accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 6px;
  flex-shrink: 0;
}

.accordion-icon span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1px;
  background: rgba(74, 72, 66, 0.4);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion-icon span:last-child {
  transform: rotate(90deg);
}

.accordion.open .accordion-icon span:last-child {
  transform: rotate(0);
  opacity: 0;
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.5s ease, padding 0.5s ease;
}

.accordion.open .accordion-content {
  max-height: 200px;
  opacity: 1;
  padding-bottom: 24px;
}

.accordion-content-inner {
  padding-left: 32px;
  padding-right: 16px;
}

.accordion-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 448px;
}

.accordion-accent-line {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-top: 16px;
}

.accordion-border-bottom {
  border-top: 1px solid rgba(187, 187, 187, 0.5);
}

/* Philosophy Image */
.philosophy-image-wrapper {
  position: relative;
}

.philosophy-image-sticky {
  position: relative;
}

.philosophy-image-container {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.philosophy-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.philosophy-image.active {
  opacity: 1;
}

.philosophy-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

.philosophy-caption {
  margin-top: 12px;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(85, 85, 85, 0.6);
  text-transform: uppercase;
}

/* =========================
   PROJECT TYPES SECTION
   ========================= */
.project-types {
  padding: 80px 0;
  background: var(--background);
}

.project-types-header {
  margin-bottom: 48px;
}

.project-types-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.project-types-title {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-transform: lowercase;
}

.project-types-title .accent {
  color: var(--accent);
}

/* Staggered Grid */
.project-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.project-type-card {
  display: block;
}

.project-type-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.project-type-image-wrapper.large {
  aspect-ratio: 4 / 5;
}

.project-type-image-wrapper.normal {
  aspect-ratio: 4 / 3;
}

.project-type-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project-type-card:hover .project-type-image {
  transform: scale(1.03);
}

.project-type-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.5s ease;
}

.project-type-card:hover .project-type-overlay {
  background: rgba(74, 72, 66, 0.05);
}

.project-type-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  text-transform: lowercase;
  margin-bottom: 4px;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.project-type-card:hover .project-type-name {
  color: var(--accent);
}

.project-type-name-underline {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s ease;
}

.project-type-card:hover .project-type-name-underline {
  width: 100%;
}

.project-type-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.project-types-cta {
  margin-top: 48px;
  display: flex;
  justify-content: flex-end;
}

/* =========================
   CREDENTIALS SECTION
   ========================= */
.credentials {
  position: relative;
  padding: 40px 0;
  background: var(--bg-alt-2);
}

.credentials-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Desktop Stats */
.credentials-desktop {
  display: none;
  justify-content: center;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 5fr 1fr 6fr;
  gap: 32px;
  min-height: 260px;
  max-width: 896px;
}

.credentials-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.credentials-main-stat {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.credentials-main-stat.visible {
  opacity: 1;
  transform: translateY(0);
}

.credentials-main-number {
  display: block;
  font-size: 128px;
  font-weight: 500;
  color: var(--foreground);
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.credentials-main-number .accent {
  color: var(--accent);
}

.credentials-main-label {
  display: block;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  margin-top: 16px;
}

.credentials-divider {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.credentials-divider-line {
  width: 1px;
  height: 100%;
  background: rgba(199, 103, 52, 0.4);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s ease 0.2s;
}

.credentials-divider-line.visible {
  transform: scaleY(1);
}

.credentials-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
}

.credentials-stat {
  padding-left: 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.credentials-stat.visible {
  opacity: 1;
  transform: translateY(0);
}

.credentials-stat:first-child {
  padding-top: 16px;
}

.credentials-stat-number {
  display: block;
  font-size: 48px;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1;
  letter-spacing: -0.02em;
}

.credentials-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  margin-top: 12px;
}

/* Mobile Stats */
.credentials-mobile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credentials-mobile-stat {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(187, 187, 187, 0.3);
}

.credentials-mobile-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.credentials-mobile-number {
  display: block;
  font-size: 60px;
  font-weight: 500;
  color: var(--foreground);
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.credentials-mobile-number.small {
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.credentials-mobile-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  margin-top: 8px;
}

.credentials-note {
  text-align: center;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(85, 85, 85, 0.5);
  margin-top: 32px;
  opacity: 0;
  transition: opacity 0.7s ease 0.6s;
}

.credentials-note.visible {
  opacity: 1;
}

/* =========================
   FOOTER STYLES
   ========================= */
.footer {
  background: var(--background);
}

.footer-divider {
  height: 1px;
  background: rgba(187, 187, 187, 0.3);
}

/* CTA Section */
.footer-cta {
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-cta-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-cta-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--foreground);
  text-transform: lowercase;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer-cta-title .accent {
  color: var(--accent);
}

.footer-cta-text {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-foreground);
  margin-bottom: 16px;
  max-width: 384px;
}

.footer-contact-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--foreground);
}

.footer-contact-links a {
  transition: color 0.3s ease;
}

.footer-contact-links a:hover {
  color: var(--accent);
}

.footer-contact-divider {
  color: var(--border);
}

/* Contact Form */
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-input,
.footer-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(187, 187, 187, 0.4);
  padding-bottom: 8px;
  font-size: 14px;
  font-weight: 300;
  color: var(--foreground);
  transition: border-color 0.3s ease;
}

.footer-input::placeholder,
.footer-textarea::placeholder {
  color: rgba(85, 85, 85, 0.5);
}

.footer-input:focus,
.footer-textarea:focus {
  outline: none;
  border-color: rgba(199, 103, 52, 0.6);
}

.footer-textarea {
  resize: none;
}

.footer-form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Footer Main */
.footer-main {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  grid-column: span 2;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

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

.footer-address {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(85, 85, 85, 0.7);
  text-transform: uppercase;
  line-height: 1.65;
}

/* Footer Navigation */
.footer-nav-section {
  grid-column: span 1;
}

.footer-nav-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-link {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(85, 85, 85, 0.7);
  text-transform: lowercase;
  transition: color 0.3s ease;
}

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

/* Footer Social */
.footer-social-section {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-social-label {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  color: rgba(85, 85, 85, 0.5);
  transition: color 0.3s ease;
}

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

.footer-social-link svg {
  width: 14px;
  height: 14px;
}

/* Sub Footer */
.sub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(187, 187, 187, 0.15);
}

.sub-footer-text {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(85, 85, 85, 0.5);
  text-transform: uppercase;
}

.sub-footer-text a {
  transition: color 0.3s ease;
}

.sub-footer-text a:hover {
  color: var(--accent);
}



/* =========================
   TABLET STYLES (max-width: 1024px)
   ========================= */
@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .header-inner {
    padding: 0 40px;
  }

  .hero-left {
    padding: 0 40px;
  }

  .hero-right {
    padding: 0 40px;
  }

  .hero-grid {
    padding-top: 180px;
  }

  .hero-headline {
    font-size: 60px;
  }

  .hero-stat-value {
    font-size: 30px;
  }

  .hero-image-label {
    padding: 32px;
  }

  .philosophy-grid {
    gap: 48px;
  }

  .credentials-grid {
    gap: 24px;
  }

  .credentials-main-number {
    font-size: 100px;
  }

  .credentials-stat-number {
    font-size: 40px;
  }
}

/* =========================
   DESKTOP STYLES (min-width: 768px)
   ========================= */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .header-inner {
    padding: 0 40px;
  }

  .header-content {
    padding: 4px 0;
  }

  .logo-img.mobile {
    display: none;
  }

  .logo-img.desktop {
    display: block;
  }

  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

/* =========================
   TABLET HEADER STYLES (768px - 1023px)
   When hero stacks, header needs solid background
   ========================= */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Header always has solid background at tablet */
  .header,
  .header-homepage {
    background: rgba(248, 246, 242, 0.98);
    backdrop-filter: blur(8px);
  }
  
  /* All nav links are dark at tablet - override homepage white styles */
  .header-homepage .nav-link,
  .header-homepage:not(.scrolled) .nav-link {
    color: var(--muted-foreground);
  }
  
  .header-homepage .nav-link:hover,
  .header-homepage:not(.scrolled) .nav-link:hover {
    color: var(--accent);
  }
  
  /* Underline is always accent color at tablet */
  .header-homepage:not(.scrolled) .nav-link-underline {
    background: var(--accent);
  }
  
  /* Separator is always dark at tablet */
  .header-homepage:not(.scrolled) .nav-separator {
    background: rgba(187, 187, 187, 0.3);
  }
}

/* Resume min-width: 768px styles */
@media (min-width: 768px) {
  .hero-headline {
    font-size: 60px;
  }

  .hero-est {
    font-size: 12px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-stat-value {
    font-size: 30px;
  }

  .hero-stat-label {
    font-size: 12px;
  }

  .hero-right {
    margin-top: 56px;
  }

  .hero-image-label {
    padding: 32px;
  }

  .hero-label-tag,
  .hero-label-year {
    font-size: 12px;
  }

  .hero-label-name {
    font-size: 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-number {
    font-size: 12px;
  }

  .section-title {
    font-size: 30px;
  }

  .selected-work {
    padding: 72px 0;
  }

  .supporting-projects {
    margin-top: 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
  }

  .projects-grid .project-card:first-child {
    grid-column: span 7;
  }

  .projects-grid .project-card:last-child {
    grid-column: span 5;
  }

  .project-card-info {
    margin-top: 24px;
  }

  .project-card-name {
    font-size: 18px;
  }

  .project-card-location {
    font-size: 14px;
  }

  .project-card-year {
    font-size: 12px;
  }

  .view-all-wrapper {
    margin-top: 48px;
  }

  .featured-project-info {
    padding: 40px;
  }

  .featured-project-name {
    font-size: 24px;
  }

  .featured-project-location {
    font-size: 16px;
  }

  .featured-project-year {
    font-size: 12px;
  }

  .philosophy {
    padding: 80px 0;
  }

  .philosophy-header {
    margin-bottom: 56px;
  }

  .philosophy-title {
    font-size: 32px;
  }

  .accordion-trigger {
    padding: 24px 0;
  }

  .accordion-trigger-left {
    gap: 24px;
  }

  .accordion-number {
    font-size: 12px;
  }

  .accordion-title {
    font-size: 20px;
  }

  .accordion-content-inner {
    padding-left: 56px;
  }

  .accordion-text {
    font-size: 16px;
  }

  .project-types {
    padding: 112px 0;
  }

  .project-types-header {
    margin-bottom: 64px;
  }

  .project-types-title {
    font-size: 40px;
  }

  .project-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
  }

  .project-types-grid-left {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .project-types-grid-right {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 96px;
  }

  .project-type-name {
    font-size: 20px;
  }

  .project-types-cta {
    margin-top: 64px;
  }

  .credentials {
    padding: 48px 0;
  }

  .credentials-label {
    margin-bottom: 32px;
  }

  .credentials-desktop {
    display: flex;
  }

  .credentials-mobile {
    display: none;
  }

  .credentials-note {
    margin-top: 40px;
    font-size: 12px;
  }

  .footer-cta {
    padding: 64px 0 56px;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px;
  }

  .footer-cta-title {
    font-size: 30px;
  }

  .footer-cta-text {
    font-size: 14px;
  }

  .footer-contact-links {
    font-size: 14px;
  }

  .footer-form {
    padding-top: 24px;
  }

  .footer-main {
    padding: 40px 0;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }

  .footer-brand {
    grid-column: span 4;
  }

  .footer-nav-section {
    grid-column: 6 / span 4;
  }

  .footer-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .footer-nav-link {
    font-size: 12px;
  }

  .footer-social-section {
    grid-column: 11 / span 2;
  }
}

/* =========================
   LARGE DESKTOP STYLES (min-width: 1024px)
   ========================= */
@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }

  .header-inner {
    padding: 0 64px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 100vh;
  }

  .hero-left {
    padding: 0 32px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
  }

  .hero-left-inner {
    margin-left: auto;
    max-width: 520px;
    gap: 24px;
    padding: 64px 0 48px;
  }

  .hero-headline {
    font-size: 60px;
  }

  .hero-content {
    margin-top: 0;
  }

  .hero-text {
    margin-bottom: 16px;
  }

  .hero-stats {
    margin-top: 0;
    padding-top: 24px;
  }

  .hero-right {
    margin-top: 0;
    padding: 0;
    height: 100%;
  }

  .hero-image-wrapper {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .hero-image-overlay-top {
    display: block;
  }
}

/* =========================
   SMALLER DESKTOP (1024px - 1400px)
   Increased hero top spacing for breathing room
   ========================= */
@media (min-width: 1024px) and (max-width: 1400px) {
  .hero-left {
    padding-top: calc(var(--header-height) + 40px);
  }

  .hero-left-inner {
    padding: 80px 0 48px;
  }
}

/* Resume min-width: 1024px styles */
@media (min-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }

  .philosophy-image-sticky {
    position: sticky;
    top: 96px;
  }

  .credentials-grid {
    min-height: 300px;
    gap: 64px;
  }

  .credentials-main-number {
    font-size: 160px;
  }

  .credentials-main-label {
    font-size: 14px;
    margin-top: 20px;
  }

  .credentials-stat {
    padding-left: 40px;
  }

  .credentials-stat-number {
    font-size: 56px;
  }

  .credentials-stat-label {
    font-size: 12px;
  }

  .featured-project-info {
    padding: 64px;
  }

  .featured-project-name {
    font-size: 30px;
  }
}

/* =========================
   XL DESKTOP STYLES (min-width: 1280px)
   ========================= */
@media (min-width: 1280px) {
  .hero-left {
    padding: 0 48px 0 64px;
  }

  .hero-left-inner {
    max-width: 560px;
    gap: 32px;
    padding: 80px 0 64px;
    margin-top: 60px;
  }

  .hero-headline {
    font-size: 70px;
  }

  .credentials-main-number {
    font-size: 176px;
  }
}

/* =========================
   2XL DESKTOP STYLES (min-width: 1536px)
   ========================= */
@media (min-width: 1536px) {
  .hero-left {
    padding: 0 48px 0 96px;
  }

  .hero-headline {
    font-size: 88px;
  }
}

/* =========================
   MOBILE STYLES (max-width: 768px)
   ========================= */
@media (max-width: 768px) {
  .selected-work {
    padding: 56px 0;
  }

  .view-all-wrapper {
    margin-top: 40px;
  }

  .philosophy {
    padding: 64px 0;
  }

  .philosophy-header {
    margin-bottom: 40px;
  }

  .project-types {
    padding: 80px 0;
  }

  .project-types-header {
    margin-bottom: 48px;
  }

  .project-types-cta {
    margin-top: 48px;
  }

  .credentials {
    padding: 40px 0;
  }

  .footer-cta {
    padding: 56px 0 48px;
  }

  .footer-main {
    padding: 32px 0;
  }
}

/* =========================
   SMALL MOBILE STYLES (max-width: 480px)
   ========================= */
@media (max-width: 480px) {
  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .hero-headline {
    font-size: 48px;
  }

  .section-title {
    font-size: 24px;
  }

  .philosophy-title {
    font-size: 24px;
  }

  .project-types-title {
    font-size: 30px;
  }

  .credentials-mobile-number {
    font-size: 48px;
  }

  .credentials-mobile-number.small {
    font-size: 32px;
  }

  .footer-cta-title {
    font-size: 24px;
  }
}
