/* ============================================================
   ENVIRON PLANNERS — Ultra Modern Architecture Portfolio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;1,100;1,200;1,300&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:           #0a0a0a;
  --bg-2:         #111111;
  --bg-3:         #1a1a1a;
  --bg-4:         #232323;
  --text:         #f0ebe0;
  --text-muted:   #7a7570;
  --text-dim:     #4a4540;
  --accent:       #6b6b6b;
  --accent-hover: #8a8a8a;
  --accent-dim:   rgba(107, 107, 107, 0.12);
  --border:       rgba(107, 107, 107, 0.25);
  --border-light: rgba(240, 235, 224, 0.08);

  --font-serif: 'Raleway', 'Century Gothic', Futura, sans-serif;
  --font-sans:  'Raleway', 'Century Gothic', Futura, sans-serif;

  --nav-h: 76px;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ── Light Theme ──────────────────────────────────────────── */
html[data-theme="light"] {
  --bg:           #faf8f4;
  --bg-2:         #f2efe9;
  --bg-3:         #eae6df;
  --bg-4:         #e2ddd5;
  --text:         #1c1c1a;
  --text-muted:   #6e6860;
  --text-dim:     #b0a89e;
  --accent:       #4a4a4a;
  --accent-hover: #333333;
  --accent-dim:   rgba(74, 74, 74, 0.10);
  --border:       rgba(74, 74, 74, 0.25);
  --border-light: rgba(28, 28, 26, 0.10);
}

/* Header background flips to cream */
html[data-theme="light"] .site-header {
  background: rgba(250, 248, 244, 0.97);
  border-bottom-color: rgba(28, 28, 26, 0.10);
}
html[data-theme="light"] .site-header.scrolled {
  background: rgba(250, 248, 244, 0.97);
  border-bottom-color: rgba(28, 28, 26, 0.10);
}

/* Text over dark photos — keep light regardless of theme */
html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-cta,
html[data-theme="light"] .project-hero-title,
html[data-theme="light"] .category-card-name,
html[data-theme="light"] .category-card-count,
html[data-theme="light"] .project-card-name,
html[data-theme="light"] .project-card-cat { color: #f0ebe0; }
html[data-theme="light"] .hero-title em,
html[data-theme="light"] .project-hero-title em { color: #f0ebe0; }
html[data-theme="light"] .hero-cta { border-color: rgba(240,235,224,0.4); }
html[data-theme="light"] .hero-cta:hover { color: var(--accent); border-color: var(--accent); }

/* Lightbox always displays over its own dark backdrop — keep controls light */
html[data-theme="light"] .lightbox-close,
html[data-theme="light"] .lightbox-counter { color: #7a7570; }
html[data-theme="light"] .lightbox-prev,
html[data-theme="light"] .lightbox-next { color: #7a7570; border-color: rgba(240,235,224,0.25); }

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

html {
  background: #0a0a0a;
  scroll-behavior: smooth;
  font-size: 19.36px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; font-family: inherit; }

/* ── Custom Cursor ────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}

.cursor.is-hovering { width: 6px; height: 6px; }
.cursor-follower.is-hovering { width: 52px; height: 52px; border-color: var(--accent); }

/* ── Navigation ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease), border-color 0.4s;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-bottom-color: var(--border-light);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 48px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.3s;
}
.logo:hover { opacity: 0.8; }

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text);
}

.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 400;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 400;
  color: var(--text);
  padding: 8px 16px;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover { color: var(--accent); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-link--has-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 0.55rem;
  transition: transform 0.3s var(--ease);
  display: inline-block;
  margin-top: 1px;
}

.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--border);
  min-width: 200px;
  padding: 8px 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease), visibility 0.25s, transform 0.25s var(--ease);
  transform: translateX(-50%) translateY(-8px);
}

.nav-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-category {
  position: relative;
}

.dropdown-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text);
  transition: color 0.2s, background 0.2s;
  gap: 24px;
}

.dropdown-category-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.dropdown-category-link .arrow-right {
  font-size: 0.9rem;
  font-weight: 300;
  transition: transform 0.2s;
}

.dropdown-category:hover .arrow-right { transform: translateX(3px); }

/* Level 3 */
.dropdown-projects {
  position: absolute;
  top: -8px;
  left: calc(100% + 1px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  min-width: 210px;
  padding: 8px 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s var(--ease), visibility 0.2s;
}

.dropdown-category:hover .dropdown-projects {
  visibility: visible;
  opacity: 1;
}

.dropdown-project-link {
  display: block;
  padding: 9px 20px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.2s, padding-left 0.2s;
}

.dropdown-project-link:hover {
  color: var(--accent);
  padding-left: 26px;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.2) 0%,
    rgba(10,10,10,0.1) 40%,
    rgba(10,10,10,0.7) 80%,
    rgba(10,10,10,0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px 72px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-title em {
  font-style: normal;
  font-weight: 200;
  color: var(--accent);
}

.hero-sub {
  font-size: 0.825rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.6);
  margin-bottom: 40px;
  white-space: nowrap;
  line-height: 2;
}

.hero-sub-names {
  font-weight: 600;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s, gap 0.3s;
}

.hero-cta:hover { color: var(--accent); border-color: var(--accent); gap: 18px; }

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.4);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.4; }
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 48px 80px;
  max-width: 1600px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}

.page-hero-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  max-width: 600px;
}

.page-hero-title em { font-style: normal; font-weight: 200; color: var(--accent); }

/* ── Section Layout ───────────────────────────────────────── */
.section {
  padding: 100px 48px;
  max-width: 1600px;
  margin: 0 auto;
}

.section-full {
  padding: 100px 48px;
}

.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.7s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-label.revealed { color: #111111; }

.section-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-title em { font-style: normal; font-weight: 200; color: var(--accent); }

.section-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 640px;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-light);
  margin: 0;
}

/* ── Home: Philosophy Strip ───────────────────────────────── */
.philosophy-strip {
  background: var(--bg-2);
  padding: 80px 48px;
  text-align: center;
}

.philosophy-strip blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 200;
  font-style: normal;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.philosophy-strip cite {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-3);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1600px;
  margin: 0 auto;
}

.stat-item {
  padding: 48px 40px;
  text-align: center;
  border-right: 1px solid var(--border-light);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Featured Projects Grid ───────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.featured-grid .card-large {
  grid-column: span 2;
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
}

.project-card.tall { aspect-ratio: 3/4; }

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-card:hover .project-card-img { transform: scale(1.06); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

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

.project-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

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

.project-card-cat {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

.project-card-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text);
  display: block;
}

/* ── Studio Section ───────────────────────────────────────── */
.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.studio-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.studio-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.studio-images img:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ── Category Cards (Projects page) ──────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-3);
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: brightness(0.65);
}

.category-card:hover img {
  transform: scale(1.07);
  filter: brightness(0.5);
}

.category-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 28px;
}

.category-card-count {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.category-card-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text);
  transition: color 0.3s;
}

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

.category-card-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  border: 1px solid rgba(240,235,224,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(240,235,224,0.5);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.category-card:hover .category-card-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(45deg);
}

/* ── Projects List (inside category) ─────────────────────── */
.projects-header {
  padding: calc(var(--nav-h) + 60px) 48px 60px;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.projects-grid .card-wide { grid-column: span 2; aspect-ratio: 8/3; }

/* ── Individual Project Page ──────────────────────────────── */
.project-hero {
  height: 85vh;
  position: relative;
  overflow: hidden;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3), rgba(10,10,10,0.6));
}

.project-hero-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 48px 60px;
  max-width: 1600px;
  margin: 0 auto;
}

.project-category-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 6px 14px;
  margin-bottom: 16px;
}

.project-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--text);
  max-width: 700px;
  line-height: 1.1;
}

.project-hero-title em { font-style: normal; font-weight: 200; color: var(--accent); }

.project-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding: 80px 48px;
  max-width: 1600px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}

.project-meta {}

.project-meta-item {
  margin-bottom: 32px;
}

.project-meta-label {
  font-size: 0.59rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.project-meta-value {
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.6;
}

.project-description {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
}

/* Gallery */
.gallery-section {
  padding: 80px 48px;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--bg-3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-item:hover .gallery-item-overlay { background: rgba(10,10,10,0.4); }

.gallery-zoom-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(240,235,224,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 5, 5, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  transition: opacity 0.2s;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--accent); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-prev { left: 32px; }
.lightbox-next { right: 32px; }
.lightbox-prev:hover, .lightbox-next:hover { border-color: var(--accent); color: var(--accent); }

.lightbox-counter {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* ── Home About ───────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ── Profile Page ─────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  align-items: start;
}

.profile-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.profile-body p {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 28px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 80px;
}

.team-card {
  background: var(--bg-2);
  padding: 48px 40px;
  border: 1px solid var(--border-light);
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 6px;
}

.team-title {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.team-bio {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── Awards Page ──────────────────────────────────────────── */
.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.award-card {
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}

.award-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s var(--ease);
}

.award-card:hover { border-color: var(--border); background: var(--bg-3); }
.award-card:hover::before { height: 100%; }

.award-year {
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 12px;
  display: block;
}

.award-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 300;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.3;
}

.award-org {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #000;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.award-project {
  font-size: 0.96rem;
  color: #000;
  font-style: italic;
  font-family: var(--font-serif);
}

/* Publications section */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.publication-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: var(--bg-2);
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  gap: 24px;
}

.publication-item:hover {
  border-color: var(--border);
  background: var(--bg-3);
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--text);
}

.pub-meta {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Achievements list ────────────────────────────────────── */
.achieve-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
}

.achieve-list li {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}

.contact-info-item {
  margin-bottom: 44px;
}

.contact-info-label {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.contact-info-value {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.8;
}

.contact-info-value a { transition: color 0.3s; }
.contact-info-value a:hover { color: var(--accent); }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-bottom-color: var(--border-light);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  padding: 20px 20px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: var(--bg-3);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group label {
  position: absolute;
  top: 20px; left: 20px;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  pointer-events: none;
  transition: top 0.2s, font-size 0.2s, color 0.2s;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 7px;
  font-size: 0.52rem;
  color: var(--accent);
}

.form-submit {
  margin-top: 16px;
  padding: 18px 48px;
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background 0.3s, color 0.3s;
  align-self: flex-start;
}

.form-submit:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-light);
  padding: 64px 48px;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand .logo-main { font-size: 0.95rem; }
.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 240px;
}

.footer-col-title {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

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

.footer-links li,
.footer-links a {
  font-size: 0.78rem;
  color: var(--text);
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1600px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Utilities ────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-serif  { font-family: var(--font-serif); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border: 1px solid var(--border);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color 0.3s, color 0.3s, gap 0.3s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  gap: 16px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  padding: 80px 32px 32px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-overlay.open { display: flex; }

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.2s;
}

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

.mobile-sub-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 14px 12px;
}

.mobile-sub-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color 0.2s;
}

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .card-large { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border-light); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border-light); border-right: none; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .header-inner { padding: 0 24px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 0 24px 60px; }
  .scroll-indicator { right: 24px; }

  .section { padding: 64px 24px; }
  .section-full { padding: 64px 24px; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 24px 48px; }

  .categories-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .card-large { grid-column: span 1; }
  .awards-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .profile-layout { grid-template-columns: 1fr; gap: 48px; }
  .profile-sticky { position: static; }
  .team-grid { grid-template-columns: 1fr; }
  .projects-header { padding: calc(var(--nav-h) + 40px) 24px 40px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .project-body { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
  .gallery-section { padding: 48px 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .studio-layout { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid .card-wide { grid-column: span 2; aspect-ratio: 8/3; }
}

@media (max-width: 520px) {
  .categories-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .card-wide { grid-column: span 1; }
  .gallery-grid { grid-template-columns: 1fr; }
}
